/* ============================================================
   Deep In homepage: what it is, the method, the app step by
   step on real screens, and Solomia as the page's only light.
   ============================================================ */

/* ---------- Solomia: one living object, docked per act ---------- */
.solomia-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.solomia {
  position: absolute; left: 0; top: 0;
  width: var(--sol-size, 560px); height: var(--sol-size, 560px);
  transform: translate3d(var(--sol-x, 60vw), var(--sol-y, 12vh), 0) scale(var(--sol-scale, 1));
  transform-origin: 0 0;
  will-change: transform;
}
.solomia-canvas, .solomia-poster { position: absolute; left: -7%; top: -7%; width: 114%; height: 114%; max-width: none; }
.solomia-poster { display: none; }
.no-webgl .solomia-poster { display: block; opacity: var(--sol-presence, 1); }
.no-webgl .solomia-canvas { display: none; }

main, .topbar, .site-foot, .bar { position: relative; z-index: 1; }
figure { margin: 0; }
.dock { pointer-events: none; }

/* ---------- glass: frosted, lit only by her ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 40%), var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line-2);
}
/* The edge nearest her takes her light: --edge (0..1) is set by the director. */
.lit-edge { position: relative; }
.lit-edge::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(circle at var(--edge-x, 100%) var(--edge-y, 50%), var(--dawn-1), var(--dawn-2) 24%, transparent 52%);
  opacity: var(--edge, 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .8s var(--out);
}

/* ---------- top bar ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 16px; position: absolute; left: 0; right: 0; top: 0; z-index: 5; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--font-mono); letter-spacing: .16em; color: var(--text); text-decoration: none; padding-block: 12px; white-space: nowrap; }
.mark i { width: 3px; height: 16px; border-radius: 2px; background: var(--meaning); }
.nav { display: flex; gap: 32px; }
.nav a { font: 500 12px/1 var(--font-mono); letter-spacing: var(--caps-track); text-transform: uppercase; color: var(--text-2); text-decoration: none; padding-block: 12px; white-space: nowrap; }
.nav a:hover { color: var(--text); }

/* ---------- running heads: the depth gauge ---------- */
.gauge { display: flex; align-items: center; gap: 4px; margin: 0 0 20px; }
.gauge i { width: 12px; height: 2px; border-radius: 1px; background: var(--text-3); opacity: .55; }
.gauge[data-depth="1"] i:nth-child(-n+1),
.gauge[data-depth="2"] i:nth-child(-n+2),
.gauge[data-depth="3"] i:nth-child(-n+3),
.gauge[data-depth="4"] i:nth-child(-n+4) { background: var(--text); opacity: 1; }
.gauge span { margin-left: 12px; font: 500 11px/1 var(--font-mono); letter-spacing: var(--caps-track); text-transform: uppercase; color: var(--text-2); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 250; text-wrap: balance; }
/* Breaks like the share card: the white phrase on a line of its own (balance would re-split it). */
.hero h1 { font-size: clamp(var(--s-39), 1.5rem + 2.8vw, var(--s-61)); line-height: 1; letter-spacing: -.04em; max-width: 15ch; text-wrap: wrap; }
.act h2 { font-size: clamp(var(--s-31), 1.5rem + 2.6vw, var(--s-61)); line-height: 1.02; letter-spacing: -.038em; max-width: 17ch; }
.lede, .sub { color: var(--text-2); font-size: clamp(var(--s-16), .9rem + .45vw, var(--s-20)); line-height: 1.55; max-width: 46ch; text-wrap: pretty; }
.sub { margin: 18px 0 0; max-width: 40ch; }
main p { text-wrap: pretty; }
html { scroll-padding-bottom: 24px; }
.lede { margin: 20px 0 0; }
h3 { font-size: var(--s-25); line-height: 1.15; letter-spacing: -.025em; font-weight: 300; }
.foot { margin: 12px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; max-width: 60ch; }
.prov { margin: 20px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.55; max-width: 62ch; }
.terms { margin: 14px 0 0; color: var(--text-2); font-size: var(--s-13); line-height: 1.5; max-width: 64ch; }
.terms.center { margin-inline: auto; text-align: center; max-width: 62ch; }
.dots-num { display: block; font-family: var(--font-dots); font-weight: 800; font-variation-settings: "ROND" 100; line-height: .85; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--text); font-size: clamp(var(--s-61), 2.5rem + 6vw, var(--s-119)); }
.dots-num .pt { display: inline-block; width: .09em; height: .09em; margin: 0 .12em; border-radius: 50%; background: var(--text); color: transparent; overflow: hidden; vertical-align: baseline; }
.dots-num.mid { font-size: clamp(var(--s-49), 2.4rem + 2.4vw, var(--s-76)); }
.unit { margin: 12px 0 0; }

