/* Coasted marketing site. Tokens from the Coasted design system (After Dark main look). */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Color: After Dark */
  --bg: #0b1416;
  --surface: #13201f;
  --ink: #f3ede3;
  --muted: #9aaaa8;
  --primary: #2dd4bf;
  --primary-deep: #5eead4;
  --accent: #f97066;
  --accent-soft: #e07a5f;
  --sun: #d69a3a;
  --on-primary: #0b1416;
  --on-accent: #0b1416;
  --on-horizon: #fdfbf7;
  --primary-tint: #12302e;
  --line: #243338;
  --line-strong: #5f7372;
  --gradient-horizon: linear-gradient(to top, #0e7470, #e07a5f);

  /* Sunlit Coast (light mode), for light samples on the brand page */
  --light-bg: #f7f1e6;
  --light-line: #e5ddd0;

  /* Type */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space, 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shape and depth */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px #00000066, 0 2px 8px #0000004d;
  --shadow-md: 0 2px 4px #00000066, 0 16px 40px -12px #000000b3;
  --focus-ring: 0 0 0 2px #0b1416, 0 0 0 4px #2dd4bf;

  /* Motion */
  --duration-quick: 200ms;
  --duration-settle: 400ms;
  --duration-glide: 1600ms;
  --ease-cruise: cubic-bezier(0.22, 1, 0.36, 1);

  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--duration-quick) var(--ease-cruise); }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
/* display-xl */
h1 { font-size: 64px; line-height: 68px; letter-spacing: -0.02em; }
/* display-lg */
h2 { font-size: 44px; line-height: 50px; letter-spacing: -0.015em; }
/* title */
h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-6); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-full); z-index: 100; }
.skip:focus { left: 8px; }

.lead { font-size: 20px; line-height: 32px; color: var(--muted); }
.caption { font-size: 13px; line-height: 20px; color: var(--muted); }

/* Small sentence-case kicker above a headline */
.kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 15px; line-height: 20px; font-weight: 500;
  color: var(--primary); margin-bottom: var(--space-4);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em;
  padding: var(--space-1) 10px; border-radius: var(--radius-full);
}
.badge--primary { background: var(--primary-tint); color: var(--primary); }
.badge--accent { background: var(--accent); color: var(--on-accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 var(--space-6);
  font: 500 15px/20px var(--font-sans);
  border-radius: var(--radius-full); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--duration-quick) var(--ease-cruise), border-color var(--duration-quick) var(--ease-cruise), color var(--duration-quick) var(--ease-cruise), transform var(--duration-quick) var(--ease-cruise);
}
.btn:active { transform: scale(0.98); }
.btn--lg { height: 52px; padding: 0 var(--space-8); font-size: 16px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover, .btn--primary:active { background: var(--primary-deep); color: var(--on-primary); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--quiet { background: transparent; color: var(--primary); padding: 0 var(--space-3); }
.btn--quiet:hover { background: var(--primary-tint); }
.btn--full { width: 100%; }
.btn:focus-visible { border-radius: var(--radius-full); }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }

/* Wordmark: horizon + tilde, Young Serif (from the logo canvas) */
.wm {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-display); font-weight: 400; line-height: 1.5; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wm:hover { color: var(--ink); }
.wm__word { display: inline-flex; align-items: baseline; position: relative; overflow: hidden; padding: 0 0.1em; }
.wm__o { display: inline-block; width: 0.574em; height: 0.5em; margin-right: -0.01em; }
.wm__o > span { display: block; position: relative; width: 100%; height: 100%; }
.wm__sun { position: absolute; left: 50%; bottom: 0; width: 0.5em; height: 0.5em; transform: translateX(-50%); }
.wm__line { display: block; position: absolute; left: 0; width: 100%; height: 0.14em; margin-top: -0.04em; overflow: visible; }
.wm__tilde { width: 0.56em; height: 0.32em; margin-left: 0.05em; position: relative; top: -0.1em; overflow: visible; flex: none; }
.wm--nav { font-size: 34px; }
.wm--footer { font-size: 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 22, 0.8);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-settle) var(--ease-cruise);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: var(--space-6); }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--primary); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: var(--space-16) 0 112px; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center; }
.hero h1 { margin-bottom: var(--space-6); }
.hero .lead { max-width: 30ch; margin-bottom: var(--space-8); }
.hero__actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.hero__note { margin: 0; }

