/* Zato on Black: the app's tokens (prototype/Zato/Consumer/Style.swift). */
@font-face {
  font-family: "Zato Display";
  src: url("/assets/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #000;
  --card: #121214;
  --raised: #1c1c1e;
  --line: #26262a;
  --ink: #f5f5f7;
  --ink-soft: #8e8e93;
  --accent: #ffc400;
  --magenta: #d6227f;
  --violet: #7a35f0;
  --blue: #3a3aff;
  --danger: #ff7b7b;
  --display: "Zato Display", "SF Pro Display", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: #000; padding: 8px 12px; z-index: 10; }

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

/* Header */
.top { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.75rem/1 var(--display); letter-spacing: 0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.tagline { font: 500 0.9375rem/1.2 var(--body); color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
@media (max-width: 380px) { .tagline { display: none; } }
.top-link { font-weight: 600; font-size: 1rem; text-decoration: none; padding: 10px 0; }
.top-link:hover { color: var(--accent); }
@media (max-width: 560px) { .top { flex-wrap: nowrap; } .top .tagline { display: none; } }

/* Type */
h1, h2, .display { font-family: var(--display); font-weight: 400; line-height: 0.92; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: min(13.5vw, 6.75rem); line-height: 1; overflow-wrap: anywhere; }
@media (min-width: 960px) { .hero h1 { white-space: nowrap; } }
h2 { font-size: clamp(3rem, 9vw, 6.5rem); line-height: 1.04; }
.lede { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.5; max-width: var(--measure); margin: 24px 0 0; }
p { max-width: var(--measure); }
.soft { color: var(--ink-soft); }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: clamp(24px, 6vw, 72px); padding-bottom: clamp(72px, 12vw, 140px); }
@media (min-width: 960px) { .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 64px; } }

/* Waitlist */
.join { margin-top: 36px; max-width: 30rem; scroll-margin-top: 24px; }
.join label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 14rem; min-width: 0; min-height: 56px; padding: 0 16px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1.0625rem;
}
.join input[type="email"]::placeholder { color: #6c6c70; }
.join input[aria-invalid="true"] { border: 2px solid var(--danger); }
.join button {
  flex: 0 0 auto; min-height: 56px; padding: 0 22px; border: 0; border-radius: 12px;
  background: var(--accent); color: #000; font: 700 1.0625rem/1 var(--body); cursor: pointer;
}
.join button:hover { background: #ffd23f; }
.join button[disabled] { opacity: 0.7; cursor: progress; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-status { min-height: 1.5em; margin: 10px 0 0; font-size: 1rem; }
.join-status.error { color: var(--danger); font-weight: 600; }
.join-status.ok { color: var(--accent); font-weight: 600; }
.coming { margin: 4px 0 0; font-size: 1rem; color: var(--ink-soft); }
.coming a, .privacy a { color: var(--ink); text-underline-offset: 3px; display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (max-width: 480px) { .join button { width: 100%; } }

/* The signature: a thought said on the route, then the note it became. */
.said { position: relative; max-width: 440px; width: 100%; justify-self: end; margin: 0; }
.said svg { width: 100%; height: auto; overflow: visible; }
.said .route { fill: none; stroke: var(--violet); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.said .here { fill: var(--magenta); }
.said .start { fill: var(--accent); }
.quote {
  position: absolute; right: 0; top: 0; max-width: 78%; margin: 0;
  background: var(--magenta); color: #fff; border-radius: 18px; padding: 14px 18px;
  font: 400 clamp(1.35rem, 3.4vw, 1.75rem)/1.15 var(--display); transform: rotate(-2deg); transform-origin: 80% 100%;
}
.notes { list-style: none; margin: 8px 0 0; padding: 0; }
.notes li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes .kind { color: var(--ink-soft); font-weight: 600; }
.notes .kind.todo { color: var(--accent); }
.example { margin: 12px 0 0; font-size: 0.875rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .said .route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s cubic-bezier(.3,.7,.2,1) 0.1s forwards; }
  .said .here { opacity: 0; animation: land 0.25s ease-out 0.85s forwards; }
  .quote { opacity: 0; translate: 0 8px; animation: rise 0.35s ease-out 0.95s forwards; }
  .notes li { opacity: 0; animation: rise 0.4s ease-out forwards; }
  .notes li:nth-child(1) { animation-delay: 1.1s; }
  .notes li:nth-child(2) { animation-delay: 1.2s; }
  .notes li:nth-child(3) { animation-delay: 1.3s; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes land { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* Example moment and summary, drawn in the app's own styling */
.moment { margin: 0; width: 100%; max-width: 400px; justify-self: center; }
.sheet { background: var(--card); border-radius: 28px; padding: 24px 20px 22px; }
.sheet-run { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.sheet-mile { margin: 2px 0 16px; font: 400 2rem/1 var(--display); text-transform: uppercase; }
.sheet-quote { margin: 0; background: var(--magenta); color: #fff; border-radius: 18px; padding: 18px 20px; font: 400 clamp(1.6rem, 6vw, 2rem)/1.15 var(--display); }
.player { display: flex; align-items: center; gap: 12px; margin-top: 12px; background: var(--raised); border-radius: 999px; padding: 14px 20px; }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.play svg { width: 20px; height: 20px; fill: #000; }
.wave { flex: 1; min-width: 0; height: 26px; fill: #6c6c70; }
.time { color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.sheet-note { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.sheet-note .mini { width: 64px; height: 64px; flex: none; background: var(--raised); border-radius: 14px; padding: 6px; }
.sheet-note div { display: grid; gap: 2px; font-size: 1.0625rem; }
.sheet-note .kind { font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.sheet-note .kind.todo { color: var(--accent); }

.thread { display: grid; gap: 28px; justify-items: center; }
@media (min-width: 640px) { .thread { grid-template-columns: 1fr 1fr; align-items: center; } }
.thread .shot { max-width: 320px; }
.recap { margin: 0; max-width: 340px; }
.recap-body { border-top: 2px solid var(--ink); padding-top: 18px; }
.recap-title { margin: 0; font: 400 2rem/1 var(--display); text-transform: uppercase; }
.recap-meta { margin: 4px 0 20px; color: var(--ink-soft); font-size: 0.9375rem; }
.recap-chapter { margin: 0 0 6px; color: var(--accent); font-weight: 600; font-size: 1rem; }
.recap-line { margin: 0; font-size: 1.5rem; line-height: 1.45; font-weight: 600; }

/* Story sections */
.story { padding-top: clamp(72px, 12vw, 160px); padding-bottom: clamp(72px, 12vw, 160px); border-top: 1px solid var(--line); }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split.flip > :first-child { order: 2; } }
.story p { font-size: 1.1875rem; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps .display { display: block; font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; }

.shot { width: 100%; max-width: 340px; border-radius: 28px; border: 1px solid var(--line); background: #000; }
.shots { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.shots .shot { max-width: 300px; min-width: 0; flex: 1 1 0; }
.shots .shot + .shot { margin-top: 64px; }
.shot-solo { display: flex; justify-content: center; }

.privacy p { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.5; max-width: 40rem; }
.privacy a { color: var(--ink); text-underline-offset: 4px; }

/* FAQ */
.faq { margin-top: 40px; max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: #c7c7cc; }

/* Closing + footer */
.cta { display: inline-flex; align-items: center; min-height: 56px; padding: 0 24px; margin-top: 24px; border-radius: 12px;
  background: var(--accent); color: #000; font-weight: 700; text-decoration: none; }
.cta:hover { background: #ffd23f; }
.closing { text-align: left; }
.closing h2 { margin-bottom: 8px; }
footer { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 48px; font-size: 0.9375rem; color: var(--ink-soft); }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot .line { color: var(--ink); font: 400 1.5rem/1.1 var(--display); margin: 14px 0 0; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot nav a { display: inline-block; padding: 11px 0; }
footer .brand { color: var(--ink); }
.foot nav a { text-decoration: none; color: var(--ink); }
.foot nav a:hover { color: var(--accent); }
.tm { margin: 40px 0 0; font-size: 0.8125rem; max-width: 48rem; }

/* Waitlist confirmation */
.joined { margin-top: 36px; max-width: 30rem; scroll-margin-top: 24px; }
.joined p { margin: 0 0 8px; font-size: 1.1875rem; }
.joined strong { color: var(--accent); }
.joined button { background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 1rem; padding: 12px 0; cursor: pointer; }

/* Legal and support pages */
.doc { max-width: 44rem; padding-top: 32px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
.doc h2 { font: 700 1.25rem/1.3 var(--body); margin: 36px 0 8px; }
.doc p, .doc li { color: #d1d1d6; }
.doc .version { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 16px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
