/* Zonative marketing site — August 2026 refresh.
   Ported directly from the app's unauthenticated landing page (app.zonative.com,
   src/ui/chrome/LandingPage.tsx + src/ui/styles.css) so zonative.com is
   recognizably the same dark, brand-native product experience rather than a
   separately-designed cream marketing page. Self-hosted fonts so CSP
   font-src 'self' is enough. Static site: no build step, no framework. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens (matches the app's light-theme palette: warm cream base
   with dark brand-overlay bands, not a separate marketing palette) ---------- */
:root {
  --surface-base: #faf8f5;
  --surface-card: #f5f0e8;
  --surface-deep: #ede7da;
  --surface-overlay: #2c2825;
  --brand-accent: #b8602a;
  --brand-accent-light: #e8956a;
  --text-primary: #2c2825;
  --text-secondary: #6f675f;
  --border-default: #ddd8cf;
  --status-complete: #3f6b43;
  --status-planned: #4a7c6f;
  --status-flag: #a8541f;
  --shadow-soft: 0 2px 8px rgba(44, 40, 37, 0.08);
  --shadow-raised: 0 18px 48px rgba(44, 40, 37, 0.12);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ui: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #faf8f5 0%, #f1ebe1 100%);
  color: var(--text-primary);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}
/* Heading-to-body spacing tokens.
   Base line-height on h1/h2/h3 is deliberately tight (1 / 1.04) for large
   serif display type, which means a heading immediately followed by a
   paragraph with margin:0 has zero visual gap -- large serif descenders
   (g, y, p) then collide with the next line's ascenders. These rules add
   a real, size-appropriate gap after every heading tier without touching
   line-height itself. Scoped to headings that are directly followed by
   body copy; card/heading-only contexts (e.g. a lone <h3> with no
   following <p> in the same block) are unaffected. */
.landing-hero h1,
.landing-section h2,
.landing-name-moment h2 {
  /* Scales with viewport so the largest display sizes (hero h1 reaches
     ~5.4rem/86px+ at wide desktop) still clear their own descenders with
     margin to spare, while smaller mobile sizes aren't over-spaced. */
  margin-bottom: clamp(20px, 2.2vw, 34px);
}
.landing-loop article h3,
.landing-ability-grid article h3,
.landing-audience-grid article h3,
.landing-future-ability h3,
.landing-section h3 {
  margin-bottom: 10px;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.muted { color: var(--text-secondary); }

/* ---------- focus + skip link ---------- */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.landing-nav :focus-visible { outline-color: var(--brand-accent-light); }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-overlay);
  color: #fff;
  padding: 12px 18px;
  z-index: 60;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- shell ---------- */
.landing-shell {
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 96, 42, 0.18), transparent 30%),
    radial-gradient(circle at 85% 24%, rgba(74, 124, 111, 0.14), transparent 28%),
    linear-gradient(180deg, var(--surface-base) 0%, var(--surface-deep) 100%);
}

/* ---------- nav (dark, sticky, brand-native — matches app chrome) ---------- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(184, 96, 42, 0.44);
  background: color-mix(in srgb, var(--surface-overlay) 96%, transparent);
  color: var(--surface-base);
  backdrop-filter: blur(14px);
}
.landing-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 11px;
  border-radius: 12px;
  background: #fff;
  color: #050e22;
  text-decoration: none;
}
.landing-brand-logo { width: clamp(126px, 13vw, 156px); height: auto; }
.landing-brand-lockup strong {
  max-width: 170px;
  font-family: var(--ui);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.25;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.landing-nav-links a,
.nav-contact {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--ui);
}
.landing-nav-links a:hover,
.nav-contact:hover,
.landing-nav-links a:focus-visible,
.nav-contact:focus-visible {
  color: #ffffff;
}
.landing-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-base) 92%, transparent);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.92rem;
}
.landing-nav .landing-secondary-action {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.84rem;
}
.landing-secondary-action:hover { box-shadow: var(--shadow-soft); }
.landing-secondary-action.accent {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}
.landing-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: 700 14px var(--ui);
  min-height: 40px;
  padding: 0 16px;
}

/* ---------- quiet sign-in button (subdued outlined, not exposed fields) ---------- */
.button.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: 700 0.84rem var(--ui);
  opacity: 0.88;
}
.button.quiet:hover, .button.quiet:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.landing-close .button.quiet.ghost,
.footer .button.quiet.ghost {
  border-color: rgba(255, 255, 255, 0.32);
}
.landing-hero .button.quiet.ghost {
  border-color: var(--border-default);
  color: var(--text-primary);
  opacity: 1;
}
.landing-hero .button.quiet.ghost:hover { background: color-mix(in srgb, var(--surface-base) 76%, transparent); }

