/* Coado marketing — homepage + privacy
   Color tokens: website/tokens.css (codegen from Figma). */

@import url("tokens.css");

:root {
  /* App-only roast (not a Figma semantic) */
  --roast: #8A3B18;

  /* Space scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* Shape */
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-xl: 44px;
  --r-control: 16px; /* CoadoRadius.r400 — default controls */
  /* Sticky nav clearance — desktop bar height; mobile overrides in @media */
  --nav-bar-h: 74px;
  --btn-h: 44px;     /* CoadoButton / CoadoTokens.buttonHeight */

  /* Layout */
  --wrap: 1200px;
  --measure: 620px;
  --gutter: 28px;

  --shadow-soft: 0 18px 40px -24px rgba(8, 8, 8, 0.35);
  --shadow-device: 0 40px 80px -32px rgba(8, 8, 8, 0.55);
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel_grotezk/ApfelGrotezk-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel_grotezk/ApfelGrotezk-Mittel.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel_grotezk/ApfelGrotezk-Brukt.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel_grotezk/ApfelGrotezk-Fett.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("assets/fonts/apfel_grotezk/ApfelGrotezk-Satt.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PhosphorRegular";
  src: url("assets/fonts/Phosphor-Regular.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}

.icon {
  font-family: "PhosphorRegular";
  font-style: normal;
  line-height: 1;
  display: inline-block;
}
.icon-coffee::before { content: "\e1c2"; }
.icon-drop::before { content: "\e210"; }
.icon-magnifyingglass::before { content: "\e30c"; }
.icon-lightbulb::before { content: "\e2dc"; }
.icon-calendar::before { content: "\e10a"; }
.icon-star::before { content: "\e46a"; }
.icon-timer::before { content: "\e492"; }
.icon-scales::before { content: "\e750"; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* No overflow-x here: it would turn body into a scroll container and break
   the view-timeline measurements Motion relies on. Bands use width:100%. */
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; display: block; }
/* Keep HTML width/height attrs for CLS without locking painted height */
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow { max-width: 860px; }

/* Edge-to-edge band. Uses 100% (not 100vw) so the scrollbar can't
   push the page into horizontal scroll. Only valid outside .wrap. */
.full-bleed {
  position: relative;
  width: 100%;
  margin-inline: 0;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}

h1, .display-xl { font-weight: 900; }
.display-xl { font-size: clamp(44px, 7.5vw, 92px); }
.display-lg { font-size: clamp(34px, 5vw, 60px); line-height: 1; }
.display-md { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.02; }

h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.1; }
h4 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }

.lede {
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Buttons (match CoadoButton: 44×16) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  box-sizing: border-box;
  height: var(--btn-h);
  padding: 0 var(--s4);
  border-radius: var(--r-control);
  font-family: "Satoshi", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

/* Motion drives the spring on transform, so keep CSS off that property. */
.motion-page .btn { transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.motion-page .btn:hover,
.motion-page .btn:active { transform: none; }

.btn-primary { background: var(--surface-primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--surface-primary) 88%, #000); }

.btn-secondary { background: var(--surface-secondary); color: var(--on-secondary); }
.btn-secondary:hover { background: color-mix(in srgb, var(--surface-secondary) 88%, #000); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--rule-strong);
}
.btn-outline:hover { border-color: var(--text); }

/* Official Apple App Store badge — do not restyle as a .btn */
.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
}
.store-badge img {
  height: 40px;
  width: auto;
  max-width: none;
}
.store-badge:focus-visible {
  border-radius: 8px;
}

/* Quiet underlined inline link */
.link-quiet {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--rule-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-quiet:hover { color: var(--brand); border-color: var(--brand); }

.on-dark .link-quiet,
.link-quiet.on-dark {
  color: var(--on-dark);
  border-color: var(--rule-dark);
}
.on-dark .link-quiet:hover,
.link-quiet.on-dark:hover { color: var(--peach); border-color: var(--peach); }

.text-link {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1.5px solid rgba(211, 81, 17, 0.35);
  transition: border-color 0.18s ease;
}
.text-link:hover { border-color: var(--brand); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 243, 226, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap,
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  height: 74px;
  position: relative;
}
.nav-menu-slot {
  display: none;
  width: var(--pill-btn-w, 104px);
  flex-shrink: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* brand clear space: x/2 around the lockup */
  padding: 8px 0;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links,
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: var(--s6);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar,
.nav-links-desktop::-webkit-scrollbar { display: none; }
.nav-links a,
.nav-links-desktop a { white-space: nowrap; transition: color 0.18s ease; }
.nav-links a:hover,
.nav-links-desktop a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }

/* ---------- Expanding pill menu (mobile) ---------- */
:root {
  --ease-spring: linear(
    0, .0014, .0055 1.03%, .0239, .053 3.44%, .0961 4.81%,
    .1957 7.39%, .4354 12.88%, .5484, .6494, .7362, .8083 23.88%,
    .8696, .9168 29.72%, .9368, .9536 32.81%, .9793 35.9%,
    .997 39.17%, 1.0084 42.77%, 1.0142 47.07%, 1.0144 53.43%,
    1.0054 68.37%, 1.0019 77.3%, .9998 99.98%
  );
  --pill-edge: 16px;
  --pill-btn-h: var(--btn-h); /* match CoadoButton / .btn */
  --pill-btn-w: 104px;
  --pill-panel-w: min(420px, calc(100% - 32px));
  --pill-bg: var(--dark);
  --pill-fg: var(--on-dark);
}

.pill-nav-bg,
.pill-nav-panel,
.pill-nav-overlay {
  display: none;
}

html.pill-nav-open {
  overflow: hidden;
}

.lang-switcher-wrap {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 5;
}
.lang-switcher-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--btn-h);
  max-width: 12.5rem;
  padding: 0 14px;
  border: 1px solid rgba(255, 243, 226, 0.16);
  border-radius: 999px;
  background: rgba(255, 243, 226, 0.08);
  color: var(--on-dark);
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.lang-switcher-trigger:hover {
  background: rgba(255, 243, 226, 0.14);
  border-color: rgba(255, 243, 226, 0.28);
}
.lang-switcher-wrap.is-open .lang-switcher-trigger {
  background: rgba(255, 243, 226, 0.16);
  border-color: rgba(255, 243, 226, 0.32);
}
.lang-switcher-globe,
.lang-switcher-chevron {
  flex-shrink: 0;
  opacity: 0.85;
}
.lang-switcher-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-switcher-wrap.is-open .lang-switcher-chevron {
  transform: rotate(180deg);
}
.lang-switcher-chevron {
  transition: transform 0.2s ease;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--r-control);
  border: 1px solid rgba(255, 243, 226, 0.12);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  z-index: 80;
}
.lang-switcher-menu[hidden] { display: none; }
.lang-switcher-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
  background: rgba(255, 243, 226, 0.1);
  outline: none;
}
.lang-switcher-option.is-selected {
  background: rgba(249, 77, 45, 0.16);
  color: var(--on-dark);
  font-weight: 600;
}
.lang-switcher-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-switcher-option.is-selected .lang-switcher-check { opacity: 1; }

/* Light surfaces (privacy nav, closing waitlist) */
.nav:not(.on-dark) .lang-switcher-trigger,
.site-close .lang-switcher-trigger,
footer:not(.on-dark) .lang-switcher-trigger {
  background: rgba(8, 8, 8, 0.06);
  color: var(--text);
  border-color: rgba(8, 8, 8, 0.12);
}
.nav:not(.on-dark) .lang-switcher-trigger:hover,
.site-close .lang-switcher-trigger:hover,
footer:not(.on-dark) .lang-switcher-trigger:hover,
.nav:not(.on-dark) .lang-switcher-wrap.is-open .lang-switcher-trigger,
.site-close .lang-switcher-wrap.is-open .lang-switcher-trigger {
  background: rgba(8, 8, 8, 0.1);
  border-color: rgba(8, 8, 8, 0.18);
}
.nav:not(.on-dark) .lang-switcher-menu,
.site-close .lang-switcher-menu,
footer:not(.on-dark) .lang-switcher-menu {
  background: rgba(255, 243, 226, 0.96);
  border-color: rgba(8, 8, 8), 0.1);
  box-shadow: 0 18px 40px -20px rgba(8, 8, 8), 0.35);
}
.nav:not(.on-dark) .lang-switcher-option,
.site-close .lang-switcher-option,
footer:not(.on-dark) .lang-switcher-option {
  color: var(--text);
}
.nav:not(.on-dark) .lang-switcher-option:hover,
.site-close .lang-switcher-option:hover,
footer:not(.on-dark) .lang-switcher-option:hover {
  background: rgba(8, 8, 8), 0.06);
}
.nav:not(.on-dark) .lang-switcher-option.is-selected,
.site-close .lang-switcher-option.is-selected,
footer:not(.on-dark) .lang-switcher-option.is-selected {
  background: rgba(249, 77, 45, 0.12);
}

