/* TradeCalmly website (docs/plans/website.md). Palette: navy, trust blue, a gold accent kept for the main action and a
   reached target. Navy bands (the hero phone, the app screens, the close) carry the identity in both themes.
   Pieces of the app's own interface carry data-ui and keep the app's look (its dark tokens, its radii, Pip). */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(/assets/fonts/BeVietnamPro-Regular.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(/assets/fonts/BeVietnamPro-Medium.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(/assets/fonts/BeVietnamPro-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(/assets/fonts/BeVietnamPro-Bold.woff2) format("woff2"); }

:root {
  color-scheme: dark light;
  --bg: #0A1628; --bg-rgb: 10, 22, 40; --tone1: #102038; --tone2: #172B48; --tone3: #22395C;
  --ink: #F2F5FA; --muted: #A9B7CC; --line: rgba(255,255,255,.12);
  --accent: #6A9CFF; --on-accent: #06101F;
  --gold: #F0B941; --on-gold: #1A1300; --gold-ink: #F0B941;
  --pos: #3DDC84; --neg: #FF7A7A;
  /* */
  /* Bands: a lighter navy on the dark page, the page navy on the light one (set below), so they always stand apart. */
  --navy: #15294A; --on-navy: #F2F5FA; --on-navy2: #BFCADC;
  /* The app (dark), for the interface pieces. */
  --app-bg: #0A0C10; --app-card: #151820; --app-card2: #232834; --app-line: rgba(255,255,255,.10);
  --app-text: #F2F4F8; --app-text2: #A7AEBB; --app-pos: #34D17F; --app-neg: #FF6E6E; --app-warn: #F2B544; --app-accent: #5B8CFF;

  --margin: clamp(16px, 2.6vw, 40px);
  --gutter: clamp(12px, 1.8vw, 28px);
  --gap: clamp(96px, 10vw, 168px);
  --head: 68px;
  --t-small: 15px; --t-body: 17px; --t-lead: clamp(18px, 1.4vw, 21px);
  --t-h2: clamp(32px, 3.6vw, 54px); --t-display: clamp(42px, 5.6vw, 88px);
  --radius: 14px; --screen-radius: clamp(22px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F6FA; --bg-rgb: 244, 246, 250; --tone1: #E9EEF6; --tone2: #DEE5F0; --tone3: #CBD6E6;
    --ink: #0A1628; --muted: #3E4B62; --line: rgba(10,22,40,.14);
    --accent: #1E56D6; --on-accent: #FFFFFF;
    --gold-ink: #845700;
    --navy: #0A1628;
    --pos: #08703A; --neg: #C62828;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--tone3) var(--bg); }
[id] { scroll-margin-top: calc(var(--head) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); caret-color: var(--accent);
  font: 400 var(--t-body)/1.55 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--on-gold); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-lead); letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { padding-inline: var(--margin); max-width: 1440px; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 30; }
.skip:focus { left: var(--margin); }
.num { font-variant-numeric: tabular-nums; }
main > section { margin-top: var(--gap); }
main > section.hero { margin-top: 0; }

/* The one action: gold, the same pill everywhere. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), filter .2s var(--ease); }
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline-color: var(--accent); outline-offset: 4px; border-radius: 999px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
/* Telegram's paper plane, drawn in currentColor. */
.tg { width: 20px; height: 20px; flex: none; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.4 3.6 2.9 10.7c-1.3.5-1.2 1.2-.2 1.5l4.7 1.5 1.8 5.6c.2.6.4.8.9.8.4 0 .6-.2.9-.5l2.3-2.2 4.8 3.5c.9.5 1.5.2 1.7-.8l3.1-14.7c.3-1.3-.5-1.9-1.5-1.3ZM9.3 14.1l9.4-5.9c.4-.3.8-.1.5.2l-7.8 7-.3 3.3-1.8-4.6Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Navigation: stays at the top; a line under it once the page has scrolled. */
.top { position: sticky; top: 0; z-index: 20; background: rgba(var(--bg-rgb), .9); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.scrolled { border-bottom-color: var(--line); }
.top .bar { display: flex; align-items: center; gap: 24px; min-height: var(--head); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 16px; font-weight: 500; }
.top nav a, .top .lang { text-decoration: none; }
.top nav a:hover, .top .lang:hover { text-decoration: underline; }
.top .lang { font-size: 15px; font-weight: 600; padding: 10px 4px; }

/* Hero: the promise on the left, the phone that keeps it on the right. */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
  padding-block: clamp(24px, 4vw, 56px) 0; }
.hero-copy { grid-column: 1 / span 6; }
.hero h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -.04em; max-width: 11ch; }
.hero .lead { font-size: var(--t-lead); margin-top: 28px; max-width: 31em; }
.hero .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 36px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero .soon { font-size: var(--t-small); color: var(--muted); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; max-width: 40em;
  border-top: 1px solid var(--line); padding-top: 20px; }
.hero-facts dt { font-weight: 700; }
.hero-facts dd { margin: 4px 0 0; color: var(--muted); font-size: var(--t-small); line-height: 1.45; }

/* data-ui: the lock screen. The page's one orchestrated moment: the day's alerts arrive one by one and the phone buzzes. */
.phone { grid-column: 8 / span 5; justify-self: center; width: min(440px, 100%); border-radius: 46px; padding: 52px 16px 18px;
  background: radial-gradient(130% 70% at 30% 0%, #2B4478 0%, #12223C 50%, #0A1628 100%); color: #fff;
  border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; align-items: center; }
.phone .clock { font-size: 74px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.phone .date { margin-top: 8px; font-size: 16px; color: rgba(255,255,255,.8); }
.phone .stack { margin-top: 44px; width: 100%; display: grid; gap: 10px; }
.push { display: flex; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(38, 50, 76, .86); font-size: 15px; line-height: 1.38; }
.push img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.push .meta { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.72); }
.push b { display: block; font-size: 15px; margin-top: 1px; }
.push .nudge { margin-top: 4px; color: rgba(255,255,255,.8); font-size: 14px; }
.js .push { display: none; }
.js .push.in { display: flex; animation: push-in .55s var(--ease) both; }
.js .push.out { opacity: 0; transition: opacity .6s var(--ease); }
.phone .stack { align-content: start; }
@keyframes push-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
.phone.buzz { animation: buzz .32s linear; }
@keyframes buzz { 20% { translate: -2px 0; } 40% { translate: 2px 0; } 60% { translate: -2px 0; } 80% { translate: 1px 0; } }

/* Rules: a ruled list, the example threshold large on the right, the rule's default reminder under it. */
.rules-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.rules-head h2 { grid-column: 1 / span 5; }
.rules-head p { grid-column: 7 / span 6; color: var(--muted); }
.rules { margin: 48px 0 0; }
.rules > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline;
  border-top: 1px solid var(--line); padding-block: 22px; }
.rules > div:last-child { border-bottom: 1px solid var(--line); }
.rules dt { grid-column: 1 / span 3; font-size: var(--t-lead); font-weight: 700; letter-spacing: -.01em; }
.rules dd { margin: 0; grid-column: 4 / span 6; }
.rules dd.quote { grid-row: 2; margin-top: 6px; color: var(--muted); font-size: var(--t-small); max-width: 46em; }
.rules dd.eg { grid-column: 10 / span 3; grid-row: 1 / span 2; justify-self: end; align-self: center; font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.rules-sec .more { margin-top: 20px; color: var(--muted); font-size: var(--t-small); }

/* A sample day: plays trade by trade once it is in view; Pip says what happened. Without script it is the heading and a
   plain list of the day (.day-log). */
.day-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.day-live, .day-chart { display: none; }
.js .day-live { display: block; }
.js .day-chart { display: flex; }
.js .day-controls.day-live { display: flex; }
.day-time { margin-top: 10px; font-size: var(--t-lead); color: var(--muted); font-variant-numeric: tabular-nums; }
.day-num { white-space: nowrap; font-size: clamp(44px, 5.6vw, 92px); font-weight: 700; letter-spacing: -.045em; line-height: 1; transition: color .3s ease; }
.day-num.pos { color: var(--pos); }
.day-num.neg { color: var(--neg); }
.day-log { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; max-width: 46em; }
.day-log .alert { display: block; font-weight: 600; }
.js .day-log { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.day-controls { align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.day-intro { margin-top: 12px; max-width: 40em; color: var(--muted); line-height: 1.5; }
/* The two paths after the target: a segmented control, as in the app. */
.paths { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--tone1); border: 1px solid var(--line); }
.paths button { all: unset; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.paths button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.paths button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.replay { flex: none; white-space: nowrap; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--tone1); color: var(--ink);
  font: 600 15px/1 inherit; cursor: pointer; }
.replay:hover { background: var(--tone2); }

/* data-ui: the chart sits on the app's dark card in both themes; only the line and the marks carry profit and loss colours. */
.day-chart { position: relative; flex-direction: column; height: clamp(420px, 44vw, 580px); margin-top: 18px;
  background: var(--app-card); color: var(--app-text); border-radius: 22px; padding: 18px 24px 44px; transition: background-color .5s ease; }
.pip-say { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.pip-say img { width: 48px; height: 48px; flex: none; }
.day-say { font-size: 17px; line-height: 1.4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-top: 14px; font-size: 15px; color: var(--app-text2); }
.legend b { color: var(--app-text); font-size: 16px; margin-right: auto; }
.legend .key::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 2px; }
.legend .key-target::before { background: var(--app-pos); }
.legend .key-warn::before { background: var(--app-warn); }
.legend .key-limit::before { background: var(--app-neg); }
.plot { position: relative; flex: 1; min-height: 160px; margin-top: 16px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot line, .plot .line { vector-effect: non-scaling-stroke; fill: none; }
.plot .z-target { fill: rgba(52, 209, 127, .09); }
.plot .z-warn { fill: rgba(242, 181, 68, .10); }
.plot .z-over { fill: rgba(255, 110, 110, .12); }
.plot .l-zero { stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.plot .l-target { stroke: var(--app-pos); stroke-width: 1.5; stroke-dasharray: 6 6; }
.plot .l-warn { stroke: var(--app-warn); stroke-width: 1.5; stroke-dasharray: 6 6; }
.plot .l-limit { stroke: var(--app-neg); stroke-width: 1.5; stroke-dasharray: 6 6; }
.plot .line { stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
/* The path not taken: faint and dashed, shown once the chosen one has played. */
.plot .ghost { fill: none; stroke: var(--app-text2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s ease; }
.plot .ghost.on { opacity: .55; }
.plot .end { position: absolute; white-space: nowrap; font-size: 14px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px;
  translate: calc(-100% - 14px) -50%; background: rgba(255,255,255,.08); color: var(--app-text2); opacity: 0; transition: opacity .4s ease; }
.plot .end.on { opacity: 1; }
.plot .end.mine.pos { background: var(--app-pos); color: #04210F; }
.plot .end.mine.neg { background: var(--app-neg); color: #2A0606; }
.plot .end.stop { translate: calc(-100% - 14px) 12px; } /* under the line: the target pin is above it */
.plot .end.go { translate: calc(-100% - 18px) 24px; } /* under the last pin */
.plot .line.up { stroke: var(--app-pos); }
.plot .line.down { stroke: var(--app-neg); }
.plot .axis { position: absolute; left: 0; right: 0; bottom: -32px; height: 20px; font-size: 14px; color: var(--app-text2); }
.plot .axis span { position: absolute; translate: -50% 0; }
.plot .dot, .plot .now { position: absolute; translate: -50% -50%; border-radius: 50%; }
.plot .dot { width: 9px; height: 9px; background: var(--app-text); opacity: 0; transition: opacity .3s ease; }
.plot .dot.on { opacity: 1; }
.plot .now { width: 18px; height: 18px; background: var(--app-text); border: 4px solid var(--app-card); transition: left .3s var(--ease), top .3s var(--ease); }
.plot .now.pos { background: var(--app-pos); }
.plot .now.neg { background: var(--app-neg); }
.plot .pin { position: absolute; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 999px;
  background: var(--app-text); color: var(--app-bg); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.plot .pin.on { opacity: 1; }
.plot .pin.gold { background: var(--gold); color: var(--on-gold); }
.plot .pin.above { translate: -50% calc(-100% - 16px); }
.plot .pin.below { translate: -50% 16px; }
.plot .pin.left { translate: calc(-100% - 18px) -50%; }

/* The app's screens on a navy band, three across. */
.band { background: var(--navy); color: var(--on-navy); padding-block: clamp(72px, 8vw, 128px); }
.band .intro { margin-top: 18px; max-width: 40em; font-size: var(--t-lead); color: var(--on-navy2); }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 56px 0 0; }
.screens figure { margin: 0; }
.screens .frame { aspect-ratio: 780 / 1240; overflow: hidden; border-radius: var(--screen-radius); background: var(--app-bg);
  border: 1px solid rgba(255,255,255,.14); mask-image: linear-gradient(to bottom, #000 84%, transparent); } /* taste-skill-ignore: the crop's soft bottom edge */
.screens img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screens figcaption { margin-top: 18px; color: var(--on-navy2); max-width: 26em; }
.screens figcaption b { display: block; color: var(--on-navy); font-size: var(--t-lead); margin-bottom: 4px; }

/* Getting started: a real sequence, so numbered; then where to find the investor password, and the brokers. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 40px 0 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font-size: var(--t-h2); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.steps b { font-size: var(--t-lead); margin-top: 10px; }
.steps span { color: var(--muted); }
.start-more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 56px; align-items: start; }
.howto { grid-column: 1 / span 7; background: var(--navy); color: var(--on-navy); border-radius: 20px; padding: 26px 30px; }
.howto ol { margin: 14px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.howto ol b { color: var(--gold); }
.howto .alt { margin-top: 14px; color: var(--on-navy2); font-size: var(--t-small); }
.brokers { grid-column: 9 / span 4; }
.brokers p { margin-top: 10px; color: var(--muted); }
.brokers b { color: var(--ink); }

/* Safety: three statements, large, on rules. */
.claims { margin-top: 40px; }
.claims > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline;
  border-top: 1px solid var(--line); padding-block: 28px; }
.claims .claim { grid-column: 1 / span 6; font-size: clamp(26px, 2.8vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.claims .claim + p { grid-column: 7 / span 6; color: var(--muted); }
.claims a { color: var(--ink); font-weight: 600; }

/* FAQ: the heading stays while the questions pass. */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.faq h2 { grid-column: 1 / span 4; position: sticky; top: calc(var(--head) + 24px); }
.faq .list { grid-column: 5 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 68px; padding: 16px 0; font-size: var(--t-lead); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; max-width: 60ch; color: var(--muted); }
.faq summary:hover { color: var(--accent); }

/* Close: the navy band again, a reminder line, the action. */
.close { background: var(--navy); color: var(--on-navy); }
.close .wrap { padding-block: clamp(72px, 8vw, 128px) clamp(48px, 5vw, 80px); }
.close-quote { color: var(--on-navy2); max-width: 36em; font-size: var(--t-lead); }
.close h2 { margin-top: 40px; font-size: clamp(48px, 7vw, 116px); line-height: 1.02; letter-spacing: -.045em; max-width: 9ch; }
.close .base { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 56px; }
.close .base p { font-size: var(--t-lead); max-width: 28em; color: var(--on-navy2); }
.close .btn { min-height: 58px; }

/* Footer: one quiet line, then the legal text. */
footer { padding-block: 56px 40px; font-size: 15px; }
footer .line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: baseline; }
footer .line > :last-child { justify-self: end; }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
footer .links a { padding-block: 10px; }
footer .what, footer .year { color: var(--muted); }
footer .legal { color: var(--muted); max-width: 60ch; margin-top: 28px; font-size: 15px; line-height: 1.55; }

@media (max-width: 1100px) {
  .phone { grid-column: 7 / span 6; }
  .rules dt { grid-column: 1 / span 4; }
  .rules dd { grid-column: 5 / span 6; }
  .rules dd.eg { grid-column: 11 / span 2; }
  .howto { grid-column: 1 / span 8; }
  .brokers { grid-column: 1 / -1; margin-top: 32px; }
}
@media (max-width: 860px) {
  :root { --head: 60px; }
  .top nav { display: none; }
  .top .lang { margin-left: auto; }
  .hero-copy, .phone, .rules-head h2, .rules-head p, .faq h2, .faq .list, .howto, .brokers { grid-column: 1 / -1; }
  .phone { margin-top: 48px; }
  .rules-head p { margin-top: 16px; }
  .rules > div { grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; }
  .rules dt { grid-column: 1; grid-row: 1; }
  .rules dd { grid-column: 1 / -1; margin-top: 6px; }
  .rules dd.quote { grid-row: auto; }
  .rules dd.eg { grid-column: 2; grid-row: 1; align-self: baseline; font-size: 32px; }
  /* The three screens side by side, swiped: one at a time on a phone, the next one peeking in. */
  .screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--margin));
    padding-inline: var(--margin); scroll-padding-inline: var(--margin); scrollbar-width: none; }
  .screens figure { flex: 0 0 82%; scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr; }
  .claims > div { grid-template-columns: 1fr; }
  .claims .claim, .claims .claim + p { grid-column: 1; }
  .claims .claim + p { margin-top: 10px; }
  .day-chart { height: 460px; margin-top: 12px; padding: 14px 14px 38px; border-radius: 16px; }
  .pip-say img { width: 40px; height: 40px; }
  .day-say { font-size: 15px; }
  .legend { font-size: 13px; gap: 4px 14px; }
  .legend b { width: 100%; }
  .plot { margin-top: 12px; }
  .plot .axis { font-size: 13px; }
  .plot .axis span:nth-child(even) { visibility: hidden; }
  .plot .pin { font-size: 13px; padding: 6px 9px; }
  .faq h2 { position: static; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .top .bar { gap: 12px; }
  .brand { font-size: 16px; }
  .btn-sm { padding: 0 14px; font-size: 14px; }
  .hero .cta { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .actions .btn { width: 100%; white-space: normal; text-align: center; padding-block: 12px; }
  .hero .cta .watch { justify-content: center; min-height: 48px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .phone { border-radius: 36px; padding-top: 40px; }
  .phone .clock { font-size: 62px; }
  .phone .stack { margin-top: 32px; }
  .day-controls { flex-wrap: wrap; gap: 4px 16px; }
  .paths { width: 100%; }
  .paths button { flex: 1; justify-content: center; padding: 0 10px; }
  .plot .end { font-size: 13px; padding: 6px 9px; }
  .close h2 { font-size: 15vw; }
  .close .btn { width: 100%; }
  footer { padding-block: 40px 24px; }
  footer .line { grid-template-columns: 1fr; gap: 8px; }
  footer .line > :last-child { justify-self: start; }
}
@media (max-width: 400px) {
  .brand { font-size: 0; gap: 0; } /* the logo alone: room for the language and the button */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .push { display: flex; }
}

/* The intro video: a second, outlined pill beside the gold one (below it on a phone), and a dialog with the vertical video. */
.watch { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 12px; border-radius: 999px;
  border: 1.5px solid var(--tone3); color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.watch:hover { border-color: var(--accent); background: var(--tone1); transform: translateY(-2px); }
.watch:active { transform: translateY(0) scale(.98); }
.watch:focus-visible { outline-color: var(--accent); outline-offset: 4px; border-radius: 999px; }
.watch .play { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.watch .play::before { content: ""; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--on-accent); }
.watch .dur { color: var(--muted); font-weight: 500; }
dialog.video { margin: auto; padding: 0; border: 0; background: transparent; color: #fff; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; }
dialog.video::backdrop { background: rgba(4, 10, 22, .82); }
dialog.video video { display: block; height: min(80dvh, 900px); max-width: calc(100vw - 32px); aspect-ratio: 9 / 16; object-fit: contain;
  border-radius: 22px; background: #000; }
.video-note { margin-top: 10px; max-width: 44ch; font-size: var(--t-small); color: rgba(255,255,255,.75); line-height: 1.45; }
.video-close { position: absolute; top: -14px; right: -14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0A1628; font-size: 0; }
.video-close::before, .video-close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: currentColor; }
.video-close::before { rotate: 45deg; }
.video-close::after { rotate: -45deg; }
.video-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .video-close { top: 6px; right: 6px; }
  dialog.video video { height: auto; width: calc(100vw - 32px); max-height: calc(100dvh - 110px); }
}
