/* ==========================================================================
   LabZeus marketing website — site.css
   "Instrument, not brochure." Design language from docs/DESIGN.md:
   instrument-teal, the range-band motif, tube-cap categorical accents,
   IBM Plex trio (self-hosted). Light default (bright lab room); dark =
   microscope room. Colour lives ONLY in data ink — surfaces stay quiet.
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Tamil range → Noto Sans Tamil under the SAME family name, so Latin stays on
   Plex and Tamil glyphs resolve here automatically. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-tamil.woff2') format('woff2');
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #111c2e;
  --ink-soft: #55627a;
  --line: #e2e8f0;
  --primary: #0b7285;
  --primary-strong: #095c6b;
  --primary-ink: #ffffff;
  --primary-tint: #e5f2f4;

  --flag-normal: #199a5b;
  --flag-low: #3b6fd4;
  --flag-high: #d97706;
  --flag-crit: #dc2626;
  --band-normal: #dcf2e7;

  /* tube caps */
  --cap-haem: #8e7cc3;
  --cap-biochem: #c9a227;
  --cap-diabetes: #7c8797;
  --cap-coag: #4a90d9;
  --cap-hormone: #4c9a66;
  --cap-immuno: #c0504d;
  --cap-urine: #d8b23a;
  --cap-micro: #4a4f5a;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-pop: 0 18px 40px -20px rgba(17, 28, 46, 0.35);
  --maxw: 1120px;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Noto Sans', sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', ui-monospace, monospace;
}
:root[data-theme='dark'] {
  --paper: #0d1420;
  --surface: #131c2b;
  --surface-2: #1a2434;
  --ink: #e8edf5;
  --ink-soft: #93a1b8;
  --line: #24304a;
  --primary: #35b5c9;
  --primary-strong: #4ccadd;
  --primary-ink: #06222a;
  --primary-tint: #10303a;
  --band-normal: #10352a;
  --shadow-pop: 0 18px 44px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: 650; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.num, .mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 0.6rem;
}
.lede { font-size: 1.12rem; max-width: 46ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 0.72rem 1.25rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: #25d366; color: #06331b; }
.btn-wa:hover { background: #1fb457; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand .zeus { color: var(--primary); }
.nav-links { display: flex; gap: 20px; margin-left: 8px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* language + theme toggles */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 176px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 6px; display: none;
}
.menu.open .menu-panel { display: block; }
.menu-panel button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 10px; border: 0; background: transparent; color: var(--ink);
  border-radius: 8px; cursor: pointer; font-family: var(--sans); font-size: 0.92rem; text-align: start;
}
.menu-panel button:hover { background: var(--surface-2); }
.menu-panel button.active { color: var(--primary); font-weight: 600; }
.menu-panel button.active::after { content: '✓'; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .lede { max-width: 42ch; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin: 1.1rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.hero-note a { font-weight: 600; }

/* range-band motif card (THE signature device) */
.band-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-pop);
}
.band-card .rc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.band-card .rc-test { font-weight: 600; font-size: 0.98rem; }
.band-row { padding: 14px 2px 20px; border-bottom: 1px solid var(--line); }
.band-row:last-child { border-bottom: 0; }
.band-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.band-name { font-weight: 600; font-size: 0.95rem; }
.band-value { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; }
.band-value .unit { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; margin-inline-start: 3px; }
.flag-chip {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 2px 8px; border-radius: var(--radius-pill); margin-inline-start: 8px; vertical-align: middle;
}
.flag-normal { color: var(--flag-normal); background: color-mix(in srgb, var(--flag-normal) 14%, transparent); }
.flag-high { color: var(--flag-high); background: color-mix(in srgb, var(--flag-high) 14%, transparent); }
.flag-low { color: var(--flag-low); background: color-mix(in srgb, var(--flag-low) 14%, transparent); }

/* the track */
.band-track {
  position: relative; height: 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--line);
}
.band-normal-zone {
  position: absolute; top: 50%; transform: translateY(-50%); height: 12px;
  background: var(--band-normal); border-radius: var(--radius-pill);
}
.band-marker {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,0.28);
  transform: translate(-50%, -50%);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) { .band-marker { transition: none; } }
.band-scale { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.trust-item { padding: 22px 10px; }
.trust-item .t-num { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.trust-item .t-label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.feature:last-of-type { border-bottom: 0; }
.feature.flip .feature-media { order: -1; }
.feature-media {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow-pop);
}
.feature-media img { width: 100%; height: auto; display: block; }
.feature-media.phone { max-width: 300px; margin: 0 auto; border-radius: 26px; }
.feature-body h3 { font-size: 1.4rem; }
.cap-dot {
  display: inline-block; width: 14px; height: 9px; border-radius: 3px; vertical-align: middle;
  margin-inline-end: 8px;
}
.feature-tag { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.feature ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; color: var(--ink-soft); }
.feature li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 8px; width: 12px; height: 8px;
  border-radius: 2px; background: var(--band-normal); border: 1px solid var(--flag-normal);
}

