/* Psst — landing page. Design tokens copied verbatim from src/styles.css
   so the marketing site and the app stay visually identical. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* warm neutral palette */
  --bg: #f7f3ec;
  --bg-card: #fdfbf7;
  --bg-app: #ece7df;
  --ink: #1c1916;
  --ink-2: #3d3833;
  --ink-3: #6a6259;
  --ink-4: #9a9189;
  --line: #e6dfd3;
  --line-2: #d8d0c1;
  --line-3: #c4bba9;

  /* accent — warm amber, single hue */
  --accent: oklch(68% 0.14 55);
  --accent-soft: oklch(94% 0.04 70);
  --accent-ink: oklch(35% 0.09 50);

  --live: oklch(62% 0.18 25);
  --live-soft: oklch(95% 0.04 25);
  --ok: oklch(60% 0.13 155);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 0 rgba(28,25,22,0.04), 0 1px 2px rgba(28,25,22,0.06);
  --shadow-2: 0 2px 4px rgba(28,25,22,0.05), 0 8px 24px rgba(28,25,22,0.08);
  --shadow-3: 0 8px 16px rgba(28,25,22,0.08), 0 24px 60px rgba(28,25,22,0.18);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* signature product gradient (sampleData.js → 'dusk') */
  --grad-dusk: linear-gradient(135deg, #f8b07a 0%, #d97766 35%, #6e4a82 100%);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
/* overscroll-behavior-x: none stops the horizontal trackpad rubber-band /
   swipe-to-navigate gesture. The layout has no horizontal overflow, so this
   only suppresses the bounce — no need for overflow-x:hidden (which would
   risk the sticky nav). */
html { scroll-behavior: smooth; overscroll-behavior-x: none; }
body {
  margin: 0;
  overscroll-behavior-x: none;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg-card);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: #2a251f; box-shadow: var(--shadow-3); }
.btn-ghost { border-color: var(--line-3); color: var(--ink-2); background: transparent; }
.btn-ghost:hover { background: var(--bg-card); }
.btn-lg { font-size: 16px; padding: 17px 28px; }
.sub { color: var(--ink-3); font-size: 18px; max-width: 56ch; }
.req {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
/* :not(.btn) so the Download CTA keeps its own .btn-primary colors —
   otherwise this higher-specificity rule paints its text dark on the dark
   button, making it invisible. */
.nav-links a:not(.btn) { font-size: 14px; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---- hero ---- */
.hero { padding: 86px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); margin: 18px auto 0; max-width: 16ch; }
.hero .sub { margin: 22px auto 0; font-size: clamp(17px, 2.2vw, 21px); }
.hero-cta { margin: 34px 0 12px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-media {
  margin: 56px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--grad-dusk);
  aspect-ratio: 16 / 10;
  max-width: 980px;
  position: relative;
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-media .fallback {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  color: #fff; font-family: var(--font-serif); font-style: italic; font-size: 32px;
}

/* ---- section scaffold ---- */
section { padding: 84px 0; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 12px; }
.sec-head p { margin: 16px auto 0; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 26px;
}
.step .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--accent-ink); text-transform: uppercase;
}
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--ink-3); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- layouts gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-2); aspect-ratio: 16 / 10;
  background: var(--bg-app);
}
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
.shot .cap {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ---- pricing + teams ---- */
.price-stack { max-width: 560px; margin: 0 auto; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--line-2);
  border-radius: var(--radius-xl); padding: 40px 38px; text-align: center;
  box-shadow: var(--shadow-2);
}
.price-amt { font-family: var(--font-serif); font-style: italic; font-size: 64px; line-height: 1; }
.price-amt small { font-size: 22px; color: var(--ink-3); font-style: normal; font-family: var(--font-sans); }
.price-card .kicker { margin-bottom: 10px; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0; text-align: left; display: inline-block; }
.price-card li { font-size: 15px; color: var(--ink-2); padding: 7px 0 7px 26px; position: relative; }
.price-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent-ink); }
.price-card .micro { margin-top: 14px; color: var(--ink-4); font-size: 13px; }

.teams {
  margin-top: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, var(--bg-card)) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 34px 38px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  justify-content: space-between;
}
.teams .deal-num { font-family: var(--font-serif); font-style: italic; font-size: 40px; line-height: 1; }
.teams h3 { font-size: 21px; margin-bottom: 6px; }
.teams p { color: var(--ink-3); font-size: 14px; max-width: 42ch; }
.teams .seat { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.teams .strike { text-decoration: line-through; color: var(--ink-4); }
.teams-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (max-width: 720px) { .teams { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-4); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 22px; color: var(--ink-3); font-size: 15px; max-width: 64ch; }

/* ---- final CTA + footer ---- */
.final { text-align: center; }
.final h2 { font-size: clamp(34px, 5.5vw, 64px); max-width: 18ch; margin: 0 auto 26px; }
.footer { border-top: 1px solid var(--line); padding: 46px 0; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 22px; opacity: .8; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-3); }
.footer-links a:hover { color: var(--ink); }
.footer .cr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }

/* ---- legal docs ---- */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 0 96px; }
.doc a.back { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.06em; }
.doc h1 { font-family: var(--font-serif); font-style: italic; font-size: clamp(34px,5vw,52px); margin: 18px 0 6px; }
.doc .upd { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); margin-bottom: 34px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc code { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }

/* ---- scroll reveal (progressive enhancement) ----
   Default = fully visible so the page works with no JS, for crawlers, and
   for Lighthouse. The hidden-then-animate state applies only once JS has
   added `.js` to <html>. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---- pre-launch waitlist -----------------------------------------------
   `prelaunch` on <body> hides the download CTAs (data-dl) and reveals the
   waitlist (data-waitlist). Remove the class to restore downloads — all
   download markup, the /download API, and the OS-detect JS stay intact. */
[data-waitlist] { display: none; }
body.prelaunch [data-dl] { display: none !important; }
body.prelaunch a[data-waitlist] { display: inline-flex; }
body.prelaunch form[data-waitlist] { display: block; }

.waitlist { width: 100%; max-width: 440px; margin: 0 auto; text-align: left; }
.hero .waitlist { margin-top: 34px; }
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-input {
  flex: 1 1 220px; min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.2;
  padding: 17px 18px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.waitlist-input::placeholder { color: var(--ink-4); }
.waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-msg { margin: 12px 2px 0; font-size: 14px; color: var(--ink-3); min-height: 1.25em; }
.waitlist-msg.ok { color: var(--accent-ink); font-weight: 500; }
.waitlist.done .waitlist-row { display: none; }
@media (max-width: 480px) {
  .waitlist-row .btn { width: 100%; justify-content: center; }
}
