/* Murmur marketing site
 *
 * Values come from murmur/design-system/tokens.json (CLAUDE.md §17). Keep them
 * in sync with that file rather than inventing new ones — the app and this site
 * are the same brand and should never drift apart on a hex value.
 */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
/* Self-hosted and subsetted to latin. No third-party font request: a site whose
   privacy page promises no cross-site identifiers should not open one to load
   its own typeface. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --page: #faf7f2;
  --canvas: #f1eee9;
  --surface: #fffdfc;
  --navy: #06273a;
  --navy-raised: #0b334b;
  --navy-deep: #041e30;
  --navy-hairline: #123a53;
  --progress-track: #1c4761;
  /* Signal orange, untouched: fills, the play button, progress, and text on
     navy — every place it carries no small text on a light surface. */
  --orange: #ff5a1f;
  /* Text and icons on light surfaces. #ff5a1f reaches only 2.9:1 on ivory, so
     small orange type needs a darker member of the same hue to clear WCAG AA
     (CLAUDE.md §5.9). Never use this as a fill. */
  --orange-ink: #ca3500;
  /* Button fills carrying a 17px/600 white label, which is not "large text":
     the label needs 4.5:1, and the signal orange gives 3.1:1. */
  --orange-cta: #d93900;
  --orange-pressed: #b33000;
  /* Orange on the raised navy card, where the signal value lands at 4.2:1. */
  --orange-on-navy: #ff8a4c;
  --orange-tint: #fff0e8;
  --orange-tint-border: #f6dccb;
  --text: #0a1d36;
  --text-secondary: #16465f;
  /* design-system muted is #7a8997, which reaches only 3.1:1 on the canvas.
     This is the same hue walked down to 4.5:1 — every use of it here is text
     or a small mark, so the darker value is the correct one for the web. */
  --muted: #606e7b;
  --muted-on-navy: #7e93a3;
  --caption-prev: #8fa3b2;
  --hero-meta: #c9d6de;
  --border: #e9e3da;
  --divider: #e4dfd7;
  --line-hairline: #ede8e0;
  --focus: #2e7cf6;

  --radius-control: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-card: 24px;
  --radius-pill: 999px;

  --page-margin: 20px;
  --max: 1120px;
  --max-prose: 720px;

  --shadow-card: 0 8px 24px 0 #0a1d361a;
  --shadow-play: 0 8px 24px 0 #0a1d3633;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
    system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}

/* Focus is visible everywhere, and never removed. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-navy :focus-visible {
  outline-color: #8ab6ff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}
.prose {
  max-width: var(--max-prose);
}
section {
  padding-block: clamp(56px, 9vw, 104px);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fffdfc;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-control) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ── Type ──────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 14px;
}
/* On navy the signal value clears AA on its own, so the bands keep it. */
.band-navy .eyebrow,
.on-navy .eyebrow,
.brief-body .eyebrow {
  color: var(--orange);
}
.eyebrow.on-dark {
  color: var(--orange);
}
.eyebrow.quiet {
  color: var(--muted);
}

h1,
.h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 700;
}
h2,
.h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3,
.h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
  font-weight: 500;
}
.section-head {
  max-width: 660px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}
.section-head p {
  margin-top: 16px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
    transform 180ms var(--ease);
}
.btn-primary {
  background: var(--orange-cta);
  color: #fffdfc;
  box-shadow: var(--shadow-play);
}
.btn-primary:hover {
  background: var(--orange-pressed);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}
.btn-quiet:hover {
  background: var(--canvas);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  padding: 6px 4px;
}
.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Scoped to .nav-link, not `.site-nav a`. As `.site-nav a` this rule was
   (0,1,1) and outranked `.btn-primary` (0,1,0), so it silently repainted the
   header CTA in nav-link colours — #16465f on #d93900 is 2.19:1, well under
   the 4.5:1 AA floor — and took its padding, weight and pill radius with it.
   Every anchor in the nav is either .nav-link or .btn, so nothing is lost. */
.site-nav .nav-link {
  padding: 10px 14px;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}
.site-nav .nav-link:hover {
  background: var(--canvas);
  color: var(--text);
}
/* The CTA is a button that happens to sit in the nav: it keeps .btn-primary's
   own colour and pill shape, and is sized down for the header deliberately
   rather than by cascade accident. 44px keeps the touch target. */
