/*
 * Shared styles for every static page outside the React app: /lp/* (ad landing pages) and
 * /learn/* (SEO articles).
 *
 * ── Why a stylesheet and not a component ──────────────────────────────────────────────────────
 * These pages are plain HTML served straight off the filesystem, so there is no component
 * primitive to reach for. Injecting the chrome with JS would work for /lp/* (they are noindex) but
 * would strip the header and footer out of /learn's crawlable source, which is the one thing that
 * page exists for. So the arrangement is: the header/footer MARKUP is ~10 identical lines in each
 * file, and every decision about it — widths, spacing, type, colour — lives here. Change this file
 * and all pages change together. The markup itself never needs to.
 * If that duplication ever becomes a problem, the upgrade is a build step that assembles pages
 * from partials; it was not worth the machinery for six files.
 *
 * ── Widths, and why there are three ───────────────────────────────────────────────────────────
 * Matched to the React app so the static pages stop looking like a different website:
 *   .shell    1280px  chrome (header/footer)   = the app's max-w-screen-xl (LandingNavFlow)
 *   .content  1024px  landing page sections    = the app's max-w-5xl (pages/Research.tsx)
 *   .wrap      720px  long-form article prose  = a readable measure for 2000 words
 *   .measure   680px  a text column inside .content
 * A landing page and an article genuinely want different content widths. Unifying those would make
 * one of them worse: 1024px is too wide to read an essay in, 720px makes a landing page feel like
 * a blog post. The chrome is what has to match, and now does.
 *
 * Sharp corners throughout. No border-radius on cards or panels. That is the brand.
 */