/* ---------- acts ---------- */
.act { position: relative; padding-block: clamp(96px, 12vw, 176px); }
.ctl { width: 44px; height: 44px; margin: -12px -12px -12px auto; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.ctl svg { width: 16px; height: 16px; }
.ctl .i-play { display: none; }
.ctl.paused .i-play { display: block; }
.ctl.paused .i-pause { display: none; }

/* ============ ACT 1 · HERO ============ */
.hero { position: relative; padding-top: 80px; padding-bottom: clamp(48px, 7vw, 96px); overflow-x: clip; }
.act { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(24px, 4vw, 64px); align-items: center; position: relative; }
.hero-copy { min-width: 0; }
.hero-cta { margin-top: 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.badges-row { display: flex; flex-wrap: wrap; gap: 12px; }
[data-os="android"] .badges-row [data-place$="play"] { order: -1; }
.badge-link { display: block; line-height: 0; border-radius: 10px; }
.badge-link img { height: 48px; width: auto; }
.sub-short { display: none; }

/* The phone is drawn around a real screen recording. Every measure follows
   --dw (the device's width) so the frame scales as one object; --sw is the
   screen inside it. The recording is 1764 x 3608 of a 1764 x 3840 screen:
   its own status bar is cut away and redrawn as 9:41. */
.stage {
  --dw: clamp(236px, min(23vw, calc((100svh - 240px) * .45)), 320px);
  --sw: calc(var(--dw) * .932);
  position: relative; justify-self: center; display: grid; justify-items: center;
  padding-top: clamp(20px, 3vw, 40px); min-width: 0;
}
@supports not (height: 1svh) {
  .stage { --dw: clamp(236px, min(23vw, calc((100vh - 240px) * .45)), 320px); }
}
.device {
  position: relative; width: var(--dw); padding: calc(var(--dw) * .034);
  border-radius: calc(var(--dw) * .165);
  background: linear-gradient(150deg, #3b3b40 0%, #1c1c1f 16%, #111113 48%, #1c1c1f 84%, #34343a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 0 0 calc(var(--dw) * .011) #0a0a0b,
    0 0 0 1px rgba(0,0,0,.65),
    0 44px 90px -30px rgba(0,0,0,.9),
    0 16px 36px -18px rgba(0,0,0,.75);
}
.screen {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--sw) * .14); background: #1b1b1e;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.status {
  display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--sw) * .318) minmax(0, 1fr);
  height: calc(var(--sw) * .1315); padding-top: calc(var(--sw) * .028);
  color: #F5F5F7;
}
.status .clock { justify-self: center; height: calc(var(--sw) * .094); display: grid; place-items: center; font: 600 calc(var(--sw) * .043)/1 var(--font-sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.status .island { display: block; height: calc(var(--sw) * .094); border-radius: 999px; background: #000; }
.status .bars { justify-self: center; align-self: start; margin-top: calc(var(--sw) * .032); height: calc(var(--sw) * .03); width: auto; }
.screen video { display: block; width: 100%; height: auto; }
.screen::after {
  content: ""; position: absolute; z-index: 2; left: 50%; bottom: calc(var(--sw) * .02);
  width: calc(var(--sw) * .35); height: calc(var(--sw) * .0135); border-radius: 99px;
  background: rgba(255,255,255,.82); transform: translateX(-50%);
}
/* Her light on the frame is peach, like her body, and only once she is there. */
.device.lit-edge::before { background: radial-gradient(circle at var(--edge-x, 100%) var(--edge-y, 50%), rgba(255,176,138,.75), rgba(255,176,138,.25) 22%, transparent 45%); }
html:not(.sol-lit) .lit-edge::before { opacity: 0; }

/* The steps are the phone's caption: as wide as it plus a little, in the
   page's sentence case; progress is white, because gold stays for meaning. */
.steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 6px; width: min(100%, calc(var(--dw) + 40px)); margin-top: 20px; }
.steps .ctl { margin: 0 -10px 0 0; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step {
  width: 100%; display: grid; gap: 9px; padding: 10px 0 8px; min-height: 44px;
  border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--text-3); font: 450 13px/1.3 var(--font-sans);
  transition: color .3s var(--out);
}
.step:hover { color: var(--text-2); }
.step span { white-space: nowrap; }
/* Ukrainian labels outgrow their third of the rail: two lines each, at every width. */
html[lang="uk"] .step span { white-space: normal; width: min-content; }
.step .track { position: relative; display: block; height: 2px; border-radius: 1px; background: rgba(242,241,237,.14); overflow: hidden; }
.step .track b { position: absolute; inset: 0; background: var(--text-2); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step[aria-current="step"] { color: var(--text); }
.step[aria-current="step"] .track b { background: var(--text); }
.stage-note { max-width: calc(var(--dw) + 40px); margin: 6px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.45; text-align: center; text-wrap: balance; }

/* She rests behind the phone's upper edge, mostly past its right side. */
.dock-hero { position: absolute; z-index: -1; width: calc(var(--dw) * 1.8); aspect-ratio: 1; left: calc(50% - var(--dw) * .42); top: calc(var(--dw) * -.12); }

/* ============ THE METHOD ============ */
.method-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.method-steps a { display: grid; align-content: start; gap: 8px; height: 100%; padding: 10px 10px 18px; border-radius: var(--r-20); border: 1px solid var(--line-2); background: rgba(255,255,255,.025); color: var(--text); text-decoration: none; transition: border-color .3s var(--out), background-color .3s var(--out); }
.method-steps a:hover { border-color: var(--line-3); background: rgba(255,255,255,.05); }
.method-steps .crop { margin-bottom: 8px; }
.ms-n, .method-steps b, .ms-d { padding-inline: 6px; }
.ms-n { font: 500 11px/1 var(--font-mono); letter-spacing: var(--caps-track); color: var(--text-3); }
.method-steps b { font-weight: 400; font-size: var(--s-20); line-height: 1.25; letter-spacing: -.01em; }
.ms-d { color: var(--text-2); font-size: var(--s-16); line-height: 1.45; }
.dock-method { position: absolute; width: clamp(80px, 12vw, 180px); aspect-ratio: 1; right: calc(var(--gutter) - clamp(80px, 12vw, 180px) * .35); top: 8%; }
/* A window onto part of a real screen: --cy is where it starts and --ch how
   much of the screen's height it shows, both as fractions of the screen. */
.crop { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-12); border: 1px solid var(--line-2); background: #1b1b1e; }
.crop::before { content: ""; display: block; padding-top: calc(var(--ch) * 204.0625%); }
.crop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform: translateY(calc(var(--cy) * -100%)); }

/* ============ THE APP, STEP BY STEP ============ */
.feat-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.feat.flip .feat-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.feat.flip .feat-copy { order: 2; }
.feat-copy { min-width: 0; }
.feat h2 { max-width: 16ch; }
/* The numbered points answer the numbered pins on the screens beside them. */
.points { list-style: none; counter-reset: p; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 50ch; }
.points li { counter-increment: p; position: relative; padding-left: 40px; color: var(--text-2); font-size: clamp(var(--s-16), .95rem + .2vw, var(--s-20)); line-height: 1.5; }
.points li::before { content: counter(p); position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%; background: var(--meaning); color: var(--ink); font: 600 13px/26px var(--font-sans); text-align: center; }
.points.plain li::before { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-3); }
.points b { color: var(--text); font-weight: 500; }
.lede + .points { margin-top: 24px; }
/* The questions as the app puts them: the line you are on, her one-tap
   questions, and the field to ask your own. */
.ask-card { margin: 28px 0 0; max-width: 460px; padding: 18px 18px 14px; border-radius: var(--r-24); }
.ask-here { margin: 0; color: var(--meaning); font-size: 11px; }
.ask-line { margin: 8px 0 0; color: var(--text-2); font-size: var(--s-16); line-height: 1.4; }
.asks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; }
.asks li { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: var(--r-12); border: 1px solid var(--line-3); background: rgba(10,10,12,.35); color: var(--text); font-size: var(--s-13); line-height: 1.3; }
.ask-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--text-3); font-size: var(--s-16); }
.ask-input span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-input svg { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.asks-note { margin: 10px 2px 0; color: var(--text-3); font-size: 12px; }
/* What research finds: a number first, one line, the source. */
.proof { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); max-width: 46ch; }
.proof-label { margin: 0 0 10px; color: var(--text-3); font-size: 11px; }
.proof-num { margin: 0 0 8px; font-family: var(--font-dots); font-weight: 800; font-variation-settings: "ROND" 100; font-size: clamp(var(--s-39), 2rem + 2vw, var(--s-61)); line-height: .9; color: var(--text); letter-spacing: 0; }
.proof-num span, .proof-num i { font-family: var(--font-sans); font-weight: 300; font-style: normal; font-size: var(--s-20); letter-spacing: -.01em; color: var(--text-2); vertical-align: baseline; }
.proof-num span { margin-left: .3em; }
.proof-num i { margin: 0 .3em; }
.proof-text { margin: 0; color: var(--text); font-size: var(--s-16); line-height: 1.5; }
.proof cite { display: block; margin-top: 8px; color: var(--text-3); font-size: 12px; font-style: normal; line-height: 1.45; }
.ch-intervals { margin: 26px 0 0; max-width: 440px; padding: 18px 16px 14px; border-radius: var(--r-20); border: 1px solid var(--line-2); background: rgba(255,255,255,.025); }
.ch-intervals figcaption { margin: 0 0 14px; color: var(--text-3); text-wrap: balance; }
/* The phones: real screens in the hero's frame, with numbered pins. */
.phones { --dw: clamp(220px, 21vw, 300px); --sw: calc(var(--dw) * .932); display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(14px, 2vw, 28px); margin: 0; min-width: 0; }
/* Two phones side by side fit their column at every desktop width. */
.phones.two { --dw: clamp(168px, 15vw, 232px); flex-wrap: nowrap; }
.phones.two .device:nth-child(2) { margin-top: calc(var(--dw) * .3); }
.phone-cap { position: relative; flex-basis: 100%; margin: 4px 0 0; text-align: center; color: var(--text-3); font-size: 12px; }
.shot-box { position: relative; }
.shot-box img { display: block; width: 100%; height: auto; }
.pin { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--meaning); color: var(--ink); font: 600 13px/26px var(--font-sans); text-align: center; box-shadow: 0 0 0 4px rgba(245,197,24,.28), 0 2px 10px rgba(0,0,0,.55); }
.dock-pause { position: absolute; width: clamp(96px, 13vw, 190px); aspect-ratio: 1; left: -2%; top: -16%; }

