:root {
  --bg: #0c0d0f;
  --bg-2: #14161a;
  --bg-card: #1a1d22;
  --fg: #f4f5f6;
  --fg-muted: #b1b6bd;     /* was #9aa0a8 — bumped for 4.5:1 WCAG AA on bg */
  --fg-faint: #8a909a;     /* was #5a6068 — was 3.1:1, now 4.6:1 WCAG AA */
  --accent: #ff8a3d;
  --accent-hover: #ff9b56;
  --border: #262a31;
  --max: 1120px;
  --max-narrow: 780px;
  --measure: 56ch;          /* readable line length, tuned for Geist */
  --measure-tight: 46ch;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Readable line lengths — applied broadly, opt out where needed */
.lede,
.cta-lede,
.cta-sub,
.cta-fineprint,
.t-body,
.feel p,
.card p,
.step p,
.stat-sub,
.compare-foot,
details p,
.price-fineprint,
.feature-text,
.feel { max-width: var(--measure); }
.features li { max-width: 72ch; }
.timeline { max-width: 760px; }
.t-body { max-width: 480px; }
.compare-foot { max-width: 560px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-narrow); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.btn-primary { background: var(--accent); color: #0c0d0f; }
.btn-primary:hover { background: var(--accent-hover); color: #0c0d0f; transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 15, 0.78);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* Sections */
.section { padding: 88px 0; }
.section-dark { background: var(--bg-2); }
.section-h {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 48px;
}

/* Hero */
.hero { padding: 88px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 20px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.lede { font-size: 18px; color: var(--fg-muted); margin: 0 0 36px; max-width: 540px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-sub { font-size: 13px; color: var(--fg-faint); margin: 0; }

/* Inbox mock */
.hero-visual { display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.mock-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #0f1115;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mock-title { margin-left: 8px; font-size: 12px; color: var(--fg-faint); }
.mock-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: none; }
.mock-row-quiet { opacity: 0.55; }
.mock-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
}
.tag-draft { background: rgba(255,138,61,0.15); color: var(--accent); }
.tag-need { background: rgba(255,95,87,0.15); color: #ff7a73; }
.tag-arch { background: rgba(154,160,168,0.12); color: var(--fg-faint); }
.mock-from { font-weight: 600; font-size: 13px; }
.mock-line { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.mock-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid rgba(255,138,61,0.4);
  border-radius: 6px;
}
.mock-action-sec { color: var(--fg-muted); border-color: var(--border); }

/* 3 cards */
.cards-3, .steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Geist', system-ui, sans-serif;
}
.card h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.card-foot {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.card p { margin: 0; color: var(--fg-muted); font-size: 14px; }

/* Steps */
.step { position: relative; }
.step-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0c0d0f;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.step p { margin: 0; color: var(--fg-muted); font-size: 14px; }

/* Features list */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 580px;
  display: grid;
  gap: 16px;
}
.features li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.features li strong { color: var(--fg); margin-right: 6px; }

/* Pricing */
.price-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}
.price-amount {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-cadence { font-size: 18px; color: var(--fg-muted); font-weight: 400; }
.price-locked { color: var(--fg-muted); margin: 8px 0 28px; font-size: 14px; }
.price-list { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; }
.price-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--fg-muted);
  font-size: 14px;
}
.price-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  color: var(--accent);
  font-weight: 700;
}
.price-fineprint { color: var(--fg-faint); font-size: 12px; margin-top: 16px; }

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::after {
  content: '+';
  font-size: 22px;
  color: var(--fg-faint);
  margin-left: 16px;
}
details[open] summary::after { content: '−'; }
details p { margin: 12px 0 0; color: var(--fg-muted); font-size: 15px; }

/* CTA */
.section-cta { padding: 96px 0; }
.cta-headline {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.cta-lede { color: var(--fg-muted); font-size: 17px; margin: 0 0 36px; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin: 0 auto 20px;
}
.form-card-light {
  background: #ffffff;
  padding: 24px;
  overflow: hidden;
}
.form-card-light iframe { display: block; border-radius: 6px; }
.form-placeholder { color: var(--fg-muted); font-size: 14px; margin: 0 0 20px; }
.form-placeholder code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.cta-fineprint { color: var(--fg-faint); font-size: 13px; margin-top: 12px; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--border); color: var(--fg-faint); font-size: 13px; }
.footer p { margin: 4px 0; }
.footer a { color: var(--fg-muted); }
.footer a:hover { color: var(--fg); }
.footer .copy { margin-top: 16px; }

/* ============================================================
   ENHANCEMENTS — animations, components, gradient mesh, polish
   ============================================================ */

/* Reveal-on-scroll: respects --delay, prefers-reduced-motion handled in JS */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
  will-change: opacity, transform;
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* Hero gradient mesh — subtle, single-source, no purple-gradient cliché */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: -200px -200px auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.10), rgba(255, 138, 61, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto auto -300px -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(94, 138, 255, 0.06), rgba(94, 138, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-family: 'Fraunces', serif; }
.hero .mock {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card hover polish */
.card {
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.card:hover {
  border-color: rgba(255, 138, 61, 0.28);
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 138, 61, 0.03) 100%);
}

/* Step hover polish */
.step { transition: transform 200ms ease; }
.step:hover { transform: translateY(-2px); }

/* Inbox mockup: approve interaction */
.mock-row {
  transition: background 240ms ease;
}
.mock-action {
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  cursor: pointer;
  user-select: none;
}
.mock-action:hover { background: var(--accent); color: #0c0d0f; transform: scale(1.04); }
.mock-row.approving { background: rgba(255, 138, 61, 0.06); }
.mock-row.approving .mock-action::after {
  content: ' ✓';
  display: inline;
  animation: check-pop 320ms cubic-bezier(0.22, 1.4, 0.36, 1) both;
}
@keyframes check-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   STAT BLOCK — section-stats
   ============================================================ */
.section-stats {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 138, 61, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.stat:hover { border-color: rgba(255, 138, 61, 0.22); transform: translateY(-2px); }
.stat:hover::before { opacity: 1; }
.stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-unit, .stat-unit-pre {
  font-size: 0.6em;
  color: var(--accent);
  font-weight: 600;
}
.stat-unit-pre { margin-right: 0; }
.stat-label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.stat-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============================================================
   COMPARISON MATRIX
   ============================================================ */
.compare-wrap {
  margin-top: 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare thead th {
  text-align: left;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.compare thead th.col-otto {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.compare tbody th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  width: 30%;
}
.compare tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.col-otto {
  background: rgba(255, 138, 61, 0.04);
  border-left: 1px solid rgba(255, 138, 61, 0.2);
  border-right: 1px solid rgba(255, 138, 61, 0.2);
}
.compare td.col-otto strong { color: var(--accent); }
.compare th.col-otto {
  background: rgba(255, 138, 61, 0.08);
  border-left: 1px solid rgba(255, 138, 61, 0.2);
  border-right: 1px solid rgba(255, 138, 61, 0.2);
}
.check { color: var(--accent); font-weight: 700; font-size: 16px; }
.x { color: var(--fg-faint); font-size: 16px; }
.partial {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(154, 160, 168, 0.12);
  color: var(--fg-muted);
  font-weight: 500;
}
.compare-foot {
  margin-top: 28px;
  font-size: 14px;
  color: var(--fg-muted);
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   DAY-IN-THE-LIFE TIMELINE
   ============================================================ */
.timeline {
  list-style: none;
  padding: 0;
  margin: 56px auto 0;
  max-width: 760px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--border) 12%, var(--border) 88%, transparent 100%);
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 18px 0;
  align-items: start;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 84px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-2);
}
.t-time {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-right: 24px;
  padding-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.t-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  padding-left: 16px;
  max-width: 56ch;
}
.t-body strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   "WHAT YOU'LL FEEL" SECTION
   ============================================================ */
.section-feel { background: var(--bg); }
.feel-list {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.feel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 36px 36px 32px;
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  transition: border-color 220ms ease, transform 220ms ease;
}
.feel-num { grid-row: 1 / span 2; }
.feel h3 { grid-column: 2; grid-row: 1; }
.feel p { grid-column: 2; grid-row: 2; }
.feel:hover {
  border-color: rgba(255, 138, 61, 0.22);
  transform: translateY(-2px);
}
.feel-num {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.85;
}
.feel h3 {
  margin: 8px 0 10px;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.feel p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   FAQ refinements
   ============================================================ */
details {
  transition: border-color 200ms ease;
}
details:hover { border-color: var(--fg-faint); }
details[open] summary { color: var(--accent); }

/* Section eyebrow when used standalone */
.section .eyebrow.center { margin-bottom: 20px; }

/* Pricing card on dark section variant */
.section-dark .price-card {
  background: var(--bg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards-3, .steps-3 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .price-card { padding: 36px 24px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 24px 20px; }

  .compare-wrap { overflow-x: auto; }
  .compare { min-width: 640px; }

  .timeline { max-width: 100%; }
  .timeline::before { left: 64px; }
  .timeline li { grid-template-columns: 64px 1fr; gap: 16px; }
  .timeline li::before { left: 60px; }
  .t-time { padding-right: 12px; font-size: 11px; }
  .t-body { padding-left: 12px; font-size: 14px; }

  .feel { grid-template-columns: 1fr; padding: 28px 24px; gap: 4px; }
  .feel-num { font-size: 44px; }
  .feel h3 { font-size: 20px; }

  .hero::before { width: 480px; height: 480px; inset: -120px -160px auto auto; }
  .hero::after { display: none; }
}

@media (max-width: 540px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 36px; }
}

/* Reduced motion overrides JS-driven motion as well */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up.in-view { opacity: 1; transform: none; transition: none; }
  .hero .mock { transform: none !important; }
  .card:hover, .step:hover, .feel:hover, .stat:hover { transform: none; }
}
