/* Campkey — landing page styles
 * Hand-written. No framework. ~6KB minified.
 * Mobile-first. Respects prefers-reduced-motion. */

:root {
  /* Palette — outdoors / California / unhurried */
  --bg:           #fbf7ef;   /* warm cream */
  --bg-alt:      #f4ecdc;   /* deeper cream for sections */
  --text:        #1a2e1c;   /* deep forest */
  --text-soft:   #4a5e4c;   /* muted forest */
  --text-dim:    #7a8a7c;   /* tertiary */
  --accent:      #2d5a3d;   /* brand green */
  --accent-dark: #1e3f2a;   /* hover */
  --warm:        #c2410c;   /* amber CTA accent */
  --warm-dark:   #9a3308;
  --line:        #e0d8c4;   /* subtle dividers */
  --card:        #ffffff;
  --card-border: #ebe2cc;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", serif;

  /* Layout */
  --maxw: 720px;
  --maxw-wide: 960px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Easing */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }

/* Section spacing */
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }

/* Typography scale */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--text); }
h1 { font-size: 38px; }
h2 { font-size: 30px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 8px; }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
}

p { margin-bottom: 16px; color: var(--text-soft); max-width: 60ch; }
.lead { font-size: 19px; color: var(--text-soft); }
@media (min-width: 768px) { .lead { font-size: 21px; } }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw-wide); margin: 0 auto; padding: 14px 24px;
}
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: background 150ms var(--ease), transform 150ms var(--ease);
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 30px; font-size: 17px; border-radius: var(--radius); }
.btn-warm { background: var(--warm); }
.btn-warm:hover { background: var(--warm-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }

.btn-meta { display: block; margin-top: 12px; font-size: 14px; color: var(--text-dim); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-top: 56px; padding-bottom: 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .hero { padding-top: 80px; padding-bottom: 96px; } }
.hero-eyebrow {
  display: inline-block; padding: 5px 12px;
  background: rgba(45, 90, 61, 0.08); color: var(--accent);
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero p { font-size: 19px; }
@media (min-width: 768px) { .hero p { font-size: 21px; } }
.hero-cta { margin-top: 32px; }
.hero-mock {
  margin-top: 48px;
  border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border);
  padding: 20px 22px;
  box-shadow: 0 10px 40px -10px rgba(26, 46, 28, 0.15);
  font-family: var(--font-sans);
  max-width: 380px;
}
.hero-mock-time { font-size: 12px; color: var(--text-dim); text-align: center; margin-bottom: 12px; }
.hero-mock-bubble {
  background: var(--bg-alt); padding: 14px 16px; border-radius: 18px;
  font-size: 15px; line-height: 1.45; color: var(--text);
  white-space: pre-line;
}

/* ── Problem ──────────────────────────────────────────────── */
.problem { background: var(--bg); }
.problem h2 { color: var(--text); }
.problem-list p {
  font-size: 18px; color: var(--text); margin-bottom: 18px;
  padding-left: 26px; position: relative;
}
.problem-list p::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 2px; background: var(--warm);
}

/* ── How it works ─────────────────────────────────────────── */
.steps { background: var(--bg-alt); }
.steps-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { display: flex; gap: 16px; }
@media (min-width: 768px) { .step { flex-direction: column; gap: 12px; } }
.step-num {
  flex: none;
  width: 36px; height: 36px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { font-size: 16px; margin: 0; }

/* ── Features ─────────────────────────────────────────────── */
.features { background: var(--bg); }
.feature-card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px;
  margin-top: 32px;
}
@media (min-width: 768px) { .feature-card { padding: 40px; } }
.feature-card h3 { color: var(--accent); }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0 0; }
.feature-list li {
  padding: 10px 0 10px 32px; position: relative;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.feature-list li:first-child { border-top: none; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 18px; height: 10px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── Story ─────────────────────────────────────────────────── */
.story { background: var(--bg-alt); }
.story-quote {
  font-family: var(--font-display); font-size: 22px; line-height: 1.45;
  color: var(--text); padding-left: 24px;
  border-left: 3px solid var(--accent);
  margin-top: 24px;
}
@media (min-width: 768px) { .story-quote { font-size: 26px; } }
.story-quote p { color: var(--text); font-size: inherit; line-height: inherit; margin-bottom: 18px; }
.story-quote p:last-child { margin-bottom: 0; }
.story-byline { display: block; margin-top: 24px; font-size: 15px; color: var(--text-dim); font-family: var(--font-sans); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { background: var(--bg); }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 22px 36px 22px 0;
  font-weight: 600; font-size: 18px; color: var(--text);
  cursor: pointer; position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item .faq-answer { padding: 0 0 22px 0; color: var(--text-soft); font-size: 16px; }
.faq-item .faq-answer p { margin-bottom: 12px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ── Final CTA ─────────────────────────────────────────────── */
.cta-final {
  background: var(--accent); color: #fff;
  text-align: center;
}
.cta-final h2, .cta-final p { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.85); margin: 0 auto; }
.cta-final .btn { background: var(--warm); margin-top: 32px; }
.cta-final .btn:hover { background: var(--warm-dark); }
.cta-final .btn-meta { color: rgba(255, 255, 255, 0.7); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  padding: 48px 0; background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-dim);
}
.site-footer p { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: var(--text-soft); }
.site-footer .footer-links { margin-bottom: 16px; }
.site-footer .footer-links a + a { margin-left: 16px; }
.site-footer .legal { font-size: 13px; line-height: 1.6; max-width: 56ch; }

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

/* ── Long-form (privacy / terms) ──────────────────────────── */
.longform {
  padding: 64px 0;
  font-size: 16px;
  line-height: 1.7;
}
.longform h1 { margin-bottom: 24px; }
.longform h2 { font-size: 24px; margin: 40px 0 12px; }
.longform h3 { font-size: 19px; margin: 24px 0 8px; }
.longform p { color: var(--text); max-width: 65ch; }
.longform ul, .longform ol { padding-left: 24px; margin-bottom: 16px; }
.longform li { margin-bottom: 6px; color: var(--text); }
.longform .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.longform .callout {
  background: var(--bg-alt); border-left: 3px solid var(--warm);
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin: 24px 0;
}
.longform .callout p:last-child { margin-bottom: 0; }
.longform .toc {
  background: var(--card); border: 1px solid var(--card-border);
  padding: 20px 24px; border-radius: var(--radius);
  margin-bottom: 40px;
}
.longform .toc h3 { margin-top: 0; }
.longform .toc ol { margin-bottom: 0; }
