/* ═══════════════════════════════════════════════════════════════════════════
   Daily Wordsearch Challenge — ad landing page
   Colour, radius, shadow, type and the highlight rotation come from
   /assets/css/primitives.css; buttons from /assets/css/buttons.css. Both are
   shared with the player app, so neither can drift from it.
   Light only, on purpose: the brand is a warm cream system and a dark
   inversion would need its own set of decisions nobody has made yet.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: Nunito;
  font-weight: 900;
  font-style: normal;
  font-display: block; /* block, not swap: the wordmark is SVG <text> */
  src: url("../fonts/nunito-black.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-weight: 700;
  font-style: normal;
  font-display: block;
  src: url("../fonts/nunito-bold.woff2") format("woff2");
}

:root {
  /* The brand primitives — accent, text ramp, hairline, radii, shadows, fonts
     and the highlight rotation — are inherited from /assets/css/primitives.css
     under their canonical names, and used directly. What is declared below is
     the site's own and has no counterpart in the app: its section grounds and
     its layout scale. */
  --cream:       #FFF8F0;
  --card:        #FFFCF7;

  --wrap: 1440px;
  --gut:  clamp(20px, 5vw, 48px);
  --sec:  clamp(64px, 9vw, 132px);

  /* Wave band heights. Every section that carries a wave reserves exactly this
     much padding for it, so changing the number here moves both together. */
  --wave-h:      clamp(84px, 11vw, 190px);   /* section joins */
  --wave-h-card: clamp(140px, 17vw, 310px);  /* inside a .feat card */

  color-scheme: light;
}

/* ── reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* .btn sets display, which would otherwise beat the UA rule for [hidden] and
   leave the reveal button on screen after the demo is solved. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--ground-a);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Hide the English fallback until the matching locale pack is applied. */
html.i18n-pending body { visibility: hidden; }

h1, h2, h3 {
  font-weight: 900; line-height: 1.06; margin: 0; letter-spacing: -.015em;
  text-wrap: balance;   /* keeps short headlines off a one-word last line */
}
p { margin: 0; text-wrap: pretty; }   /* no single-word last lines */
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text-primary); color: var(--cream);
  padding: 10px 18px; border-radius: var(--radius-btn); text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* ── buttons ─────────────────────────────────────────────────────────────
   Everything actionable is a pill except the store CTAs, which are Apple's
   and Google's official badge artwork and cannot join the button system.
   --cta-h still sizes the "play in browser" pill beside them. */
/* The button system lives in /assets/css/buttons.css, shared with the app —
   base, three sizes, six colour levels. What used to sit here (.btn at weight
   900, .btn-ghost, .btn-onDark, .btn-quiet, and a .btn-sm that meant 40px
   where the shared one means 44px) is gone. The mapping that was applied:
       .btn-ghost   -> .btn-secondary        affirmative alternative to the
                                             store CTAs: "play in browser"
                                             is a do-something action, not a
                                             back-out, so it takes the accent
                                             level rather than the quiet one
       .btn-onDark  -> .btn-white            the level built for dark grounds
       .btn-quiet   -> .btn-secondary        same level, .btn-sm size */

/* ── official store badges ──────────────────────────────────────────────
   Unmodified Apple / Google artwork. Apple: preferred black badge, min 40px
   onscreen, clear space = 1/4 height, first in the lineup, no recolour /
   angle / animation. Google: official Get it on Google Play badge, min 28px,
   same height as (or larger than) the other store badge, clear space = 1/4
   height, no recolour or rearranged lockup.
   Desktop shows both; iOS hides Play; Android hides App Store. */