/* ============ EVERYTHING INSIDE ============ */
.inside-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(36px, 4vw, 56px); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.features li { padding: 16px 18px; border-radius: var(--r-20); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.features b { display: block; font-weight: 500; font-size: var(--s-16); color: var(--text); }
.features span { display: block; margin-top: 6px; color: var(--text-2); font-size: var(--s-13); line-height: 1.5; }

/* ============ START · one video free ============ */
.start-inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.bridge { margin: 0; color: var(--text-3); font-size: var(--s-16); }
.start h2 { font-size: clamp(var(--s-31), 1.5rem + 2.6vw, var(--s-61)); line-height: 1.02; letter-spacing: -.038em; max-width: 18ch; }
.start .cta { justify-content: center; }

/* ============ THE CARDS' CHART ============ */
.intervals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: start; }
/* Every bar stands on the same line, whatever its label wraps to. Heights are
   the wait on a log scale: 5 minutes is 8px, 21 days 76px. */
.intervals li { display: grid; grid-template-rows: 76px auto; justify-items: center; row-gap: 6px; font: 500 11px/1.2 var(--font-mono); color: var(--text-2); text-align: center; }
.intervals li::before { content: ""; align-self: end; width: 100%; height: var(--bar); border-radius: 4px; background: rgba(242,241,237,.2); }
.intervals li:nth-child(2) { --bar: 22px; } .intervals li:nth-child(3) { --bar: 38px; } .intervals li:nth-child(4) { --bar: 52px; }
.intervals li:nth-child(5) { --bar: 61px; } .intervals li:nth-child(6) { --bar: 67px; } .intervals li:nth-child(7) { --bar: 76px; }
.intervals li.again { --bar: 8px; color: var(--text-3); }
.intervals li.again::before { background: rgba(242,241,237,.08); }
.intervals li span { font-size: 10px; color: var(--text-3); }

