/* PROSUME website. Tokens follow DESIGN.md v3.0. */

:root {
  /* brand (logo guide) */
  --brand-302: #013C5B;
  --brand-314: #0080A2;
  --ink: #121820;
  /* product ramp */
  --primary: #07405E;
  --primary-hover: #134E6F;
  --secondary: #0080A2;
  --petrol-600: #267E9E;
  --petrol-100: #E9F1F4;
  --surface-screen: #EEF3F7;
  --surface-card: #FFFFFF;
  --surface-tile: #F2F4F5;
  --text: #111111;
  --muted: #6B7280;
  --faint: #999999;
  --border: #CCCCCC;
  --divider: #E5E7EB;
  --contract-green: #3FAE49;  /* diagrams only, never text */

  /* theme roles: light values here, dark values under [data-theme="dark"] */
  --heading: var(--brand-302);
  --figure: var(--brand-302);        /* step numbers, years, card top rule */
  --link: var(--primary);
  --hover: var(--secondary);
  --label: var(--petrol-600);        /* eyebrows */
  --btn-primary: var(--primary);
  --nav-text: var(--ink);
  --menu-text: #4B5563;
  --card-bg: #FFFFFF;
  --card-line: rgba(1, 60, 91, .18);
  --header-bg: rgba(255, 255, 255, .97);
  --device: #121820;                 /* phone bezels stay black in both themes */
  --disabled: #9CA3AF;
  --disabled-2: #B4B9C1;
  --placeholder-bg: #FEF3C7;
  --placeholder-text: #92400E;

  --font-brand: "Barlow", system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --tracking-label: .22em;
  --tracking-label-tight: .18em;

  --r-sm: 5px;
  --r-md: 10px;
  --shadow: 0 2px 4px rgba(0, 0, 0, .10);
  --shadow-deck: 0 2px 8px rgba(1, 60, 91, .06);
  --dur: 150ms;

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 80px;
}

/* Dark theme, from the inverse scope in Design/tokens/colors.css:
   near-black 6 C canvas, 314 C for the logo and figures, sky for links. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-card: #121820;
  --surface-screen: #0E1C26;
  --surface-tile: #1E2C38;
  --petrol-100: #15303F;
  --text: #F0F4F7;
  --muted: #B6C6CF;
  --faint: #7D8B95;
  --border: #3A4A56;
  --divider: rgba(255, 255, 255, .12);
  --heading: #FFFFFF;
  --figure: var(--brand-314);
  --link: #58C1E9;
  --hover: #58C1E9;
  --label: #58C1E9;
  --btn-primary: var(--brand-314);
  --nav-text: #E6EDF2;
  --menu-text: #CBD5DC;
  --card-bg: #182530;
  --card-line: rgba(255, 255, 255, .10);
  --header-bg: rgba(18, 24, 32, .97);
  --disabled: #7D8B95;
  --disabled-2: #5F6D78;
  --placeholder-bg: #3D2E0A;
  --placeholder-text: #FCD34D;
  --shadow-deck: 0 2px 8px rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--surface-card);
  color: var(--text);
  font: 400 17px/1.6 var(--font-brand);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-brand); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow {
  font: 500 13px/1.3 var(--font-cond);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 12px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.placeholder { background: var(--placeholder-bg); color: var(--placeholder-text); padding: 0 4px; border-radius: var(--r-sm); }
.notice { background: var(--petrol-100); color: var(--link); padding: 12px 16px; border-radius: var(--r-sm); margin: 24px auto 0; font-size: 15px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 0; border-radius: var(--r-sm);
  font: 600 16px/1 var(--font-brand); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow); transition: opacity var(--dur) ease;
}
.btn:hover { opacity: .85; }
.btn:active { opacity: .8; }
.btn-primary { background: var(--btn-primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }   /* dark surfaces only */
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--divider);
}
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo img { height: 32px; width: auto; }
/* two logo files: 302 C on light, 314 C on dark (DESIGN.md 2.3) */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.site-nav { flex: 1; }
.site-nav > ul { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--nav-text);
  font: 500 15px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase;
  transition: color var(--dur) ease;
}
.site-nav a:hover, .site-nav .is-active > a { color: var(--hover); }
.sub {
  position: absolute; left: 0; top: 100%; min-width: 220px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--card-bg); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--dur) ease, transform var(--dur) ease, visibility var(--dur);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { text-transform: none; letter-spacing: 0; font: 500 15px/1.2 var(--font-brand); padding: 10px 12px; border-radius: var(--r-sm); }
