/* ═══════════════════════════════════════════════════════
   AQUABOOK — same structure as YarnTrailWeb, PiClimbWeb and HairDiaryWeb, in the app's Tidewater style
   (docs/DECISIONS.md, night of 2026-10-27): deep blue to teal, a water line as the hero shape, status
   marks that read without colour. Text and numerals use Manrope, as in the style prototype.
   ═══════════════════════════════════════════════════════ */

/* 1. VARIABLES — the Tidewater tokens (AquaTheme in the app)
   ─────────────────────────────────────────────────────── */
:root {
  --bg:        #eef4f7;
  --bg-2:      #e3edf2;
  --bg-3:      #d3e0e7;
  --surface:   #ffffff;
  --header-bg: rgba(238, 244, 247, 0.86);

  --accent:      #0f6e8c;
  --accent-dk:   #0b5a73;
  --accent-2:    #16918e;
  --accent-soft: #dfecf2;
  --accent-line: rgba(15, 110, 140, 0.22);
  --link:        #0f6e8c;
  --on-accent:   #ffffff;

  --in:   #17804f;            /* in range: check circle */
  --near: #9c5900;            /* near the edge: triangle */
  --out:  #c0352b;            /* out of range: diamond */

  --text:      #0e2233;       /* ink */
  --text-2:    #33495a;
  --text-3:    #4b5e6c;       /* muted */
  --border:    #d3e0e7;       /* line */
  --error:     #c0352b;

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Apple SD Gothic Neo', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: var(--sans);

  --pad:   clamp(16px, 5vw, 80px);
  --max-w: 1200px;

  --r1: 12px;
  --r2: 16px;
  --r3: 22px;

  --sh1: 0 1px 3px rgba(14,34,51,.06), 0 2px 8px rgba(14,34,51,.04);
  --sh3: 0 12px 48px rgba(14,34,51,.12), 0 4px 16px rgba(14,34,51,.06);

  --gradient: linear-gradient(135deg, #0b3d6e 0%, #16918e 100%);   /* the hero gradient */
  --gradient-end: #16918e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #06121c;
    --bg-2:      #0a1a27;
    --bg-3:      #12293a;
    --surface:   #0d2130;
    --header-bg: rgba(6, 18, 28, 0.84);

    --accent:      #4cc3c9;
    --accent-dk:   #6fd3d8;
    --accent-2:    #16918e;
    --accent-soft: #12293a;
    --accent-line: rgba(76, 195, 201, 0.28);
    --link:        #4cc3c9;
    --on-accent:   #06121c;

    --in:   #4cc38a;
    --near: #f2b64c;
    --out:  #ff7a6e;

    --text:      #e4f0f5;
    --text-2:    #b9ccd6;
    --text-3:    #93aab8;
    --border:    #1c3546;
    --error:     #ff7a6e;

    --sh1: 0 1px 3px rgba(0,0,0,.3);
    --sh3: 0 12px 48px rgba(0,0,0,.45);

    --gradient: linear-gradient(135deg, #0b3d6e 0%, #127f7d 100%);
    --gradient-end: #127f7d;
  }
}

/* 2. RESET & BASE
   ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.visually-hidden-focusable {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.visually-hidden-focusable:focus {
  position: static; width: auto; height: auto;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 16px; border-radius: 4px; z-index: 9999;
}

/* 3. HEADER
   ─────────────────────────────────────────────────────── */
body > header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad);
  height: 64px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-brand {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0;
}
.brand-logo {
  border-radius: 8px;
  box-shadow: var(--sh1);
}
.brand-name {
  font-family: var(--display);
  font-size: 21px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
}
.nav-link {
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover      { color: var(--link); background: var(--accent-soft); }
.nav-link--active    { color: var(--link); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  padding: 8px; border-radius: var(--r1);
  color: var(--text);
  margin-left: auto;
  transition: background .15s;
}
.nav-toggle:hover { background: var(--accent-soft); }

/* Language Picker */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer; background: none; border: none;
  list-style: none;
  transition: color .15s, background .15s;
  user-select: none;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { color: var(--link); background: var(--accent-soft); }
.lang-code { font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.lang-chevron { transition: transform .2s; }
details[open] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh3);
  padding: 8px; min-width: 300px; z-index: 200;
}
.lang-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  list-style: none;
}
.lang-option {
  display: block;
  padding: 8px 10px; border-radius: var(--r1);
  font-size: 13px; color: var(--text-2);
  transition: color .15s, background .15s; white-space: nowrap;
}
.lang-option:hover          { color: var(--link); background: var(--accent-soft); }
.lang-option--active        { color: var(--link); font-weight: 600; background: var(--accent-soft); }