/* Open upward in the closing footer so the menu stays on-screen */
.site-close .lang-switcher-menu,
footer .lang-switcher-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.nav.on-dark {
  background: rgba(8, 8, 8, 0.72);
  border-bottom-color: var(--rule-dark);
}
/* Bare over the hero; frosted glass once the page has moved. */
.motion-page .nav {
  transition: background 0.35s ease, border-color 0.35s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.motion-page .nav.on-dark:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.motion-page .nav.is-scrolled {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.motion-page .nav.on-dark.is-scrolled {
  background: rgba(8, 8, 8, 0.72);
  border-bottom-color: var(--rule-dark);
}
.motion-page .nav:not(.on-dark).is-scrolled {
  background: rgba(255, 243, 226, 0.72);
}
.nav.on-dark .nav-links,
.nav.on-dark .nav-links-desktop { color: var(--on-dark-soft); }
.nav.on-dark .nav-links a:hover,
.nav.on-dark .nav-links-desktop a:hover { color: var(--peach); }
.nav.on-dark .btn-primary,
.t-hero .btn-primary {
  background: var(--surface-primary-on-dark);
  color: var(--on-primary-on-dark);
}
.nav.on-dark .btn-primary:hover,
.t-hero .btn-primary:hover {
  background: color-mix(in srgb, var(--surface-primary-on-dark) 88%, #000);
}
.nav.on-dark .btn-secondary,
.t-hero .btn-secondary {
  background: var(--surface-secondary-on-dark);
  color: var(--on-secondary-on-dark);
}
.nav.on-dark .btn-secondary:hover,
.t-hero .btn-secondary:hover {
  background: color-mix(in srgb, var(--surface-secondary-on-dark) 88%, #000);
}

/* ---------- Sections ---------- */
.section { padding: var(--s10) 0; }
.section-tight { padding: var(--s8) 0; }
.section-head {
  max-width: var(--measure);
  margin: 0 auto var(--s8);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: var(--s3); }
.section-head h2 { margin-bottom: var(--s4); }

/* ---------- Device frame ---------- */
.device {
  --bezel: 9px;
  margin: 0;
  padding: var(--bezel);
  background: linear-gradient(160deg, #2d2b28, #100f0e);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-device);
  width: 100%;
  max-width: 300px;
}
.device img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--r-xl) - var(--bezel));
  background: var(--cream);
}
.device-sm { max-width: 232px; --bezel: 7px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.marquee-track picture {
  display: block;
  flex-shrink: 0;
  height: clamp(230px, 26vw, 400px);
}
.marquee-track picture img,
.marquee-track > img {
  height: 100%;
  width: auto;
  display: block;
}
.marquee-track > img {
  height: clamp(230px, 26vw, 400px);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Reveal ----------
   Hidden states are scoped to .js-motion, which an inline script sets and
   js/motion.js removes if it can't load. Without JS the page renders whole. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }

/* Groups whose children are staggered in by Motion */
.js-motion [data-stagger] > * { opacity: 0; }

/* Scroll-linked wash behind the content, one per light band. Promoted once so
   the opacity ramp stays on the compositor. */
.page-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.page-wash[data-wash="plus"] { background-color: #2b2724; }

/* ---------- Interpolated scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: start;
}
.compare-col {
  padding: var(--s7) var(--s6) var(--s6);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
}
.compare-col.free,
.compare-col.plus { background: var(--surface); }
.compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-bottom: var(--s4);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--rule);
}
.compare-head h3 { font-size: 24px; }
.compare-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--text);
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
}
.compare-list li {
  display: flex;
  gap: var(--s3);
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--rule);
}
.compare-list li:last-child { border-bottom: 0; }
.compare-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- FAQ ---------- */
.t-faq {
  background: var(--cream);
  color: var(--text);
}
.t-faq-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.t-faq-head h2 {
  color: var(--text);
  margin-bottom: var(--s5);
}
.t-faq-head .lede {
  color: var(--text-subtle);
  font-size: 16px;
  margin: 0 auto;
  max-width: 42ch;
}
.faq {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.faq-item[open] .faq-icon { background: var(--brand-deep); }
.faq-panel {
  overflow: hidden;
}
.faq-item p {
  margin: 0 0 28px;
  padding-right: 3.5em;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ---------- Homepage closing band (waitlist + footer) ---------- */
.site-close {
  background: var(--brand);
  color: var(--text);
  padding: var(--s10) 0;
}
.site-close-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
}
.site-close-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.55fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.site-close-cta {
  text-align: left;
  max-width: 560px;
}
.site-close-cta .eyebrow {
  color: rgba(8, 8, 8), 0.62);
  margin-bottom: var(--s3);
}
.site-close-cta h2 {
  color: var(--text);
  max-width: 18ch;
  margin: 0 0 var(--s4);
}
.site-close-cta p {
  color: rgba(8, 8, 8), 0.72);
  max-width: 42ch;
  margin: 0 0 var(--s6);
  font-size: 16px;
}
.site-close-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(8, 8, 8), 0.78);
}
.site-close-nav a:hover { color: var(--text); }
.site-close-mark {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}
.site-close-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: rgba(8, 8, 8), 0.55);
}
.site-close-meta-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