.sub a:hover { background: var(--petrol-100); color: var(--link); }
.sub .nolink { display: block; font: 500 15px/1.2 var(--font-brand); padding: 10px 12px; color: var(--muted); cursor: default; }
.site-footer .nolink { font-size: 15px; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { flex-shrink: 0; }
.site-nav a { white-space: nowrap; }
.nav-toggle { display: none; }
@media (max-width: 1280px) {
  .header-row { gap: 12px; }
  .site-nav a { padding: 10px 7px; letter-spacing: .06em; font-size: 14px; }
}

/* light/dark switch: shows the moon in light mode, the sun in dark mode */
.theme-btn {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; color: var(--muted);
}
.theme-btn:hover { color: var(--hover); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .when-dark { display: none; }
:root[data-theme="dark"] .theme-btn .when-dark { display: block; }
:root[data-theme="dark"] .theme-btn .when-light { display: none; }

/* language dropdown, after Alex's reference image */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  font: 500 16px/1 var(--font-brand); color: var(--muted);
}
.lang-btn svg { width: 20px; height: 20px; }
.lang-btn .chev { width: 16px; height: 16px; transition: transform var(--dur) ease; }
.lang.is-open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  list-style: none; margin: 0; padding: 6px 0;
  background: var(--card-bg); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: none;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 12px 24px; font: 400 17px/1.2 var(--font-brand); color: var(--menu-text); text-decoration: none; }
.lang-menu a:hover { background: var(--surface-tile); }
.lang-menu a[aria-current] { background: var(--petrol-100); color: var(--hover); font-weight: 600; }