.store-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.store-badge img {
  display: block;
  height: var(--store-badge-h, 40px);
  width: auto;
  max-width: none;
}
.store-badge:focus-visible {
  outline: 2px solid var(--accent, #E6772C);
  outline-offset: 2px;
  border-radius: 8px;
}

html.ios [data-cta="play-store"],
html.android [data-cta="app-store"] {
  display: none !important;
}

/* Compact chrome: desktop already shows both stores, so the web CTA lives in
   the hero / closer instead of a third header button. Sticky is mobile-only
   and keeps Play in browser next to the one relevant store. */
.head-cta [data-cta="web-app"],
html:not(.ios):not(.android) .sticky-cta [data-cta="web-app"] {
  display: none;
}

/* App Store is first in the DOM (and the tab order). Gap is at least a
   quarter of the badge height so the two official marks keep their clear
   space when they sit side by side. */
.cta-row {
  --cta-h: 48px;
  --store-badge-h: 48px;
  display: flex; flex-wrap: wrap; align-items: center;
  /* Two badges each need 1/4-height clear space, so the gap between them is half. */
  gap: calc(var(--store-badge-h) * 0.5);
  margin-top: 30px;
}
.cta-row > .btn { flex: 0 1 auto; }
.cta-row-tight  { margin-top: 18px; }
.cta-row-center { justify-content: center; }

.hero   .cta-row { --cta-h: 56px; --store-badge-h: 48px; margin-top: 34px; }
.closer .cta-row { --cta-h: 56px; --store-badge-h: 48px; }

/* One quiet line carrying what the eyebrow badge used to shout. */
.trust {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: .92rem;
}

/* ── the wave motif ─────────────────────────────────────────────────────
   The same two-crest curve the app draws behind the Daily hero card, on the
   same 400x150 viewBox. .wave-cap is the curve inverted, so a section carries
   the previous section's colour down to the crest — the join between two
   grounds becomes a swell rather than a straight edge. .wave-foot is the
   original orientation, used on the teal closer exactly as the app uses it. */
.wave-cap, .wave-foot {
  position: absolute; left: 0; width: 100%;
  height: var(--wave-h);
  z-index: 0; pointer-events: none;
}
.wave-cap  { top: 0; }
.wave-foot { bottom: 0; }
/* --wave-from MUST equal the ground of the section above, because the upper
   crest runs all the way to the top edge — any difference shows as a hard line
   there. The trailing crest never touches that edge, so it is free to carry its
   own tone, and that is what makes the band read on a cream-on-cream join. */
.wc-1 { fill: var(--wave-from, #F8E7D4); }
.wc-2 { fill: var(--wave-mid, var(--wave-from, #F8E7D4)); opacity: var(--wave-mid-op, .45); }

/* The trailing crest carries the accent, mixed down over the ground it sits on
   — 18-26% of #E6772C. Full strength would turn a backdrop into a headline.
   These are the section JOINS, not the card waves — deliberately left warm, so
   one band flows into the next. */
.demo   { --wave-from: var(--ground-b); --wave-mid: #F5D3B6; --wave-mid-op: 1; }
.modes  { --wave-from: var(--ground-a); --wave-mid: #F9DFC6; --wave-mid-op: 1; }
.closer { --wave-from: var(--ground-b); --wave-mid: #F3CBA6; --wave-mid-op: .82; }

/* Straight from the app: --daily-hero-wave / --daily-hero-wave-strong. */
.wf-1 { fill: rgba(58, 100, 112, .55); }
.wf-2 { fill: rgba(57, 110, 120, .50); }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-head.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(120, 90, 60, .07);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 12px;
}
.brand { display: block; flex: 0 0 auto; }
/* The stacked mark is squarer than the old lockup, and the style guide puts
   its minimum legible width at 180px — below that the counters in SEARCH
   close up — so it never scales under that. */
.wordmark { width: clamp(182px, 23vw, 208px); height: auto; }
.head-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: calc(var(--store-badge-h) * 0.5);
  --cta-h: 44px;
  --store-badge-h: 40px;
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--ground-a), var(--ground-b));
  padding-block: clamp(40px, 6vw, 84px) 0;
}
/* The field is one landscape SVG dropped in with preserveAspectRatio="slice",
   so the on-screen letter size follows the box's aspect ratio: the taller and
   narrower the box, the more it has to zoom to cover. A phone hero is roughly
   1:3.6, which would blow the letters up to the size of the headline. Capping
   the field's height on small screens keeps the box closer to the artwork's own
   proportions; the mask hides the edge that leaves behind. */
.hero-field {
  position: absolute; inset: -2% -2% auto; z-index: -2; height: 118%;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.hero-field .field { width: 100%; height: 100%; }
/* The field is a texture, not a feature. Three layers: a soft spot that clears
   the headline column, a general wash, and a hard fade into the next section. */
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(78% 58% at 24% 44%, rgba(255, 250, 243, .98) 34%, rgba(255, 250, 243, 0) 100%),
    linear-gradient(180deg, rgba(255, 250, 243, .72) 0%, rgba(255, 250, 243, .5) 40%, rgba(250, 238, 224, .78) 78%, var(--ground-b) 100%);
}

.hero-inner {
  display: grid; gap: clamp(28px, 4vw, 56px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy { max-width: 40rem; }

.eyebrow { margin-bottom: 20px; }
.eyebrow span {
  display: inline-block;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 2px rgba(230, 119, 44, .28);
  color: var(--accent-2);
  font-size: .78rem; font-weight: 900;
  letter-spacing: .07em; text-transform: uppercase;
}
.eyebrow-plain span {
  background: transparent; box-shadow: none; padding: 0;
  color: var(--accent-2);
}

h1 { font-size: clamp(2.35rem, 5.4vw, 3.85rem); text-wrap: balance; }

/* Emphasis as a marker stroke rather than a backdrop. It keeps the two things
   that make the brand's pill a pill — the accent gradient and the round cap —
   without laying a block of colour behind the words, which was swamping the
   headline. Drawn as a pseudo-element rather than text-decoration because
   text-decoration cannot round its ends. */
.hl {
  position: relative;
  display: inline-block;
  /* Nunito's descender runs .353em below the baseline, so the stroke has to
     clear that or the tail of the y in "every day" sits on it. */
  padding: 0 .1em .24em;
  margin-inline: -.1em;
  color: var(--text-primary);
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: .105em;
  border-radius: 999px;
  background-image: linear-gradient(100deg, var(--accent-light), var(--accent-2));
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.06rem, .5vw + .98rem, 1.28rem);
  color: var(--text-soft);
  max-width: 34rem;
}
.micro {
  margin-top: 18px;
  font-size: .88rem; color: var(--text-dim); max-width: 32rem;
}
.micro-onDark { color: rgba(255, 248, 240, .66); margin-inline: auto; text-align: center; }

.hero-art { justify-self: center; width: min(100%, 420px); }
.hero-art img { width: 100%; filter: drop-shadow(0 26px 46px rgba(120, 90, 60, .22)); }

/* ── section furniture ───────────────────────────────────────────────────── */
.sec-head { position: relative; z-index: 1; max-width: 44rem; margin-bottom: clamp(28px, 4vw, 46px); }
.sec-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.sec-lede { margin-top: 16px; color: var(--text-soft); font-size: 1.06rem; max-width: 32rem; }

/* ── playable demo ───────────────────────────────────────────────────────── */
.demo {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--sec) + var(--wave-h)) var(--sec);
  background: var(--ground-a);
}
.demo-stage { position: relative; z-index: 1;
  display: grid; gap: clamp(22px, 3.4vw, 40px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.demo-board {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(12px, 2.4vw, 20px);
}
.demo-grid {
  width: 100%; height: auto;
  touch-action: none;              /* the grid owns the gesture, not the page */
  -webkit-user-select: none; user-select: none;
  cursor: crosshair;
}
.demo-grid text { font-family: Nunito; font-weight: 900; font-size: 44px; }

.demo-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.demo-meter {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-size: 1.02rem;
}
.demo-count b { font-size: 1.5rem; }
.demo-timer {
  font-variant-numeric: tabular-nums;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(230, 119, 44, .12); color: var(--accent-2);
  font-weight: 900;
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
  font-size: .95rem; font-weight: 900; letter-spacing: .04em;
  transition: opacity .25s ease, box-shadow .25s ease;
}
.chips li.is-found {
  opacity: .45;
  text-decoration: line-through;
  box-shadow: inset 0 0 0 2px transparent;
  background: rgba(40, 74, 81, .05);
}
.demo-status { font-size: .95rem; color: var(--text-dim); min-height: 1.5em; }

.demo-win {
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #345963, #284A51 55%, #243F47);
  color: var(--cream);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-frame);
}
.demo-win-head { font-weight: 900; font-size: 1.45rem; }
.demo-win-head span { color: var(--hl-4); }
.demo-win-sub { margin-top: 8px; color: rgba(255, 248, 240, .74); font-size: .98rem; }
.demo-win .cta-row {
  --cta-h: 44px;
  --store-badge-h: 40px;
  width: 100%;
}
.demo-win .store-badge-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: calc(var(--store-badge-h) * 0.5);
  width: 100%;
}
.demo-win .cta-row [data-cta="web-app"] {
  width: 100%;
}
.demo-win .btn-ghost {
  background: rgba(255, 248, 240, .1); color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 240, .38); backdrop-filter: none;
}
.demo-win .btn-ghost:hover { background: rgba(255, 248, 240, .18); }

.demo-foot { margin-top: 26px; color: var(--text-dim); font-size: .95rem; }
.demo-foot b { color: var(--text-soft); }

/* ── modes ───────────────────────────────────────────────────────────────── */
.modes {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--sec) + var(--wave-h)) var(--sec);
  background: linear-gradient(180deg, var(--ground-a), var(--ground-b));
}
.modes .wrap { position: relative; z-index: 1; }
/* Fixed column counts rather than auto-fit: there are exactly six modes, and
   auto-fit lands on four across, leaving a two-card orphan row. */
.mode-grid { display: grid; gap: clamp(12px, 1.6vw, 18px); grid-template-columns: 1fr; }
@media (min-width: 560px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .mode-grid { grid-template-columns: repeat(3, 1fr); } }
.mode {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 26px;
  padding-top: 34px;
}
.mode::before {
  content: ""; position: absolute; top: 24px; left: 24px;
  width: 34px; height: 9px; border-radius: 999px; background: var(--dot);
}
.mode h3 { font-size: 1.2rem; margin-top: 14px; }
.mode p { margin-top: 7px; color: var(--text-soft); font-size: .97rem; }

/* ── feature rows ────────────────────────────────────────────────────────── */
.features { padding-block: var(--sec); background: var(--ground-b); }
/* Each row is one card. The wave runs the full width of it, under both columns
   — which is the whole reason it is not baked into the image any more: there it
   could only ever occupy the thin margin beside the phone. */
.feat {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background: var(--card);
  border-radius: clamp(24px, 2.8vw, 38px);
  box-shadow: var(--shadow-card);
  /* No bottom padding at all. The screenshots are transparent now, so the
     phone can stand *in* the wave instead of being held above it — which is
     the whole reason the plate had to go. */
  padding: clamp(8px, 0.9vw, 14px) clamp(24px, 4vw, 60px) 0;
}
.feat + .feat { margin-top: clamp(36px, 4.6vw, 76px); }
.feat-copy, .feat-art { position: relative; z-index: 1; }

/* Sits in the padding reserved for it at the bottom, so it never runs under the
   phone — an opaque image over the band would cut a rectangle out of it. */
.feat-waves {
  position: absolute; left: 0; bottom: 0; width: 100%;
  height: var(--wave-h-card);
  z-index: 0; pointer-events: none;
}
/* Teal, not another peach. These were the accent at ~18% and ~34% over --card,
   which put crest, card and page ground all in the same warm hue — three
   surfaces with nothing to tell them apart, and the reason a card read as a
   smudge rather than an object. Teal is the app's other brand hue and the one
   the daily hero already waves in, so this borrows rather than invents.
   Kept low: a card wave is a backdrop, not a headline. */
.fw-1 { fill: var(--teal); opacity: .20; }
.fw-2 { fill: var(--teal); opacity: .38; }
.feat-copy h3 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); margin-top: 14px; }
.feat-copy p { margin-top: 16px; color: var(--text-soft); font-size: 1.06rem; max-width: 30rem; }
/* The image is now a plate with the phone inset in it, so the column has to
   be wider than the old bare-phone crop for the device to read the same size. */