/* 5. STATS BAR
   ─────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--gradient);
  padding: 18px var(--pad);
}
.stats-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 16px 56px; flex-wrap: wrap;
  list-style: none;
}
.stat-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.92);
}
.stat-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.14);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-label { font-size: 14px; font-weight: 500; }

/* 6. FEATURES
   ─────────────────────────────────────────────────────── */
.features {
  padding: 100px var(--pad);
  max-width: var(--max-w); margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--link); margin-bottom: 12px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.1;
  color: var(--text); letter-spacing: -.02em;
}
.section-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.65;
  margin-top: 12px; max-width: 540px;
  margin-left: auto; margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh3);
  border-color: var(--accent-line);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft); color: var(--link);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--display);
  font-size: 23px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.2;
}
.feature-text {
  font-size: 15px; line-height: 1.65; color: var(--text-2);
}


/* 8. DOWNLOAD CTA
   ─────────────────────────────────────────────────────── */
.download-cta {
  padding: 100px var(--pad);
  text-align: center;
  background: var(--bg-2);
}
.download-cta-inner {
  max-width: 560px; margin: 0 auto;
}
.download-cta-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text); margin-bottom: 16px;
}
.download-cta-sub {
  font-size: 17px; color: var(--text-2);
  margin-bottom: 40px; line-height: 1.65;
}

.appstore-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: #06121c; color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(14,34,51,.22);
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,34,51,.30);
}
.appstore-badge-text { text-align: left; }
.appstore-badge-line1 {
  display: block; font-size: 11px; font-weight: 400;
  opacity: .7; letter-spacing: .02em;
}
.appstore-badge-line2 {
  display: block; font-size: 20px; font-weight: 600;
  letter-spacing: -.01em;
}
.download-note {
  margin-top: 16px; font-size: 14px; color: var(--text-3);
}

/* 9. PROSE (Support, Privacy)
   ─────────────────────────────────────────────────────── */
.prose-page {
  max-width: 760px; margin: 0 auto;
  padding: 60px var(--pad) 100px;
}
.prose-header { margin-bottom: 40px; }
.prose-header h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text); margin-bottom: 12px;
}
.prose-meta { font-size: 14px; color: var(--text-3); }
.prose-meta a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.support-intro { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.support-grid  { display: flex; flex-direction: column; gap: 24px; }

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 36px;
  scroll-margin-top: 80px;
}
.support-card h2 {
  font-family: var(--display);
  font-size: 26px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.contact-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 15px; align-items: center;
}
.contact-label { color: var(--text-3); font-weight: 500; }
.contact-row a { color: var(--link); transition: opacity .15s; overflow-wrap: anywhere; }
.contact-row a:hover { opacity: .7; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400; line-height: 1;
  color: var(--link); flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 18px;
  font-size: 15px; line-height: 1.7; color: var(--text-2);
}

/* 10. FORMS
   ─────────────────────────────────────────────────────── */
.form-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 20px;
}
.form-field label {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.form-field input,
.form-field textarea {
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  font-family: var(--sans); font-size: 16px; color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { min-height: 140px; }
.form-field--trap {
  position: absolute; left: -10000px;
  width: 1px; height: 1px; overflow: hidden;
}
.form-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--gradient); color: var(--on-accent);
  border-radius: 100px; font-size: 15px; font-weight: 600;
  border: none;
  transition: transform .15s, filter .2s;
  box-shadow: 0 2px 12px rgba(15,110,140,.28);
}
.form-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.field-error { color: var(--error); font-size: 12px; font-weight: 500; }
.alert-success {
  padding: 12px 16px;
  background: rgba(46,160,90,.10);
  border: 1px solid rgba(46,160,90,.28);
  border-radius: var(--r1); font-size: 14px; color: var(--text);
  margin-bottom: 20px;
}
.alert-error {
  padding: 12px 16px;
  background: rgba(176,58,46,.08);
  border: 1px solid rgba(176,58,46,.24);
  border-radius: var(--r1); font-size: 14px; color: var(--error);
  margin-bottom: 20px;
}
.alert-error ul { padding-left: 18px; }

/* 11. PRIVACY
   ─────────────────────────────────────────────────────── */
