/*
 * Spoolset — public web.
 *
 * ⚠️ The palette is MIRRORED from `app/src/shared/theme/tokens.ts`. Keep it in sync: the site and the
 * store screenshots sit next to each other on the product page, and a different orange reads as a
 * different app. Amber accent + lime answer card are the app's, not a web theme.
 */
:root {
  --bg: #f7f8f5;          /* warm off-white — pure #fff is the competitors' surface */
  --surface: #eceee9;
  --surface2: #e3e6df;
  --keyline: #dadcd6;
  --ink: #14171a;
  --ink-dim: #4e565f;
  --ink-faint: #6e7681;
  --accent: #ff9f1c;
  --accent-ink: #8a4b00;
  --answer-bg: #e9f6bc;
  --answer-border: #c2dc6a;
  --answer-ink: #141a05;
  --answer-label: #4e6018;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131519;
    --surface: #1c1f25;
    --surface2: #23272f;
    --keyline: #262b33;
    --ink: #f2f4f7;
    --ink-dim: #9aa3af;
    --ink-faint: #5f6773;
    --accent-ink: #ff9f1c;
    --answer-bg: #1e2418;
    --answer-border: #39421f;
    --answer-ink: #d8f14a;
    --answer-label: #93a94a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  padding: 0 20px;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 56px 0 72px; }

.hero { margin-bottom: 40px; }

h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.tagline { font-size: 1.15rem; color: var(--ink-dim); margin: 0 0 20px; }

/* The price model leads, because it IS the positioning — tradecalc/CLAUDE.md rule 4. */
.model {
  display: inline-block;
  background: var(--answer-bg);
  border: 1px solid var(--answer-border);
  color: var(--answer-ink);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.95rem;
}

h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 44px 0 14px;
}

section > p:first-of-type { margin-top: 0; }

p { margin: 0 0 14px; }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

ul { margin: 0 0 14px; padding-left: 1.1rem; }
li { margin-bottom: 8px; }

.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--keyline);
  border-radius: 14px;
  padding: 16px;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--ink-dim); font-size: 0.93rem; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--surface2);
  color: var(--ink-faint);
}
.tag.free { background: var(--answer-bg); color: var(--answer-label); }
.tag.paid { background: var(--accent); color: #231400; }

.never { border-left: 3px solid var(--accent); padding-left: 14px; margin: 20px 0; }
.never p { color: var(--ink-dim); }

code { font-family: var(--mono); font-size: 0.9em; background: var(--surface2); padding: 1px 5px; border-radius: 5px; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--keyline);
  color: var(--ink-faint);
  font-size: 0.88rem;
}
footer a { color: var(--ink-dim); }

table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--keyline); vertical-align: top; }
th { color: var(--ink-faint); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