.social-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}
.social-links a:not(.social-bmc) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: inherit;
  opacity: 0.85;
}
.social-links a:not(.social-bmc):hover {
  opacity: 1;
}
.social-links a:not(.social-bmc)::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: var(--social-icon) center / contain no-repeat;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
}
.social-links a[data-network="instagram"] {
  --social-icon: url(/assets/icons/instagram.svg);
}
.social-links a[data-network="discord"] {
  --social-icon: url(/assets/icons/discord.svg);
}
.social-bmc {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: max-content;
  height: 32px;
  padding: 0 12px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: inherit;
  opacity: 0.85;
}
.social-bmc:hover { opacity: 1; }
footer:not(.site-close) .social-links a:not(.social-bmc):hover,
footer:not(.site-close) .social-bmc:hover { color: var(--brand); }
.site-close .social-links a:not(.social-bmc):hover,
.site-close .social-bmc:hover { color: var(--text); }

.beta-form { max-width: 470px; margin: 0; }
.beta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.beta-input {
  flex: 1 1 auto;
  min-width: 220px;
  box-sizing: border-box;
  height: var(--btn-h);
  padding: 0 var(--s4);
  border-radius: var(--r-control);
  border: none;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: var(--btn-h);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  transition: box-shadow 0.18s ease;
}
.beta-input::placeholder { color: var(--text-subtle); }
.beta-input:focus { box-shadow: 0 0 0 2px rgba(8, 8, 8), 0.28); }
/* Safari Keychain / Contacts control clips oddly inside short rounded fields */
.beta-input::-webkit-contacts-auto-fill-button,
.beta-input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}
.site-close .beta-submit {
  background: var(--text);
  color: var(--on-dark);
  border: none;
}
.site-close .beta-submit:hover {
  background: #1f0200;
  color: var(--on-dark);
}
.beta-submit:disabled { opacity: 0.55; cursor: default; transform: none; }
.beta-msg {
  margin-top: var(--s4);
  font-size: 13.5px;
  font-weight: 600;
  min-height: 18px;
  color: rgba(8, 8, 8), 0.72);
  text-align: left;
}
.beta-msg[data-state="success"] { color: var(--positive); }
.beta-msg[data-state="error"] { color: var(--negative); }