.hero__visual { position: relative; display: flex; justify-content: center; padding: var(--space-12) 0 var(--space-8); }
/* The horizon: big and soft, behind the phone, no text over it */
.hero__visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px;
  transform: translate(-50%, -48%); border-radius: 50%;
  background: var(--gradient-horizon); opacity: 0.55; filter: blur(70px);
  pointer-events: none;
}
.phone {
  position: relative; width: 320px; padding: 10px; border-radius: 48px;
  background: #050a0b; box-shadow: var(--shadow-md), inset 0 0 0 1.5px var(--line);
}
.phone__screen { background: var(--bg); border-radius: 38px; overflow: hidden; padding: 40px var(--space-4) var(--space-4); }
.phone__app { display: flex; align-items: center; gap: var(--space-2); margin: -10px 0 var(--space-4); font-size: 16px; line-height: 20px; font-weight: 600; }
.phone__app img { width: 34px; height: 34px; border-radius: 22.37%; box-shadow: 0 0 0 1px var(--line); }
.phone__title { font-family: var(--font-display); font-size: 22px; line-height: 28px; margin: 0 0 var(--space-3); }

/* PostReview (design-system component) */
.post { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.post__media { position: relative; aspect-ratio: 4 / 5; background: var(--line); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__dots { position: absolute; left: 0; right: 0; bottom: var(--space-3); display: flex; justify-content: center; gap: 6px; }
.post__dots i { width: 6px; height: 6px; border-radius: var(--radius-full); background: #fdfbf799; }
.post__dots i.on { background: #fdfbf7; }
.post__body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.post__meta { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.post__caption { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink); }
.post__actions { display: flex; gap: var(--space-2); margin-top: var(--space-1); }
.post__actions .btn { flex: 1; height: 38px; padding: 0 var(--space-3); font-size: 14px; }

.prompt-chip {
  position: absolute; z-index: 2; top: 210px; left: -40px; max-width: 250px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-md);
  font-size: 15px; line-height: 22px;
}
.prompt-chip .caption { display: block; margin-bottom: 2px; }
.ready-chip { position: absolute; z-index: 2; right: -20px; bottom: 0; box-shadow: var(--shadow-md); padding: 8px 14px; font-size: 13px; line-height: 18px; }

/* Sections */
.section { padding: 112px 0; }
.section--surface { background: var(--surface); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto var(--space-12); }
.section__head .lead { margin: 0; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.step { background: var(--bg); border-radius: var(--radius-md); padding: var(--space-8) var(--space-6) var(--space-6); box-shadow: var(--shadow-sm); }
.step p { color: var(--muted); margin: 0; }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-6);
  border-radius: var(--radius-full); background: var(--primary-tint); color: var(--primary);
  font-family: var(--font-display); font-size: 20px; line-height: 1;
}

/* Camera roll */
.roll__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.roll__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); background: var(--surface); padding: var(--space-3); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.tile { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-settle) var(--ease-cruise); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tile:not(.is-selected) img { opacity: 0.5; }
.tile.is-selected { transform: scale(0.97); }
.tile.is-selected::after { box-shadow: inset 0 0 0 3px var(--primary); }
.tile__check {
  position: absolute; top: var(--space-2); right: var(--space-2); z-index: 1;
  width: 24px; height: 24px; border-radius: var(--radius-full);
  display: grid; place-items: center; border: 2px solid #fdfbf7; background: #1d2b2f33; color: var(--on-primary);
}
.tile.is-selected .tile__check { background: var(--primary); border-color: var(--primary); }
.roll__copy p:not(.kicker) { color: var(--muted); }
.checks { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.checks li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; }
.checks svg { flex: none; width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--primary-tint); color: var(--primary); padding: 6px; }

/* Band */
.band { position: relative; height: clamp(380px, 52vw, 620px); overflow: hidden; }
.band__img { width: 100%; height: 100%; object-fit: cover; }
.band__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(11, 20, 22, 0) 30%, rgba(11, 20, 22, 0.75) 100%); }
.band__line { max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--space-6) var(--space-12); font-family: var(--font-display); font-size: 44px; line-height: 50px; letter-spacing: -0.015em; color: var(--on-horizon); }

