/* DepthVitals site. Tokens are the app's THEME (App.js), so the site and the
   app read as one product. Dark is the default, as in the app, whatever the
   device is set to. The header toggle switches to light, as the app's Sun/Moon
   button does, and the choice is kept per browser. */
:root {
  --bg: #07080B;
  --card: rgba(255,255,255,0.065);
  --raised: rgba(255,255,255,0.10);
  --inset: rgba(255,255,255,0.045);
  --text: #ECEAE3;
  --soft: #9AA0A6;
  --line: rgba(255,255,255,0.10);
  --accent: #2DD4BF;
  --positive: #6FCF97;
  --danger: #E0876F;
  --borderline: #C2912F;
  --card-band: rgba(255,255,255,0.085);
  --card-body: rgba(255,255,255,0.045);
  --eyebrow: #6E757C;
  --glass-hi: rgba(255,255,255,0.16);
  --violet: #8B7FD4;
  --on-accent: #07080B;
  --aur1: rgba(21,114,107,0.55);
  --aur2: rgba(74,63,140,0.50);
  --aur3: rgba(43,95,116,0.45);
  --dock: rgba(12,14,18,0.86);
  --head: rgba(7,8,11,0.55);
  --liquid: rgba(45,212,191,0.34);
  --shadow: 0 30px 80px -30px rgba(0,0,0,0.65);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF2F3; --card: rgba(255,255,255,0.78); --raised: #FFFFFF; --inset: rgba(255,255,255,0.55);
  --text: #141A20; --soft: #5E6B73; --line: rgba(20,26,32,0.10);
  --accent: #0E9C8E; --positive: #2E9E6B; --danger: #C2543A;
  --card-band: rgba(255,255,255,0.85); --card-body: rgba(255,255,255,0.62); --eyebrow: #6B767E;
  --glass-hi: rgba(255,255,255,0.95); --violet: #6B5FC4; --on-accent: #FFFFFF;
  --aur1: rgba(143,217,209,0.50); --aur2: rgba(185,178,232,0.45); --aur3: rgba(168,203,218,0.40);
  --dock: rgba(244,247,248,0.92); --head: rgba(238,242,243,0.6); --liquid: rgba(14,156,142,0.26);
  --shadow: 0 30px 70px -34px rgba(20,26,32,0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, svg { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The app's AuroraBg: three soft colour fields at the same spots and falloff. */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  --r: max(100vw, 100vh);
  background:
    radial-gradient(circle calc(var(--r) * 0.66) at -8% 2%, var(--aur1) 0%, color-mix(in srgb, var(--aur1) 55%, transparent) 40%, color-mix(in srgb, var(--aur1) 20%, transparent) 70%, transparent 100%),
    radial-gradient(circle calc(var(--r) * 0.63) at 110% 42%, var(--aur2) 0%, color-mix(in srgb, var(--aur2) 55%, transparent) 40%, color-mix(in srgb, var(--aur2) 20%, transparent) 70%, transparent 100%),
    radial-gradient(circle calc(var(--r) * 0.61) at -5% 98%, var(--aur3) 0%, color-mix(in srgb, var(--aur3) 55%, transparent) 40%, color-mix(in srgb, var(--aur3) 20%, transparent) 70%, transparent 100%); }
.wrap { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ---------------------------------------------------------------- header */
.site-head { display: flex; align-items: center; gap: 14px; padding-block: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; margin-right: auto; }
.brand svg { flex: none; }
.brand b { display: block; font-weight: 800; font-size: 25px; letter-spacing: -1px; line-height: 1.1; }
.brand b i, .wordmark i { font-style: normal; color: var(--accent); }
.brand small { display: block; font-size: 12.5px; font-style: italic; color: var(--soft); line-height: 1.3; margin-top: 1px; }
.iconbtn { width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--line); background: transparent; color: var(--accent); display: inline-grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.iconbtn:hover { background: var(--inset); }
.iconbtn .moon { display: none; }
:root[data-theme="light"] .iconbtn .sun { display: none; }
:root[data-theme="light"] .iconbtn .moon { display: block; }

/* The app's BottomNav pill, used as the site's nav. */
.navpill { display: flex; gap: 2px; background: var(--raised); border: 1px solid var(--line); border-top-color: var(--glass-hi); border-radius: 26px; padding: 4px; box-shadow: 0 10px 28px -14px rgba(0,0,0,0.45); }
.navpill a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 22px; text-decoration: none; color: var(--soft); font-weight: 500; font-size: 14px; white-space: nowrap; }
.navpill a svg { flex: none; }
.navpill a:hover { color: var(--text); }
.navpill a[aria-current="page"] { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 640px) {
  .site-head { gap: 10px 10px; }
  .navpill { order: 3; width: 100%; }
  .navpill a { flex: 1; justify-content: center; padding: 9px 8px; }
}

/* --------------------------------------------------------------- shared type */
.eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow); font-weight: 600; }
.eyebrow.accent { color: var(--accent); }
h1, h2, h3 { font-family: var(--sans); text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 72px); line-height: 0.98; letter-spacing: -0.035em; margin: 14px 0 18px; }
h2 { font-weight: 800; font-size: clamp(30px, 5.2vw, 46px); line-height: 1.02; letter-spacing: -0.03em; margin: 10px 0 14px; }
h3 { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; margin: 0 0 6px; }
.lede { font-size: 18px; color: var(--soft); max-width: 56ch; margin: 0; }
.muted { color: var(--soft); }
.fine { font-size: 13px; color: var(--soft); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--accent); color: var(--on-accent); font: 600 16px var(--sans); letter-spacing: -0.2px; border: 0; border-radius: 14px; padding: 14px 22px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--inset); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn-note { font-size: 13px; color: var(--soft); margin: 10px 0 0; min-height: 1.4em; }

