:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --text: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --primary-hover: #a54320;
  --accent: #e0a03a;
  --border: #dfd3c2;
  --surface-tint: #efe6d8;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header & Navigation */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; color: var(--text);
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--text); border-bottom-color: var(--primary); text-decoration: none;
}

/* Typography & Sections */
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.2; color: var(--text); margin: 0 0 12px;
}
h1 { font-size: 40px; letter-spacing: -0.02em; }
h2 { font-size: 28px; letter-spacing: -0.015em; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }

.eyebrow {
  font-size: 13px; font-weight: 600; color: var(--primary);
  margin: 0 0 8px; letter-spacing: 0.03em;
}
.hero-lead { font-size: 18px; color: var(--muted); max-width: 68ch; margin: 0; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }

.hero-band { padding: 32px 0 48px; }
.hero-copy { margin-bottom: 24px; }
.proof-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 24px;
}
.proof-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
}
.proof-item strong { font-size: 14px; color: var(--text); }
.proof-item span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.section-spotlight { padding-top: 8px; }
@media (max-width: 900px) { .proof-strip { grid-template-columns: 1fr; } }
.section-band { padding: 56px 0; }
.section-tinted {
  background: var(--surface-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 28px; max-width: 70ch; }
.section-sub { color: var(--muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .12s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; padding: 8px 12px; min-height: 36px; font-size: 14px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-tint); }
.btn-full { width: 100%; }

/* Examples Grid */
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.example-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.example-media { background: var(--surface-tint); border-bottom: 1px solid var(--border); }
.example-media img { width: 100%; aspect-ratio: 800 / 520; object-fit: cover; }
.example-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.example-tag { font-size: 13px; font-weight: 600; color: var(--primary); margin: 0 0 6px; }
.example-body p:last-of-type { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 16px; }

/* Timeline */
.timeline-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.timeline-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.timeline-num {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: #9b3b18; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; flex-shrink: 0;
}
.timeline-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Compare Grid */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.compare-card.is-highlight { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.compare-card ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.compare-card.is-highlight ul { color: var(--text); }
.compare-card li { margin-bottom: 10px; }

/* Prose & Related */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 32px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.related-card {
  display: flex; flex-direction: column; padding: 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.related-card:hover { border-color: var(--primary); text-decoration: none; }
.related-card p { color: var(--muted); font-size: 15px; margin-bottom: 12px; flex: 1; }
.related-cta { font-size: 14px; font-weight: 600; color: var(--primary); }

/* FAQ Accordion */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.faq-item summary {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--primary); font-size: 20px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 68ch; }

/* Standard & Legal Pages */
.page-band { padding: 40px 0 64px; }
.page-header { margin-bottom: 32px; max-width: 72ch; }
.legal-meta { font-size: 14px; color: var(--muted); font-family: var(--font-mono); }
.page-prose, .legal-prose { margin-top: 24px; }
.page-faq { margin-top: 48px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card.is-featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pricing-badge { font-size: 13px; font-weight: 600; color: var(--primary); margin: 0 0 8px; }
.pricing-price {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  margin: 0 0 8px; display: flex; align-items: baseline; gap: 6px;
}
.pricing-price span { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.pricing-note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.pricing-features { margin: 0 0 24px; padding-left: 18px; flex: 1; font-size: 15px; }
.pricing-features li { margin-bottom: 8px; }

/* 404 */
.notfound-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 32px; text-align: left; max-width: 680px; margin: 24px auto;
}
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Footer */
.site-footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 48px 0 28px; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-tagline { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 44ch; }
.footer-heading { font-weight: 600; font-size: 14px; margin: 0 0 12px; color: var(--text); }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-list a { color: var(--muted); }
.footer-list a:hover { color: var(--primary); }
.footer-bottom { padding-top: 20px; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Unwrap Minimal Page */
body.is-unwrap { min-height: 100vh; background: var(--bg); }
.unwrap-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.unwrap-mount { width: 100%; max-width: 680px; }

/* Responsive */
@media (max-width: 900px) {
  .examples-grid, .timeline-list, .pricing-grid { grid-template-columns: 1fr; }
  .compare-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .site-nav { gap: 14px; flex-wrap: wrap; }
  .hero-band { padding: 20px 0 36px; }
  .section-band { padding: 40px 0; }
}
