:root {
  --bg: #FAF6EF;
  --bg-alt: #F0E8D9;
  --fg: #1A0F06;
  --fg-muted: #6B5A4A;
  --accent: #C87941;
  --accent-dark: #A85F28;
  --surface: #FDFBF7;
  --border: #DDD0BD;
  --success: #4A7C59;
  --success-bg: #EDF4EE;
  --warn: #B8692A;
  --warn-bg: #FBF0E5;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
  margin-left: 0.25rem;
}

/* Hero */
.hero {
  padding: 4rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 46ch;
}

/* Board card stack */
.hero-visual {
  display: flex;
  justify-content: center;
}
.board-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
}
.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(26,15,6,0.06);
}
.board-card-1 { border-left: 3px solid var(--success); }
.board-card-2 { border-left: 3px solid var(--success); opacity: 0.9; }
.board-card-3 { border-left: 3px solid var(--warn); }
.board-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.board-measure {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.board-cuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}
.cut-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}
.cut-chip-ok {
  background: var(--success-bg);
  color: var(--success);
}
.cut-chip-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.board-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.board-status-ok { color: var(--success); }
.board-status-warn { color: var(--warn); }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.project-summary {
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 0.25rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  color: rgba(250,246,239,0.7);
}
.summary-row-gap { border-top: 1px solid rgba(250,246,239,0.15); padding-top: 0.5rem; margin-top: 0.2rem; }
.summary-val { font-weight: 600; color: var(--bg); }
.summary-val-warn { color: #E8A870; }

/* Problem section */
.problem {
  background: var(--bg-alt);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.problem-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--fg);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.problem-attribution {
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-left: 1.5rem;
}
.problem-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding: 0.75rem;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.problem-icon {
  color: #C25B4A;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Features */
.features {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
.feature-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* How it works */
.howitworks {
  background: var(--fg);
  color: var(--bg);
  padding: 4rem 2rem;
}
.howitworks .section-label { color: var(--accent); }
.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 2rem;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--bg);
}
.step-desc {
  font-size: 0.88rem;
  color: rgba(250,246,239,0.65);
  line-height: 1.6;
  padding: 0 1rem;
}
.step-connector {
  width: 80px;
  flex-shrink: 0;
  align-self: center;
  height: 1px;
  background: rgba(250,246,239,0.15);
  margin: 0 1rem;
  margin-top: -1.5rem;
}

/* Manifesto */
.manifesto {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: 2rem;
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.manifesto-body p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}
.footer-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .problem-inner { grid-template-columns: 1fr; gap: 2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { width: 1px; height: 40px; margin: 0.75rem 0; }
  .footer-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-note { text-align: left; }
  .hero { padding: 2.5rem 1.5rem 2rem; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}