:root {
  --mc-canvas:#0a0a0c; --mc-surface:#1a1722; --mc-line:#2a2735; --mc-line-strong:#3a3447;
  --mc-text:#f2f3f5; --mc-body:#dfe1e6; --mc-muted:#a1aab7; --mc-faint:#92979f;
  --mc-accent:#a855f7; --mc-accent-hover:#9333ea; --mc-accent-soft:#c4b5fd;
  --mc-positive:#4ade80;
  --mc-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --mc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
/*
 * `html body`, not `body`, and for the same reason the element rules below are scoped.
 * index.css applies `bg-background text-foreground` to body, and --foreground in :root is
 * oklch(0.145 0 0) — near black. At equal specificity the later sheet wins, so on the React
 * landing pages every plain paragraph inherited near-black text on a near-black page.
 */
html body {
  margin:0; background:var(--mc-canvas); color:var(--mc-body);
  font-family:var(--mc-sans); font-size:17px; line-height:1.7;
}

/* ── Containers ──────────────────────────────────────────────────────────── */
.shell   { max-width:1280px; margin:0 auto; padding:0 16px; }
.content { max-width:1024px; margin:0 auto; padding:0 16px; }
.wrap    { max-width:720px;  margin:0 auto; padding:0 20px; }
.measure { max-width:680px; }
@media (min-width:640px) {
  .shell, .content { padding:0 24px; }
}

/* ── Chrome ──────────────────────────────────────────────────────────────── */
header.site { border-bottom:1px solid var(--mc-line); }
header.site .shell { display:flex; align-items:center; justify-content:space-between; height:56px; }
.brand { display:flex; align-items:center; text-decoration:none; }
.brand img { height:17px; width:161px; display:block; }
.nav-cta {
  font-family:var(--mc-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mc-muted); text-decoration:none; border:1px solid var(--mc-line-strong);
  padding:7px 14px; transition:color .15s, border-color .15s; white-space:nowrap;
}
.nav-cta:hover { color:var(--mc-text); border-color:var(--mc-accent); }

footer.site { border-top:1px solid var(--mc-line); margin-top:72px; padding:28px 0; }
footer.site .shell {
  display:flex; flex-wrap:wrap; gap:18px; justify-content:space-between;
  font-family:var(--mc-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mc-faint);
}
footer.site a { color:var(--mc-faint); text-decoration:none; }
footer.site a:hover { color:var(--mc-body); }
footer.site nav { display:flex; flex-wrap:wrap; gap:18px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
/*
 * What separates a landing page from an article is not the width, it is the rhythm: full-bleed
 * bands with real vertical air, and a CENTRED intro to each one. Left-aligned prose running
 * continuously down a single background reads as a document no matter how wide you make it.
 *
 * Mirrors pages/Sales.tsx: `px-4 py-16 md:py-24` per section, alternating
 * `border-y border-flow-line bg-flow-surface/40` bands, centred `max-w-3xl` heads.
 *
 * Article pages keep the old <main> padding; landing pages use <main class="sections">, where the
 * sections own their spacing instead.
 */
body main { padding:56px 0 72px; }
body main.sections { padding:0; }

.section { padding:64px 0; }
@media (min-width:768px) { .section { padding:96px 0; } }

/* The alternating band. Every other section gets one, so the page has a pulse. */
.section.band { border-top:1px solid var(--mc-line); border-bottom:1px solid var(--mc-line); background:rgba(26,23,34,.45); }
/* The last band butts straight up against the footer's own top border, which renders as one
   2px line. Drop the band's, the footer already draws the divider. */
.section.band:last-child { border-bottom:none; }

.section.hero { position:relative; overflow:hidden; padding:56px 0 48px; text-align:center; }
@media (min-width:768px) { .section.hero { padding:80px 0 64px; } }
/* Content has to sit above the backdrop layers. */
.section.hero > .content { position:relative; z-index:1; }

/*
 * Hero backdrop, ported from Sales.tsx HeroBackdrop: an accent wash off the top, a warm accent
 * glow on the left and a cooler indigo one on the right (EUR vs USD), two oversized flags faded
 * to 8% behind it, and a hairline seam down the middle. The two sides being different colours is
 * the whole point — the page argues a pair is two economies, and the backdrop says it first.
 */
.hero-backdrop { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.hero-backdrop .wash {
  position:absolute; left:50%; top:0; width:880px; max-width:100%; height:440px; transform:translateX(-50%);
  background:radial-gradient(ellipse at center top, rgba(168,85,247,.16), transparent 70%);
}
.hero-backdrop .glow {
  position:absolute; top:50%; transform:translateY(-50%); filter:blur(150px);
}
.hero-backdrop .glow-l { left:-12%; width:52%; height:85%; background:radial-gradient(closest-side, rgba(168,85,247,.28), transparent); }
.hero-backdrop .glow-r { right:-12%; width:48%; height:72%; background:radial-gradient(closest-side, rgba(99,102,241,.20), transparent); }
.hero-backdrop .flag {
  position:absolute; top:50%; width:42vw; max-width:560px; height:auto; transform:translateY(-50%);
  opacity:.08; filter:blur(1px);
  -webkit-mask-image:radial-gradient(closest-side, #000 38%, transparent);
          mask-image:radial-gradient(closest-side, #000 38%, transparent);
}
.hero-backdrop .flag-l { left:-8%; }
.hero-backdrop .flag-r { right:-8%; }
.hero-backdrop .seam {
  position:absolute; inset-block:0; left:50%; width:1px; transform:translateX(-50%);
  background:linear-gradient(to bottom, transparent, rgba(124,130,140,.12), transparent);
}

.section.final { text-align:center; }
@media (min-width:768px) { .section.final { padding:112px 0; } }

/* Centred intro to a section: eyebrow, headline, one line of subhead. */
.section-head { max-width:760px; margin:0 auto 44px; text-align:center; }
.section-head h2 { font-size:clamp(1.6rem,3.5vw,2.25rem); margin:0 0 14px; }
.section-head p { color:var(--mc-muted); margin:0; font-size:1.02rem; }
.section-head .eyebrow { margin-bottom:12px; }

/* Centre a constrained block of text. */
.center { text-align:center; }
.measure-center { max-width:680px; margin-left:auto; margin-right:auto; }
/* A hero headline is set much larger than body text, so 680px would break it across too many
   lines. It gets its own, wider measure. */
.section.hero h1.measure-center { max-width:900px; }

/*
 * Hero headline scale, taken from the LANDING page (App.tsx: text-4xl sm:text-5xl md:text-6xl
 * lg:text-7xl, leading-[1.08]) rather than from Sales.tsx.
 *
 * Sales goes text-[2.4rem] -> sm:text-6xl, which is 2.4rem to 3.75rem in a single step at the
 * 640px breakpoint: a 56% jump right where phones become small tablets. The landing steps evenly
 * through four sizes instead, so nothing lurches.
 */
.section.hero h1 { font-size:2.25rem; line-height:1.08; letter-spacing:-.02em; margin:20px auto 0; font-weight:700; }
@media (min-width:640px)  { .section.hero h1 { font-size:3rem; } }
@media (min-width:768px)  { .section.hero h1 { font-size:3.75rem; } }
@media (min-width:1024px) { .section.hero h1 { font-size:4.5rem; } }

.section.hero .lede-hero { margin-top:24px; }
.section.hero .actions { margin-top:36px; }

/* The accent word inside a headline, as both /sales and the landing use. */
.accent { color:var(--mc-accent); }
.eyebrow.accent { color:var(--mc-accent); letter-spacing:.22em; }

/*
 * The eight tracked economies. The grid uses a 1px gap over a line-coloured background so the
 * dividers are hairlines rather than borders.
 *
 * Sales.tsx's CentralBanksBeat fades a press-conference photo in behind this; deliberately not
 * done here, because that image already has a real home beside the four steps.
 */
.banks { position:relative; overflow:hidden; border:1px solid var(--mc-line); margin:0; }
.banks .grid {
  position:relative; display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background:rgba(42,39,53,.6);
}
@media (min-width:640px) { .banks .grid { grid-template-columns:repeat(4,1fr); } }
.banks .bank {
  display:flex; flex-direction:column; align-items:center; gap:10px;
  background:rgba(10,10,12,.45); padding:20px 12px; text-align:center;
}
.banks .bank img { width:48px; height:32px; object-fit:cover; border:1px solid var(--mc-line); display:block; }
.banks .bank .abbr {
  font-family:var(--mc-mono); font-size:13px; font-weight:700; text-transform:uppercase;
  letter-spacing:.1em; color:var(--mc-text); margin:0;
}
.banks .bank .name { font-size:11px; line-height:1.25; color:var(--mc-muted); margin:2px 0 0; }
.banks-note { max-width:680px; margin:16px auto 0; font-size:11px; line-height:1.55; color:var(--mc-faint); text-align:center; }

/* A row of CTAs under a centred head. */
.actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin:8px 0 0; }
.actions.left { justify-content:flex-start; }

/* Sticky bottom CTA on phones, the way Sales.tsx does it. Desktop has the header CTA and
   plenty of in-page buttons; on a phone the primary action scrolls away and never comes back. */
.sticky-cta {
  position:fixed; inset-inline:0; bottom:0; z-index:40;
  border-top:1px solid var(--mc-line); background:rgba(10,10,12,.95);
  padding:12px 16px; backdrop-filter:blur(6px);
}
.sticky-cta .btn { display:block; width:100%; text-align:center; padding:14px 20px; }
@media (min-width:768px) { .sticky-cta { display:none; } }
/* The consent banner is also bottom-fixed. Two bars stacked on a phone screen is a mess and the
   consent choice has to come first, so the CTA stands down until the banner is dismissed. */
body.consent-open .sticky-cta { display:none; }
/* Keep the sticky bar from covering the footer's last line on a phone. */
@media (max-width:767px) { footer.site { padding-bottom:84px; } }

/* ── Type ────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family:var(--mc-mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--mc-faint); margin:0 0 14px;
}
body h1 {
  color:var(--mc-text); font-size:clamp(1.75rem,5vw,2.5rem); line-height:1.15;
  letter-spacing:-.02em; margin:0 0 24px; font-weight:700;
}
/* Landing pages lead with a bigger headline than an article does. */
h1.hero { font-size:clamp(2rem,6vw,3.25rem); margin-bottom:20px; }
body h2 { color:var(--mc-text); font-size:1.3rem; line-height:1.3; letter-spacing:-.01em; margin:48px 0 14px; font-weight:650; }
body h3 { color:var(--mc-text); font-size:1.02rem; margin:28px 0 8px; font-weight:600; }
body p { margin:0 0 18px; }
body a { color:var(--mc-accent-soft); text-decoration:underline; text-underline-offset:3px; }
body a:hover { color:var(--mc-accent); }
body strong { color:var(--mc-text); font-weight:600; }
.lede { font-size:1.12rem; color:var(--mc-body); }
.lede strong { color:var(--mc-text); }
.lede-hero { font-size:clamp(1.1rem,2.2vw,1.3rem); color:var(--mc-body); }
.lede-hero strong { color:var(--mc-text); }
.muted { color:var(--mc-muted); }
.small { font-size:14px; }

body ul, body ol { margin:0 0 18px; padding-left:22px; }
body li { margin-bottom:9px; }

/* ── Blocks ──────────────────────────────────────────────────────────────── */
.callout { border-left:2px solid var(--mc-accent); background:var(--mc-surface); padding:18px 20px; margin:0 0 28px; }
.callout p:last-child { margin-bottom:0; }

.panel { border:1px solid var(--mc-line); background:var(--mc-surface); padding:20px; margin:0 0 24px; }
.panel h3 { margin-top:0; }
.panel p:last-child, .panel ul:last-child { margin-bottom:0; }

body table { width:100%; border-collapse:collapse; margin:0 0 24px; font-size:15px; }
body th, body td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--mc-line); vertical-align:top; }
body th {
  font-family:var(--mc-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--mc-faint); font-weight:500; border-bottom-color:var(--mc-line-strong);
}
body td:first-child { color:var(--mc-text); white-space:nowrap; }
.scroll-x { overflow-x:auto; }

.chain {
  font-family:var(--mc-mono); font-size:13px; color:var(--mc-muted);
  border:1px solid var(--mc-line); background:var(--mc-surface);
  padding:16px 18px; margin:0 0 24px; overflow-x:auto; white-space:nowrap;
}
.chain b { color:var(--mc-accent-soft); font-weight:500; }

/* Numbered steps. */
.steps { list-style:none; padding:0; margin:0 0 28px; counter-reset:step; }
.steps li { position:relative; padding-left:44px; margin-bottom:20px; counter-increment:step; }
.steps li::before {
  content:counter(step); position:absolute; left:0; top:1px;
  width:28px; height:28px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--mc-line-strong); background:var(--mc-surface);
  font-family:var(--mc-mono); font-size:12px; color:var(--mc-accent-soft);
}
.steps h3 { margin:0 0 4px; }
.steps p { margin-bottom:0; color:var(--mc-muted); font-size:15px; }

/* Card grid. */
.cards { display:grid; gap:16px; margin:0 0 28px; }
@media (min-width:760px) {
  .cards.two { grid-template-columns:repeat(2,1fr); }
  .cards.three { grid-template-columns:repeat(3,1fr); }
}
.card {
  border:1px solid var(--mc-line); background:var(--mc-surface); padding:24px;
  display:flex; flex-direction:column; transition:border-color .15s;
}
.card:hover { border-color:var(--mc-line-strong); }
.card .eyebrow { margin-bottom:10px; }
.card h3 { margin:0 0 8px; }
.card p { color:var(--mc-muted); font-size:15px; flex:1; }
.card .btn { align-self:flex-start; margin-top:6px; }

/* A row of hard numbers under a hero. */
.stats { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:32px 0 0; }
@media (min-width:760px) { .stats { grid-template-columns:repeat(4,1fr); } }
.stat { border:1px solid var(--mc-line); background:var(--mc-surface); padding:16px 18px; }
.stat b {
  display:block; font-family:var(--mc-mono); font-size:26px; font-weight:700;
  color:var(--mc-text); letter-spacing:-.02em; font-variant-numeric:tabular-nums;
}
.stat span { display:block; margin-top:6px; font-size:12.5px; line-height:1.35; color:var(--mc-faint); }

/* ── Media ───────────────────────────────────────────────────────────────── */
/*
 * Screenshot treatment copied from DashboardShowcase.tsx: a hairline accent edge plus a SHORT
 * bloom. The tempting version is a big soft 100px shadow, which is what previously washed violet
 * across a whole section. Tight reads as neon; diffuse reads as haze.
 */
.shot { margin:0 0 28px; }
.shot img {
  display:block; width:100%; height:auto; border:1px solid var(--mc-line);
  box-shadow:0 0 0 1px rgba(168,85,247,.45), 0 0 22px -2px rgba(168,85,247,.55);
}
.shot figcaption {
  margin-top:10px; font-family:var(--mc-mono); font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--mc-faint);
}
/* Photographs do not want the neon edge — it makes them look like a screenshot. */
.shot.photo img { box-shadow:none; }

