/* ===== BestBitYet — Design tokens ===== */
:root {
  --cream: #FAF6F1;
  --cream-deep: #F2E9DF;
  --ink: #23201D;
  --ink-soft: #57504A;
  --terracotta: #8A5A44;
  --terracotta-deep: #6E4636;
  --sage: #6B7A5E;
  --sage-deep: #545F49;
  --hairline: #E0D3C4;
  --white: #FFFFFF;
  --max-w: 720px;
  --wide-w: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.2em; max-width: 62ch; }
a { color: var(--terracotta-deep); }
a:hover { color: var(--terracotta); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; max-width: 62ch; }

/* ===== Layout shells ===== */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-wide {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / nav ===== */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
}
.nav-row {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--terracotta-deep); }
.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  margin-right: 28px;
  border-bottom: 1px solid transparent;
}
.nav-links a:last-child { margin-right: 0; }
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1.5px solid var(--terracotta);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--terracotta-deep);
}
.btn-ghost:hover { background: var(--terracotta); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; margin: 28px 0; }
.btn-row .btn { margin-right: 14px; margin-bottom: 10px; }
.btn-row .btn:last-child { margin-right: 0; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-band {
  background: var(--cream-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-ink {
  background: var(--ink);
  color: var(--cream);
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--cream); }
.section-ink p { color: #D9D1C8; }
.section-ink a { color: var(--cream); }

hr.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 48px 0;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--sage-deep);
  font-family: Georgia, serif;
  font-style: italic;
  margin-bottom: 10px;
}

/* ===== Hero ===== */
.hero {
  padding: 70px 0 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-side {
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}
.hero-side p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: 24px; }
}

/* ===== Stat list ===== */
.stat-list { list-style: none; padding: 0; margin: 28px 0; }
.stat-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 62ch;
  font-size: 1.05rem;
}
.stat-list li:first-child { border-top: 1px solid var(--hairline); }

/* ===== Three-way cards (flat, not SaaS-card) ===== */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  margin: 40px 0;
}
.path {
  padding: 32px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.path h3 { margin-bottom: 10px; }
.path p { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 20px; }
.path a { font-weight: bold; text-decoration: none; }
.path a:after { content: " →"; }
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
}

/* ===== Pillar list ===== */
.pillar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.pillar:first-of-type { border-top: 1px solid var(--hairline); }
.pillar-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  color: var(--terracotta);
  font-weight: 600;
}
.pillar h3 { margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Resource groups ===== */
.resource-group { margin-bottom: 44px; }
.resource-group h2 { margin-bottom: 10px; }
.resource-group .lede { color: var(--ink-soft); margin-bottom: 18px; }
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.resource-list li:first-child { border-top: 1px solid var(--hairline); }
.resource-list strong { color: var(--ink); }

.callout {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--sage);
  padding: 22px 26px;
  margin: 24px 0;
  font-size: 0.98rem;
}
.callout p:last-child { margin-bottom: 0; }

.disclaimer {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin-top: 40px;
}

/* ===== Start-here box ===== */
.start-here {
  background: var(--terracotta);
  color: var(--white);
  padding: 36px 32px;
  margin: 8px 0 40px;
}
.start-here h2 { color: var(--white); }
.start-here p { color: #F3E3DA; }
.start-here .btn-primary { background: var(--white); color: var(--terracotta-deep); border-color: var(--white); }
.start-here .btn-primary:hover { background: var(--cream); }
.start-here .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
.start-here .btn-ghost:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ===== Forms ===== */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: Georgia, serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-box {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 32px;
  max-width: 500px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; margin-right: 20px; }
.footer-links a:last-child { margin-right: 0; }
.footer-links a:hover { color: var(--ink); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Quiz embed area ===== */
.quiz-frame-wrap {
  border: 1px solid var(--hairline);
  background: var(--white);
}
