/* Marketing site and checkout. Alternating full-bleed dark and light sections. */

html { background: var(--black); }
.dark { background: var(--black); color: var(--d-text); }
.light { background: var(--paper); color: var(--text); }
.dark p { color: var(--d-muted); }
.light p { color: var(--muted); }

section { padding: clamp(96px, 14vw, 184px) var(--gutter); }

.col { max-width: 680px; margin: 0 auto; text-align: center; }
.wide { max-width: 1120px; margin: 0 auto; }

h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.25rem, 5.4vw, 4.5rem); }
.col h2 + p, .col h1 + p { margin-top: var(--s3); }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.55; max-width: 560px; margin-left: auto; margin-right: auto; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s1) var(--s3); margin-top: var(--s5); }

.skip {
  position: absolute; left: var(--s2); top: -64px; z-index: 100;
  padding: var(--s1) var(--s2); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 14px;
}
.skip:focus { top: var(--s2); }

/* ---- Nav ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner { display: flex; align-items: center; gap: var(--s4); max-width: calc(1120px + 2 * var(--gutter)); height: 52px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--d-text); }
.nav nav { display: flex; gap: var(--s4); margin-left: auto; }
.nav nav a { font-size: 13px; color: var(--d-muted); padding: var(--s2) 0; transition: color 200ms var(--ease); }
.nav nav a:hover { color: var(--d-text); }
.nav-buy {
  display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px;
  background: var(--d-text); color: var(--black); font-size: 13px; font-weight: 500;
  transition: background-color 200ms var(--ease), transform 150ms var(--ease);
}
.nav-buy:hover { background: var(--white); }
.nav-profile {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: calc(var(--s2) * -1);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; color: var(--d-muted);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), transform 150ms var(--ease);
}
.nav-profile:hover { color: var(--d-text); border-color: var(--d-text); }
.nav-profile:active { transform: scale(0.95); }
.nav nav + .nav-profile { margin-left: 0; }
.nav-buy:active { transform: scale(0.97); }

/* ---- The product screen (shared by hero and pinned section) ---- */
.screen {
  container-type: inline-size;
  display: grid; grid-template-rows: auto 1fr auto;
  width: 100%; aspect-ratio: 16 / 10;
  background: var(--d-surface); border: 1px solid var(--d-hairline); border-radius: 20px;
  overflow: hidden; text-align: left;
}
.screen-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3.2cqw 4cqw 0; font-size: clamp(10px, 1.7cqw, 14px); color: var(--d-dim); font-variant-numeric: tabular-nums;
}
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--d-muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.live.off i { background: var(--d-dim); animation: none; }
@keyframes pulse { 50% { opacity: 0.3; } }

.cue { align-self: center; padding: 0 4cqw; }
.cue-label {
  font-size: clamp(10px, 1.7cqw, 15px); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent) !important; margin-bottom: 1.6cqw;
}
.cue-say {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(20px, 5.6cqw, 62px); color: var(--d-text) !important; text-wrap: balance;
}
.cue-say.idle { font-family: var(--body); font-weight: 400; letter-spacing: 0; line-height: 1.5; font-size: clamp(13px, 2.4cqw, 22px); color: var(--d-dim) !important; }
.cue-heard { margin-bottom: 2.4cqw; font-size: clamp(13px, 2.5cqw, 26px); line-height: 1.35; color: var(--d-muted) !important; }
.cue-label:empty, .cue-heard:empty, .cue-then:empty { display: none; }
.cue-label:has(+ .cue-heard:not(:empty)) { margin-bottom: 0.8cqw; }
.cue-say-long { font-size: clamp(18px, 4.6cqw, 50px); }
.cue-then { margin-top: 2cqw; font-size: clamp(12px, 2.3cqw, 22px); line-height: 1.35; color: var(--d-dim) !important; min-height: 1.35em; }
.screen .cue-rate { margin-top: 2.4cqw; gap: clamp(6px, 1.2cqw, 10px); }
.screen .rate-btn { width: clamp(24px, 4.8cqw, 44px); height: clamp(24px, 4.8cqw, 44px); }
.screen .rate-note { font-size: clamp(10px, 1.8cqw, 14px); color: var(--d-dim) !important; }
.cue-solo .cue-say { font-size: clamp(22px, 6.6cqw, 74px); }
.cue.swap > * { animation: rise 600ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.tail {
  display: flex; justify-content: flex-end; overflow: hidden; white-space: nowrap;
  padding: 0 4cqw 3.2cqw; font-size: clamp(11px, 1.9cqw, 16px); color: var(--d-dim) !important;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%);
}
.caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--accent); animation: pulse 1s steps(2) infinite; }
.mock-keys { display: flex; gap: 4cqw; padding: 0 4cqw 3.2cqw; font-size: clamp(11px, 1.9cqw, 15px); color: var(--d-muted) !important; }
.mock-keys span { display: inline-flex; align-items: center; gap: 8px; }

