:root {
  --bg: #FAF9F7;
  --ink: #111111;
  --muted: #6B6763;
  --accent: #C4501A;
  --accent-light: #F2E8E1;
  --rule: #E2DED8;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 20px 48px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tagline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}

/* ── Header nav ── */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.btn-sign-out {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.btn-sign-out:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-get-started {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-get-started:hover { background: #a33d14; }

/* ── Hero ── */
.hero {
  padding: 100px 48px 96px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-inner { max-width: 740px; }
.overline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
}
.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 580px;
  font-weight: 300;
}

/* ── Features ── */
.features { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 80px 48px; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}
.feature-item { padding-left: 0; }
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-item p { font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.6; }

/* ── Workflow ── */
.workflow { padding: 88px 48px; }
.workflow-inner { max-width: 1100px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; }
.step { padding: 32px 40px 32px 0; border-right: 1px solid var(--rule); }
.step:nth-child(even) { border-right: none; padding-left: 40px; padding-right: 0; }
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.05em;
}
.step-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-body p { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.6; }

/* ── Manifesto ── */
.manifesto { padding: 96px 48px; background: var(--ink); }
.manifesto-inner { max-width: 900px; margin: 0 auto; }
.statement p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  color: var(--bg);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.manifesto-body {
  font-size: 17px;
  color: rgba(250,249,247,0.55);
  font-weight: 300;
  line-height: 1.75;
  margin-top: 40px;
  max-width: 560px;
}

/* ── Footer ── */
footer { padding: 40px 48px; border-top: 1px solid var(--rule); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-inner p { font-size: 13px; color: var(--muted); font-weight: 300; }

/* ── Auth & Onboarding ── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: calc(100vh - 81px);
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 36px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.field input {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--muted); }
.field-error {
  font-size: 13px;
  color: #c00;
  min-height: 18px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.btn-primary:hover { background: #a33d14; }
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Onboarding ── */
.onboarding-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px;
  min-height: calc(100vh - 81px);
}
.onboarding-card {
  width: 100%;
  max-width: 560px;
}
.onboarding-overline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.onboarding-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.onboarding-subtitle {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 48px;
}
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.onboarding-step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.onboarding-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.onboarding-step p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.5;
}
.onboarding-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.onboarding-cta:hover { background: #a33d14; }
@media (max-width: 768px) {
  .site-header, .hero, .features, .workflow, .manifesto, footer { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); padding-left: 0; padding-right: 0; }
  .step:nth-child(even) { padding-left: 0; }
  .step:last-child { border-bottom: none; }
  .header-inner { flex-direction: column; gap: 4px; }
}