/* ---------- Feature mini-grid (icons) ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.mini .cap { display: inline-block; width: 22px; height: 14px; border-radius: 4px; margin-bottom: 10px; }
.mini h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mini p { font-size: 0.9rem; margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--primary); box-shadow: var(--shadow-pop); position: relative; }
.price-badge {
  position: absolute; top: -12px; inset-inline-start: 22px;
  background: var(--primary); color: var(--primary-ink); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 4px 12px; border-radius: var(--radius-pill); text-transform: uppercase;
}
.price-card .plan-name { font-weight: 650; font-size: 1.15rem; }
.price-card .plan-sub { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 2px; }
.price-amount .amt { font-family: var(--mono); font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.price-amount .per { color: var(--ink-soft); font-size: 0.9rem; }
.price-billed { font-size: 0.82rem; color: var(--ink-soft); font-family: var(--mono); margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.price-card li { position: relative; padding-inline-start: 24px; margin-bottom: 9px; font-size: 0.92rem; color: var(--ink-soft); }
.price-card li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--flag-normal); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Consumer (patient/doctor) band ---------- */
.consumer { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.consumer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.app-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.92rem;
}
.app-chip:hover { background: var(--surface-2); text-decoration: none; }
.app-chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Contact / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 0.92rem; margin-bottom: 14px; display: none; }
.alert.show { display: block; }
.alert.ok { background: color-mix(in srgb, var(--flag-normal) 12%, transparent); color: var(--flag-normal); }
.alert.err { background: color-mix(in srgb, var(--flag-crit) 12%, transparent); color: var(--flag-crit); }
.contact-aside li { position: relative; padding-inline-start: 26px; margin-bottom: 12px; color: var(--ink-soft); list-style: none; }
.contact-aside ul { padding: 0; margin: 0; }
.contact-aside li::before { content: ''; position: absolute; inset-inline-start: 0; top: 7px; width: 12px; height: 8px; border-radius: 2px; background: var(--primary); opacity: 0.5; }

/* success panel */
.thanks { display: none; text-align: center; padding: 20px 0; }
.thanks.show { display: block; }
.thanks .tick {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: color-mix(in srgb, var(--flag-normal) 16%, transparent); color: var(--flag-normal);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: var(--primary-ink); border-radius: var(--radius-lg); padding: 44px; text-align: center; }
.cta-band h2 { color: var(--primary-ink); }
.cta-band p { color: color-mix(in srgb, var(--primary-ink) 82%, transparent); }
.cta-band .btn-primary { background: var(--primary-ink); color: var(--primary); }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--primary-ink) 88%, #000); }
.cta-band .btn-ghost { color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 45%, transparent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; margin-top: 8px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 30ch; }
.footer-brand p { font-size: 0.9rem; margin-top: 10px; }
.footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 10px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 7px; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Download page ---------- */
.dl-hero { padding: 60px 0 8px; }
.dl-hero .lede { margin-left: auto; margin-right: auto; }

.dl-primary {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: var(--shadow-pop); margin-top: 18px;
}
.dl-primary h2 { margin-bottom: 0.35em; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 4px; }
/* long localized labels (e.g. Tamil) must wrap instead of overflowing */
.dl-actions .btn, .dl-app-btn { white-space: normal; }
.dl-meta { font-size: 0.82rem; color: var(--ink-soft); }
.dl-hint { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 0.92rem; }
.dl-hint-step {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600;
  background: var(--primary-tint); color: var(--primary); margin-top: 1px;
}
.dl-offline {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px;
  border-radius: var(--radius); background: color-mix(in srgb, var(--flag-normal) 9%, transparent);
  color: var(--ink-soft); font-size: 0.9rem;
}
.dl-offline svg { flex: none; color: var(--flag-normal); margin-top: 1px; }
.dl-primary-side { justify-self: center; text-align: center; }

/* QR tiles stay white in BOTH themes — scanners want dark-on-light */
.qr-tile {
  display: inline-flex; padding: 7px; background: #ffffff; border: 1px solid var(--line);
  border-radius: var(--radius); line-height: 0;
}
.qr-tile img { width: 150px; height: 150px; display: block; }
.qr-caption { font-size: 0.82rem; color: var(--ink-soft); max-width: 24ch; margin: 10px auto 0; }

.dl-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.dl-app {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.dl-app-head { display: flex; align-items: center; gap: 12px; text-align: start; align-self: stretch; }
.dl-app-mark {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dl-app-name { font-size: 1.02rem; margin: 0; }
.dl-app-tag { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.dl-app-who { font-size: 0.92rem; margin: 12px 0 16px; min-height: 3.2em; }
.dl-app-btn { margin-top: 14px; align-self: stretch; }
.dl-app-note { font-size: 0.8rem; color: var(--ink-soft); margin: 10px 0 0; }
.dl-playstore {
  text-align: center; margin: 26px auto 0; font-size: 0.88rem; color: var(--ink-soft); max-width: 56ch;
}

@media (max-width: 900px) {
  .dl-apps { grid-template-columns: 1fr; }
  .dl-primary { grid-template-columns: 1fr; padding: 26px 20px; gap: 24px; }
  .dl-primary-side { justify-self: stretch; }
  .dl-app-who { min-height: 0; }
}
@media (max-width: 520px) {
  .dl-actions .btn { width: 100%; }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-page .code { font-family: var(--mono); font-size: 4rem; font-weight: 600; color: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature, .consumer-grid, .form-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .feature-media { order: 0; }
  .price-grid, .mini-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 14px;
  }
  .section { padding: 52px 0; }
  .cta-band { padding: 32px 20px; }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* Small phones: keep the header inside the viewport. The page body carries
   the sign-in / trial CTAs, so the header slims down to the essentials. */
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
  #lang-btn [data-lang-current] { display: none; }
}
@media (max-width: 480px) {
  .nav-actions .btn-primary { display: none; }
}

/* ---------- Print (courtesy) ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
}