/* ---------- layout rhythm (matches app's landing-section/landing-hero shell) ---------- */
.landing-section,
.landing-hero {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(22px, 5vw, 52px);
}

/* ---------- hero ---------- */
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
}
.landing-hero h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.landing-hero-copy > p:not(.eyebrow):not(.landing-lead):not(.landing-one-liner) {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.55;
}
.landing-lead {
  margin: 22px 0 8px;
  color: var(--text-primary);
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  max-width: 640px;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.landing-one-liner {
  margin-top: 26px;
  padding-left: 15px;
  border-left: 3px solid var(--brand-accent);
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 46ch;
}
.landing-one-liner strong { color: var(--text-primary); }

/* ---------- hero floor visualization panel (replaces the app's abstract
   proof demo with the real showroom photography, same card treatment) ---------- */
.landing-proof {
  padding: 22px;
  border: 1px solid var(--border-default);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-card) 88%, white);
  box-shadow: var(--shadow-raised);
}
.landing-proof-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 16px;
}
.landing-proof-head > div:first-child { display: grid; gap: 3px; }
.landing-proof-head span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}
.landing-proof-head small { color: var(--text-secondary); font-size: 0.82rem; }
.landing-proof-toggle {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-deep);
}
.landing-proof-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: 700 0.72rem var(--ui);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.landing-proof-toggle button:hover { color: var(--text-primary); }
.landing-proof-toggle button.is-active {
  background: var(--surface-base);
  color: var(--status-complete);
  box-shadow: var(--shadow-soft);
}
.landing-proof-floor {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-overlay);
}
.landing-proof-floor picture,
.landing-proof-floor img { display: block; width: 100%; height: auto; }
.landing-proof-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21, 19, 17, 0.72) 100%);
  pointer-events: none;
}
.landing-proof-overlay {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(21, 19, 17, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}
.landing-proof-overlay-a { left: 16px; bottom: 16px; }
.landing-proof-overlay-b { right: 16px; bottom: 16px; }
.dot {
  border-radius: 50%; display: inline-block; height: 8px; width: 8px;
}
.dot.green { background: #6fbf73; }
.dot.amber { background: #e0a530; }
.landing-proof-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-overlay);
  color: var(--surface-base);
  font-size: 0.82rem;
}
.landing-proof-tracker span { color: var(--brand-accent-light); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; }
.landing-proof-note {
  margin: 12px 2px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- section type + shared card language ---------- */
.landing-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.landing-section h3 { font-size: 1.15rem; }
.landing-section p:not(.eyebrow) { color: var(--text-secondary); line-height: 1.55; }
.landing-section-heading { max-width: 850px; }
.landing-section-heading > p:last-child { max-width: 760px; font-size: 1.05rem; }

/* ---------- the problem (dark overlay band) ---------- */
.landing-pain {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: end;
  color: var(--surface-base);
  background: var(--surface-overlay);
  border-radius: 28px;
}
.landing-pain p:not(.eyebrow) {
  color: color-mix(in srgb, var(--surface-base) 76%, transparent);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}
.landing-pain h2 { color: #fff; }

/* ---------- how it works (loop grid) ---------- */
.landing-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}
.landing-loop article {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-card) 86%, transparent);
  box-shadow: var(--shadow-soft);
}
.landing-loop article > span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand-accent);
  font-family: var(--display);
  font-size: 1.4rem;
}
.landing-loop article p { margin-bottom: 0; font-size: 0.92rem; }
.landing-loop-center {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-overlay);
  color: var(--surface-base);
}
.landing-loop-center strong { font-family: var(--display); font-size: 1.5rem; }
.landing-loop-center span {
  color: var(--brand-accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- what it unlocks (abilities) ---------- */
.landing-abilities { border-radius: 28px; background: var(--surface-card); }
.landing-ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.landing-ability-grid article {
  padding: 24px;
  border: 1px solid var(--border-default);
  border-radius: 18px;
  background: var(--surface-base);
}
.landing-ability-grid article > span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand-accent);
  font-family: var(--display);
  font-size: 1.4rem;
}
.landing-ability-grid article p { margin-bottom: 0; font-size: 0.92rem; }
.landing-future-ability {
  display: grid;
  grid-template-columns: auto minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border-left: 4px solid var(--brand-accent);
  border-radius: 0 18px 18px 0;
  background: var(--surface-overlay);
  color: var(--surface-base);
}
.landing-future-ability > span {
  color: var(--brand-accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.landing-future-ability p { margin: 0; color: color-mix(in srgb, var(--surface-base) 76%, transparent); }

/* ---------- ways to work / reliability (reach cards) ---------- */
.landing-reach {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.landing-reach-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-card) 86%, transparent);
}
.landing-reach-card h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); margin-bottom: 18px; }
.landing-reach-card small {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- audiences ---------- */
.landing-audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}
.landing-audience-grid article {
  padding: 20px;
  border: 1px solid var(--border-default);
  border-radius: 18px;
  background: var(--surface-base);
}
.landing-audience-grid article p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- early-access form ---------- */
.landing-access .form {
  margin-top: 32px;
  max-width: 660px;
}
.form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--border-default);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-card) 88%, white);
  box-shadow: var(--shadow-soft);
}
.form-title { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; }
.hint { color: var(--text-secondary); font-size: 0.82rem; margin: 0; max-width: 56ch; }
input, textarea {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--text-primary);
  font: 400 1rem var(--ui);
  min-height: 50px;
  padding: 13px 14px;
  width: 100%;
}
textarea { min-height: 88px; resize: vertical; }
.form .landing-secondary-action { justify-self: start; }
.hp { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
.form-status { font-weight: 500; margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--status-complete); }
.form-status.err { color: var(--status-flag); }