.site-nav .btn {
  margin-left: 8px;
  min-height: 44px;
  padding: 11px 20px;
  font-size: 15px;
}
@media (max-width: 860px) {
  .site-nav .nav-link {
    display: none;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.hero p.lede {
  margin-top: 20px;
  max-width: 30em;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
/* The hero screenshot, framed like the drawn .phone it replaced. The app's own
   canvas is within a hair of this page's, so without the border and shadow the
   screen would bleed into the page and stop reading as a device. */
.hero-shot {
  display: block;
  width: 100%;
  max-width: 372px;
  height: auto;
  margin-inline: auto;
  border-radius: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
}

/* ── Waitlist form ─────────────────────────────────────────────────────── */
.waitlist {
  margin-top: 30px;
  max-width: 480px;
}
.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.waitlist input[type='email'] {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 52px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus. */
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.waitlist input[type='email']::placeholder {
  color: var(--muted);
}
.waitlist input[type='email']:hover {
  border-color: var(--divider);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.form-note a {
  color: var(--text-secondary);
}
.form-status {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  display: none;
}
.form-status.is-ok {
  display: block;
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-border);
  color: var(--text);
}
.form-status.is-error {
  display: block;
  background: var(--canvas);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.on-navy .waitlist label {
  color: var(--hero-meta);
}
.on-navy .waitlist input[type='email'] {
  background: var(--navy-raised);
  border-color: var(--navy-hairline);
  color: #fffdfc;
}
.on-navy .waitlist input[type='email']::placeholder {
  color: var(--muted-on-navy);
}
.on-navy .form-note {
  color: var(--muted-on-navy);
}
.on-navy .form-note a {
  color: var(--hero-meta);
}
.on-navy .form-status.is-ok {
  background: var(--navy-raised);
  border-color: var(--orange);
  color: #fffdfc;
}
.on-navy .form-status.is-error {
  background: var(--navy-raised);
  border-color: var(--navy-hairline);
  color: var(--hero-meta);
}

/* ── Platform badges ───────────────────────────────────────────────────── */
.platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  align-items: center;
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}
.platform svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.platform span.sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.platform.is-soon {
  background: transparent;
  color: var(--muted);
}
.on-navy .platform {
  background: var(--navy-raised);
  border-color: var(--navy-hairline);
  color: #fffdfc;
}
.on-navy .platform span.sub {
  color: var(--muted-on-navy);
}
.on-navy .platform.is-soon {
  background: transparent;
  color: var(--muted-on-navy);
}

/* ── Phone mockups ─────────────────────────────────────────────────────── */
/* Drawn in CSS rather than shipped as screenshots so the marketing art cannot
   drift from the product: no notification bell, no scrub thumb, one progress
   line (CLAUDE.md §5, §21). No device chrome — a rounded card, not a handset. */
.phone {
  width: 100%;
  max-width: 372px;
  margin-inline: auto;
  aspect-ratio: 393 / 780;
  border-radius: 34px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.phone-brief {
  padding: 26px 20px 20px;
  gap: 18px;
}
.phone-greeting {
  font-size: 26px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone-date {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.brief-card {
  position: relative;
  flex: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.brief-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brief-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 30, 48, 0) 0%,
    rgba(4, 30, 48, 0.34) 34%,
    rgba(4, 30, 48, 0.78) 66%,
    rgba(4, 30, 48, 0.94) 100%
  );
}
.brief-body {
  position: relative;
  padding: 20px 20px 26px;
  color: #fffdfc;
  text-align: left;
}
.brief-body .eyebrow {
  color: #fffdfc;
  opacity: 0.82;
  margin-bottom: 8px;
}
.brief-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.brief-meta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hero-meta);
}
.play {
  margin: 18px auto 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: var(--shadow-play);
  display: grid;
  place-items: center;
}
.play svg {
  width: 26px;
  height: 26px;
  fill: #fffdfc;
  margin-left: 4px;
}
.phone-footnote {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Player mockup */
.phone-player {
  background: var(--page);
  padding: 16px;
}
.player-card {
  flex: 1;
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 24px 20px 20px;
  color: #fffdfc;
  display: flex;
  flex-direction: column;
}
.player-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.player-title {
  margin-top: 10px;
  font-size: 27px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.player-rule {
  height: 1px;
  background: var(--navy-hairline);
  margin: 18px 0;
}
.caption-prev {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--caption-prev);
}
.caption-now {
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 600;
  color: #fffdfc;
}
.player-spacer {
  flex: 1;
  min-height: 12px;
}
.progress {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--progress-track);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 21%;
  background: var(--orange);
  border-radius: var(--radius-pill);
}
.times {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hero-meta);
}
.transport {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0a2e44;
  border: 1px solid var(--navy-hairline);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
}
.transport .speed,
.transport .vol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fffdfc;
}
.transport svg {
  width: 17px;
  height: 17px;
  stroke: #a9b7c2;
  fill: none;
  stroke-width: 1.7;
}
.vol-track {
  width: 54px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: #16465f;
  overflow: hidden;
}
.vol-track i {
  display: block;
  height: 100%;
  width: 62%;
  background: #fffdfc;
}
.pause {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.pause svg {
  width: 15px;
  height: 15px;
  stroke: none;
  fill: #fffdfc;
}
.prevnext {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--navy-hairline);
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 12px;
  align-items: start;
}
.prevnext .rule {
  background: var(--navy-hairline);
  align-self: stretch;
}
.pn-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.pn-title {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: #fffdfc;
}
.prevnext .next {
  text-align: right;
}

/* Bottom nav — three destinations, exactly as the app has. */
.tabbar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 8px;
}
.tabbar .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tabbar .tab.is-active {
  background: var(--orange-tint);
  color: var(--orange-ink);
}
.tabbar svg {
  flex: none;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

/* ── Ritual strip ──────────────────────────────────────────────────────── */
.band-navy {
  background: var(--navy);
  color: #fffdfc;
}
.band-navy .lede,
.band-navy .h2 + p {
  color: var(--hero-meta);
}
.band-navy h2,
.band-navy h3 {
  color: #fffdfc;
}
.band-canvas {
  background: var(--canvas);
}

.ritual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: 12px;
}
.ritual li {
  padding-top: 20px;
  border-top: 1px solid var(--navy-hairline);
}
.ritual .n {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.ritual h3 {
  margin-top: 10px;
}
.ritual p {
  margin-top: 8px;
  color: var(--hero-meta);
  font-size: 16px;
}
@media (max-width: 760px) {
  .ritual {
    grid-template-columns: 1fr;
  }
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.split.reverse .split-art {
  order: -1;
}
@media (max-width: 900px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  .split .split-art,
  .split.reverse .split-art {
    order: 0;
  }
}

.steps {
  display: grid;
  gap: 26px;
  margin-top: 32px;
}
.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.steps .n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-border);
  color: var(--orange-ink);
}
.band-navy .steps .n {
  background: var(--navy-raised);
  border-color: var(--navy-hairline);
  color: var(--orange-on-navy);
}
.steps h3 {
  font-size: 18px;
}
.steps p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 16px;
}
.band-navy .steps p {
  color: var(--hero-meta);
}