.feat-art { justify-self: center; width: min(100%, 322px); }
/* Transparent PNGs — the wave passes behind them. No CSS shadow: the artwork
   carries its own, and a second one would outline the image's box. */
.feat-art img { width: 100%; }

/* The three difficulty rules, dotted in the highlight rotation so the levels
   are colour-coded the same way the mode cards are. */
.rule-list { margin-top: 20px; display: grid; gap: 10px; max-width: 26rem; }
.rule-list li {
  position: relative;
  padding: 11px 18px 11px 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 0 0 1.5px rgba(40, 74, 81, .1);
  color: var(--text-soft);
  font-size: .98rem;
}
.rule-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  border-radius: 999px; background: var(--dot);
}
.rule-list b { color: var(--text-primary); font-weight: 900; margin-right: .45em; }

/* ── closer ──────────────────────────────────────────────────────────────── */
.closer {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--sec) + var(--wave-h))
                 calc(var(--sec) * .72 + var(--wave-h));
  background: linear-gradient(160deg, #345963, #284A51 55%, #243F47);
  color: var(--cream);
}
.closer-inner { position: relative; z-index: 1; text-align: center; }
.closer h2 { font-size: clamp(1.95rem, 4.2vw, 3.2rem); }
.closer-lede {
  margin-top: 18px; margin-inline: auto; max-width: 30rem;
  color: rgba(255, 248, 240, .78); font-size: 1.1rem;
}

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-foot { background: #243F47; color: rgba(255, 248, 240, .6); padding-block: 34px; }
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  justify-content: space-between; font-size: .9rem;
}
.foot-brand { color: var(--cream); font-weight: 900; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--cream); text-decoration: underline; }