/* ---------- closing brand moment ---------- */
.landing-close {
  display: grid;
  /* Copy column keeps a hard minimum so large serif glyphs in
     .landing-name-moment h2 cannot visually overflow into the action
     column at intermediate desktop widths — this was the reported
     900-1920px closing-section overlap (an oversized logo plus a copy
     column that could shrink below its content's real width). */
  grid-template-columns: minmax(420px, 1.4fr) minmax(280px, 0.6fr);
  gap: 56px;
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(22px, 5vw, 52px);
  color: var(--surface-base);
  background: var(--surface-overlay);
  border-radius: 28px 28px 0 0;
}
.landing-name-moment {
  display: flex;
  gap: 28px;
  align-items: center;
  min-width: 0;
}
.landing-close-logo {
  /* Constrained to a fixed max rather than a percentage of the column, so
     it cannot grow to dominate the row as the column itself grows on wide
     desktop viewports — the direct fix for the overlap's root cause. */
  width: 140px;
  height: 140px;
  flex: 0 0 140px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}
.landing-name-moment > div { min-width: 0; }
.landing-name-moment h2 { font-size: clamp(1.9rem, 3.6vw, 3.6rem); max-width: none; margin-bottom: 14px; }
.landing-name-moment p:not(.eyebrow),
.landing-close-action p {
  color: color-mix(in srgb, var(--surface-base) 76%, transparent);
}
.landing-close-action { display: grid; gap: 14px; justify-items: start; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding: 34px max(24px, calc((100vw - 1240px) / 2));
  background: #1b1815;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
}
.footer strong { color: #fff; font-family: var(--display); font-size: 19px; font-weight: 500; }
.footer nav { align-items: center; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-link-button {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer a:not(.button) { color: rgba(255, 255, 255, 0.86); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.56);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface-card);
  border-radius: 18px;
  box-shadow: var(--shadow-raised);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
  color: var(--text-primary);
}
.modal h3 { font-family: var(--display); font-size: 1.6rem; padding-right: 30px; }
.modal-lead { color: var(--text-secondary); margin: 10px 0 22px; }
.modal form { display: grid; gap: 16px; }
.modal .field label { color: var(--text-primary); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  min-height: 36px;
  min-width: 36px;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.5); }