/* ---------- Footer (privacy / legal) ---------- */
footer:not(.site-close) { padding: var(--s8) 0 var(--s7); }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--rule);
}
.footer-top img { height: 26px; width: auto; }
.footer-links {
  display: flex;
  gap: var(--s6);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-top: var(--s5);
  font-size: 13px;
  color: var(--text-subtle);
}
.footer-bottom-start,
.footer-bottom-end {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

footer.on-dark { color: var(--on-dark); }
footer.on-dark .footer-top { border-bottom-color: var(--rule-dark); }
footer.on-dark .footer-links { color: var(--on-dark-soft); }
footer.on-dark .footer-links a:hover { color: var(--peach); }
footer.on-dark .footer-bottom { color: var(--on-dark-subtle); }

/* ---------- Legal ---------- */
.legal-hero { padding: var(--s9) 0 0; text-align: center; }
.legal-hero .eyebrow { margin-bottom: var(--s4); }
.legal-hero h1 { font-size: clamp(38px, 6vw, 60px); max-width: var(--measure); margin: 0 auto; }
.legal-updated { margin-top: var(--s3); }
.legal-lede { max-width: var(--measure); margin: var(--s5) auto 0; }
.legal { padding-top: var(--s8); }
.legal-body { max-width: 700px; margin: 0 auto; }
.legal-body h2 { font-size: 25px; margin: var(--s8) 0 var(--s3); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 16.5px; line-height: 1.7; color: var(--text-soft); }
.legal-body p + p, .legal-list + p { margin-top: var(--s4); }
.legal-list { margin: var(--s4) 0 0; display: flex; flex-direction: column; gap: var(--s4); }
.legal-list li { display: flex; gap: var(--s3); font-size: 16.5px; line-height: 1.7; color: var(--text-soft); }
.legal-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--brand);
}
.legal-callout {
  max-width: 700px;
  margin: var(--s9) auto 0;
  padding: var(--s7) var(--s6);
  text-align: center;
  background: var(--peach);
  border-radius: var(--r-lg);
}
.legal-callout .eyebrow { color: var(--on-peach); margin-bottom: var(--s3); }
.legal-callout h3 { font-size: clamp(22px, 3vw, 28px); max-width: 480px; margin: 0 auto; }
.legal-callout p { margin-top: var(--s3); color: var(--on-peach); }

