/* ===== VARIABLES ===== */
:root {
  --bg: #FDFAF6;
  --bg-alt: #F5F0E8;
  --fg: #2A2118;
  --fg-muted: #7A6E62;
  --fg-subtle: #AFA498;
  --accent: #C4612A;
  --accent-light: #E8B598;
  --border: #E2D9CC;
  --card-bg: #FDFAF6;
  --sienna: #C4612A;
  --brown: #2A2118;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,250,246,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  color: var(--fg); letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.75rem; color: var(--fg-muted); font-weight: 300;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 48px 100px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 400; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300; line-height: 1.25; color: var(--fg);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 1.0625rem; color: var(--fg-muted); line-height: 1.7;
  margin-bottom: 40px; font-weight: 300;
}
.hero-divider {
  width: 48px; height: 1px; background: var(--accent); margin-bottom: 32px;
}
.hero-proof {
  display: flex; gap: 40px;
}
.proof-item { display: flex; flex-direction: column; gap: 4px; }
.proof-stat {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 400;
  color: var(--accent); line-height: 1;
}
.proof-label { font-size: 0.75rem; color: var(--fg-muted); font-weight: 300; }

/* ===== HERO ROUTER ===== */
.hero-router {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 40px;
}
.hero-router-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300; line-height: 1.3; letter-spacing: -0.02em;
  color: var(--fg); max-width: 600px;
}
.hero-router-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.hero-cta-btn {
  display: inline-block; padding: 16px 40px;
  background: var(--accent); color: white;
  border: 2px solid var(--accent); border-radius: 4px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  text-decoration: none; letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.hero-cta-btn:hover { background: #b3561f; border-color: #b3561f; }

/* ===== HERO ILLUSTRATION ===== */
.hero-illustration {
  position: relative;
}
.illus-grid {
  display: flex; align-items: center; gap: 16px;
  padding: 32px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 4px;
}
.illus-card {
  flex: 1; padding: 20px; border-radius: 3px; position: relative;
}
.card-biz { background: rgba(196,97,42,0.08); border: 1px solid rgba(196,97,42,0.2); }
.card-creator { background: rgba(42,33,24,0.06); border: 1px solid var(--border); }
.card-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-bottom: 12px;
}
.card-dot--sienna { background: var(--sienna); }
.card-dot--brown { background: var(--brown); }
.card-line {
  height: 6px; border-radius: 3px; background: rgba(42,33,24,0.12);
  margin-bottom: 8px;
}
.card-line--lg { width: 80%; }
.card-line--md { width: 60%; }
.card-line--sm { width: 40%; }
.card-tag {
  font-size: 0.65rem; color: var(--fg-muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 12px; font-weight: 400;
}
.illus-arrow { display: flex; align-items: center; }
.illus-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 8px 16px; border-radius: 24px;
  font-size: 0.75rem; font-weight: 400; white-space: nowrap;
}
.badge-icon { font-size: 0.875rem; }

/* ===== SECTIONS ===== */
section { padding: 80px 48px; }
section + section { border-top: 1px solid var(--border); }
.section-label {
  font-size: 0.7rem; color: var(--accent); font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 300; line-height: 1.3; letter-spacing: -0.02em;
  max-width: 640px; margin-bottom: 48px;
}

/* ===== HOW IT WORKS ===== */
.hiw-inner { max-width: 1200px; margin: 0 auto; }
.hiw-steps {
  display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr;
  gap: 0; align-items: start;
}
.step { padding: 32px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.step-connector {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 80px;
}
.step-connector::after {
  content: ''; display: block; width: 24px; height: 1px;
  background: var(--accent);
}
.step-num {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 400;
  color: var(--accent); letter-spacing: 0.08em; margin-bottom: 12px;
}
.step-title {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 400;
  margin-bottom: 10px; line-height: 1.3;
}
.step-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; font-weight: 300; }

/* ===== PHILOSOPHY ===== */
.philosophy { background: var(--fg); color: var(--bg); }
.philosophy-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.philosophy .section-label { color: var(--accent-light); }
.philosophy-headline {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300; line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.philosophy-body {
  font-size: 1rem; color: rgba(253,250,246,0.7); font-weight: 300;
  margin-bottom: 40px;
}
.philosophy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.phil-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: 3px;
  background: rgba(253,250,246,0.06); border: 1px solid rgba(253,250,246,0.1);
}
.phil-item--no { flex-direction: row; }
.phil-x {
  color: var(--accent-light); flex-shrink: 0; margin-top: 2px;
}
.phil-text { font-size: 0.8125rem; color: rgba(253,250,246,0.7); font-weight: 300; line-height: 1.5; }
.quote-block {
  padding: 40px; border: 1px solid rgba(196,97,42,0.3);
  border-left: 3px solid var(--accent);
}
.quote-text {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 300;
  font-style: italic; line-height: 1.6; color: rgba(253,250,246,0.85);
}

/* ===== CREATOR MATCH ===== */
.creator-match { background: var(--bg-alt); }
.cm-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.cm-body { font-size: 1rem; color: var(--fg-muted); font-weight: 300; line-height: 1.7; margin-bottom: 32px; }
.cm-traits { display: flex; flex-direction: column; gap: 12px; }
.trait { display: flex; align-items: center; gap: 12px; }
.trait-icon { flex-shrink: 0; }
.trait span { font-size: 0.875rem; color: var(--fg-muted); font-weight: 300; }

/* ===== BAR CHART ===== */
.cm-visual { display: flex; flex-direction: column; gap: 24px; }
.cm-bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row {
  display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 12px;
}
.bar-label { font-size: 0.75rem; color: var(--fg-muted); font-weight: 300; }
.bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill {
  height: 100%; background: var(--accent); border-radius: 3px;
  width: var(--w, 0%); transition: width 0.6s ease;
}
.bar-val { font-size: 0.75rem; color: var(--fg); font-weight: 400; text-align: right; }

/* ===== SCORE CIRCLE ===== */
.cm-score { display: flex; justify-content: flex-end; }
.score-circle {
  width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.score-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--accent);
  line-height: 1;
}
.score-label { font-size: 0.65rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== RECEIPTS ===== */
.receipts-inner { max-width: 1200px; margin: 0 auto; }
.receipts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.receipt-card {
  padding: 32px 24px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--bg);
}
.receipt-icon { margin-bottom: 16px; }
.receipt-title {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 400;
  margin-bottom: 10px;
}
.receipt-desc { font-size: 0.8125rem; color: var(--fg-muted); font-weight: 300; line-height: 1.6; }