/* Video: poster frame until played, then native controls. */
.video { position:relative; margin:0 0 28px; border:1px solid var(--mc-line); background:var(--mc-surface); }
.video video { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.video .play {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(10,10,12,.4); border:none; cursor:pointer; transition:background-color .15s; padding:0;
}
.video .play:hover { background:rgba(10,10,12,.2); }
.video .play .icon {
  display:flex; width:64px; height:64px; align-items:center; justify-content:center;
  border:1px solid var(--mc-accent); background:rgba(168,85,247,.2);
}
.video .play .icon svg { width:24px; height:24px; fill:#fff; transform:translateX(2px); }
.video .play .label {
  position:absolute; left:0; right:0; bottom:20px; text-align:center;
  font-family:var(--mc-mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:#fff;
}
.video-by {
  margin:12px 0 28px; font-family:var(--mc-mono); font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--mc-faint); text-align:center;
}

/* Text beside a visual — the two-column rhythm the landing page uses. */
.split { display:grid; gap:28px; align-items:center; margin:0 0 32px; }
@media (min-width:860px) {
  .split { grid-template-columns:1fr 1fr; gap:40px; }
  .split.wide-right { grid-template-columns:0.9fr 1.1fr; }
}
.split > div > :last-child, .split > figure { margin-bottom:0; }

/* Inline SVG data figures. */
.figure { border:1px solid var(--mc-line); background:var(--mc-surface); padding:22px 24px; margin:0 0 28px; }
.figure h3 { margin:0 0 4px; }
.figure .cap {
  margin:0 0 18px; font-family:var(--mc-mono); font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--mc-faint);
}
.figure svg { display:block; width:100%; height:auto; }
.figure .note { margin:14px 0 0; font-size:13px; color:var(--mc-faint); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display:inline-block; font-family:var(--mc-mono); font-size:12px; letter-spacing:.14em;
  text-transform:uppercase; color:#ffffff; background:var(--mc-accent);
  padding:13px 28px; text-decoration:none; font-weight:600; border:none; cursor:pointer;
  transition:background-color .15s;
}
.btn:hover { background:var(--mc-accent-hover); color:#ffffff; }
.btn-ghost { background:transparent; color:var(--mc-muted); border:1px solid var(--mc-line-strong); }
.btn-ghost:hover { background:transparent; color:var(--mc-text); border-color:var(--mc-accent); }

/* `.cta` is the closing block. Kept as the name /learn already uses. */
.cta { border:1px solid var(--mc-line-strong); background:var(--mc-surface); padding:26px 24px; margin:56px 0 0; }
.cta h2 { margin:0 0 10px; font-size:1.15rem; }
.cta p { color:var(--mc-muted); font-size:15px; }
.cta a.btn { color:#ffffff; text-decoration:none; }
.cta-note { margin:18px 0 0; font-size:13px; color:var(--mc-faint); }
/* Secondary by design: these sit under the primary CTA and should not compete with it, so no
   underline until hover. */
.cta-note a { color:var(--mc-muted); text-decoration:none; }
.cta-note a:hover { color:var(--mc-text); text-decoration:underline; text-underline-offset:3px; }

/* ── Email form ──────────────────────────────────────────────────────────── */
.emailform { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 10px; max-width:520px; }
.emailform input[type=email] {
  flex:1 1 240px; background:var(--mc-canvas); border:1px solid var(--mc-line-strong);
  color:var(--mc-text); font-family:var(--mc-sans); font-size:16px; padding:12px 14px;
}
.emailform input[type=email]:focus { outline:none; border-color:var(--mc-accent); }
.formmsg { font-family:var(--mc-mono); font-size:12px; letter-spacing:.06em; margin:6px 0 0; min-height:18px; }
.formmsg.ok { color:var(--mc-positive); }
.formmsg.err { color:#f4866f; }

/* ── Consent banner ──────────────────────────────────────────────────────── */
#mc-consent {
  position:fixed; left:0; right:0; bottom:0; z-index:100;
  background:var(--mc-surface); border-top:1px solid var(--mc-line-strong);
  padding:16px 0; display:none;
}
#mc-consent.show { display:block; }
#mc-consent .shell { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; }
#mc-consent p { margin:0; font-size:14px; color:var(--mc-muted); flex:1 1 320px; }
#mc-consent .actions { display:flex; gap:10px; flex-wrap:wrap; }
#mc-consent .btn { padding:10px 18px; font-size:11px; }

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
/*
 * Matches the final section of pages/Sales.tsx: a soft accent bloom behind a headline set much
 * larger than a section head, and a button that carries its own glow rather than sitting flat.
 * The bloom is what stops the close reading as just another section.
 */
.section.final { position:relative; overflow:hidden; }
.section.final > .content { position:relative; z-index:1; }
.final-glow {
  position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(60% 60% at 50% 45%, rgba(168,85,247,.18), transparent 72%);
}
.final-title {
  font-size:clamp(1.9rem,5vw,3.75rem); line-height:1.08; letter-spacing:-.02em;
  margin:0; font-weight:650; color:var(--mc-text);
}
.btn-lg {
  display:inline-flex; align-items:center; gap:10px;
  padding:17px 34px; font-size:13px;
  box-shadow:0 10px 40px -10px rgba(168,85,247,.9);
}
.btn-lg svg { width:16px; height:16px; flex:none; }
.trust {
  margin:28px 0 0; display:flex; flex-wrap:wrap; justify-content:center; gap:6px 0;
  font-family:var(--mc-mono); font-size:11px; letter-spacing:.13em; text-transform:uppercase;
  color:var(--mc-faint);
}
/* Separator belongs TO the item that follows it, so a wrap can never strand a lone dot. */
.trust span + span::before { content:"·"; margin:0 14px; color:var(--mc-line-strong); }
/* Too narrow for one line: stack instead of wrapping 2 + 1, and drop the dots entirely. */
@media (max-width:640px) {
  .trust { flex-direction:column; gap:7px; }
  .trust span + span::before { content:none; }
}



/* ── Phones ──────────────────────────────────────────────────────────────── */
/*
 * Measured on a 380px viewport, not guessed at.
 *
 * Stacked CTAs were sizing to their own text, so two buttons under each other came out 49% and
 * 57% of the screen — different widths read as an accident rather than a choice. Full width also
 * makes them a comfortable thumb target.
 */
@media (max-width:520px) {
  .actions { flex-direction:column; align-items:stretch; }
  .actions .btn { width:100%; justify-content:center; text-align:center; }
}

/* 44px is the smallest reliably tappable target. The header CTA measured 35, and the footer
   links 17, which is a miss-and-try-again on a phone. */
@media (max-width:767px) {
  .nav-cta { display:inline-flex; align-items:center; min-height:44px; }
  footer.site nav { gap:10px 18px; }
  footer.site nav a { display:inline-flex; align-items:center; min-height:34px; }
}

/*
 * The hero headline is two sentences with an explicit break between them, so each should occupy
 * one line. At 2.25rem the second sentence needs 364px and a 380px phone offers 348, which broke
 * it into four lines with "move." and "hour." orphaned.
 *
 * Sized from the width actually available (viewport minus the container's 2x16px padding) rather
 * than raw vw, which ignored the padding and still wrapped at 320px. The divisor comes from
 * measuring the longer sentence: it needs about 10.1px of width per 1px of font size, so 11 leaves
 * headroom for a narrower font stack. min() means anything wider than ~428px keeps the full size.
 */
@media (max-width:639px) {
  .section.hero h1 { font-size:min(2.25rem, calc((100vw - 32px) / 11)); }
}

/* The email row wraps on a phone: a 92% input above a 38% button reads as two unrelated
   controls. Stack them properly instead, both full width. */
@media (max-width:520px) {
  .emailform { flex-direction:column; align-items:stretch; max-width:none; }
  .emailform input[type=email] { flex:none; width:100%; }
  .emailform .btn { width:100%; }
}

/* The close is an email field rather than one more button: by the bottom a reader has scrolled
   past three asks for the same click, and an address is the only smaller thing left to give.
   Stacked, not side by side: a short button beside a long field reads as a label sitting in a
   block, where a full-width one reads as the same primary action the page has used throughout. */
.cta-capture { max-width:460px; margin:34px auto 0; }
.cta-capture .emailform { flex-direction:column; align-items:stretch; max-width:none; margin:0; gap:12px; }
.cta-capture .emailform input[type=email] { flex:none; width:100%; text-align:center; }
.cta-capture .emailform .btn { width:100%; justify-content:center; }
.cta-capture .formmsg { min-height:16px; margin:10px 0 0; }
/* The opt-in is fine print under the action, centred with it rather than ranged left on its own. */
.cta-capture label { justify-content:center; }