/* ---------- Updates ---------- */
.update-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s9);
}
.update-entry h2 {
  font-size: 25px;
  margin: var(--s3) 0;
}
.update-lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 var(--s4);
}
.update-date { letter-spacing: 0.02em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    /* Same inset on top / sides so menu + CTA share one horizontal line */
    --pill-edge: var(--gutter);
    --pill-panel-w: min(420px, calc(100dvw - 40px));
    /* Bar = control + equal top/bottom inset (matches left/right gutter) */
    --nav-bar-h: calc(var(--btn-h) + var(--pill-edge) * 2);
  }
  .section,
  .t-invert,
  .site-close { padding: var(--s9) 0; }
  .site-close .lang-switcher-menu,
  footer .lang-switcher-menu {
    left: 0;
    right: auto;
    max-height: min(50dvh, 320px);
    overflow-y: auto;
  }
  .compare { grid-template-columns: 1fr; }
  .site-close-top {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
  .site-close-nav {
    align-items: center;
    text-align: center;
  }
  .site-close .beta-form { max-width: none; }
  .site-close .beta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .site-close .beta-input {
    /* Don't let flex:1 grow the field vertically in a column stack */
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .site-close .beta-submit {
    flex: 0 0 auto;
    width: 100%;
  }
  /* Kill 100vw breakout — scrollbar makes 100vw wider than the layout. */
  .t-hero-stage {
    width: 100%;
    left: auto;
    margin-left: 0;
  }

  /* Sticky bar: menu slot (left) + CTA (right), same inset as the fixed pill.
     Use .nav .wrap so we beat the base `.nav .wrap { height: 74px }` rule —
     otherwise the CTA centers at 15px while the fixed menu sits at 20px. */
  .nav {
    padding-inline: var(--pill-edge);
  }
  .nav .wrap.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    height: var(--nav-bar-h);
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .nav-menu-slot { display: block; }
  .nav-logo { display: none; }
  .nav-links-desktop { display: none; }
  .nav-lang-desktop { display: none !important; }
  .nav-cta { margin-left: auto; }

  .pill-nav-bg,
  .pill-nav-panel { display: block; }
  .pill-nav-overlay { display: block; }

  .pill-nav-bg {
    position: fixed;
    top: var(--pill-edge);
    left: var(--pill-edge);
    z-index: 55;
    width: var(--pill-btn-w);
    height: var(--pill-btn-h);
    border-radius: var(--r-control);
    background: var(--pill-bg);
    pointer-events: none;
    transition:
      width 0.9s var(--ease-spring),
      height 1s var(--ease-spring),
      border-radius 0.9s ease;
  }
  .pill-nav-bg.is-open {
    width: var(--pill-panel-w);
    height: calc(100dvh - var(--pill-edge) * 2);
    border-radius: 20px;
  }

  .pill-nav-panel {
    position: fixed;
    top: var(--pill-edge);
    left: var(--pill-edge);
    z-index: 60;
    width: var(--pill-btn-w);
    height: var(--pill-btn-h);
    overflow: hidden;
    pointer-events: none;
    transition:
      width 0.9s var(--ease-spring),
      height 1s var(--ease-spring);
  }
  .pill-nav-panel.is-open {
    width: var(--pill-panel-w);
    height: calc(100dvh - var(--pill-edge) * 2);
    pointer-events: auto;
  }

  .pill-nav-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--pill-panel-w);
    height: calc(100dvh - var(--pill-edge) * 2);
    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--pill-fg);
    box-sizing: border-box;
  }
  .pill-nav-panel.is-open .pill-nav-inner {
    padding: 0 28px 28px 24px;
  }

  .pill-nav-logo {
    display: flex;
    align-items: center;
    margin-top: calc(var(--btn-h) + var(--s4));
    margin-bottom: var(--s5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
    pointer-events: none;
  }
  .pill-nav-logo img {
    height: 28px;
    width: auto;
  }
  .pill-nav-panel.is-open .pill-nav-logo {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .pill-nav-trigger {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    height: var(--btn-h);
    width: var(--pill-btn-w);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: 0 var(--s4);
    background: none;
    border: none;
    color: var(--pill-fg);
    font-family: "Satoshi", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    cursor: pointer;
    pointer-events: auto;
  }
  .pill-nav-dot {
    font-size: 9px;
    line-height: 1;
    transition: transform 350ms ease, opacity 200ms ease;
  }
  .pill-nav-panel.is-open .pill-nav-dot {
    transform: rotate(45deg) scale(1.5);
    opacity: 0.7;
  }

  .pill-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
    margin-bottom: auto;
  }
  .pill-nav-link {
    font-family: "Apfel Grotezk", system-ui, sans-serif;
    font-size: clamp(1.85rem, 7vw, 2.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pill-fg);
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateY(-14px) translateX(-14px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.18s ease;
    will-change: opacity, transform;
  }
  .pill-nav-link:hover { color: var(--peach); }

  .pill-nav-lang {
    margin-top: var(--s5);
    align-self: flex-start;
  }
  .pill-nav-lang .lang-switcher-menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: auto;
    max-height: min(50dvh, 320px);
    overflow-y: auto;
    z-index: 90;
  }
  .pill-nav-panel.is-open:has(.pill-nav-lang.is-open) {
    overflow: visible;
  }

  .pill-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 12, 0.45);
    backdrop-filter: blur(2px);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .pill-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 901px) {
  .pill-nav-bg,
  .pill-nav-panel,
  .pill-nav-overlay {
    display: none !important;
  }
}