/* ============ REAL MOMENTS ============ */
.moment-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.moment { display: grid; align-content: start; gap: 10px; padding: 18px 18px 16px; border-radius: var(--r-20); }
.m-src { margin: 0; color: var(--text-3); }
.m-line { margin: 0; font-size: var(--s-20); line-height: 1.3; letter-spacing: -.01em; }
.m-line b { color: var(--meaning); font-weight: 400; }
.m-mean { margin: 0; color: var(--text-2); font-size: var(--s-13); line-height: 1.45; }
.m-mean b { color: var(--text); font-weight: 500; }

/* ============ PLANS ============ */
.plans { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 920px; text-align: left; }
.plan { display: grid; align-content: start; gap: 8px; padding: 18px 20px; border-radius: var(--r-20); }
.plan p { margin: 0; color: var(--text-2); font-size: var(--s-16); }
.plan .caps { color: var(--text); }
.plans-foot { text-align: center; max-width: none; }
.plans-foot a { color: var(--text); }

/* ============ ACT 4 · THE SPEED ============ */
.speed-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.readout .foot { max-width: 44ch; }
.dock-speed { position: absolute; width: clamp(80px, 14vw, 200px); aspect-ratio: 1; right: calc(var(--gutter) - clamp(80px, 14vw, 200px) * .35); bottom: clamp(48px, 7vw, 110px); }