/* ── sticky mobile CTA ───────────────────────────────────────────────────── */
.sticky-cta {
  position: fixed; z-index: 60;
  left: 0; right: 0; bottom: 0;
  display: none;
  --cta-h: 44px;
  --store-badge-h: 40px;
  align-items: center;
  gap: calc(var(--store-badge-h) * 0.5);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 243, .92);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .store-badge { flex: 0 0 auto; }
.sticky-cta .btn { flex: 1 1 0; }

/* ── Google Play coming-soon ────────────────────────────────────────────
   The Android listing is not live yet, so Play badges open this dialog
   instead of a 404 in the store. Above the sticky bar (z 60). */
.coming-soon {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.coming-soon[hidden] { display: none !important; }
.coming-soon-scrim {
  position: absolute;
  inset: 0;
  background: rgba(40, 74, 81, .48);
}
.coming-soon-card {
  position: relative;
  width: min(400px, 100%);
  background: var(--card);
  color: var(--text-primary);
  border-radius: var(--radius-card, 22px);
  padding: 32px 24px 24px;
  box-shadow: 0 20px 50px rgba(40, 74, 81, .22);
  text-align: center;
}
.coming-soon-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-dim, #5a7a80);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.coming-soon-card h2 {
  font-size: 1.55rem;
  margin-bottom: 10px;
}
.coming-soon-body {
  color: var(--text-dim, #5a7a80);
  margin-bottom: 22px;
}
.coming-soon-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.coming-soon-open { overflow: hidden; }

/* ── reveal on scroll ───────────────────────────────────────────────────
   Opt-in via a class the script adds, so with JS off nothing is ever hidden.
   Slow and small on purpose: the page should feel unhurried, not animated. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── breakpoints ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* A gentle knock-down, not the fade that went too far last time — the field
     still reads as a field, it just stops competing with the headline. */
  .hero-field { height: 54%; opacity: .72; }
  .head-cta { display: none; }
  /* With the CTAs hidden there is nothing to sit opposite, so the mark centres
     rather than hanging off the left edge. */
  .head-inner { justify-content: center; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }

  /* ── the phone hero, centred and compressed ───────────────────────────
     A phone shows one screenful, and the artwork is the argument — so every
     pixel the copy block gives up is a pixel more of the game visible before
     the fold. Smaller type, shorter buttons, tighter gaps, all centred so the
     column reads as one stack instead of a left-aligned wall. */
  .hero { padding-block: 46px 0; }   /* air between the mark and the headline */
  .hero-copy { text-align: center; }
  .hero-copy .lede, .hero-copy .trust { margin-inline: auto; }
  .hero-inner { gap: 20px; }

  h1 { font-size: clamp(1.72rem, 7.4vw, 2.15rem); }
  .hl { padding-bottom: .2em; }
  .hero .lede { margin-top: 14px; font-size: 1rem; }

  /* Browser CTA goes full width; store badges keep Apple/Google aspect and
     sit at their official height — stretching them would break the artwork. */
  .hero .cta-row { --cta-h: 56px; --store-badge-h: 48px; justify-content: center; margin-top: 22px; }
  .cta-row > .btn { width: auto; max-width: 100%; }
  .hero .cta-row > .btn { width: 100%; }
  .hero .btn { font-size: .94rem; padding-inline: 20px; }
  .trust { margin-top: 13px; font-size: .82rem; }
}

@media (min-width: 761px) {
  .demo-stage { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); }
}

@media (min-width: 900px) {
  .hero { padding-block: clamp(52px, 5vw, 88px) clamp(40px, 5vw, 72px); }
  /* The art column is deliberately the narrower one. A 430px phone drives the
     hero past 1400px tall and pushes the first CTA off a laptop screen. */
  .hero-inner { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); }
  .hero-art { width: min(100%, 372px); justify-self: end; }
  .feat { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); }
  .feat-flip .feat-copy { order: 2; }
  .feat-flip .feat-art  { order: 1; }
  .feat-art { width: min(100%, 336px); }
}

/* The hero art is the single heaviest thing on the page. Below the fold on a
   small phone it costs more than it earns, so it goes after the copy — but it
   is never hidden, because the artwork is the argument. */
@media (max-width: 480px) {
  .hero-art { width: min(100%, 300px); }
}