@media (max-width: 620px) {
  .nav .wrap.nav-bar { gap: var(--s4); }
  .compare-col { padding: var(--s6) var(--s5); }
  .t-strip .wrap {
    justify-content: center;
    gap: var(--s4) var(--s5);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion [data-reveal],
  .js-motion [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
  .marquee-track { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .t-cinematic-scrub { display: none; }
  .t-cinematic-frame:first-child { opacity: 1 !important; }
  .t-cinematic-frame:not(:first-child) { opacity: 0 !important; visibility: hidden; }
}

/* ---------- Homepage composition (Theater) ---------- */
body.theater {
  background: var(--dark);
  color: var(--on-dark);
}
body.theater .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}
body.theater h1, body.theater h2, body.theater h3, body.theater h4 { color: var(--on-dark); }
body.theater .lede { color: var(--on-dark-soft); }

.t-brand-stack {
  position: relative;
  isolation: isolate;
}

.t-brand-stack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: calc(100dvh + 200vh);
  pointer-events: none;
}

.t-cinematic-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100dvh;
  overflow: hidden;
  background: var(--dark);
}

.t-cinematic-scrub {
  height: 200vh;
  pointer-events: none;
}

.t-cinematic-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(8, 8, 8, 0.12) 0%,
    rgba(8, 8, 8, 0.38) 100%
  );
}

.t-cinematic-frames {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.t-cinematic-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.t-cinematic-frame:first-child { opacity: 1; }

.t-cinematic-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.t-cinematic-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-bar-h) + var(--s5)) var(--gutter) var(--s7);
  pointer-events: none;
}

.t-cinematic-wordmark {
  margin: 0;
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(96px, 22vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--accent);
  white-space: nowrap;
}

.t-cinematic-tagline {
  margin: clamp(16px, 2vw, 28px) 0 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.t-hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px) 0 0;
  text-align: center;
  background: var(--dark);
}
.nav-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}
/* `overflow: clip` keeps the oversized glow off the horizontal scroll without
   turning this into a scroll container, which would break scroll linking. */
.page-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1600px;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}

/* Real element rather than a pseudo so Motion can drive its transform on
   scroll. Centred with a margin because transform belongs to Motion. */
.t-hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  margin-left: calc(min(1100px, 130vw) / -2);
  width: min(1100px, 130vw);
  height: min(1100px, 130vw);
  background: radial-gradient(circle, rgba(211, 81, 17, 0.4) 0%, rgba(138, 59, 24, 0.16) 42%, transparent 68%);
  pointer-events: none;
}
.t-hero .wrap { position: relative; z-index: 1; }
.t-hero img.lockup { height: clamp(30px, 3.2vw, 36px); width: auto; margin: 0 auto var(--s5); }
.t-hero h1 { max-width: 820px; margin: 0 auto var(--s4); font-size: clamp(40px, 6.2vw, 76px); }
.t-hero .lede { max-width: 500px; margin: 0 auto var(--s5); }
.t-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin: 0 auto var(--s5);
}
/* Break out of .wrap so the wide collage can breathe past the 1200px rail. */
.t-hero-stage {
  margin-top: clamp(24px, 3.5vw, 44px);
  display: flex;
  justify-content: center;
  width: min(1360px, calc(100vw - 40px));
  position: relative;
  left: 50%;
  margin-left: calc(min(1360px, 100vw - 40px) / -2);
}
.t-hero-stage img {
  width: 100%;
  height: auto;
  /* Soft shadow is baked into the cream-card PNG. */
  filter: none;
}
.motion-page .t-hero-stage img {
  will-change: transform;
}