/* ------------------------------------------------------------- glass card */
.glass { background: var(--card); border: 1px solid var(--line); border-top-color: var(--glass-hi); border-radius: 22px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 26px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--soft); display: grid; gap: 14px; }
.site-foot p { margin: 0; max-width: 72ch; }
.foot-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot-top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-top nav a { color: var(--soft); text-decoration: none; font-weight: 600; }
.foot-top nav a:hover { color: var(--text); }
.wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.6px; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }

/* ====================================================================
   App screenshots. Every picture of the app on this site is a real capture
   (tools/capture-app.mjs), one per theme; the page shows the one that
   matches its own theme. Don't draw app UI in HTML.
   ==================================================================== */
.shot-l { display: none; }
:root[data-theme="light"] .shot-d { display: none; }
:root[data-theme="light"] .shot-l { display: inline; }
.shot { margin: 0; width: 100%; max-width: 360px; }
.shot img { vertical-align: top; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.shots { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }

/* iPhone frame around a 393 x 852 pt screen. The capture gives the app the
   phone's safe-area insets, so the frame only draws the status bar and home
   indicator over them. --pw is the frame's width in px. */
.phone { --pw: 330; --k: calc((var(--pw) - 18) / 393); width: calc(var(--pw) * 1px); padding: 9px; border-radius: calc(var(--pw) * 0.165px); background: #0B0D11; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08); flex: none; position: relative; }
.phone-screen { position: relative; aspect-ratio: 393 / 852; border-radius: calc(var(--pw) * 0.14px); overflow: hidden; background: var(--bg); }
.phone-screen img { vertical-align: top; width: 100%; height: 100%; }
.ios-island { position: absolute; top: calc(11px * var(--k)); left: 50%; width: calc(126px * var(--k)); height: calc(37px * var(--k)); transform: translateX(-50%); background: #000; border-radius: 999px; }
.ios-time { position: absolute; top: calc(30px * var(--k)); left: calc(78px * var(--k)); transform: translate(-50%, -50%); font: 600 calc(17px * var(--k)) / 1 var(--sans); color: var(--text); letter-spacing: -0.2px; }
.ios-icons { position: absolute; top: calc(30px * var(--k)); right: calc(32px * var(--k)); transform: translateY(-50%); display: flex; align-items: center; gap: calc(6px * var(--k)); color: var(--text); }
.ios-icons svg { height: calc(12px * var(--k)); width: auto; }
.ios-home { position: absolute; bottom: calc(8px * var(--k)); left: 50%; width: calc(134px * var(--k)); height: calc(5px * var(--k)); transform: translateX(-50%); border-radius: 3px; background: var(--text); opacity: 0.9; }

/* ===================================================================== home */
.hero { padding-block: 36px 48px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px 56px; align-items: end; }
.hero h1 { max-width: 14ch; margin-bottom: 0; }
.hero-side .btn-row { margin-top: 22px; }
/* The hero film (tools/hero-video): a 16:9 stage, paused by the button or by reduced motion. */
.hero-film { position: relative; margin: 36px 0 0; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #07080B; border: 1px solid var(--line); border-top-color: var(--glass-hi); box-shadow: var(--shadow); }
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-toggle { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; padding: 0; cursor: pointer; color: #ECEAE3; background: rgba(7,8,11,0.55); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-toggle:hover { background: rgba(7,8,11,0.75); }
.film-toggle .i-play, .film-toggle.paused .i-pause { display: none; }
.film-toggle.paused .i-play { display: block; }

.tracks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tracks li { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 64px; border-top: 1px solid var(--line); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 520px; }
.feature-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; font-size: 15.5px; }
.points li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.aside { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); font-size: 14.5px; color: var(--soft); max-width: 56ch; }

.more { padding-block: 64px; border-top: 1px solid var(--line); }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.more-card { padding: 20px; min-width: 0; }
.more-card p { margin: 0; color: var(--soft); font-size: 15px; }
.more-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 14px; }

.privacy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: 34px; margin-block: 24px 64px; }
.privacy h2 { margin-top: 6px; }
.privacy-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.facts3 { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts3 li { padding: 7px 12px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }

/* A picture of this site's own Find Your Numbers card (not the app). */
.mini-result { display: block; width: 100%; max-width: 420px; text-decoration: none; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-top-color: var(--glass-hi); border-radius: 22px; padding: 20px 22px 16px; position: relative; overflow: hidden; transition: transform 0.2s ease; }
.mini-result:hover { transform: translateY(-3px); }
.mini-result::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, var(--liquid), transparent); opacity: 0.6; pointer-events: none; }
.mr-top { display: flex; justify-content: space-between; align-items: center; }
.mr-tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--violet); border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; }
.mr-who { font-weight: 700; font-size: 20px; margin: 14px 0 2px; }
.mr-vial { margin: 0; color: var(--soft); font-size: 15px; }
.mr-draw { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.mr-draw span { font-weight: 700; font-size: 22px; color: var(--soft); }
.mr-draw span:last-child { color: var(--text); font-size: 24px; }
.mr-draw b { font-weight: 800; font-size: 76px; line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); }
.mr-syr { display: block; width: 100%; height: auto; margin-top: 12px; }

