/* Public site styles. Values come from tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
}

a { color: var(--primary-strong); }
a:hover { color: var(--blue-900); }

h1, h2, h3 { letter-spacing: -0.01em; font-weight: var(--weight-emphasis); margin: 0; }

.container { max-width: 1024px; margin: 0 auto; padding: 0 var(--space-6); }

/* Header */
.site-header { padding: var(--space-6) 0; }
.site-header .container { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.wordmark { font-size: var(--text-2xl); font-weight: var(--weight-emphasis); color: var(--ink); text-decoration: none; }
.wordmark span { font-size: var(--text-sm); font-weight: var(--weight-normal); color: var(--ink-subtle); margin-left: var(--space-2); }
.site-nav { display: flex; gap: var(--space-6); }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-size: var(--text-base); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signature); }

/* Signature bar */
.bar::before { content: ""; display: block; width: var(--space-12); height: var(--space-1); background: var(--signature); margin-bottom: var(--space-4); }

/* Hero */
.hero { padding: var(--space-16) 0 var(--space-24); }
.hero h1 { font-size: var(--text-3xl); line-height: 1.15; max-width: 18ch; }
.hero .lead { font-size: var(--text-lg); color: var(--ink-muted); max-width: 52ch; margin: var(--space-6) 0 var(--space-8); line-height: 1.6; }
.hero .note { font-size: var(--text-sm); color: var(--ink-subtle); margin-top: var(--space-4); }

.button {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  background: var(--primary); color: #FFFFFF;
  font-size: var(--text-lg); font-weight: var(--weight-emphasis);
  text-decoration: none; box-shadow: var(--shadow-xs);
}
.button:hover { background: var(--blue-800); color: #FFFFFF; }
.button svg { width: var(--space-6); height: var(--space-6); }
.button .primary { fill: var(--blue-100); }
.button .secondary { fill: #FFFFFF; }

/* Sections */
.section { padding: var(--space-24) 0; }
.section--white { background: var(--surface); }
.section h2 { font-size: var(--text-2xl); line-height: 1.25; margin-bottom: var(--space-4); }
.section .intro { color: var(--ink-muted); max-width: 60ch; margin: 0 0 var(--space-12); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-8); counter-reset: step; }
.steps li { display: grid; grid-template-columns: var(--space-12) 1fr; gap: var(--space-4); counter-increment: step; max-width: 60ch; }
.steps li::before { content: counter(step); font-size: var(--text-3xl); line-height: 1; color: var(--gold-700); }
.steps h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.steps p { margin: 0; color: var(--ink-muted); }

/* Two-column block */
.split { display: grid; gap: var(--space-12); }
.split p { color: var(--ink-muted); margin: 0 0 var(--space-4); max-width: 60ch; }

/* Script quote (what callers hear) */
.script {
  margin: 0; padding: var(--space-6);
  background: var(--gold-50);
  border-left: var(--space-1) solid var(--signature);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--text-lg); line-height: 1.6;
}
.script cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: var(--text-sm); color: var(--ink-subtle); }

.facts { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); }
.facts li { display: grid; grid-template-columns: var(--space-6) 1fr; gap: var(--space-3); color: var(--ink-muted); }
.facts svg { width: var(--space-6); height: var(--space-6); }
.facts .primary { fill: var(--blue-100); }
.facts .secondary { fill: var(--blue-700); }

/* Long-form pages (privacy, terms) */
.doc { padding: var(--space-16) 0 var(--space-24); }
.doc h1 { font-size: var(--text-3xl); line-height: 1.15; }
.doc .updated { color: var(--ink-subtle); font-size: var(--text-sm); margin: var(--space-3) 0 var(--space-12); }
.doc article { max-width: 65ch; font-size: var(--text-lg); line-height: 1.7; }
.doc h2 { font-size: var(--text-xl); line-height: 1.25; margin: var(--space-12) 0 var(--space-3); }
.doc p, .doc ul { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.doc li { margin-bottom: var(--space-2); }
.doc strong { color: var(--ink); font-weight: var(--weight-emphasis); }

/* Footer */
.site-footer { background: var(--surface-tint); padding: var(--space-12) 0; color: var(--ink-subtle); font-size: var(--text-sm); }
.site-footer .container { display: grid; gap: var(--space-4); }
.site-footer nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); }
.site-footer address { font-style: normal; }

@media (min-width: 768px) {
  .hero { padding: var(--space-24) 0 var(--space-32); }
  .hero h1 { font-size: var(--text-5xl); }
  .section h2 { font-size: var(--text-3xl); }
  .doc h1 { font-size: var(--text-4xl); }
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
}
