/* mudra.fi · "One view"
   One scroll film on GSAP: night sky and an orbit of what you own, a touch that opens the app, then day.
   header: the v3 frame (css/header.css); the Mudra name docks from a full-screen hero. Day/night is an icon in the right margin.
   close: the page ends on the job, a three-question request for access.
   Type: Instrument Serif (heads), Manrope (text), JetBrains Mono (figures), Noto Serif Display (wordmark and the giant words).
   Colour: the app's platinum system, one hue, day and night. */

:root {
  /* day */
  --bg: #f1f3f5; --card: #fcfdfe; --ink: #0e1621; --muted: #56616e;
  --line: rgba(14,22,33,.1); --line-strong: rgba(14,22,33,.22);
  --accent: #2c3e55; --accent-ink: #2c3e55; --accent-ui: #2c3e55; --tint: rgba(44,62,85,.09);
  --btn: #1c2b40; --btn-ink: #f6f8fa; --btn-edge: #0a1320;
  --alt: #0f1824; --on-alt: #e8edf2; --on-alt-mu: #9aa6b4; --alt-line: rgba(220,228,236,.12); --alt-accent: #c8d3de; --alt-tint: rgba(200,211,222,.14);
  --glow: #dce4ec; --pill-ink: #0b1422; --sensor: #4a6a92; --dimmer: rgba(9,14,22,.14);
  --up: #2a7245; --down: #a8352d; --up-tint: rgba(47,122,75,.12); --down-tint: rgba(176,58,50,.11);
  --flash: #f6f8fa; --frame: #060a11;
  --sky: linear-gradient(180deg,#0b1422 0%,#1c2b40 48%,#3a4d66 78%,#7d8fa5 92%,#c9d2dc 100%);
  --dome: #dce3eb; --dome-ink: #1c2b40;
  --a1: #f0f4f8; --a2: #cfd8e1; --a3: #aab6c3; --a4: #8492a3; --a5: #5f6b7a;
  --chart: #7a889a; --chart-fill: #8b98a8;
  --chart-glow: drop-shadow(0 0 2.5px rgba(120,150,190,.75)) drop-shadow(0 0 7px rgba(170,190,215,.6));
  --chart-alt: #e6ecf2;
  --chart-glow-alt: drop-shadow(0 0 3px rgba(205,220,240,.7)) drop-shadow(0 0 8px rgba(190,210,235,.45));
  --float: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(14,22,33,.06), 0 18px 34px -20px rgba(11,20,34,.3);
  --glass: rgba(252,253,254,.58); --glass-line: rgba(255,255,255,.7); --glass-hi: rgba(255,255,255,.9);
  --glass-shadow: 0 1px 2px rgba(14,22,33,.05), 0 34px 60px -42px rgba(11,20,34,.42);
  --guil: 44,62,85;
  --focus: #2c3e55;

  /* night surfaces (the sky, the nav over it, the access close): the same in both themes */
  --n-ink: #eef2f6; --n-muted: #a3afbd; --n-line: rgba(220,228,236,.14); --n-line-strong: rgba(220,228,236,.3);
  --n-glass: rgba(14,23,38,.5); --n-accent: #c8d3de; --n-btn: #e3e9ef; --n-btn-ink: #0b1422; --n-btn-edge: #7f8ea2;
  --n-field: rgba(6,10,17,.5); --n-down: #ff9a8f; --n-up: #8fcf95;

  /* scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 136px;
  --t-hero: clamp(58px, 9vw, 148px);
  --t-section: clamp(42px, 5.2vw, 82px);
  --t-title: clamp(27px, 2.5vw, 38px);
  --r-tile: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --vh: 100svh;
  --padX: max(clamp(16px, 4vw, 48px), calc(50vw - 552px));
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: 'Noto Serif Display', 'Instrument Serif', Georgia, serif;
}
[data-theme="dark"] {
  --bg: #0a0f17; --card: #121a25; --ink: #e8edf2; --muted: #9aa6b4;
  --line: rgba(220,228,236,.1); --line-strong: rgba(220,228,236,.22);
  --accent: #c8d3de; --accent-ink: #dce4ec; --accent-ui: #aebacb; --tint: rgba(200,211,222,.12);
  --btn: #e3e9ef; --btn-ink: #0b1422; --btn-edge: #7f8ea2;
  --alt: #1a2433; --sensor: #c8d3de; --dimmer: rgba(0,0,0,.4);
  --up: #8fcf95; --down: #ff8a7d; --up-tint: rgba(143,207,149,.14); --down-tint: rgba(255,127,114,.14);
  --frame: #03050a;
  --sky: linear-gradient(180deg,#03060c 0%,#0a1322 52%,#15223a 76%,#18222f 90%,#0a0f17 100%);
  --dome: #141d2a; --dome-ink: #c8d3de;
  --chart: #e6ecf2; --chart-fill: #dce4ec;
  --chart-glow: drop-shadow(0 0 3px rgba(205,220,240,.7)) drop-shadow(0 0 8px rgba(190,210,235,.45));
  --float: inset 0 1px 0 rgba(220,228,236,.08), 0 1px 2px rgba(0,0,0,.3), 0 18px 34px -20px rgba(0,0,0,.6);
  --glass: rgba(18,26,37,.6); --glass-line: rgba(220,228,236,.12); --glass-hi: rgba(220,228,236,.1);
  --glass-shadow: 0 1px 2px rgba(0,0,0,.3), 0 34px 60px -42px rgba(0,0,0,.8);
  --guil: 200,211,222;
  --focus: #dce4ec;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
main { position: relative; isolation: isolate; }
h1, h2, h3, p, dl, dd, ol, ul, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; }
svg { overflow: visible; }
.sprite { position: absolute; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.serif { font-family: var(--serif); font-weight: 400; }
.disp { font-family: var(--disp); font-stretch: 62.5%; font-variation-settings: 'wdth' 62.5; font-weight: 500; text-transform: uppercase; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.mu { color: var(--muted); }
.up { color: var(--up); }
.dn { color: var(--down); }
.aup { color: var(--n-up); }
.adn { color: var(--n-down); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 700; }
.skip:focus { top: 16px; }
[data-words] span { transition: opacity .12s linear; }

/* film grain, generated */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: soft-light; background-repeat: repeat; }
[data-theme="dark"] .grain { opacity: .09; mix-blend-mode: overlay; }

/* glass: the day pane and the night pane */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.glass-n { background: var(--n-glass); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); border: 1px solid var(--n-line); box-shadow: inset 0 1px 0 rgba(220,228,236,.12), 0 40px 80px -40px rgba(0,0,0,.7); }

