/* LaunchKitLab shared tokens + components */
:root {
  --bg: #f2ecdf;
  --paper: #fbf6ec;
  --paper-2: #fffaf0;
  --ink: #14120f;
  --ink-2: #2a2620;
  --muted: #6e665c;
  --line: rgba(20, 18, 15, .12);
  --line-soft: rgba(20, 18, 15, .07);
  --terra: #bf4a22;
  --terra-ink: #7d2d10;
  --sage: #3f5f4c;
  --sage-ink: #27402f;
  --ochre: #c8a13a;
  --shadow-sm: 0 2px 6px rgba(20,18,15,.05), 0 12px 28px rgba(20,18,15,.06);
  --shadow-md: 0 4px 12px rgba(20,18,15,.06), 0 24px 60px rgba(20,18,15,.09);
  --shadow-lg: 0 8px 24px rgba(20,18,15,.08), 0 36px 90px rgba(20,18,15,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Fraunces", ui-serif, Georgia, serif; }
.mono  { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- layout ---------- */
.wrap { width: min(1200px, 92vw); margin: 0 auto; }
.row  { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  min-height: 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.brand {
  font: 700 22px/1 "Fraunces", serif;
  letter-spacing: -.03em; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font: 800 15px/1 "Fraunces", serif; letter-spacing: -.04em;
}
.brand.terra .brand-mark { background: var(--terra); }
.brand.sage  .brand-mark { background: var(--sage); }
.nav-links {
  display: flex; gap: 22px; align-items: center;
  font-size: 14px; color: var(--muted);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ---------- pill / eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--terra);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--terra) 18%, transparent);
}
.eyebrow.sage::before { background: var(--sage); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage) 18%, transparent); }
.eyebrow.plain::before { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  font: 600 15px/1 "Inter", sans-serif;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-lg { padding: 18px 26px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-terra { background: var(--terra); color: #fff6ee; box-shadow: 0 10px 24px rgba(191,74,34,.28); }
.btn-terra:hover { background: var(--terra-ink); transform: translateY(-1px); }
.btn-sage  { background: var(--sage);  color: #f4f7f2; box-shadow: 0 10px 24px rgba(63,95,76,.28); }
.btn-sage:hover  { background: var(--sage-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- card ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card-lg { padding: 28px; border-radius: 24px; }

/* ---------- section ---------- */
section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 {
  font: 600 clamp(32px, 4.6vw, 56px)/1.02 "Fraunces", serif;
  letter-spacing: -.035em;
  margin: 12px 0 0; max-width: 820px;
}
.section-head p { color: var(--muted); max-width: 420px; margin: 0; }
@media (max-width: 860px) { .section-head { display: block; } .section-head p { margin-top: 14px; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; }
.display {
  font: 600 clamp(44px, 7vw, 88px)/.96 "Fraunces", serif;
  letter-spacing: -.045em;
}
.display em, .headline em {
  font-style: italic; font-weight: 500;
  color: var(--terra);
}
.sage .display em, .sage .headline em { color: var(--sage); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 620px;
}

/* ---------- faq ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font: 600 20px/1.3 "Fraunces", serif; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: 0 0 14px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  transition: transform .2s ease; opacity: .5;
}
.faq .a { color: var(--muted); padding-top: 10px; max-width: 720px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; margin-left: 18px; color: var(--muted); }
.footer a:hover { color: var(--ink); }
@media (max-width: 560px) { .footer a { margin: 0 14px 0 0; } }

/* ---------- checkmarks ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  position: relative; padding-left: 28px; color: var(--ink);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--terra);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10'/></svg>") no-repeat center / contain;
}
.checklist li::after {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 10px; height: 5px;
  border-left: 2px solid #fff6ee; border-bottom: 2px solid #fff6ee;
  transform: rotate(-45deg);
}
.sage .checklist li::before { background: var(--sage); }

/* ---------- sticky mobile buy ---------- */
.buybar {
  display: none;
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80;
  padding: 10px 10px 10px 16px;
  background: color-mix(in oklab, var(--paper-2) 92%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  align-items: center; justify-content: space-between; gap: 12px;
}
.buybar strong { font: 700 17px/1 "Fraunces", serif; }
.buybar small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .buybar { display: flex; }
  body.has-buybar { padding-bottom: 92px; }
}

/* ---------- form ---------- */
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.field input, .field select, .field textarea {
  font: 400 15px/1.4 "Inter", sans-serif;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--ink) 35%, transparent);
  outline-offset: 1px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 12px; }

/* ---------- utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide  { display: none !important; }
.strike { color: var(--muted); text-decoration: line-through; }
.center { text-align: center; }
.fineprint { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