/* ---------- hero and dark bands ---------- */
.hero, .cta {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(0, 128, 162, .35), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(88, 193, 233, .18), transparent 70%),
    linear-gradient(135deg, #021f30, #013C5B 55%, #024860);
}
.hero::before, .cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 60% 40%, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1, .cta h2 { color: #fff; }
.hero .eyebrow { color: #9fd8ec; text-transform: none; letter-spacing: .08em; font-size: 16px; }
.hero-text { font-size: 20px; color: rgba(255, 255, 255, .82); max-width: 620px; }
.hero-art { background: #fff; border-radius: var(--r-md); padding: 20px; box-shadow: 0 20px 48px rgba(0, 0, 0, .25); }
/* photos fill their frame; illustrations and screens sit inside it */
.hero-art:has(img[src*="/photos/"]) { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.hero-art img[src*="/photos/"], .text-art img[src*="/photos/"], .card-art img[src*="/photos/"] { width: 100%; height: 100%; object-fit: cover; }
.text-art:has(img[src*="/photos/"]) { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.card-art:has(img[src*="/photos/"]) { margin: -24px -24px 20px; aspect-ratio: 1 / .62; overflow: hidden; }
.card-art img[src*="/photos/"] { max-height: none; }
/* app screenshots: a phone that peeks up from the bottom of a pale petrol panel */
.hero-art:has(img[src*="/screens/"]) { background: none; box-shadow: none; padding: 0; display: flex; justify-content: center; }
.hero-art img[src*="/screens/"] { width: 300px; border: 10px solid var(--device); border-radius: 34px; box-shadow: 0 24px 56px rgba(0, 0, 0, .35); }
/* Infographics are finished designs with their own background: no white card, just the image */
.hero-art:has(img[src*="/infographics/"]) { background: none; box-shadow: none; padding: 0; display: flex; justify-content: center; }
.hero-art img[src*="/infographics/"] { width: 100%; max-width: 480px; border-radius: var(--r-md); box-shadow: 0 24px 56px rgba(0, 0, 0, .35); }
.card-art:has(img[src*="/screens/"]) { margin: -24px -24px 20px; aspect-ratio: 1 / .62; overflow: hidden; align-items: flex-start; padding-top: 22px; background: var(--petrol-100); }
.card-art img[src*="/screens/"] { width: 48%; max-height: none; border: 6px solid var(--device); border-radius: 20px; box-shadow: 0 12px 28px rgba(1, 60, 91, .2); }
.cta .wrap { position: relative; padding-top: 80px; padding-bottom: 88px; text-align: center; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 19px; }
.cta .actions { justify-content: center; }

/* ---------- blocks ---------- */
.block { padding: 88px 0; }
.block + .block { padding-top: 0; }
.block.alt { background: var(--surface-screen); }
.page-head { padding: 72px 0 32px; }
.not-found { padding-bottom: 120px; }
.not-found .lead { margin-bottom: 32px; }
.text-block.has-art .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.text-body > p, .text-body ul { font-size: 18px; max-width: 680px; }

.step-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-list li { border-top: 2px solid var(--figure); padding-top: 20px; }
.num { display: block; font: 300 56px/1 var(--font-cond); color: var(--figure); margin-bottom: 16px; }
.step-list p { color: var(--muted); font-size: 16px; }

.card-grid { display: grid; gap: 24px; margin-top: 40px; grid-template-columns: repeat(3, 1fr); }
.card-grid.n2, .card-grid.n4 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-sm);
  background: var(--card-bg); border: 1px solid var(--card-line); border-top: 4px solid var(--figure);
  box-shadow: var(--shadow-deck); color: inherit; text-decoration: none;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
a.card:hover { border-top-color: var(--hover); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: 16px; flex: 1; }
.card-art { margin: -8px -8px 16px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.card-art img { max-height: 100%; width: auto; }
/* illustrations are drawn on white: keep them on a white panel in dark mode */
:root[data-theme="dark"] .card-art:has(img[src*="/illustrations/"]) { background: #fff; border-radius: var(--r-sm); padding: 8px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--link); font-weight: 600; font-size: 15px; }
.more svg { width: 16px; height: 16px; }

.timeline .tl { list-style: none; margin: 40px 0 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--divider); }
.tl .year { font: 300 32px/1 var(--font-cond); color: var(--figure); }
.tl h3 { font-size: 18px; margin-bottom: 4px; }
.tl p { color: var(--muted); font-size: 16px; margin: 0; }

.phone-row { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.phone { margin: 0; width: 240px; border: 8px solid var(--device); border-radius: 28px; overflow: hidden; box-shadow: 0 16px 40px rgba(1, 60, 91, .18); }

/* ---------- store buttons: grey and inert until live ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 14px; min-width: 210px;
  padding: 12px 20px; border-radius: var(--r-md); background: var(--surface-tile);
  color: var(--text); text-decoration: none;
}
.store-icon svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 13px; color: var(--muted); }
.store-text strong { font-size: 19px; font-weight: 500; }
.store-btn.is-disabled { color: var(--disabled); cursor: default; user-select: none; }
.store-btn.is-disabled small { color: var(--disabled-2); }
.store-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.store-block .stores { margin-top: 32px; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.news-card { color: inherit; text-decoration: none; }
.news-img { aspect-ratio: 1 / .62; overflow: hidden; border-radius: 7.5px; background: var(--surface-screen); margin-bottom: 14px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card h3 { font-size: 19px; margin: 6px 0; transition: color var(--dur) ease; }
.news-card:hover h3 { color: var(--hover); }
.news-card p { color: var(--muted); font-size: 15px; }
.date { font: 500 13px/1 var(--font-cond); letter-spacing: var(--tracking-label-tight); color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.tag { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--surface-tile); color: var(--muted); }
.post { padding: 48px 0 88px; }
.back a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; }
.back svg { width: 16px; height: 16px; }
.post h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; }
.post-img { border-radius: var(--r-md); margin: 24px 0 32px; }
.prose { font-size: 18px; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--r-sm); margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--secondary); color: var(--muted); }

/* ---------- contact form (label inside the box, DESIGN.md 8.2) ---------- */
.contact-form { display: grid; gap: 12px; margin-top: 24px; }
.field { display: block; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 16px; background: var(--card-bg); }
.field:focus-within { border-color: var(--link); }
.field span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; padding: 2px 0 0; background: none; outline: none;
  font: 500 16px/1.45 var(--font-brand); color: var(--text); resize: vertical;
}
.form-note { font-size: 14px; color: var(--muted); }
.direct-mail { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--divider); }
.direct-mail li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 16px; }
.direct-mail span { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-screen); padding: 64px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) 1.5fr; gap: 32px; }
.site-footer h4 { font: 500 13px/1.3 var(--font-cond); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--hover); }
.fbrand img { height: 28px; width: auto; margin-bottom: 14px; }
.fbrand .logo-dark { display: none; }
:root[data-theme="dark"] .fbrand .logo-light { display: none; }
:root[data-theme="dark"] .fbrand .logo-dark { display: block; }
.tagline { font-size: 14px; color: var(--muted); }
.social { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link svg { width: 18px; height: 18px; fill: var(--secondary); }
.fapp .store-btn { min-width: 0; width: 100%; background: var(--card-bg); }
.fapp .stores { flex-direction: column; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 14px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.legal-links a { font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .nav-toggle {
    display: block; margin-left: auto; padding: 8px 12px; background: none; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--r-sm); font: 500 15px/1 var(--font-brand); color: var(--nav-text);
  }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--surface-card); border-bottom: 1px solid var(--divider); box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    display: none; max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; padding: 12px var(--gutter) 20px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; }
  .header-tools .lang-btn span { display: none; }
  .hero-grid, .text-block.has-art .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 68px; }
  body { font-size: 16px; }
  .logo img { height: 26px; }
  .header-row { gap: 12px; }
  .header-tools .btn-sm { padding: 9px 12px; font-size: 14px; }
  .block { padding: 64px 0; }
  .step-list, .card-grid, .card-grid.n2, .card-grid.n4, .news-grid { grid-template-columns: 1fr; }
  .tl li { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fapp { grid-column: 1 / -1; }
  .phone { width: 200px; }
}
/* phones: logo, menu, theme, language and sign-in must share one row */
@media (max-width: 480px) {
  .header-row { gap: 8px; }
  .logo img { height: 22px; }
  .header-tools { gap: 2px; }
  .theme-btn { width: 32px; }
  .lang-btn { padding: 8px 6px; }
  .lang-btn .chev { display: none; }
  .nav-toggle { padding: 8px 10px; font-size: 14px; }
  .header-tools .btn-sm { padding: 9px 10px; font-size: 13px; }
}