.privacy-content { line-height: 1.75; }
.privacy-content > p:first-child { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.privacy-content h2 {
  font-family: var(--display);
  font-size: 26px; font-weight: 700;
  margin-top: 44px; margin-bottom: 12px; color: var(--text);
}
.privacy-content p  { margin-bottom: 16px; font-size: 16px; color: var(--text-2); }
.privacy-content ul { padding-left: 20px; margin-bottom: 16px; font-size: 16px; color: var(--text-2); }
.privacy-content li { margin-bottom: 6px; }
.privacy-content a  { color: var(--link); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.privacy-content strong { color: var(--text); }

/* 12. ERROR PAGES
   ─────────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100dvh - 64px - 90px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px var(--pad);
}
.error-code {
  font-family: var(--display);
  font-size: 96px; font-weight: 800;
  color: var(--accent-line); line-height: 1; margin-bottom: 16px;
}
.error-title {
  font-family: var(--display);
  font-size: 32px; font-weight: 800;
  color: var(--text); margin-bottom: 12px;
}
.error-sub { font-size: 16px; color: var(--text-2); margin-bottom: 32px; }

/* 13. FOOTER
   ─────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--pad);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 17px; font-weight: 600; color: var(--text);
}
.footer-brand img { border-radius: 6px; }
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--link); }

/* 14. SCROLL ANIMATIONS
   ─────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-animate].is-visible { opacity: 1; transform: none; }
[data-animate][data-delay="1"] { transition-delay: .08s; }
[data-animate][data-delay="2"] { transition-delay: .16s; }
[data-animate][data-delay="3"] { transition-delay: .24s; }
[data-animate][data-delay="4"] { transition-delay: .32s; }
[data-animate][data-delay="5"] { transition-delay: .40s; }
[data-animate][data-delay="6"] { transition-delay: .48s; }

/* ═══════════════════════════ AQUABOOK ═══════════════════════════ */

/* The stats bar sits on the deep gradient in both modes; a wave leads into it from the hero. */
.stat-item { color: #ffffff; }
.stats-wave { line-height: 0; margin-bottom: -1px; }
.stats-wave .waterline { width: 100%; height: 48px; display: block; }
.stats-wave .waterline-back  { fill: var(--accent-2); fill-opacity: .25; }
.stats-wave .waterline-front { fill: #0f5f80; }
.stats-wave .waterline-line  { stroke: var(--accent-2); stroke-opacity: .5; stroke-width: 1.5; }
@media (prefers-color-scheme: dark) {
  .stats-wave .waterline-front { fill: #0d5a78; }
}
.stats-bar { background: linear-gradient(90deg, #0f5f80 0%, var(--gradient-end) 100%); }
@media (prefers-color-scheme: dark) {
  .stats-bar { background: linear-gradient(90deg, #0d5a78 0%, var(--gradient-end) 100%); }
}

/* The water line, wherever it appears */
.waterline { display: block; width: 100%; height: 40px; }
.waterline-back  { fill: #ffffff; fill-opacity: .14; }
.waterline-front { fill: #ffffff; fill-opacity: .18; }
.waterline-line  { stroke: #ffffff; stroke-opacity: .55; stroke-width: 2; }

/* Status marks: the shape always goes with the colour */
.status { flex: none; }
.status--in circle { fill: var(--in); }
.status--in path   { stroke: var(--surface); }
.status--near path { fill: var(--near); }
.status--out path  { fill: var(--out); }

/* HERO
   ─────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px 72px;
  align-items: center;
  min-height: calc(100dvh - 64px);
  padding: 60px var(--pad) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge-icon { border-radius: 7px; }
.hero-badge-text { font-size: 13px; font-weight: 600; color: var(--link); letter-spacing: .02em; }
.hero-headline {
  font-family: var(--display);
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 18px;
  overflow-wrap: break-word;
}
.hero-promise {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: 0 2px 14px rgba(15,110,140,.30);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(15,110,140,.36); }
.btn-primary:active { transform: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 22px;
  color: var(--link);
  border-radius: 100px; font-size: 15px; font-weight: 500;
  border: 1.5px solid var(--accent-line);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--link); background: var(--accent-soft); }

/* PHONE MOCKUPS (drawn, not screenshots)
   ─────────────────────────────────────────────────────── */
.phone {
  width: 310px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 46px;
  box-shadow: var(--sh3);
}
.phone-screen {
  background: var(--bg);
  border-radius: 36px;
  padding: 24px 18px 20px;
  display: grid; gap: 12px;
  min-height: 540px;
  align-content: start;
}
.phone--small { width: 260px; border-radius: 40px; padding: 10px; }
.phone--small .phone-screen { min-height: 470px; border-radius: 31px; padding: 22px 14px; gap: 12px; }

.chip {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-head-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.mock-date { font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: -6px; }
.mock-meta { display: block; font-size: 12px; color: var(--text-3); }
.mock-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.mock-title--small { font-size: 17px; margin-top: 6px; }

/* Test entry rows */
.mock-readings { list-style: none; display: grid; gap: 6px; }
.mock-reading {
  display: grid; grid-template-columns: 1fr 40px auto 14px; gap: 8px; align-items: center;
  background: var(--surface); border-radius: 13px; padding: 8px 12px;
  border: 1.5px solid transparent;
}
.mock-reading--active { border-color: var(--accent); }
.mock-reading-name { font-size: 14px; font-weight: 600; line-height: 1.25; min-width: 0; }
.mock-reading-name small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); }
.mock-reading-value {
  font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right;
  white-space: nowrap;
}
.mock-reading-value small { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.mock-reading--active .mock-reading-value::after {
  content: ""; display: inline-block; width: 2px; height: 18px; margin-left: 2px;
  background: var(--accent); vertical-align: -3px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.spark { width: 40px; height: 16px; }
.spark polyline { stroke: var(--accent); }

.mock-pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px;
}
.mock-pad span {
  height: 38px; border-radius: 10px; background: var(--surface);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mock-next {
  height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
}

/* Tank card with the water line */
.tank-card {
  position: relative; overflow: hidden;
  background: var(--gradient); color: #ffffff;
  border-radius: 20px; padding: 16px 16px 0;
  display: grid; gap: 2px;
}
.tank-card-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.tank-card-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tank-card-meta { font-size: 12px; opacity: .85; }
.tank-card .waterline { margin: 10px -16px 0; width: calc(100% + 32px); height: 34px; }
.tank-card-badge {
  justify-self: start; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; background: rgba(255,255,255,.18);
  border-radius: 999px; padding: 3px 10px;
}

.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-tile {
  position: relative; background: var(--surface); border-radius: 14px; padding: 10px 12px;
  display: grid; gap: 2px;
}
.mock-tile .status { position: absolute; top: 10px; right: 10px; }
.mock-tile-name { font-size: 11px; font-weight: 600; color: var(--text-3); padding-right: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tile-value { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mock-tile-value small { font-size: 10px; font-weight: 600; color: var(--text-3); margin-left: 3px; }
.mock-task { background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.mock-task b { font-weight: 700; }

/* Chart */
.mock-latest { display: flex; align-items: center; gap: 8px; margin-top: -6px; }
.mock-latest-value { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mock-latest-value small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.mock-segments {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--accent-soft); border-radius: 10px; padding: 3px;
  font-size: 11px; font-weight: 700; text-align: center; color: var(--text-2);
}
.mock-segments span { padding: 5px 2px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-segments .is-on { background: var(--surface); color: var(--text); box-shadow: var(--sh1); }
.mock-chart { width: 100%; height: 170px; background: var(--surface); border-radius: 14px; padding: 8px 0; }
.mock-chart-band { fill: var(--in); fill-opacity: .12; }
.mock-chart-grid { stroke: var(--border); stroke-width: 1; }
.mock-chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mock-chart-dose { fill: var(--accent-2); }
.mock-legend { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); }
.mock-legend span { display: flex; align-items: center; gap: 8px; }
.mock-legend i { display: block; flex: none; }
.mock-legend-band { width: 16px; height: 10px; border-radius: 3px; background: var(--in); opacity: .3; }
.mock-legend-dose { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); margin-inline: 4px; }

/* Dosing and maintenance */
.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14px;
}
.mock-row > div { min-width: 0; }
.mock-row b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pill {
  flex: none; background: var(--accent); color: var(--on-accent);
  border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.mock-repeat { font-size: 13px; font-weight: 700; color: var(--accent); padding-left: 4px; }
.mock-done {
  flex: none; border: 1.5px solid var(--accent-line); color: var(--accent);
  border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* SCREENS
   ─────────────────────────────────────────────────────── */
.screens { padding: 100px var(--pad); background: var(--bg-2); }
.screens-row {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
}
.screen { display: grid; justify-items: center; gap: 18px; }
.screen figcaption { font-size: 15px; color: var(--text-2); text-align: center; max-width: 250px; }

/* WATCH + WIDGETS
   ─────────────────────────────────────────────────────── */
.duo {
  max-width: var(--max-w); margin: 0 auto;
  padding: 100px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.duo-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 40px 36px;
}
.duo-title { font-family: var(--display); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.duo-text { font-size: 16px; color: var(--text-2); line-height: 1.65; }

/* Apple Watch */
.watch {
  width: 160px; height: 194px; margin: 0 auto 32px;
  background: #06121c; border-radius: 44px; padding: 10px;
  box-shadow: var(--sh3);
}
.watch-screen {
  height: 100%; border-radius: 35px; background: #000;
  color: #e4f0f5; display: grid; align-content: center; gap: 5px;
  padding: 0 16px;
  --in: #4cc38a; --near: #f2b64c; --out: #ff7a6e; --surface: #000;
}
.watch-tank { font-size: 11px; font-weight: 700; color: #4cc3c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 7px; align-items: center; font-size: 13px; }
.watch-name { color: #93aab8; font-weight: 600; }
.watch-row b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.watch-dose {
  margin-top: 4px; padding: 6px 0; text-align: center;
  background: #4cc3c9; color: #06121c; border-radius: 999px; font-weight: 800; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Widgets */
.widgets { display: flex; gap: 14px; justify-content: center; align-items: flex-start; margin: 0 auto 32px; flex-wrap: wrap; }
.widget {
  background: var(--gradient); color: #ffffff; border-radius: 24px; padding: 14px 16px;
  box-shadow: var(--sh3); display: grid; gap: 5px; align-content: start;
  --in: #7fe0b0; --near: #ffd27a; --out: #ffa59b; --surface: #0b3d6e;
}
.widget--small  { width: 156px; min-height: 156px; }
.widget--medium { width: 320px; max-width: 100%; min-height: 156px; }
.widget > *, .widget-cols > div > * { min-height: min-content; }
.widget-tank { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; }
.widget-row b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.widget-meta { font-size: 11px; opacity: .8; }
.widget-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.widget-cols > div { display: grid; gap: 5px; align-content: start; }
.widget-task { border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; }
.widget-task b { font-size: 14px; font-weight: 800; line-height: 1.25; }

/* SHARING
   ─────────────────────────────────────────────────────── */
.share { padding: 40px var(--pad) 100px; }
.share-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.share-card { max-width: 340px; margin: 36px auto 0; text-align: left; }
.share-card .tank-card { box-shadow: var(--sh3); }
.share-points {
  list-style: none; display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap;
  margin-top: 28px; color: var(--text-2); font-size: 15px;
}
.share-points li { display: flex; align-items: center; gap: 10px; text-align: left; }
.share-points .check { flex: none; }

.download-cta .waterline { max-width: 320px; height: 44px; margin: 0 auto 28px; }
.download-cta .waterline-back  { fill: var(--accent-2); fill-opacity: .18; }
.download-cta .waterline-front { fill: var(--accent); fill-opacity: .22; }
.download-cta .waterline-line  { stroke: var(--accent); stroke-opacity: .8; }
.download-note--soon { font-size: 16px; font-weight: 700; color: var(--accent); }

/* FREE AND PRO
   ─────────────────────────────────────────────────────── */
.pricing { padding: 100px var(--pad); background: var(--bg-2); }
.pricing-grid {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 36px 32px;
}
.plan--pro { border: 1.5px solid var(--accent-line); box-shadow: var(--sh3); }
.plan-name { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.plan-price { font-size: 14px; font-weight: 600; color: var(--accent); margin: 4px 0 18px; text-transform: uppercase; letter-spacing: .08em; }
.plan-lead { font-family: var(--display); font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.plan-points { list-style: none; display: grid; gap: 11px; }
.plan-points li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.check {
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.plan-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); line-height: 1.6; }
.pricing-always {
  max-width: 640px; margin: 36px auto 0; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--text-2);
}

/* PRIVACY BAND
   ─────────────────────────────────────────────────────── */
.privacy-band { padding: 100px var(--pad); }
.privacy-band-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.privacy-band .btn-ghost { margin-top: 28px; }

/* RESPONSIVE
   ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center; justify-items: center;
    padding-top: 40px; min-height: auto; gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub     { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 600px) {
  body > header { gap: 8px; }
  .header-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch;
    padding: 8px 0 16px; gap: 0; z-index: 50;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(14,34,51,.10);
  }
  .header-nav.nav-open { display: flex; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-link { padding: 13px var(--pad); font-size: 16px; width: 100%; border-radius: 0; }
  .lang-dropdown { position: fixed; top: 64px; left: 16px; right: 16px; min-width: 0; }

  .phone { width: min(310px, 100%); }
  .widget--medium { width: 100%; }
  .features, .screens, .duo, .pricing, .privacy-band, .download-cta, .share { padding-top: 72px; padding-bottom: 72px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card  { padding: 24px 20px; }
  .duo-item, .plan { padding: 28px 22px; }
  .support-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 14px; flex-wrap: wrap; }
}

/* REDUCED MOTION
   ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