/* ============ ACT 5 · THE WORLD ============ */
.world-words { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: end; margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px solid var(--line-3); }
.h3-like { margin: 12px 0 0; font-size: var(--s-25); line-height: 1.2; letter-spacing: -.025em; font-weight: 300; max-width: 28ch; }
.instruments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.tile { margin: 0; border-radius: var(--r-24); padding: 28px 28px 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); min-width: 0; }
.inst-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.inst-head .unit { margin: 0 0 4px; }
.instrument h3 { margin-top: 18px; font-size: var(--s-20); line-height: 1.3; letter-spacing: -.015em; max-width: 32ch; }
.chart { position: relative; height: clamp(170px, 18vw, 230px); margin-top: 22px; }
.chart-axis span, .chart-callout { position: absolute; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; white-space: nowrap; }
.chart-axis span { bottom: 0; color: var(--text-3); }
.chart-callout { color: var(--meaning); transform: translate(-50%, -100%); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .cd { transform-box: fill-box; }
.chart.in .cd { animation: dotRise .55s var(--out) both; animation-delay: var(--d, 0ms); }
@keyframes dotRise { from { transform: translateY(5px); } to { transform: none; } }
.shelves { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.shelves li { display: grid; gap: 6px; }
.shelf-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.shelf-top b { font: 500 12px/1.5 var(--font-mono); color: var(--text); }
.shelf-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.shelf-bar i { display: block; height: 100%; width: var(--w); background: var(--text-3); border-radius: 3px; transform-origin: 0 50%; }
.shelves li.top .shelf-bar i { background: var(--meaning); }
.shelves li.top .shelf-top { color: var(--text); }
.shelves.in .shelf-bar i { animation: barGrow .6s var(--out) both; animation-delay: var(--d, 0ms); }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: none; } }
.cta.mid { margin-top: 32px; }
.store-android { display: none; }
[data-os="android"] .store-ios { display: none; }
[data-os="android"] .store-android { display: inline-flex; }
.qr-card { display: none; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: var(--r-20); }
.qr-card img { width: 72px; height: 72px; border-radius: 8px; }
.qr-card p { margin: 0; font-size: var(--s-13); line-height: 1.45; color: var(--text-2); text-align: left; }
.qr-card b { color: var(--text); font-weight: 500; font-size: var(--s-16); }
[data-os="desktop"] .qr-card { display: flex; }
[data-os="desktop"] .cta.mid .store { display: none; }

