/* Shared styles for public landing, FAQ, 404, and legal-adjacent pages.
   Tokens match Prompt A (paper / pine). No glass, glow, or gradients. */
:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --surface-alt: #F4F2ED;
  --line: #E5E2DA;
  --line-strong: #D2CEC3;
  --ink: #1C1B18;
  --ink-body: #45433D;
  --ink-muted: #5A574F;
  --accent: #1F5E4A;
  --accent-hover: #184B3B;
  --accent-tint: #ECF2EF;
  --accent-ink: #FFFFFF;
  --success: #2F6B4F;
  --warning: #7A5214;
  --shadow: 0 1px 2px rgba(28, 27, 24, 0.04);
  --radius: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink-body);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--accent-ink);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.skip:focus { top: 0.75rem; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.nav-links a { color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 96px 1.25rem 96px;
}

.wrap-wide {
  max-width: 56rem;
  margin: 0 auto;
  padding: 96px 1.25rem 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-body);
  max-width: 68ch;
}

.prose > * + * { margin-top: 1.1rem; }

.prose h2 {
  margin: 2rem 0 0.65rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.prose h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.5rem;
}

.prose h3 {
  margin: 1.35rem 0 0.4rem;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.prose p,
.prose li {
  color: var(--ink-body);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 68ch;
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li { margin-top: 0.35rem; }

.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.example p { margin: 0; }
.example p + p { margin-top: 0.65rem; }
.example .kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-list details p { margin: 0.5rem 0 0; }

.price-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { grid-column: 1 / -1; }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--accent-tint);
  border-color: var(--accent);
}

.price-card h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  border: 0;
  padding: 0;
}

.price {
  margin: 0.65rem 0 0.15rem;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-note {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 28rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-body);
  vertical-align: top;
}

th {
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-alt);
}

tr:last-child td { border-bottom: 0; }

.site-footer {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.footer-nav a { color: var(--ink-muted); }
.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.not-found {
  text-align: left;
}

.related {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .related { grid-template-columns: 1fr 1fr; }
}

.related a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.related a:hover { border-color: var(--line-strong); }
.related a span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