/* ---- 1. Hero ---- */
.hero { padding-top: clamp(136px, 18vw, 216px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-figure { max-width: 1120px; margin: clamp(64px, 9vw, 120px) auto 0; }
.hero-figure figcaption { margin-top: var(--s3); text-align: center; font-size: 13px; color: var(--d-dim); }

/* ---- 2. Statement ---- */
.statement p { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.55; }

/* ---- 3. Pinned ---- */
.how { padding-top: 0; padding-bottom: 0; }
.pin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); max-width: 1200px; margin: 0 auto; }
.pin-visual { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.stage-layer { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.stage-layer.is-active { opacity: 1; transform: none; }
.step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.step h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.step h2 + p { margin-top: var(--s3); max-width: 420px; }
.step-n { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--d-dim) !important; margin-bottom: var(--s3); }

/* ---- 4. Playbook ---- */
.playbook-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); max-width: 1120px; margin: 0 auto; align-items: start; }
.playbook-copy { position: sticky; top: 120px; }
.playbook-copy h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.playbook-copy p { margin: var(--s3) 0 var(--s2); }
.pb-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s3); padding: 20px 0; border-top: 1px solid var(--hairline); align-items: baseline; }
.pb-head { border-top: 0; padding: 0 0 var(--s2); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pb-note { padding-top: var(--s2); border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.5; }
.pb-row .they { font-size: 15px; color: var(--muted); }
.pb-row .you { font-family: var(--display); font-weight: 600; font-size: clamp(1.0625rem, 1.7vw, 1.375rem); letter-spacing: -0.02em; line-height: 1.25; color: var(--text); }

/* ---- 5. Specs ---- */
.specs h2 { max-width: 680px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s10); border-top: 1px solid var(--d-hairline); }
.spec-grid > div { padding: var(--s5) var(--s4) var(--s6) 0; border-bottom: 1px solid var(--d-hairline); }
.spec-grid > div:not(:nth-child(3n + 1)) { padding-left: var(--s4); border-left: 1px solid var(--d-hairline); }
.spec-grid dt { font-family: var(--display); font-weight: 600; font-size: clamp(2.75rem, 6vw, 5rem); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.spec-grid dd { margin-top: var(--s2); max-width: 280px; font-size: 15px; line-height: 1.55; color: var(--d-muted); }

.handling { margin-top: var(--s12); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); }
.handling h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.handling li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s3); padding: 20px 0; border-top: 1px solid var(--d-hairline); font-size: 15px; line-height: 1.55; }
.handling li span:first-child { color: var(--d-text); }
.handling li span:last-child { color: var(--d-muted); }