/* Who it's for */
.who__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); max-width: 980px; margin: 0 auto; }
.who__card { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.who__card .badge { margin-bottom: var(--space-4); }
.who__card p { color: var(--muted); margin: 0; }

/* Story */
.story__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.story__copy p:not(.kicker) { color: var(--muted); }
.story__sign { font-family: var(--font-display); font-size: 22px; line-height: 28px; color: var(--ink) !important; margin-top: var(--space-6); }
.story__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.story__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Beta */
.beta { position: relative; padding: 112px 0; overflow: hidden; }
.beta::before {
  content: ""; position: absolute; left: 50%; bottom: -380px; width: 1100px; height: 700px; transform: translateX(-50%);
  border-radius: 50%; background: var(--gradient-horizon); opacity: 0.35; filter: blur(90px); pointer-events: none;
}
.beta__inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16); align-items: start; }
.beta__head { padding-top: var(--space-6); }
.beta__head .lead { max-width: 32ch; }
.beta__perks { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.beta__perks li { display: flex; align-items: center; gap: var(--space-3); }
.beta__perks svg { flex: none; width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--primary-tint); color: var(--primary); padding: 6px; }
.beta__card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-md); }

/* Form */
.form { display: grid; gap: var(--space-6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; line-height: 20px; font-weight: 500; padding: 0; }
fieldset.field legend { margin-bottom: var(--space-3); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"] {
  width: 100%; height: 48px; font: 400 16px/26px var(--font-sans); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 0 var(--space-4);
  transition: border-color var(--duration-quick) var(--ease-cruise), box-shadow var(--duration-quick) var(--ease-cruise);
}
input::placeholder { color: var(--muted); opacity: 1; }
input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
input[aria-invalid="true"] { border-color: var(--accent); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-prefix input { padding-left: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--radius-full);
  background: var(--bg); border: 1px solid var(--line-strong); font-size: 15px; line-height: 20px; font-weight: 500;
  transition: background-color var(--duration-quick) var(--ease-cruise), border-color var(--duration-quick) var(--ease-cruise), color var(--duration-quick) var(--ease-cruise);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }
.chip input:focus-visible + span { box-shadow: var(--focus-ring); }
fieldset[aria-invalid="true"] .chip span { border-color: var(--accent); }

.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: rgba(249, 112, 102, 0.12); color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 500; }

.form__done { text-align: center; padding: var(--space-6) var(--space-2); }
.form__done:focus { outline: none; box-shadow: none; }
.form__done-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-6); border-radius: var(--radius-full); background: var(--primary); color: var(--on-primary); }
.form__done-mark svg { width: 28px; height: 28px; }
.form__done p { color: var(--muted); max-width: 34ch; margin: 0 auto var(--space-6); }

/* Footer */
.footer { padding: var(--space-12) 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; gap: var(--space-6) var(--space-8); flex-wrap: wrap; }
.footer__tag { margin: 0; color: var(--muted); font-size: 15px; line-height: 20px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-left: auto; }
.footer__links > * { white-space: nowrap; }
.footer__links a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500; }
.footer__links a:hover { color: var(--primary); }
.footer__copy { margin: 0; }

/* Legal page */
.legal { padding: var(--space-16) 0 112px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 28px; line-height: 34px; margin-top: var(--space-12); }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: var(--space-2); }

/* Reveal motion: slow ease-out, fades only when motion is reduced */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--duration-glide) var(--ease-cruise), transform var(--duration-glide) var(--ease-cruise); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity var(--duration-settle) linear; }
  .btn, .tile img, .chip span { transition: none; }
  .cookie-bar { transform: none; transition: opacity var(--duration-settle) linear; }
}

/* Cookie choice banner */
.cookie-bar {
  position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 60;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4); padding-left: var(--space-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--duration-settle) var(--ease-cruise), transform var(--duration-settle) var(--ease-cruise);
}
.cookie-bar.is-in { opacity: 1; transform: none; }
.cookie-bar__text { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.cookie-bar__text a { color: var(--ink); }
.cookie-bar__text a:hover { color: var(--primary); }
.cookie-bar__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.cookie-bar__actions .btn { height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.footer__links button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: 500 15px/20px var(--font-sans); }
.footer__links button:hover { color: var(--primary); }

/* Brand page */
.bhero { position: relative; overflow: hidden; padding: var(--space-16) 0 96px; }
.bhero__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); align-items: center; }
.bhero h1 { margin-bottom: var(--space-6); }
.bhero .lead { max-width: 36ch; margin-bottom: var(--space-8); }
.bhero__jump { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bhero__jump a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--radius-full);
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500;
  transition: border-color var(--duration-quick) var(--ease-cruise), color var(--duration-quick) var(--ease-cruise);
}
.bhero__jump a:hover { border-color: var(--primary); color: var(--primary); }
.bhero__visual { position: relative; display: flex; justify-content: center; padding: var(--space-12) 0; }
.bhero__visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--gradient-horizon); opacity: 0.5; filter: blur(70px); pointer-events: none;
}
.bhero__icon { position: relative; width: 200px; height: 200px; border-radius: 22.37%; box-shadow: var(--shadow-md), 0 0 0 1px var(--line); }