/* ============ ACT 8 · YOUR WEEK (plan) ============ */
.plan-act { padding-block: 0; }
.plan-scroll { height: 340vh; height: 340svh; position: relative; }
.plan-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.plan-wrap { width: 100%; }
@media (min-width: 1021px) {
  .plan-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "gauge stage" "title stage" "prov stage"; grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .plan-wrap > .gauge { grid-area: gauge; }
  .plan-wrap > h2 { grid-area: title; }
  .plan-wrap > .plan-stage { grid-area: stage; margin-top: 0; }
  .plan-wrap > .prov { grid-area: prov; align-self: end; }
}
.plan-stage { position: relative; height: min(66vh, 600px); height: min(66svh, 600px); margin-top: 20px; max-width: 760px; }
.dock-plan { position: absolute; width: var(--pd, 200px); aspect-ratio: 1; left: var(--px, 50%); top: var(--py, 52%); transform: translate(-50%, -50%); }
.plan-points { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; max-width: none; }
.chips { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips li { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(214,219,224,.4); background: rgba(10,10,12,.7); color: var(--text); font-size: var(--s-13); line-height: 1.3; opacity: var(--o, 1); transform: translateY(var(--y, 0px)); min-width: 0; }
.chips li .caps { font-size: 10px; color: var(--text-3); }
.plan-say { position: absolute; left: 0; right: 0; top: calc(52% + var(--pd, 200px) / 2 + 36px); margin: 0 auto; max-width: 30ch; text-align: center; font-size: var(--s-20); letter-spacing: -.015em; opacity: var(--so, 0); transform: translateY(var(--sy, 6px)); }
.next { position: absolute; left: 0; right: 0; top: 64px; border-radius: var(--r-20); padding: 16px; opacity: var(--no, 0); transform: translateY(var(--ny, 24px)); max-width: 520px; }
.next .caps { color: var(--text-2); }
.next-row { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.next-row img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex: none; }
.next-row p { margin: 0; font-size: var(--s-13); color: var(--text-2); }
.next-row b { display: block; color: var(--text); font-weight: 500; font-size: var(--s-16); }
.week { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 64px; display: grid; gap: 6px; opacity: var(--wo, 0); max-width: 520px; }
.week li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; min-height: 32px; border-top: 1px solid var(--line); }
.week li.has, .week li[data-d="wed"] { min-height: 60px; }
.week li.big { min-height: 72px; }
.week li .caps { color: var(--text-3); }
.week li.today .caps { color: var(--text); }
.week li.today .caps::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--text); margin-right: 6px; vertical-align: middle; }
.week .slot { display: flex; gap: 10px; align-items: center; border-radius: var(--r-12); padding: 8px 10px; transition: transform .6s var(--move); }
.week .slot img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.week .slot p { margin: 0; display: flex; justify-content: space-between; gap: 12px; width: 100%; font-size: var(--s-13); }
.week .slot b { font-weight: 500; }
.week .slot span { color: var(--text-2); font: 500 11px/1.4 var(--font-mono); }
.drop { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s-13); color: var(--text-2); opacity: var(--do, 0); }
.drop i { width: 8px; height: 8px; border-radius: 50%; background: var(--meaning); }
.drop b { color: var(--text); font-weight: 500; }
.plan-cap { position: absolute; left: 0; bottom: 0; margin: 0; color: var(--text); font-size: var(--s-16); opacity: var(--co, 0); transform: translateY(var(--cy, 6px)); }

/* ============ ACT 9 · CLOSE ============ */
.close { padding-top: 0; text-align: center; }
.close-photo { position: relative; max-width: 1440px; margin: 0 auto; }
.close-photo img { width: 100%; height: min(86vh, 900px); height: min(86svh, 900px); object-fit: cover; object-position: 72% 60%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 62%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 62%, transparent); }
.close-photo h2 .t3 { color: var(--text-2); }
.close-photo h2 { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16%; margin: 0 auto; max-width: 15ch !important; text-align: center; font-size: clamp(var(--s-39), 1.6rem + 3.6vw, var(--s-76)) !important; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
/* «Доки не забудеш, що це» needs a little more room to end where its grey ends. */
html[lang="uk"] .close-photo h2 { max-width: 16ch !important; }
.close-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; padding-top: 24px; }
.dock-close { width: clamp(220px, 28vw, 380px); aspect-ratio: 1; }
.go { margin: 12px 0 0; max-width: 100%; font-weight: 600; font-size: min(clamp(var(--s-49), 2rem + 6vw, var(--s-119)), 14.5vw); letter-spacing: -.05em; line-height: .9; overflow-wrap: break-word; }
.four { margin: 18px 0 0; color: var(--text-2); font-size: var(--s-16); }
.close .cta { justify-content: center; margin-top: 32px; }
.close .terms { margin-top: 18px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; margin: 48px 0 0; font: 500 13px/1 var(--font-mono); letter-spacing: .16em; }
.lockup .t3 { font-family: var(--font-sans); letter-spacing: -.01em; font-size: var(--s-16); }
.mark-i { width: 3px; height: 16px; border-radius: 2px; background: var(--meaning); }

