:root {
  --bg: #fafaf8;
  --bg-dark: #1a2332;
  --fg: #111418;
  --fg-muted: #6b7280;
  --accent: #e8732a;
  --accent-light: #fef3e8;
  --surface: #ffffff;
  --border: #e5e5e0;
  --text-inv: #fafaf8;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.wordmark-apex { color: var(--fg); }
.wordmark-flow { color: var(--accent); }
.header-nav {
  display: flex;
  gap: 28px;
}
.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--fg); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: #c95e1f; }
.btn-primary--large { font-size: 16px; padding: 16px 36px; }
.btn-demo {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-demo:hover { background: var(--accent); color: #fff; }

/* Pricing enhancements */
.pricing-card--featured { background: var(--accent-light); border: 1px solid var(--accent); position: relative; }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}
.pricing-monthly {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  margin-top: 4px;
}
.pricing-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-muted);
}
.pricing-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.pricing-cta {
  display: block;
  text-align: center;
  background: var(--fg);
  color: var(--text-inv);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 12px;
  border-radius: 4px;
  margin-top: 20px;
  transition: background 0.15s;
}
.pricing-cta:hover { background: #333; }
.pricing-cta--featured { background: var(--accent); }
.pricing-cta--featured:hover { background: #c95e1f; }

/* FAQ */
.pricing-faq { margin-top: 64px; }
.faq-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.faq-a {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Services note */
.services-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 96px 32px 80px;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-inv);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(250, 250, 248, 0.65);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 48px;
}
.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-inv);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  color: rgba(250, 250, 248, 0.5);
  line-height: 1.4;
  max-width: 160px;
}
.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  margin-right: 48px;
}

/* Pain Points (replaces Manifesto) */
.pain-points {
  padding: 96px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pain-points-inner { max-width: 1160px; margin: 0 auto; }
.pain-points-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
}
.pain-card {
  background: var(--bg);
  padding: 40px 36px;
}
.pain-number {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1;
}
.pain-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.pain-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Services */
.services {
  padding: 96px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.services-inner { max-width: 1160px; margin: 0 auto; }
.services-header { margin-bottom: 56px; }
.services-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.services-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 660px;
}
.services-heading em {
  font-style: normal;
  color: var(--accent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
}
.service-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.15s;
}
.service-card:hover { background: var(--accent-light); }
.service-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.service-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* How */
.how {
  padding: 96px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 900px; margin: 0 auto; }
.how-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.how-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 64px;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-number {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
}
.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}
.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  width: 60px;
  flex-shrink: 0;
  height: 1px;
  background: var(--border);
  margin: 32px 24px 0;
  align-self: flex-start;
  margin-top: 40px;
}

/* Pricing */
.pricing {
  padding: 96px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pricing-inner { max-width: 1160px; margin: 0 auto; }
.pricing-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pricing-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--border);
}
.pricing-card {
  background: var(--surface);
  padding: 40px 36px;
}
.pricing-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.pricing-amount {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.pricing-card--outro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-dark);
  color: var(--text-inv);
}
.pricing-outro-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.pricing-outro-text {
  font-size: 15px;
  color: rgba(250,250,248,0.65);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Social Proof */
.social-proof {
  padding: 80px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.social-proof-inner { max-width: 1160px; margin: 0 auto; }
.social-proof-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}
.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.proof-card {
  background: var(--surface);
  padding: 36px 32px;
}
.proof-stat {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 10px;
}
.proof-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.proof-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.proof-placeholder {
  background: var(--bg-dark);
  padding: 24px 32px;
  border-radius: 4px;
}
.proof-placeholder-text {
  font-size: 14px;
  color: rgba(250,250,248,0.6);
  font-style: italic;
}

/* Closing */
.closing {
  padding: 96px 32px;
  background: var(--bg-dark);
  color: var(--text-inv);
}
.closing-inner { max-width: 860px; margin: 0 auto; }
.closing-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-inv);
  margin-bottom: 28px;
}
.closing-sub {
  font-size: 18px;
  color: rgba(250,250,248,0.65);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 48px;
}
.closing-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Footer */
.site-footer {
  padding: 48px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-wordmark {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* Demo Widget */
.demo-widget {
  margin-top: 56px;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 48px 52px;
}
.demo-widget-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.demo-widget-heading {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--text-inv);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.demo-widget-sub {
  font-size: 15px;
  color: rgba(250,250,248,0.6);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 32px;
}
.demo-form {}
.demo-input-row {
  display: flex;
  gap: 12px;
  max-width: 540px;
}
.demo-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--text-inv);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.15s;
}
.demo-input::placeholder { color: rgba(250,250,248,0.35); }
.demo-input:focus { border-color: var(--accent); }
.demo-input.error { border-color: #ef4444; }
.demo-submit {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.demo-submit:hover { background: #c95e1f; }
.demo-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.demo-error {
  margin-top: 10px;
  font-size: 13px;
  color: #fca5a5;
  max-width: 540px;
}
.demo-success {
  margin-top: 16px;
  font-size: 15px;
  color: #86efac;
  max-width: 540px;
  line-height: 1.55;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 64px 24px 56px; }
  .hero-headline { letter-spacing: -1px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .hero-sub { font-size: 16px; }
  .social-proof-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .closing-niches { display: none; }
  .pain-points, .services, .how, .pricing, .social-proof, .closing { padding: 64px 24px; }
  .hero-cta { margin-bottom: 0; }
  .btn-demo { display: none; }
  .proof-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 38px; }
  .stat-number { font-size: 28px; }
  .pricing-amount { font-size: 32px; }
}