/* ── Feature cards ─────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-border);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange-ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ── Interests chips ───────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.chip {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}
.chip.is-on {
  background: rgba(255, 90, 31, 0.18);
  border-color: rgba(255, 90, 31, 0.55);
  color: var(--text);
}
.chip.is-on::before {
  content: '✓';
  color: var(--orange-ink);
  margin-right: 8px;
  font-weight: 700;
}

.length-scale {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px 24px;
  max-width: 460px;
}
.length-scale .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.length-scale .val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.length-scale .track {
  margin-top: 16px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--canvas);
  position: relative;
}
.length-scale .track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  /* The deeper orange again: the signal value reaches only 2.7:1 against the
     track on a light card, and a meter is a graphic that has to be seen. */
  background: var(--orange-cta);
  border-radius: var(--radius-pill);
}
.length-scale .ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Source cards ──────────────────────────────────────────────────────── */
.sources {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  max-width: 460px;
}
.source-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.source-row .tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  flex: none;
}
.source-row .name {
  font-size: 15px;
  font-weight: 600;
}
.source-row .domain {
  font-size: 13px;
  color: var(--muted);
}
.source-row .go {
  margin-left: auto;
  color: var(--muted);
}
.source-row .go svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ── Access / pricing ──────────────────────────────────────────────────── */
.access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.access .card {
  background: var(--navy-raised);
  border-color: var(--navy-hairline);
}
.access .card h3 {
  color: #fffdfc;
}
.access .card p {
  color: var(--hero-meta);
}
.access .card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-on-navy);
  margin-bottom: 12px;
}
.included {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 26px;
}
.included li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  color: var(--hero-meta);
}
.included li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange-on-navy);
  font-weight: 700;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq {
  max-width: 780px;
  margin-top: 8px;
  border-top: 1px solid var(--divider);
}
.faq details {
  border-bottom: 1px solid var(--divider);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq .answer {
  padding: 0 0 24px;
  color: var(--text-secondary);
  max-width: 66ch;
}
.faq .answer p + p {
  margin-top: 12px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: var(--hero-meta);
  padding-block: clamp(44px, 6vw, 64px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.site-footer .wordmark {
  color: #fffdfc;
}
.site-footer h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-navy);
  margin: 0 0 14px;
}
.site-footer ul {
  display: grid;
  gap: 10px;
}
.site-footer a {
  display: inline-block;
  padding: 4px 0;
  color: var(--hero-meta);
  text-decoration: none;
  font-size: 15px;
}
.site-footer a:hover {
  color: #fffdfc;
  text-decoration: underline;
}
.footer-blurb {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 34ch;
  color: var(--muted-on-navy);
}
.footer-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #123a53;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted-on-navy);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal {
  padding-block: clamp(44px, 6vw, 76px);
}
.legal-head {
  max-width: var(--max-prose);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 34px;
}
.legal-head h1 {
  font-size: clamp(32px, 4.6vw, 46px);
}
.legal-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.legal-summary {
  max-width: var(--max-prose);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  margin-bottom: 40px;
}
.legal-summary h2 {
  font-size: 18px;
  letter-spacing: 0;
}
.legal-summary ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.legal-summary li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  color: var(--text-secondary);
}
.legal-summary li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange-ink);
  font-weight: 700;
}
.legal-body {
  max-width: var(--max-prose);
}
.legal-body h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 44px;
  margin-bottom: 14px;
  scroll-margin-top: 88px;
}
.legal-body h3 {
  font-size: 17px;
  margin-top: 26px;
  margin-bottom: 8px;
}
.legal-body p,
.legal-body li {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}
.legal-body p + p {
  margin-top: 14px;
}
.legal-body ul.bullets {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.legal-body ul.bullets li {
  position: relative;
  padding-left: 22px;
}
.legal-body ul.bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.legal-body strong {
  color: var(--text);
  font-weight: 600;
}
.legal-body a {
  color: var(--text);
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}
.legal-table {
  margin-top: 18px;
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  overflow-x: auto;
  display: block;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
  line-height: 1.55;
}
.legal-table th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.legal-table tr:first-child th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
}
.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-border);
}
.callout p {
  color: var(--text) !important;
}
.toc {
  max-width: var(--max-prose);
  margin-bottom: 8px;
}
.toc ol {
  counter-reset: toc;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.toc a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Spacing utilities ─────────────────────────────────────────────────── */
/* A handful of these exist so no element needs a style attribute, which is
   what lets the Content-Security-Policy in `_headers` say style-src 'self'
   with no 'unsafe-inline' escape hatch. */
.mt-14 {
  margin-top: 14px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-18 {
  margin-top: 18px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-0 {
  margin-bottom: 0;
}

/* ── Length presets ────────────────────────────────────────────────────── */
.presets {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 10px;
}
.preset {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--page);
}
.preset.is-on {
  background: var(--orange-tint);
  border-color: var(--orange-tint-border);
}
.preset .mins {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  flex: none;
  min-width: 3.4em;
}
.preset .what {
  font-size: 14px;
  color: var(--muted);
}
.preset.is-on .what {
  color: var(--text-secondary);
}
.preset .tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-ink);
  flex: none;
}

/* ── Centred closing call to action ────────────────────────────────────── */
.cta-centre {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.cta-centre .waitlist {
  margin-inline: auto;
  text-align: left;
}

/* A paragraph that follows a list, callout or table needs the same separation
   a paragraph following a paragraph gets. */
.legal-body ul.bullets + p,
.legal-body .callout + p,
.legal-body .legal-table + p {
  margin-top: 14px;
}

/* ── Editions ──────────────────────────────────────────────────────────── */
.editions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.edition {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.edition .art {
  position: relative;
  aspect-ratio: 4 / 3;
}
.edition .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edition .body {
  padding: 22px 22px 26px;
  color: #fffdfc;
  flex: 1;
}
.edition .when {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.edition h3 {
  margin-top: 10px;
  color: #fffdfc;
}
.edition p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--hero-meta);
}
@media (max-width: 820px) {
  .editions {
    grid-template-columns: 1fr;
  }
  .edition .art {
    aspect-ratio: 16 / 7;
  }
}