/* ===== VERTICALS ===== */
.verticals { background: var(--bg-alt); }
.verticals-inner { max-width: 1200px; margin: 0 auto; }
.verticals-sub { font-size: 1rem; color: var(--fg-muted); font-weight: 300; margin-bottom: 48px; max-width: 560px; }
.verticals-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.vert-card {
  padding: 28px 20px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--bg);
  transition: border-color 0.2s ease;
}
.vert-card:hover { border-color: var(--accent); }
.vert-icon { margin-bottom: 16px; }
.vert-name {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 400;
  margin-bottom: 8px; line-height: 1.3;
}
.vert-desc { font-size: 0.75rem; color: var(--fg-muted); font-weight: 300; line-height: 1.6; }

/* ===== CLOSING ===== */
.closing {
  background: var(--fg); color: var(--bg);
  padding: 100px 48px;
}
.closing-inner { max-width: 1200px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.4; letter-spacing: -0.02em;
  margin-bottom: 24px; color: rgba(253,250,246,0.9);
}
.closing-sub {
  font-size: 1rem; color: rgba(253,250,246,0.5); font-weight: 300;
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 32px 48px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  color: var(--fg); display: block; margin-bottom: 4px;
}
.footer-motto {
  font-size: 0.75rem; color: var(--fg-subtle); font-weight: 300;
  display: block;
}
.footer-copy { font-size: 0.75rem; color: var(--fg-muted); font-weight: 300; }

/* ===== APP NAV (shared across all /app/* surfaces) ===== */
.app-nav {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 3px solid var(--accent);
  margin-top: -1px;
  padding-top: 12px;
}
.app-nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-nav-link {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.app-nav-link:hover {
  color: var(--accent);
  background: rgba(196,97,42,0.06);
}
.app-nav-link.active {
  color: var(--accent);
  background: rgba(196,97,42,0.1);
  font-weight: 500;
}
@media (max-width: 640px) {
  .app-nav { flex-direction: column; align-items: flex-start; gap: 8px; }
  .app-nav-links { flex-wrap: wrap; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hiw-steps { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
  .receipts-grid { grid-template-columns: repeat(2, 1fr); }
  .verticals-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 24px; }
  .nav { padding: 0 24px; }
  .hero { padding: 60px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .cm-inner { grid-template-columns: 1fr; }
  .receipts-grid { grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps { grid-template-columns: 1fr; }
  .hero-proof { gap: 24px; }
  .closing { padding: 80px 24px; }
  .footer { padding: 24px; }
}

@media (max-width: 480px) {
  .verticals-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hero-proof { flex-wrap: wrap; }
}