/* Headline lines are authored in markup and masked so Motion can slide
   each one up on load. */
.t-hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.t-hero h1 .line > span { display: block; }
.motion-page .t-hero h1 .line > span { transform: translateY(105%); opacity: 0; }
.motion-page .t-hero .lede,
.motion-page .t-hero .t-hero-actions,
/* The wrapper carries the entrance so the image itself is free for the
   scroll-driven transform below. */
.motion-page .t-hero-stage { opacity: 0; }

.t-strip {
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: var(--s5) 0;
}
.t-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
  color: var(--on-dark-subtle);
}
@media (max-width: 900px) {
  .t-strip { display: none; }
}


/* Continuous How it works — staggered text / phone rows. */
.t-moments-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.t-moments-head .lede {
  margin-inline: auto;
  max-width: 42ch;
}

.t-moments {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
}

.t-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.t-moment--flip .t-moment-copy { order: 2; }
.t-moment--flip .t-moment-media { order: 1; }

.t-moment-copy .n {
  display: block;
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: var(--s3);
}
.t-moment-copy h3 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}
.t-moment-copy p {
  color: var(--on-dark-soft);
  font-size: clamp(15px, 1.2vw, 17px);
  max-width: 36ch;
}

.t-moment-media {
  display: flex;
  justify-content: center;
}
.t-moment-frame {
  position: relative;
  contain: paint;
  overflow: hidden;
  height: min(480px, 52vh);
  aspect-ratio: 720 / 1566;
  background: transparent;
  border-radius: 36px;
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.55);
}
.t-moment-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  background: var(--cream);
}

@media (max-width: 900px) {
  .t-moment,
  .t-moment--flip {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .t-moment-copy,
  .t-moment--flip .t-moment-copy { order: 1; }
  .t-moment-media,
  .t-moment--flip .t-moment-media { order: 2; }
  .t-moment-copy { text-align: center; }
  .t-moment-copy p {
    margin-inline: auto;
    max-width: 34ch;
  }
  .t-moment-frame {
    width: 56vw;
    max-width: 280px;
    height: auto;
    border-radius: 32px;
  }
}

.t-marquee { padding: clamp(56px, 8vw, 96px) 0; }
.t-marquee .marquee-track img { opacity: 0.95; }

.t-core {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-top: var(--s7);
  border-top: 1px solid var(--rule-dark);
}
.t-core-item .n {
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand);
  display: block;
  margin-bottom: var(--s3);
}
.t-core-item h3 { margin-bottom: var(--s3); }
.t-core-item p { color: var(--on-dark-subtle); font-size: 15px; }

