/* Snagback website. Same brand tokens as the app (src/theme.ts). */

:root {
  --ink: #15203b;
  --sticker: #ffd43b;
  --money: #138a5a;
  --paper: #f4f5f8;
  --card: #ffffff;
  --slate: #556078;
  --line: #e3e6ee;
  --on-ink-muted: #c9ced8;
  --ink-surface: #2a3552;
  --danger: #c9363c;
  --text: var(--ink);
  --bg: var(--paper);
  --radius: 22px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --money: #2fbf7f;
    --paper: #0e1528;
    --card: #1a2440;
    --slate: #a3abbf;
    --line: #2a3552;
    --text: #f4f5f8;
    --bg: #0e1528;
    --danger: #ff7a7f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Wordmark: lowercase "snag" + "back" on a yellow sticker */
.wordmark {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em;
  text-decoration: none; line-height: 1;
}
.wordmark .sticker { background: var(--sticker); color: var(--ink); border-radius: 7px; padding: 3px 6px 5px; }

/* Header + hero (navy, like the app's intro screens) */
.hero { background: var(--ink); color: #fff; padding-bottom: 72px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.nav a.small { color: var(--on-ink-muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 32px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 72px); }
h1 .hl { color: var(--sticker); }
.lede { color: var(--on-ink-muted); font-size: 20px; margin: 20px 0 28px; max-width: 34ch; }

/* Waitlist form */
.join { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.join input[type="email"] {
  flex: 1 1 240px; min-height: 56px; border-radius: 999px; border: 2px solid transparent;
  padding: 0 22px; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
}
.join input[type="email"]:focus { outline: none; border-color: var(--sticker); }
.btn {
  min-height: 56px; border-radius: 999px; border: 0; padding: 0 28px; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 18px;
  background: var(--sticker); color: var(--ink);
}
.btn:hover { filter: brightness(0.96); }
.btn:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap */
.form-note { color: var(--on-ink-muted); font-size: 15px; margin-top: 12px; }
.form-note a { color: #fff; }
.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: var(--sticker); }
.form-msg.err { color: #ff9a9e; }

/* Receipt illustration */
.receipt-scene { position: relative; padding: 70px 10px 10px; }
.receipt {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px 28px;
  transform: rotate(-3deg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.receipt .label { font-family: var(--mono); letter-spacing: 0.15em; color: #556078; font-size: 14px; }
.receipt .row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; gap: 16px; }
.receipt .dash { border-top: 2px dashed #e3e6ee; margin: 8px 0; }
.receipt .item { font-weight: 700; }
.receipt .muted { color: #556078; }
.receipt .mono { font-family: var(--mono); font-weight: 500; }
.receipt .strike { text-decoration: line-through; color: #556078; }
.receipt .green { color: #138a5a; }
.badge {
  position: absolute; top: 0; right: 0; width: 132px; height: 132px; border-radius: 50%;
  background: var(--sticker); color: var(--ink); display: grid; place-content: center; text-align: center;
  transform: rotate(8deg); font-family: var(--display); font-weight: 800; line-height: 1;
}
.badge b { font-size: 40px; display: block; }
.badge span { font-family: var(--body); font-weight: 700; font-size: 17px; }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.section-sub { color: var(--slate); font-size: 19px; margin: 0 0 36px; max-width: 46ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; }
.step-num { font-family: var(--mono); color: var(--slate); letter-spacing: 0.15em; font-size: 14px; }
.step h3 { font-family: var(--body); font-weight: 700; letter-spacing: 0; font-size: 22px; margin: 8px 0; }
.step p { margin: 0; color: var(--slate); }
.icon-tile {
  width: 56px; height: 56px; border-radius: 16px; background: var(--paper);
  display: grid; place-content: center; margin-bottom: 16px; color: var(--text);
}
.icon-tile.yellow { background: var(--sticker); color: var(--ink); }
.alert-quote {
  margin-top: 18px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 26px;
  display: flex; gap: 16px; align-items: center; font-size: 19px;
}
.alert-quote svg { flex: none; color: var(--sticker); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--card); border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.fine { color: var(--slate); font-size: 15px; margin-top: 16px; }

.founding { background: var(--sticker); color: var(--ink); border-radius: 28px; padding: 40px; }
.founding h2 { font-size: clamp(30px, 4.5vw, 44px); }
.founding p { font-size: 19px; max-width: 52ch; margin: 14px 0 0; }
.price { font-family: var(--mono); font-weight: 500; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust h3 { font-family: var(--body); letter-spacing: 0; font-size: 19px; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--slate); font-size: 17px; }

.cta { text-align: center; }
.cta .join { margin: 24px auto 0; justify-content: center; }
.cta .form-note, .cta .form-msg { text-align: center; color: var(--slate); }
.cta .form-note a { color: var(--text); }
.cta .form-msg.ok { color: var(--money); }
.cta .form-msg.err { color: var(--danger); }
.cta .join input[type="email"] { border-color: var(--line); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--slate); font-size: 16px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); margin: 24px 0 8px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc .updated { color: var(--slate); }
.doc p, .doc li { font-size: 18px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--card); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; }
.doc-nav { padding: 22px 0; }
.doc-nav .wordmark { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps, .trust { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .founding { padding: 28px; }
  .badge { width: 112px; height: 112px; }
  .badge b { font-size: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 0.15s; }
}