/* ── buttons: one primary recipe, pressed like a key ── */
.btn { --edge: 4px; position: relative; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 16px; background: var(--btn); color: var(--btn-ink); font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap; box-shadow: 0 var(--edge) 0 var(--btn-edge), inset 0 1px 0 rgba(255,255,255,.22); transform: translateY(0); transition: transform .09s ease-out, box-shadow .09s ease-out, background-color .2s ease-out, color .2s ease-out; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active { transform: translateY(var(--edge)); box-shadow: 0 0 0 var(--btn-edge), inset 0 1px 0 rgba(255,255,255,.22); }
.btn:focus-visible { outline-offset: 6px; border-radius: 16px; }
.btn-lg { height: 56px; padding: 0 26px; border-radius: 18px; font-size: 17px; font-weight: 800; }
.btn-block { width: 100%; }
.btn-face { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-label { display: inline-block; white-space: nowrap; overflow: hidden; }
.btn-tact .plane { display: none; }
.btn-tact.is-send .plane { display: inline-grid; }
.plane { display: inline-grid; place-items: center; width: 20px; height: 20px; overflow: hidden; }
.plane .ic { width: 18px; height: 18px; }
.btn.is-idle { background: var(--n-line); color: var(--n-muted); box-shadow: 0 var(--edge) 0 rgba(220,228,236,.1); }
.btn[aria-busy="true"] { cursor: progress; }
.link-quiet { font-weight: 700; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: currentColor; min-height: 44px; display: inline-flex; align-items: center; opacity: .86; transition: opacity .2s ease-out; }
.link-quiet:hover { opacity: 1; }


/* ── stage ── */
.stage { position: relative; height: calc(var(--vh) * 11.66); }
.stage-pin { position: sticky; top: 0; height: var(--vh); overflow: hidden; background: var(--frame); }
.sky { position: absolute; inset: 0; z-index: 1; background: var(--sky); transform-origin: 40% 62%; }
.sky-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 46%; }

.hero { position: absolute; z-index: 5; left: var(--padX); top: 0; bottom: 0; width: min(620px, 44vw); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 40px; color: var(--n-ink); --btn: var(--n-btn); --btn-ink: var(--n-btn-ink); --btn-edge: var(--n-btn-edge); --focus: #dce4ec; }
.hero-h { font-size: var(--t-hero); line-height: .96; letter-spacing: -.022em; text-wrap: balance; text-shadow: 0 2px 40px rgba(3,6,12,.5); }
.hero-p { margin-top: var(--s5); max-width: 29em; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.55; color: rgba(238,242,246,.86); text-wrap: pretty; }
.hero-act { margin-top: var(--s6); display: flex; align-items: center; gap: var(--s5); }
.hero-note { margin-top: var(--s5); font-size: 14px; color: rgba(238,242,246,.62); }
.js .hero > * { opacity: 0; }

.blk { position: absolute; z-index: 5; left: var(--padX); color: var(--n-ink); display: flex; flex-direction: column; gap: 14px; opacity: 0; visibility: hidden; transform: translateY(calc(var(--base, 0%) + var(--y, 0px))); }
.blk-a { bottom: 70px; width: min(420px, 31vw); }
.blk-b { top: 50%; --base: -50%; width: min(480px, 36vw); gap: 18px; }
.blk-h { line-height: 1; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(3,6,12,.45); text-wrap: balance; }
.blk-a .blk-h { font-size: clamp(34px, 3.6vw, 54px); }
.blk-b .blk-h { font-size: clamp(40px, 4.4vw, 68px); }
.blk-p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; }

/* the day-lit world behind the phone */
.bk { position: absolute; inset: 0; z-index: 3; background: var(--bg); overflow: hidden; visibility: hidden; }
.bk-guil { position: absolute; inset: 0; width: 100%; height: 100%; }
.bk-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.bk-rings circle { fill: none; stroke-width: 1; }
.rg-a { stroke: var(--line-strong); }
.rg-b { stroke: var(--line); }
.bk-word { position: absolute; left: 0; top: 0; line-height: .8; color: var(--dome); white-space: nowrap; opacity: 0; }

.wv { position: absolute; left: 0; top: 0; border-radius: 999px; z-index: 6; pointer-events: none; opacity: 0; }
.wv-1 { border: 2px solid var(--sensor); box-shadow: 0 0 26px 4px rgba(120,150,190,.45), inset 0 0 22px 2px rgba(120,150,190,.3); }
.wv-2 { border: 1px solid var(--sensor); }

/* inside the app: two groups, one open at a time */
.steps-wrap { position: absolute; z-index: 6; left: var(--padX); top: 50%; width: min(430px, 33vw); transform: translateY(-46%); opacity: 0; visibility: hidden; }
.grp + .grp { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.grp-h { font: 800 16px/1.2 var(--sans); }
.grp-h button { font: inherit; letter-spacing: inherit; color: var(--muted); text-align: left; min-height: 44px; transition: color .4s ease-out, opacity .4s ease-out; }
.grp.on .grp-h button { color: var(--ink); }
.grp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.grp.on .grp-body { grid-template-rows: 1fr; }
.step-list { min-height: 0; overflow: hidden; }
.step-item { padding-left: 0; }
.step-item:first-child { margin-top: 2px; }
.step-item > button { display: block; width: 100%; padding: 6px 0; min-height: 40px; text-align: left; font-size: 16px; font-weight: 600; color: var(--muted); transition: color .3s ease-out; }
.step-item > button:hover { color: var(--ink); }
.step-item.on > button { font: 400 clamp(30px, 2.9vw, 44px)/1.04 var(--serif); letter-spacing: -.015em; color: var(--accent); padding: 10px 0 12px; }
.step-d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.step-item.on .step-d { grid-template-rows: 1fr; }
.step-d p { min-height: 0; overflow: hidden; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 34ch; }
.step-item.on .step-d p { padding-bottom: 16px; }
.steps-note { margin-top: var(--s5); font-size: 14px; color: var(--muted); }

/* flowing lines + icons behind the day sections */
.flow-wrap { position: sticky; top: 0; height: 0; z-index: -1; pointer-events: none; }
.flow { position: absolute; left: 0; top: 0; width: 100%; height: var(--vh); }
.guil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── shared section heads ── */
.h-sec { font-size: var(--t-section); line-height: 1; letter-spacing: -.022em; color: var(--accent); text-wrap: balance; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s8); margin-bottom: var(--s8); }
.sec-side { max-width: 30ch; font-size: 16.5px; color: var(--muted); padding-bottom: 8px; }

/* ── five things ── */
.five { position: relative; padding: var(--s10) 0 var(--s9); }
.five-guil { z-index: -1; opacity: .9; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { border-radius: var(--r-tile); padding: var(--s6); display: grid; gap: var(--s6); align-content: space-between; min-width: 0; }
.tile-copy { display: grid; gap: 12px; align-content: start; }
.tile-h { font-size: var(--t-title); line-height: 1.05; letter-spacing: -.015em; color: var(--accent); text-wrap: balance; }
.tile-copy p { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 38ch; }
.tile-ui { min-width: 0; }
.t-own { grid-column: span 7; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-content: stretch; }
.t-mk { grid-column: span 5; }
.t-lab { grid-column: span 5; --card: var(--alt); background: rgba(15,24,36,.86); border-color: var(--alt-line); box-shadow: inset 0 1px 0 rgba(220,228,236,.1), var(--glass-shadow); }
.t-lab .tile-h { color: var(--on-alt); }
.t-lab .tile-copy p { color: var(--on-alt-mu); }
.t-health { grid-column: span 7; }
.t-ask { grid-column: span 12; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; padding: var(--s7) var(--s6); }

.own-ui { display: grid; gap: var(--s5); align-content: center; }
.nwfig { display: grid; gap: 8px; }
.lbl { font-size: 14px; font-weight: 700; color: var(--muted); }
.own-ui .nw-v { font-size: clamp(30px, 3vw, 44px); color: var(--ink); }
.own-ui .nw-v small, .own-ui .nw-v em { color: var(--muted); }
.own-ui .nw-chips i { background: var(--tint); color: var(--accent-ink); height: 28px; font-size: 12.5px; }
.own-ui .nw-chips i.owe { background: var(--down-tint); color: var(--down); }
.own-ui .own { font-size: 15px; gap: 0 12px; }
.own-ui .own > * { padding: 9px 0; border-top: 1px solid var(--line); }
.t-mk .idx { gap: 0 var(--s5); }
.t-mk .idx > div { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 12px; }
.t-mk .idx .k { font-size: 12px; }
.t-mk .idx .v { font-size: 21px; }
.t-mk .idx .up, .t-mk .idx .dn { font-size: 12.5px; }
.t-mk .idx svg { height: 26px; margin-top: 8px; }
.t-lab .ideas { gap: 0; }
.t-lab .ideas > div { background: none; border-radius: 0; padding: 4px 0 4px 18px; border-left: 1px solid var(--alt-line); gap: 5px; }
.t-lab .ideas > div:first-child { padding-left: 0; padding-right: 18px; border-left: 0; }
.t-lab .alt-k { font-size: 12.5px; letter-spacing: 0; }
.t-lab .ideas b { font-size: 17px; }
.t-lab .ideas .amu { font-size: 13.5px; line-height: 1.4; }
.t-lab .ideas svg { height: 34px; margin: 8px 0 4px; }
.t-lab .ideas .mono { font-size: 13px; }
.t-health .meter { gap: var(--s6); }
.t-health .meter-g, .t-health .meter-g svg { width: 190px; height: 132px; }
.t-health .meter-sc b { font-size: 40px; }
.t-health .meter-sc i { font-size: 13px; letter-spacing: 0; }
.t-health .parts { font-size: 14.5px; gap: 11px 14px; }
.t-health .bar { height: 6px; }
.t-health .bar i { transform-origin: left center; }
.chat { display: grid; gap: 12px; max-width: 620px; justify-self: end; width: 100%; }
.chat .q span { font-size: 16px; padding: 14px 18px; border-radius: 20px 20px 6px 20px; }
.chat .a { font-size: 16px; padding: 16px 18px; border-radius: 20px 20px 20px 6px; line-height: 1.5; }
.chat .a .amu { font-size: 13.5px; }
.chat .ask-in { height: 54px; border-radius: 18px; margin-top: 4px; }
.chat .ask-in > i { border-radius: 14px; }

/* ── planning ── */
.plan { position: relative; height: calc(var(--vh) * 2.18); }   /* was 2.3: the chart's scrub keeps its old 2.3-screen distance (site.js), only the still tail after it finishes is shorter */
.plan-pin { position: sticky; top: 0; height: var(--vh); overflow: hidden; display: flex; align-items: center; }
.plan-wrap { padding-top: 96px; padding-bottom: 28px; display: flex; flex-direction: column; gap: var(--s5); }
.plan-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s7); }
.plan-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lead { max-width: 30em; font-size: 18px; line-height: 1.5; }
.plan-chips { flex: 0 1 470px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; font-size: 13px; }
.plan-chips li { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.plan-chips li.on { border-color: transparent; background: var(--tint); color: var(--accent-ink); font-weight: 700; }
.plan-chart { height: min(42svh, 420px); }
.plan-note { margin-top: 34px; font-size: 14px; color: var(--muted); }
.tip-k { font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.tip-free .tip-k { color: var(--n-up); }
.pc-y, .pc-x { font-size: 12px; }

/* ── security + questions ── */
.secure { position: relative; padding: var(--s9) 0 var(--s10); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stile { border-radius: var(--r-tile); padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 12px; }
.stile .tile-art { height: 176px; border-radius: 14px; margin-bottom: 6px; }
.tile-k { font-size: 17px; font-weight: 800; color: var(--ink); padding: 0 6px; }
.tile-t { font-size: 15.5px; line-height: 1.5; color: var(--muted); padding: 0 6px; }
.step-word { font-size: 13px; font-weight: 700; }
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; margin-top: var(--s10); scroll-margin-top: 96px; }
.qa-h { position: sticky; top: 120px; font-size: clamp(38px, 4.2vw, 64px); }
.qa-list { border-radius: var(--r-tile); padding: 6px var(--s6); }
.qa-list details { border-top: 1px solid var(--line); }
.qa-list details:first-child { border-top: 0; }
.qa-list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 68px; padding: 10px 0; font-size: 18.5px; font-weight: 700; cursor: pointer; list-style: none; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary .ic { color: var(--muted); transition: transform .35s var(--ease); }
.qa-list details[open] summary .ic { transform: rotate(180deg); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 var(--s7) var(--s5) 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.qa-a a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

/* ── day / night toggle in the right margin, and the blur it hides the swap behind ── */
.mode { position: fixed; z-index: 62; top: 50%; right: calc(var(--f) / 2); transform: translate(50%, -50%); width: min(40px, calc(var(--f) - 4px)); height: 44px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink); --fr-line: rgba(14,22,33,.16); border: 1px solid var(--fr-line); background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); transition: color .35s ease-out, border-color .35s ease-out, background-color .35s ease-out, box-shadow .25s ease-out; }
.mode[data-tone="night"] { color: var(--n-ink); --fr-line: rgba(220,228,236,.2); background: var(--n-glass); }
.mode:hover { box-shadow: 0 0 0 4px var(--tint), 0 0 22px -6px var(--glow); }
.mode[data-tone="night"]:hover { box-shadow: 0 0 0 4px rgba(200,211,222,.12), 0 0 22px -6px rgba(220,230,242,.6); }
.mode:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mode .ic { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .3s ease-out, transform .5s var(--ease); }
.mode-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .mode-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="dark"] .mode-sun { opacity: 1; transform: none; }
.veil { position: fixed; inset: 0; z-index: 61; pointer-events: none; opacity: 0; visibility: hidden; background: rgba(120,134,152,.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); transition: opacity .3s ease-in-out, visibility 0s .3s; }
.veil.on { opacity: 1; visibility: visible; transition: opacity .3s ease-in-out, visibility 0s; }