/* ---- 6. Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); max-width: 1120px; margin: 0 auto; align-items: end; }
.price-block .actions { justify-content: flex-start; }
.seg { display: inline-flex; gap: 2px; margin-top: var(--s6); padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); }
.seg button {
  min-height: 36px; padding: 0 var(--s2); border: 0; border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-checked='true'] { background: var(--ink); color: var(--white); }
.price { display: flex; align-items: flex-end; gap: var(--s2); margin-top: var(--s4); }
.price-n { font-family: var(--display); font-weight: 600; font-size: clamp(5rem, 13vw, 10rem); letter-spacing: -0.04em; line-height: 0.86; color: var(--text); font-variant-numeric: tabular-nums; }
.price-unit { font-size: 15px; line-height: 1.35; padding-bottom: 0.4em; }
.price-note { margin-top: var(--s2); font-size: 15px; }
.included li { padding: 18px 0; border-top: 1px solid var(--hairline); font-size: 16px; line-height: 1.45; color: var(--text); }
.included .fine { font-size: 13px; color: var(--muted); }

/* ---- 7. Close + footer ---- */
.close { border-bottom: 1px solid var(--d-hairline); }
.footer { padding: var(--s10) var(--gutter) var(--s5); font-size: 13px; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s5); }
.footer p { margin-top: var(--s1); color: var(--d-dim); }
.footer h3 { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--d-text); margin-bottom: var(--s1); }
.footer nav a { display: block; padding: 6px 0; color: var(--d-muted); transition: color 200ms var(--ease); }
.footer nav a:hover { color: var(--d-text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--d-hairline); }
.footer-base p { margin: 0; }

/* ---- Scroll reveal: fade and rise ---- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Checkout page ---- */
.checkout { min-height: 100vh; padding-top: clamp(120px, 14vw, 176px); padding-bottom: var(--s12); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); max-width: 1040px; margin: 0 auto; align-items: start; }
.checkout h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.checkout h1 + p { margin-top: var(--s3); max-width: 440px; }
.order { border-top: 1px solid var(--ink); }
.order-row { display: flex; justify-content: space-between; gap: var(--s3); padding: 18px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.order-row span:first-child { color: var(--muted); }
.order-row.total { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; border-bottom: 0; align-items: baseline; }
.order-row.total span:first-child { font-family: var(--body); font-weight: 400; font-size: 16px; letter-spacing: 0; }
.field { display: block; margin-top: var(--s4); }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: var(--s1); }
.field input {
  width: 100%; height: 48px; padding: 0 var(--s2);
  border: 1px solid var(--hairline); border-radius: 12px; background: var(--white); font-size: 16px;
  transition: border-color 200ms var(--ease);
}
.field input:hover { border-color: #b9b9bf; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.checkout .btn { width: 100%; height: 52px; margin-top: var(--s3); font-size: 16px; }
.checkout .seg { margin-top: var(--s5); }
.fineprint { margin-top: var(--s2); font-size: 13px; line-height: 1.5; }
.notice { margin-bottom: var(--s3); padding: var(--s2); border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--text) !important; }
.notice.error { border-color: var(--danger); background: #fdf1ee; color: #7d1c0e !important; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav nav a:not(:last-child) { display: none; }
  .nav-inner { gap: var(--s2); }
  .nav .brand { font-size: 15px; white-space: nowrap; }
  .nav-profile { margin-left: -4px; }

  /* The screen pins under the nav; the three ideas scroll beneath it. */
  .pin { grid-template-columns: 1fr; gap: 0; }
  .pin-visual { top: 52px; height: auto; z-index: 2; padding: var(--s3) 0; background: var(--black); border-bottom: 1px solid var(--d-hairline); }
  .step { min-height: 64vh; padding: var(--s5) 0 var(--s8); justify-content: flex-start; }

  .playbook-grid, .pricing-grid, .handling, .checkout-grid { grid-template-columns: 1fr; }
  .playbook-copy { position: static; }
  .pb-row { grid-template-columns: 1fr; gap: 4px; padding: var(--s2) 0; }
  .pb-head span:last-child { display: none; }

  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .spec-grid > div:nth-child(even) { padding-left: var(--s3); border-left: 1px solid var(--d-hairline); }
  .spec-grid > div { padding-right: var(--s3); }
  .handling li { grid-template-columns: 1fr; gap: 4px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .actions { gap: var(--s1) var(--s3); }
  .screen { border-radius: 14px; }
}

@media (max-width: 480px) {
  .hero .actions .btn, .close .actions .btn { width: 100%; }
  .screen { aspect-ratio: 4 / 3; }
  .stage { aspect-ratio: 4 / 3; }
}