/* ============ FAQ ============ */
.faq-inner { max-width: 860px; }
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--text-2), var(--text-2)) center / 12px 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 12px no-repeat; transition: transform .2s var(--out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { font-size: var(--s-20); font-weight: 400; letter-spacing: -.01em; }
.faq details p { margin: 0 0 24px; color: var(--text-2); max-width: 62ch; }

/* ---------- bottom bar (phones) ---------- */
.bar { display: none; }
@media (max-width: 760px) {
  .bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 12, .94);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .28s var(--out);
  }
  .bar.on { transform: none; }
  .bar .btn { min-height: 48px; padding: 0 22px; flex: none; }
  .bar-terms { font-size: var(--s-13); color: var(--text-2); }
  .bar.tall .bar-terms { display: none; }
  [data-os="desktop"] .bar { display: none; }
  html { scroll-padding-bottom: calc(var(--bar-h, 88px) + 8px); }
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-block: 28px 40px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); text-decoration: none; font-size: var(--s-13); }
.foot-links a:hover { color: var(--text); }
.foot-small a { font-size: 12px; color: var(--text-3); }
.foot-links a[aria-current="page"] { color: var(--text); }
.sign { color: var(--text-3); font-size: var(--s-13); }
.legal { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: 11px; line-height: 1.5; }

/* ============ responsive ============ */
@media (max-width: 1020px) {
  .speed-head, .instruments, .inside-grid { grid-template-columns: minmax(0, 1fr); }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* One column, and the picture comes right after the heading. */
  .feat-grid, .feat.flip .feat-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .feat-copy { display: contents; }
  .feat-copy > * { order: 2; }
  .feat-copy > .gauge, .feat-copy > h2, .feat-copy > .lede { order: 0; }
  .feat .phones { order: 1; margin-top: 32px; }
  .dock-pause { display: none; }
  .moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 760px) {
  .nav, .topbar .btn-sm { display: none; }
  .hero { padding-top: 56px; padding-bottom: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 12px; }
  .hero h1 { font-size: clamp(var(--s-31), 9vw, var(--s-39)); }
  .sub { font-size: var(--s-16); margin-top: 14px; }
  .hero-cta { margin-top: 18px; }
  .badge-link img { height: 44px; }
  .terms { margin-top: 10px; }
  /* On a phone the app comes right after the buttons, so the first screen
     shows most of it; the sentence that names it follows the phone. */
  .hero-copy { display: contents; }
  .hero h1 { order: 0; }
  .hero-cta { order: 1; }
  .stage { order: 2; --dw: min(58vw, 236px); padding-top: 22px; }
  .stage .steps { width: min(100%, 340px); }
  .method-steps { gap: 8px; margin-top: 28px; }
  .method-steps b { font-size: var(--s-16); }
  .ms-d { font-size: var(--s-13); }
  .phones { --dw: min(62vw, 250px); }
  .phones.two { --dw: min(41vw, 200px); gap: 10px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .intervals b { width: min-content; }
  .dock-method { top: 3%; }
  .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 12px; line-height: 22px; }
  .moment-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .moment { scroll-snap-align: start; }
  .moment-grid:focus-visible { outline: 2px solid var(--meaning); outline-offset: -2px; }
  .step-list { gap: 12px; }
  /* A phone shows the short line instead, and hears what it shows. */
  .hero .sub { display: none; }
  .sub-short { display: block; order: 0; margin: 12px 0 0; color: var(--text-2); font-size: var(--s-16); line-height: 1.45; max-width: 30ch; text-wrap: balance; }
  .world-words { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { padding: 22px 18px 18px; }
  .glass { backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
  .plan-stage { height: min(70vh, 600px); height: min(70svh, 600px); }
  .chips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.plan-static .plan-scroll { height: auto; }
.plan-static .plan-sticky { position: static; height: auto; padding-block: 96px; overflow: visible; }
/* Laid out in the page, the plan reads top to bottom: what you told her,
   what she said, the next video, the week. */
.plan-static .plan-stage { height: auto; display: flow-root; padding-top: 72px; }
.plan-static .chips { position: static; margin: 0 0 16px; }
.plan-static .chips li { opacity: 1; transform: none; }
.plan-static .plan-say { position: static; opacity: 1; transform: none; margin: 0 0 16px; max-width: none; text-align: left; }
.plan-static .next { position: static; opacity: 1; transform: none; margin: 0 0 16px; }
.plan-static .week { position: relative; top: 0; }
.plan-static .plan-cap { position: static; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .chart.in .cd, .shelves.in .shelf-bar i { animation: none; }
}