/* ── access: night again ── */
.access { position: relative; min-height: var(--vh); display: flex; flex-direction: column; overflow: hidden; background: var(--frame); color: var(--n-ink); scroll-margin-top: 0;
  --ink: var(--n-ink); --muted: var(--n-muted); --accent: var(--n-accent); --line: var(--n-line); --line-strong: var(--n-line-strong); --btn: var(--n-btn); --btn-ink: var(--n-btn-ink); --btn-edge: var(--n-btn-edge); --down: var(--n-down); --focus: #dce4ec; --tint: rgba(200,211,222,.12); }
.acc-sky { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(180deg,#03060c 0%,#0a1322 55%,#16243b 100%); }
.acc-guil { opacity: .8; }
.acc-wrap { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s7) var(--s8); align-items: center; padding-top: 132px; padding-bottom: var(--s8); }
.acc-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); }
.h-acc { font-size: clamp(52px, 6.6vw, 106px); line-height: .96; letter-spacing: -.022em; }
.acc-p { max-width: 30em; font-size: 18px; color: rgba(238,242,246,.82); }
.acc-m { font-size: 16px; color: var(--muted); }
.acc-m a { color: var(--ink); font-weight: 700; text-underline-offset: 5px; }

.flow-card { justify-self: end; width: 100%; max-width: 540px; border-radius: 32px; padding: 26px 30px 30px; }
.ask-top { display: flex; align-items: center; gap: 14px; }
.ask-back { width: 44px; height: 44px; margin-left: -10px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); transition: opacity .2s ease-out, background-color .2s ease-out; }
.ask-back:hover { background: var(--tint); }
.ask-back:disabled { opacity: .28; cursor: default; background: none; }
.ask-bar { flex: 1; height: 16px; border-radius: 999px; background: rgba(220,228,236,.13); overflow: hidden; }
.ask-bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(180deg, #f6f8fa 0%, #f6f8fa 34%, #c8d3de 35%, #aebacb 100%); transform-origin: left center; transform: scaleX(.06); }
.ask-count { font-size: 13px; color: var(--muted); min-width: 4.2em; text-align: right; }
.ask-steps { position: relative; min-height: 236px; margin-top: 18px; }
.ask-step { display: none; }
.ask-step.on { display: block; }
.ask-q { display: block; width: 100%; font-size: clamp(32px, 3vw, 44px); line-height: 1.06; letter-spacing: -.015em; padding-bottom: 20px; text-wrap: balance; }
.ask-l { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.field { height: 58px; width: 100%; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--n-field); color: var(--ink); padding: 0 18px; font: 600 19px var(--sans); transition: border-color .2s ease-out; }
.field::placeholder { color: var(--muted); font-weight: 500; opacity: .7; }
.field:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 16px; }
.field[aria-invalid="true"] { border-color: var(--down); }
.field-age { max-width: 150px; }
.ask-hint { margin-top: 10px; min-height: 1lh; font-size: 14.5px; color: var(--muted); }
.ask-hint.bad { color: var(--down); font-weight: 700; }
.ask-hint a { color: var(--ink); }
.ask-review > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.ask-review > div:first-child { border-top: 0; }
.ask-review dt { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.ask-review dd { font-size: 17.5px; font-weight: 700; overflow-wrap: anywhere; }
.ask-edit { min-height: 44px; padding: 0 4px; font-size: 14.5px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.ask-status { min-height: 1lh; margin: 8px 0 14px; font-size: 14.5px; color: var(--muted); }
.ask-status.error { color: var(--down); font-weight: 700; }

/* the confirmation: a ticket, torn at the perforation, with a foil strip */
.ticket { --paper: #e3e9ef; color: #0b1422; outline: 0; }
.ticket[hidden], .ask[hidden] { display: none; }
.ticket-top { padding: 30px 28px 26px; border-radius: 22px 22px 0 0; display: grid; gap: 10px; justify-items: start;
  background: radial-gradient(circle at 0 100%, transparent 12px, var(--paper) 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 12px, var(--paper) 12.5px) right / 51% 100% no-repeat; }
.ticket-ic { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: #0b1422; color: #e3e9ef; }
.ticket-ic .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.ticket h3 { font-size: 40px; line-height: 1.02; letter-spacing: -.015em; }
.ticket-top p { font-size: 16.5px; color: #3c4a5c; }
.ticket-cut { height: 0; margin: 0 22px; border-top: 2px dashed rgba(11,20,34,.3); background: var(--paper); position: relative; }
.ticket-cut::before { content: ''; position: absolute; left: -10px; right: -10px; top: -2px; height: 2px; background: var(--paper); z-index: -1; }
.ticket-row { padding: 22px 28px 0; display: grid; gap: 14px;
  background: radial-gradient(circle at 0 0, transparent 12px, var(--paper) 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 12px, var(--paper) 12.5px) right / 51% 100% no-repeat; }
.ticket-row > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ticket-row dt { font-size: 14px; font-weight: 700; color: #56616e; }
.ticket-row dd { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.foil { --mx: 50%; --my: 50%; height: 70px; padding: 0 28px; display: flex; align-items: center; justify-content: flex-end; border-radius: 0 0 22px 22px; position: relative; overflow: hidden; background-color: var(--paper); }
.foil::before { content: ''; position: absolute; left: 28px; right: 28px; top: 18px; bottom: 14px; border-radius: 10px;
  background: linear-gradient(115deg, hsl(212 26% 78%) 0%, hsl(192 34% 86%) 22%, hsl(44 38% 88%) 40%, hsl(212 22% 74%) 58%, hsl(268 18% 84%) 76%, hsl(200 30% 82%) 100%);
  background-size: 260% 260%; background-position: var(--mx) var(--my); box-shadow: inset 0 0 0 1px rgba(11,20,34,.12), inset 0 1px 0 rgba(255,255,255,.7); }
.foil span { position: relative; padding-right: 16px; font-size: 22px; letter-spacing: .12em; color: rgba(11,20,34,.62); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.ticket-again { margin-top: 16px; color: var(--ink); font-size: 15px; }

.foot { position: relative; border-top: 1px solid var(--line); }
.foot-in { padding-top: 20px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14.5px; color: var(--muted); }
.foot-l { display: flex; align-items: baseline; gap: 12px; }
.foot-l .wordmark { font-size: 20px; line-height: 1; letter-spacing: .01em; color: var(--ink); }
.foot-r { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.foot-r a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot-r a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-n { width: 100%; font-size: 13.5px; }

/* ── tablets in portrait and small laptops ── */
@media (max-width: 1040px) {
  .t-own, .t-ask { grid-template-columns: minmax(0, 1fr); }
  .t-own, .t-health { grid-column: span 12; }
  .t-mk, .t-lab { grid-column: span 6; }
  .chat { justify-self: stretch; max-width: none; }
  .qa { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .qa-h { position: static; }
  .acc-wrap { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .flow-card { justify-self: start; }
}

/* ── phones and narrow windows ── */
@media (max-width: 860px) {
  :root { --s10: 96px; --s9: 72px; --s8: 40px; --r-tile: 24px; }
  body { font-size: 16px; }
  .hero { left: 16px; right: 16px; width: auto; justify-content: flex-start; padding-top: 104px; }
  .hero-h { font-size: clamp(50px, 14.6vw, 76px); }
  .hero-p { margin-top: var(--s4); font-size: 16px; }
  .hero-act { margin-top: var(--s5); gap: var(--s4); }
  .hero-note { margin-top: var(--s4); font-size: 13.5px; }
  .blk-a { left: 16px; right: 16px; width: auto; bottom: 36px; }
  .blk-b { left: 16px; right: 16px; width: auto; top: 92px; --base: 0%; }
  .steps-wrap { left: 16px; right: 16px; top: 80px; width: auto; transform: none; }
  .grp:not(.on), .step-item:not(.on), .steps-note { display: none; }
  .grp-h { font-size: 15px; font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
  .grp-h button { min-height: 28px; }
  .step-item { border-left: 0; padding-left: 0; }
  .step-item:first-child { margin-top: 0; }
  .step-item > button { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; padding: 2px 0 6px; color: var(--accent); }
  .step-item.on > button { font-weight: 400; color: var(--accent); }
  .step-d p { font-size: 15px; max-width: none; }
  .sec-head { margin-bottom: var(--s6); }
  .bento { gap: 14px; }
  .tile { padding: var(--s5); gap: var(--s5); }
  .t-own, .t-mk, .t-lab, .t-health, .t-ask { grid-column: span 12; }
  .t-ask { padding: var(--s5); }
  .t-health .meter { flex-direction: column; align-items: stretch; }
  .t-health .meter-g { align-self: center; }
  .plan-wrap { padding-top: 84px; gap: var(--s4); }
  .plan-chips { justify-content: flex-start; flex: 1 1 100%; font-size: 12px; gap: 6px; }
  .plan-chips li { height: 28px; padding: 0 10px; }
  .lead { font-size: 16px; }
  .plan-chart { height: 36svh; }
  .plan-note { margin-top: 30px; font-size: 13px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .qa { margin-top: var(--s9); }
  .qa-list { padding: 4px var(--s5); }
  .qa-list summary { font-size: 17px; min-height: 62px; }
  .qa-a p { padding-right: 0; font-size: 16px; }
  .acc-wrap { padding-top: 104px; gap: var(--s6); }
  .acc-p { font-size: 16.5px; }
  .flow-card { padding: 20px 20px 22px; border-radius: 26px; }
  .ask-steps { min-height: 226px; }
  .ask-q { font-size: 31px; }
  .foot-r { margin-left: 0; }
  .mode { top: auto; bottom: 16px; right: 16px; transform: none; width: 44px; }
}
@media (max-width: 420px) {
  .hero-act { flex-wrap: wrap; }
}
@media (max-height: 700px) and (min-width: 861px) {
  :root { --t-hero: clamp(48px, 6.2vw, 92px); }
  .hero-p { margin-top: var(--s4); }
  .hero-act { margin-top: var(--s5); }
}

@media (prefers-reduced-motion: reduce) {
  [data-words] span, .grp-body, .step-d, .btn, .qa-list summary .ic { transition: none; }
  .mode .ic, .veil { transition: none; }
}