.beta { text-align: center; padding: 40px 24px; margin-block: 8px 56px; display: flex; flex-direction: column; align-items: center; }
.beta img { border-radius: 18px; box-shadow: var(--shadow); }
.beta h2 { margin-top: 18px; }
.beta .lede { margin-inline: auto; }
.beta-notes { scroll-margin-top: 16px; text-align: left; max-width: 620px; width: 100%; margin: 26px auto 4px; padding: 20px 22px; border-radius: 18px; background: var(--inset); border: 1px solid var(--line); }
.beta-notes h3 { margin: 0 0 4px; }
.beta-notes .points { margin-top: 12px; }
.beta-notes .points li { font-size: 15px; color: var(--soft); }
.beta-notes .points b { color: var(--text); font-weight: 600; }
.beta .btn-note { max-width: 520px; }

@media (max-width: 900px) {
  .feature, .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy { gap: 18px; }
  .hero-film { margin-top: 28px; border-radius: 18px; }
  .feature.flip .feature-copy { order: 0; }
  .feature { padding-block: 48px; }
  .hero { padding-block: 20px 28px; }
  .hero h1 { max-width: none; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .phone { --pw: 300; }
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .privacy { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .lede { font-size: 17px; }
  .mr-draw b { font-size: 64px; }
}

/* ======================================================= Find Your Numbers
   Ported from mockup/find-your-numbers.html; scoped so it can't touch home. */
.fyn-hero { padding-block: 28px 8px; max-width: 760px; }
.fyn .tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; padding-block: 28px 40px; align-items: start; }
.fyn .panel { background: var(--card); border: 1px solid var(--line); border-top-color: var(--glass-hi); border-radius: 22px; padding: 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); min-width: 0; }
.fyn form.panel { display: flex; flex-direction: column; gap: 22px; }
.fyn fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fyn legend { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eyebrow); font-weight: 600; padding: 0; margin-bottom: 10px; }
.fyn label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--soft); min-width: 0; }
.fyn input[type="text"] { font: 400 16px/1.2 var(--sans); color: var(--text); background: var(--inset); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; width: 100%; min-width: 0; }
.fyn input[type="text"]::placeholder { color: var(--eyebrow); }
.fyn input.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fyn .pep { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 42px; gap: 8px; align-items: end; }
.fyn .pep.single { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.fyn .suffix { position: relative; }
.fyn .suffix input { padding-right: 46px; }
.fyn .suffix em { position: absolute; right: 12px; bottom: 12px; font-style: normal; font-size: 13px; color: var(--eyebrow); pointer-events: none; }
.fyn .rm { height: 42px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: 20px; cursor: pointer; }
.fyn .linkbtn { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--accent); font: 600 14px var(--sans); cursor: pointer; }
.fyn .row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.fyn .seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.fyn .seg input { position: absolute; opacity: 0; pointer-events: none; }
.fyn .seg label { font: 600 13.5px var(--sans); padding: 11px 15px; border-radius: 20px; border: 1px solid var(--line); color: var(--text); cursor: pointer; background: transparent; white-space: nowrap; }
.fyn .seg input:checked + label { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fyn .seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.fyn #sizeWrap .seg { flex-wrap: nowrap; }
.fyn #sizeWrap .seg label { padding-inline: 12px; }
.fyn .hint { font-size: 12.5px; color: var(--soft); margin: 0; }
.fyn .formfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }

.fyn .result { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); min-width: 0; }
.fyn .rcard { background: var(--raised); border: 1px solid var(--line); border-top-color: var(--glass-hi); border-radius: 22px; padding: 22px 22px 18px; position: relative; overflow: hidden; }
.fyn .rcard::after { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, var(--liquid), transparent); opacity: 0.6; pointer-events: none; }
.fyn .card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fyn .tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--violet); border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; }
.fyn .who { font-weight: 700; font-size: 20px; margin: 14px 0 2px; overflow-wrap: anywhere; }
.fyn .vialline { margin: 0; color: var(--soft); font-size: 15px; }
.fyn .draw { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; margin-top: 16px; }
.fyn .draw .verb { font-weight: 700; font-size: 22px; color: var(--soft); }
.fyn .draw .num { font-weight: 800; font-size: clamp(64px, 16vw, 96px); line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.fyn .draw .unit { font-weight: 700; font-size: 26px; }
.fyn .per { margin: 6px 0 0; color: var(--soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.fyn .syr { display: block; width: 100%; height: auto; margin: 18px 0 4px; }
.fyn .syr text { font-family: var(--mono); font-size: 19px; fill: var(--soft); }
.fyn .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.fyn .facts div { background: var(--inset); border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; min-width: 0; }
.fyn .facts dt { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--eyebrow); font-weight: 600; }
.fyn .facts dd { margin: 3px 0 0; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fyn .blendline { margin: 12px 0 0; font-size: 14px; }
.fyn .checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.fyn .checks li { font-size: 14px; padding: 9px 12px 9px 30px; border-radius: 12px; position: relative; background: color-mix(in srgb, var(--danger) 12%, transparent); }
.fyn .checks li::before { content: "!"; position: absolute; left: 11px; top: 8px; font-weight: 800; color: var(--danger); }
.fyn .checks li.ok { background: var(--inset); color: var(--soft); }
.fyn .checks li.ok::before { content: "\2713"; color: var(--accent); }
.fyn details.math { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.fyn details.math summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.fyn details.math ol { margin: 10px 0 0; padding-left: 22px; font-family: var(--mono); font-size: 13px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.fyn .keep { margin: 14px 0 0; font-size: 13px; color: var(--soft); }
.fyn .empty { color: var(--soft); margin: 18px 0 6px; }
.fyn .disclaim { font-size: 13px; color: var(--soft); margin: 12px 4px 0; }

.fyn .appband { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding-block: 48px; border-top: 1px solid var(--line); }
.fyn .feats { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 12px; }
.fyn .feats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.fyn .feats li b { font-weight: 600; }
.fyn .feats svg { margin-top: 3px; }
.fyn .appband-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 360px; justify-self: center; }

.fyn .faq { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.fyn .faq .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.fyn .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fyn .faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.fyn .faq details p { color: var(--soft); margin: 10px 0 0; font-size: 15px; max-width: 60ch; }
.fyn-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* phone dock: the answer stays in reach while you type */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--dock); border-top: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: none; align-items: center; justify-content: space-between; gap: 12px; }
.dock .d-main { font-weight: 800; font-size: 20px; }
.dock .d-main b { color: var(--accent); font-variant-numeric: tabular-nums; }
.dock .d-sub { font-size: 12px; color: var(--soft); }
.dock a { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }

@media (max-width: 860px) {
  .fyn .tool { grid-template-columns: minmax(0, 1fr); }
  .fyn .result { position: static; }
  .fyn .appband { grid-template-columns: minmax(0, 1fr); }
  .fyn .faq .grid { grid-template-columns: minmax(0, 1fr); }
  .dock.on { display: flex; }
}
@media (max-width: 420px) {
  .fyn .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fyn .facts div:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .fyn .draw .num { transition: color 0.2s; }
  .fyn .syr .liquid, .fyn .syr .stopper { transition: all 0.25s ease; }
}
