/* Standing Answer — site styles
   Brand authority: ../brand/brand-guidelines.md (v1.0, 2026-07-12)
   Palette: Spruce #1E4D3F · Ledger #152E26 · Clay #B0562F · Kiln #E0A87E
            Paper #F7F4EE · White #FFFFFF · Mist #E8EFEA
            Ink #20302B · Slate #5C6963 · Line #D9D4C9 */

:root {
  --spruce: #1E4D3F;
  --ledger: #152E26;
  --clay: #B0562F;
  --kiln: #E0A87E;
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --mist: #E8EFEA;
  --ink: #20302B;
  --slate: #5C6963;
  --line: #D9D4C9;
  --codex-text: #E9E6DE;
  --footer-small: #9FAAA4;
  --heading: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --shadow: 0 1px 3px rgba(21,46,38,0.08), 0 4px 16px rgba(21,46,38,0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

/* ---------- Type scale (1.25 on 16px) ---------- */

h1, h2, h3, .display {
  font-family: var(--heading);
  color: var(--ink);
  margin: 0 0 24px;
}

.display { font-size: 61px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 49px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: 39px; line-height: 1.2; font-weight: 600; }
h3 { font-size: 25px; line-height: 1.3; font-weight: 500; }

.lead { font-size: 20px; line-height: 1.5; font-weight: 500; }

p { margin: 0 0 16px; max-width: 68ch; }
li { max-width: 68ch; }

.small { font-size: 14px; line-height: 1.5; color: var(--slate); }

.label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 16px;
}

a { color: var(--spruce); }
a:hover { color: var(--ledger); }

.accent-dot { color: var(--clay); }

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

/* ---------- Layout ---------- */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.nav-link:hover { color: var(--spruce); }
.nav-links a.nav-link[aria-current="page"] { color: var(--spruce); }

.logo-link { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 24px;
  border-radius: 6px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary { background: var(--spruce); color: var(--white); }
.btn-primary:hover { background: var(--ledger); color: var(--white); }

.btn-accent { background: var(--clay); color: var(--white); }
.btn-accent:hover { background: #9A4A28; color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--spruce);
  border: 1px solid var(--spruce);
  padding: 11px 23px;
}
.btn-secondary:hover { background: var(--mist); color: var(--spruce); }

/* ---------- Hero ---------- */

.hero { padding: 128px 0 96px; }
.hero .display .accent-dot { color: var(--clay); }
.hero .lead { max-width: 56ch; }
.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.card.featured { border-top: 3px solid var(--spruce); }
.card h3 { margin-bottom: 16px; }
.card > *:last-child { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* ---------- Quote wall ---------- */

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}

.quote-card blockquote {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}

.quote-card cite {
  font-style: normal;
  font-size: 14px;
  color: var(--slate);
  display: block;
}
.quote-card cite a { color: var(--slate); }
.quote-card cite a:hover { color: var(--spruce); }

/* ---------- Steps (how it works) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 32px 0 32px 88px;
  border-top: 1px solid var(--line);
  max-width: none;
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 28px;
  width: 56px;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 39px;
  line-height: 1.2;
  color: var(--clay);
}

.steps h3 { margin-bottom: 8px; }
.steps p { margin-bottom: 8px; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Ladder table ---------- */

.table-scroll { overflow-x: auto; }

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.ledger-table th {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: left;
  background: var(--mist);
  padding: 12px 16px;
}

.ledger-table td {
  padding: 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}

.ledger-table td:first-child { white-space: nowrap; font-weight: 500; }

/* ---------- Never list ---------- */

.never-list { list-style: none; margin: 0 0 16px; padding: 0; }
.never-list li {
  padding: 16px 0 16px 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.never-list li:last-child { border-bottom: 1px solid var(--line); }
.never-list li::before {
  content: "\2192"; /* → */
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 600;
}

/* ---------- Pricing ---------- */

.price-figure {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 49px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 4px;
}
.price-figure .accent-dot { color: var(--clay); }
.price-terms { color: var(--slate); font-size: 14px; margin-bottom: 24px; }

.check-list { list-style: none; margin: 0 0 16px; padding: 0; }
.check-list li { padding: 8px 0 8px 28px; position: relative; }
.check-list li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 0;
  color: var(--spruce);
  font-weight: 600;
}

.pill {
  display: inline-block;
  background: var(--mist);
  color: var(--spruce);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Text darkened from Clay #B0562F to #9A4A28 (the accent hover shade):
   Clay on #F3E2D6 is 3.92:1 — below AA for 13px text. #9A4A28 is 4.89:1. */
.pill-clay { background: #F3E2D6; color: #9A4A28; }

/* ---------- Codex block (signature component) ---------- */

.codex-block {
  position: relative;
  background: var(--ledger);
  border-radius: 6px;
  padding: 48px 24px 24px;
  margin: 24px 0;
}

.codex-block .codex-label {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kiln);
}

.codex-block pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--codex-text);
}

.codex-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--kiln);
  color: var(--ledger);
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
}
.codex-copy:hover { background: #D69A6C; }

/* ---------- Dark band (digest sample) ---------- */

.band-dark {
  background: var(--ledger);
  border-radius: 12px;
  padding: 48px;
  color: var(--codex-text);
}
.band-dark h3, .band-dark h2 { color: var(--white); }
.band-dark .label { color: var(--kiln); }
.band-dark a { color: var(--kiln); }
.band-dark .digest-line {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 8px;
}
.band-dark .digest-line strong { color: var(--kiln); font-weight: 600; }
.band-dark .small { color: var(--footer-small); }

/* ---------- Founder ---------- */

.founder-quote {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.4;
  border-left: 3px solid var(--clay);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 40ch;
}

.byline { color: var(--slate); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 32px 24px 0;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 24px;
  color: var(--clay);
  font-family: var(--body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 0 24px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--slate); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--spruce);
  outline: 2px solid var(--spruce);
  outline-offset: 2px;
}

.field .hint { font-size: 14px; color: var(--slate); margin-top: 8px; }

.form-note {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ledger);
  padding: 64px 0;
  margin-top: 96px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--codex-text);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}
.footer-links a:hover { color: var(--kiln); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(217, 212, 201, 0.15);
  padding-top: 24px;
  font-size: 13px;
  color: var(--footer-small);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--footer-small); }
.footer-bottom a:hover { color: var(--kiln); }

/* ---------- Utility bands ---------- */

.band-mist {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro { max-width: 68ch; margin-bottom: 48px; }
.section-intro p:last-child { margin-bottom: 0; }

.stack-24 > * + * { margin-top: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .band-dark { padding: 32px 24px; }
}

@media (max-width: 760px) {
  /* Drop the secondary Pricing link first; it stays reachable from the
     How-it-works page and the homepage sections. */
  .hide-narrow { display: none; }
}

@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero { padding: 64px 0 48px; }
  .display { font-size: 40px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .price-figure { font-size: 39px; }
  .steps > li { padding-left: 56px; }
  .steps > li::before { width: 40px; font-size: 28px; top: 34px; }
  .nav-links { gap: 12px; }
  .nav-links .btn { padding: 9px 14px; font-size: 14px; }
  .nav-links a.nav-link { font-size: 14px; }
  .footer { margin-top: 48px; }
}

@media (max-width: 480px) {
  /* Logo + one clean button; How-it-works stays reachable via the hero,
     section CTAs, and the footer on every page. */
  .nav-links a.nav-link { display: none; }
}