/* Guided brew photo — sticky; What’s free scrolls over it */
.t-guided-stack {
  position: relative;
}
.t-guided {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: clamp(16px, 2.5vw, 40px) 0;
  display: flex;
  justify-content: center;
}
.t-guided-stack > #core {
  position: relative;
  z-index: 2;
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(48px, 8vw, 96px);
  box-sizing: border-box;
}
.t-guided-frame {
  position: relative;
  overflow: hidden;
  width: min(90vw, 100%);
  height: 90vh;
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--dark);
}
.t-guided-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.t-guided-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  text-align: center;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.12) 0%,
    rgba(8, 8, 8, 0.28) 50%,
    rgba(8, 8, 8, 0.18) 100%
  );
}
.t-guided-phrase {
  grid-area: 1 / 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Apfel Grotezk", system-ui, sans-serif;
  font-size: clamp(40px, 12vw, 180px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  text-wrap: balance;
}
.t-guided-line {
  display: block;
  white-space: nowrap;
}
.t-guided-line + .t-guided-line {
  margin-top: -0.1em;
}
.t-guided-phrase:not(.is-active) { visibility: hidden; }
.t-guided-phrase[hidden] {
  display: none;
}
.t-guided-phrase.is-active { visibility: visible; }

/* Light inset band inside the dark page */
.t-invert {
  background: var(--cream);
  color: var(--text);
  padding: var(--s10) 0;
}
.t-invert h2, .t-invert h3, .t-invert h4 { color: var(--text); }
.t-invert .lede { color: var(--text-soft); }
.t-plus-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.t-plus-head .lede { margin-inline: auto; }
.t-plus-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.t-plus-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.t-plus-card-media {
  border-radius: clamp(20px, 2.5vw, 28px);
  overflow: hidden;
  background: var(--peach);
}
.t-plus-card-media img {
  width: 100%;
  height: auto;
  display: block;
}
.t-plus-card figcaption {
  display: grid;
  text-align: left;
  /* Reserve title + body so image tops stay aligned across cards */
  min-height: 5.5em;
  align-content: start;
}
.t-plus-card figcaption h3 {
  margin: 0 0 var(--s3);
  color: var(--text);
}
.t-plus-card figcaption p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* Light bands keep ink type even on the dark page */
body.theater .site-close h2,
body.theater .t-invert h2,
body.theater .t-invert h3,
body.theater .t-invert h4,
body.theater .t-invert strong,
body.theater .t-faq h2,
body.theater .t-faq summary { color: var(--text); }
body.theater .t-invert .lede { color: var(--text-soft); }
body.theater .t-faq .lede { color: var(--text-subtle); }
body.theater .t-faq .faq-item p { color: var(--text-soft); }

/* Compare on dark — Free and Coado+ share the same surface */
body.theater .compare-col.free,
body.theater .compare-col.plus {
  background: rgba(255, 243, 226, 0.04);
  border: 1px solid var(--rule-dark);
  color: inherit;
  box-shadow: none;
}
body.theater .compare-col.free .compare-head,
body.theater .compare-col.plus .compare-head { border-bottom-color: var(--rule-dark); }
body.theater .compare-col.free .compare-list li,
body.theater .compare-col.plus .compare-list li {
  color: var(--on-dark-soft);
  border-bottom-color: rgba(255, 243, 226, 0.08);
}
body.theater .compare-col.free .price,
body.theater .compare-col.plus .price { color: var(--on-dark-subtle); }
body.theater .compare-col.plus .compare-head h3 { color: inherit; }

/* ---------- Page composition responsive ---------- */
@media (max-width: 1100px) {
  .t-plus-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .t-core { grid-template-columns: 1fr; gap: var(--s6); }
}
@media (max-width: 620px) {
  .t-plus-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
    gap: clamp(48px, 8vw, 96px); /* match .t-moments */
  }
  .t-plus-card {
    gap: var(--s5); /* same as .t-moment mobile gap */
  }
  .t-plus-card figcaption {
    text-align: center;
    min-height: 0; /* no desktop cross-card title reserve */
  }
  .t-plus-card figcaption h3 {
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--s3);
  }
  .t-plus-card figcaption p {
    margin-inline: auto;
    max-width: 34ch;
    font-size: clamp(15px, 1.2vw, 17px);
  }
}


/* ============================================================
   SCROLL-DRIVEN ANIMATIONS
   These passes are pure transform and opacity against the scroll position,
   which the browser can run off the main thread on a scroll timeline. That
   keeps them welded to the scroll even while a video decodes. motion.js tests
   the same two features and leaves these elements alone when this block wins;
   otherwise it drives the identical values from a scroll callback.
   ============================================================ */
@keyframes coado-hero-media {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-18px) scale(1.03); }
}
@keyframes coado-hero-glow {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0.15; transform: translateY(90px) scale(1.18); }
}
@keyframes coado-wash {
  0% { opacity: 0; }
  33% { opacity: 1; }
  67% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes cinematic-1 {
  0%, 22% { opacity: 1; }
  30%, 100% { opacity: 0; }
}
@keyframes cinematic-2 {
  0%, 22% { opacity: 0; }
  30%, 48% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes cinematic-3 {
  0%, 48% { opacity: 0; }
  56%, 100% { opacity: 1; }
}
@supports (animation-timeline: view()) and (timeline-scope: --coado) {
  /* The wash layers are body children, so the band timelines have to be
     hoisted to a scope both branches of the tree can see. */
  body { timeline-scope: --hero, --plus, --cinematic; }

  .t-brand-stack::before { view-timeline-name: --cinematic; }
  .t-hero { view-timeline-name: --hero; }
  .t-invert { view-timeline-name: --plus; }

  .motion-page .t-cinematic-frame:nth-child(1) {
    animation: cinematic-1 linear both;
    animation-timeline: --cinematic;
    animation-range: contain 0% contain 100%;
  }
  .motion-page .t-cinematic-frame:nth-child(2) {
    animation: cinematic-2 linear both;
    animation-timeline: --cinematic;
    animation-range: contain 0% contain 100%;
  }
  .motion-page .t-cinematic-frame:nth-child(3) {
    animation: cinematic-3 linear both;
    animation-timeline: --cinematic;
    animation-range: contain 0% contain 100%;
  }

  /* "exit" on a subject taller than the viewport runs from its top edge
     reaching the top of the viewport to its bottom edge clearing it. */
  .motion-page .t-hero-stage img {
    animation: coado-hero-media linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }
  .motion-page .t-hero-glow {
    animation: coado-hero-glow linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }

  .motion-page .page-wash[data-wash="plus"] {
    animation: coado-wash linear both;
    animation-timeline: --plus;
    animation-range: cover 0% cover 100%;
  }
}
