/* === Design Tokens === */
:root {
  --bg: #FEFCF8;
  --bg-warm: #F8F3EC;
  --fg: #1A1A2E;
  --fg-muted: #6B6B7A;
  --accent: #C9572A;
  --accent-dark: #A04520;
  --navy: #1C2B4A;
  --navy-light: #2A3F6B;
  --cream: #FDF6EC;
  --border: #E8E0D5;
  --white: #FFFFFF;
  --radius: 6px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

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

/* === Typography === */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
}

/* === Layout === */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--fg);
  margin-bottom: 20px;
}

.section-body {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.75;
}

/* === Header === */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(201, 87, 42, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(28, 43, 74, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: var(--fg);
  max-width: 680px;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 52px;
}

/* === Stats Row === */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 36px 20px 0;
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin-right: 36px;
  flex-shrink: 0;
}

/* === How It Works === */
.how-it-works {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0;
}

.how-it-works .section-eyebrow { color: #E8B89A; }
.how-it-works .section-heading { color: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.process-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.process-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.process-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.process-card p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.process-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-details li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding-left: 18px;
  position: relative;
}

.process-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* === Postcard Co-op === */
.postcard-coop {
  padding: 96px 0;
  background: var(--cream);
}

.section-inner.reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--fg);
}

.feature-check {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === Postcard Mock === */
.postcard-mock {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.postcard-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-business {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.postcard-label {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

/* === ROI Calculator === */
.roi-section {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.roi-calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-top: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  max-width: 720px;
}

.roi-input {
  margin-bottom: 40px;
}

.roi-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 20px;
}

.roi-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.roi-slider-min,
.roi-slider-max {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
  min-width: 40px;
  flex-shrink: 0;
}

.roi-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-dark) var(--progress, 9%), var(--border) var(--progress, 9%));
  outline: none;
  cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(201,87,42,0.35);
  cursor: pointer;
  transition: transform 0.15s;
}

.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(201,87,42,0.35);
  cursor: pointer;
}

.roi-slider-value {
  margin-top: 14px;
  font-size: 15px;
  color: var(--fg-muted);
}

#price-display {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}

.roi-per-job { margin-left: 6px; }

.roi-outputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.roi-stat {
  text-align: center;
  padding: 0 16px;
}

.roi-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.roi-stat-value {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.roi-revenue { font-size: 36px !important; color: var(--accent) !important; }

.roi-stat-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

.roi-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  flex-shrink: 0;
}

.roi-disclaimer {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 24px;
  font-style: italic;
  max-width: 680px;
}

/* === AI Automation === */
.ai-automation {
  padding: 96px 0;
  background: var(--bg);
}

.centered { text-align: center; }
.centered .section-body { margin: 0 auto; }

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--white);
  position: relative;
  text-align: left;
}

.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 87, 42, 0.08);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.tier-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.tier-price {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.tier-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* === Industries === */
.industries {
  padding: 80px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  justify-content: center;
}

.industry-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.2s, color 0.2s;
}

.industry-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Closing === */
.closing {
  padding: 120px 0;
  background: var(--navy);
  text-align: center;
}

.closing-headline {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing-body {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === Footer === */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.footer-inner p {
  font-size: 14px;
  color: var(--fg-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero-headline { font-size: 36px; }
  .hero-lede { font-size: 17px; }

  .stats-row { gap: 0; }
  .stat { padding: 16px 20px 16px 0; }
  .stat-value { font-size: 22px; }
  .stat-divider { margin-right: 20px; }

  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-inner.reverse { grid-template-columns: 1fr; gap: 40px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .tier-featured { order: -1; }
  .postcard-inner { grid-template-columns: 1fr; }

  .roi-calc-card { padding: 28px 20px; }
  .roi-outputs { grid-template-columns: 1fr 1fr; gap: 24px; }
  .roi-divider { display: none; }
  .roi-stat { padding: 0; }
  .roi-stat-value { font-size: 22px; }
  .roi-revenue { font-size: 28px !important; }

  .how-it-works, .postcard-coop, .roi-section, .ai-automation, .industries, .closing {
    padding: 64px 0;
  }

  .closing { padding: 80px 0; }
}

@media (max-width: 480px) {
  .section-inner { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }

  .stats-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .stat-divider { display: none; }
  .stat { padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }

  .roi-outputs { grid-template-columns: 1fr; }
  .roi-calc-card { padding: 24px 16px; }
}