.bstory { max-width: 720px; text-align: center; }
.bstory p:not(.kicker):not(.lead):not(.caption) { color: var(--muted); }
.bstory .lead { color: var(--ink); }
.bstory__line { font-family: var(--font-display); font-size: 28px; line-height: 34px; letter-spacing: -0.01em; color: var(--ink) !important; margin: var(--space-8) 0 var(--space-2); text-wrap: balance; }

.logos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.logo-tile { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.logo-tile--wide { grid-column: 1 / -1; }
.logo-tile__stage { flex: 1; display: grid; place-items: center; min-height: 240px; padding: var(--space-12) var(--space-8); background: var(--bg); }
.logo-tile--wide .logo-tile__stage { min-height: 320px; }
.logo-tile--light .logo-tile__stage { background: var(--light-bg); }
.logo-tile__stage img { width: min(100%, 420px); }
.logo-tile--wide .logo-tile__stage img { width: min(100%, 560px); }
.logo-tile__stage .logo-tile__icon { width: 120px; height: 120px; border-radius: 22.37%; box-shadow: 0 0 0 1px var(--line); }
.logo-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); }
.logo-tile figcaption > span:first-child { display: grid; }
.logo-tile figcaption strong { font-size: 15px; line-height: 20px; font-weight: 500; }
.logo-tile figcaption .btn { height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.logo-tile__links { display: flex; gap: var(--space-2); }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-12); }
.rules__col { padding: var(--space-8); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.rules__col .checks { margin-top: var(--space-6); }
.nopes { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.nopes li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; color: var(--muted); }
.nopes li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: var(--radius-full);
  background: var(--line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%239aaaa8' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.palette__name { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-8) 0 var(--space-4); }
.palette__name:first-of-type { margin-top: 0; }
.badge--quiet { background: var(--bg); color: var(--muted); }
.palette__name .badge { font-family: var(--font-sans); }
.palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.palette li { display: flex; }
.swatch {
  width: 100%; display: grid; grid-template-rows: auto auto auto 1fr; gap: 2px; text-align: left; padding: 0 0 var(--space-4); cursor: pointer;
  background: var(--bg); color: var(--ink); border: 0; border-radius: var(--radius-md); overflow: hidden;
  font: 400 15px/20px var(--font-sans); box-shadow: var(--shadow-sm);
  transition: transform var(--duration-quick) var(--ease-cruise);
}
.swatch:hover { transform: translateY(-2px); }
.swatch:focus-visible { border-radius: var(--radius-md); }
.swatch__chip { display: block; aspect-ratio: 4 / 3; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: var(--space-3); }
.swatch__name, .swatch__hex, .swatch__use { padding: 0 var(--space-4); }
.swatch__name { font-weight: 500; }
.swatch__hex { font-size: 13px; line-height: 20px; color: var(--primary); font-variant-numeric: tabular-nums; }
.swatch.is-copied .swatch__hex::after { content: " copied"; }
.palette__status { min-height: 20px; margin: var(--space-4) 0 0; }

/* Text sits low, on the Atlantic end of the gradient */
.horizon { background: var(--gradient-horizon); padding: 260px 0 var(--space-8); }
.horizon__inner { max-width: 760px; }
.horizon__label { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--on-horizon); margin-bottom: var(--space-3); }
.horizon__line { font-family: var(--font-display); font-size: 44px; line-height: 50px; letter-spacing: -0.015em; color: var(--on-horizon); margin-bottom: var(--space-4); }
.horizon__hex { margin: 0; font-size: 13px; line-height: 20px; color: var(--on-horizon); }

.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.font-card { padding: var(--space-8); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.font-card__aa { font-size: 120px; line-height: 1; margin: 0 0 var(--space-6); color: var(--primary); }
.font-card__aa--serif { font-family: var(--font-display); }
.font-card .caption { margin-bottom: var(--space-6); }
.font-card__sample { margin: 0; padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 20px; line-height: 32px; }
.font-card__sample--serif { font-family: var(--font-display); font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.fonts__note { text-align: center; margin: var(--space-6) 0 0; }

.voice__top { text-align: center; margin-bottom: var(--space-12); }
.voice__tag { font-family: var(--font-display); font-size: 64px; line-height: 68px; letter-spacing: -0.02em; margin-bottom: var(--space-3); text-wrap: balance; }
.voice__att { font-family: var(--font-display); font-size: 28px; line-height: 34px; color: var(--accent); margin-bottom: var(--space-4); }
.traits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 var(--space-12); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.traits > div { padding: var(--space-6); }
.traits > div + div { border-left: 1px solid var(--line); }
.traits dt { font-family: var(--font-display); font-size: 22px; line-height: 28px; margin-bottom: var(--space-2); }
.traits dd { margin: 0; color: var(--muted); }
.words { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); max-width: 980px; margin: 0 auto; }
.words h3 { font-size: 22px; line-height: 28px; }
.words__list { color: var(--primary); font-size: 18px; line-height: 30px; margin: 0; }
.words__rules { margin: 0; padding-left: 1.2em; color: var(--muted); }
.words__rules li { margin-bottom: var(--space-2); }

.imagery { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.imagery__copy .lead { margin-bottom: 0; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 200px); gap: var(--space-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.mosaic img:first-child { grid-row: span 2; }

.press__inner { position: relative; text-align: center; max-width: 680px; }
.press .lead { margin-bottom: var(--space-8); }
.press__actions { display: flex; justify-content: center; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

@media (max-width: 960px) {
  .bhero__inner, .imagery { grid-template-columns: 1fr; gap: var(--space-8); }
  .bhero__copy { text-align: center; }
  .bhero .lead { margin-left: auto; margin-right: auto; }
  .bhero__jump { justify-content: center; }
  .bhero__visual { padding: var(--space-6) 0; }
  .palette { grid-template-columns: repeat(3, 1fr); }
  .traits { grid-template-columns: 1fr 1fr; }
  .traits > div:nth-child(3) { border-left: 0; }
  .traits > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .bhero { padding: var(--space-8) 0 var(--space-12); }
  .bhero__icon { width: 140px; height: 140px; }
  .logos, .rules, .fonts, .words { grid-template-columns: 1fr; }
  .logo-tile__stage, .logo-tile--wide .logo-tile__stage { min-height: 180px; padding: var(--space-8) var(--space-6); }
  .logo-tile figcaption { padding: var(--space-4); }
  .rules__col, .font-card { padding: var(--space-6); }
  .palette { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .horizon { padding: 180px 0 var(--space-8); }
  .horizon__line { font-size: 34px; line-height: 40px; }
  .font-card__aa { font-size: 88px; }
  .voice__tag { font-size: 44px; line-height: 50px; }
  .voice__att { font-size: 22px; line-height: 28px; }
  .traits { grid-template-columns: 1fr; }
  .traits > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .mosaic { grid-template-rows: repeat(2, 130px); gap: var(--space-2); }
  .words { gap: var(--space-8); }
}

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: var(--space-8) 0 var(--space-16); }
  .hero__inner, .roll__inner, .story__inner, .beta__inner { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero__copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .who__cards { grid-template-columns: 1fr; max-width: 560px; }
  .roll__grid { max-width: 520px; margin: 0 auto; }
  .story__photo { max-width: 460px; margin: 0 auto; }
  .beta__head { padding-top: 0; }
  .section, .beta { padding: 88px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-4); }
  h1 { font-size: 44px; line-height: 50px; }
  h2, .band__line { font-size: 34px; line-height: 40px; }
  .nav__links a:not(.btn) { display: none; }
  .nav__inner { height: 64px; }
  .wm--nav { font-size: 28px; }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .phone { width: 280px; border-radius: 42px; }
  .phone__screen { border-radius: 33px; }
  .prompt-chip { top: 190px; left: -8px; max-width: 210px; }
  .ready-chip { right: 0; }
  .section, .beta { padding: var(--space-16) 0; }
  .form__row { grid-template-columns: 1fr; }
  .beta__card { padding: var(--space-6) var(--space-4); }
  .who__card { padding: var(--space-6); }
  .footer__links { margin-left: 0; }
  .cookie-bar { flex-direction: column; align-items: stretch; padding: var(--space-4); }
  .cookie-bar__actions .btn { flex: 1; }
}