.modal .landing-secondary-action { justify-self: start; }
.modal .form-status { color: var(--text-secondary); }
.modal .form-status.ok { color: var(--status-complete); }
.modal .form-status.err { color: var(--status-flag); }

/* ---------- reveal (progressive enhancement, unchanged behavior) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ----------
   Breakpoints mirror the app's own landing responsive rules exactly
   (980px close-section collapse, 860px nav/hero collapse) so behavior is
   consistent between the two surfaces. */
@media (max-width: 980px) {
  .landing-close {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .landing-nav-toggle { display: inline-flex; }

  .landing-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 29;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px max(24px, calc((100vw - 1240px) / 2)) 18px;
    /* Fully opaque solid fill (not color-mix with transparent) so hero text
       scrolled underneath the open mobile menu can never show through, at
       any zoom or color-scheme setting. Solid hex matches --surface-overlay
       exactly -- same visual tone as before, just 100% opaque. */
    background: #2c2825;
    border-bottom: 1px solid rgba(184, 96, 42, 0.44);
  }
  .landing-nav-links.is-open { display: flex; }
  .landing-nav-links a,
  .landing-nav-links button,
  .landing-nav-links .landing-secondary-action,
  .landing-nav-links .button {
    width: 100%;
    padding: 10px 0;
    font-size: 0.95rem;
    justify-content: flex-start;
  }
  .landing-nav-links .landing-secondary-action,
  .landing-nav-links .button.quiet {
    justify-content: center;
    margin-top: 6px;
    padding: 10px 16px;
  }
  .landing-nav { position: relative; }

  .landing-hero,
  .landing-pain,
  .landing-reach,
  .landing-close {
    grid-template-columns: 1fr;
  }
  .landing-hero { min-height: auto; }

  .landing-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-ability-grid { grid-template-columns: 1fr; }
  .landing-audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-future-ability { grid-template-columns: 1fr; }

  .footer nav { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .landing-loop { grid-template-columns: 1fr; }
  .landing-audience-grid { grid-template-columns: 1fr; }
  .landing-name-moment { align-items: flex-start; flex-direction: column; }
  .landing-close-logo { width: min(140px, 40%); height: auto; }
  .landing-proof-overlay { font-size: 0.68rem; padding: 6px 10px; }
  .modal { padding: 26px 20px 22px; }
  .form { padding: 20px; }
}

/* At narrow phone widths the two status chips (BED-01/confirmed,
   UPH-01/open work) no longer fit side-by-side along the image's bottom
   edge without overlapping -- at 390px they overlapped horizontally by
   ~89px, with the right-hand chip drawn on top of and obscuring the left
   one. Below this breakpoint the two chips are offset both vertically
   and diagonally (overlay-a stays left-aligned but moves up to bottom:
   46px; overlay-b stays right-aligned at bottom: 12px), so there is no
   shared row for them to collide on regardless of exact rendered text
   width. Both chips stay inside the image's own darkened gradient band
   (bottom ~45%) so contrast is unchanged, stay fully inside the image
   bounds (no horizontal or vertical overflow), and both remain
   completely legible. No image pixels are touched -- this only
   repositions the HTML overlay chips. */
@media (max-width: 480px) {
  .landing-proof-overlay {
    max-width: calc(100% - 24px);
    padding: 5px 9px;
    font-size: 0.64rem;
    gap: 6px;
  }
  .landing-proof-overlay-a {
    left: 12px;
    right: auto;
    bottom: 46px;
  }
  .landing-proof-overlay-b {
    right: 12px;
    left: auto;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
