/* =========================================
   ROOFFLOW — Landing Page Stylesheet
   ========================================= */

/* ---- Tokens ---- */
:root {
  --slate:       #1a2e3f;
  --slate-mid:   #243c54;
  --slate-light: #304d66;
  --terracotta:  #e8611a;
  --terracotta-light: #f07a3a;
  --cream:       #f9f7f2;
  --cream-dark:  #ede9df;
  --ink:         #1c1c1c;
  --ink-light:   #4a4a4a;
  --ink-muted:   #8a8a8a;
  --white:       #ffffff;
  --warm-bg:     #fdf9f3;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.section-eyebrow {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ---- Hero ---- */
.hero {
  background: var(--slate);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,97,26,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 46ch;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat {}

.hero-stat-value {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--terracotta-light);
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

/* Live lead ticker */
.hero-ticker {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker-dot--hot { background: var(--terracotta); box-shadow: 0 0 6px var(--terracotta); }
.ticker-dot--warm { background: var(--terracotta-light); }

/* Flow diagram */
.hero-diagram {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.diagram-step {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.diagram-step--accent {
  background: rgba(232,97,26,0.2);
  border-color: rgba(232,97,26,0.4);
}

.diagram-icon {
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.diagram-step--accent .diagram-icon { color: var(--terracotta-light); }

.diagram-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

.diagram-arrow {
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ---- Pain ---- */
.pain {
  background: var(--cream);
  padding: 6rem 2rem;
}

.pain-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pain-quote {
  text-align: center;
  padding: 2.5rem;
  background: var(--warm-bg);
  border-left: 4px solid var(--slate);
  border-right: 4px solid var(--slate);
  border-radius: 4px;
  margin-bottom: 4rem;
}

.pain-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.pain-attribution {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: 'DM Mono', monospace;
}

.pain-headline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--slate);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pain-card {
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
}

.pain-card--bad {
  background: #fdf2f0;
  border: 1px solid #f0c8c0;
}

.pain-card--good {
  background: #f0f7f2;
  border: 1px solid #b8dac6;
}

.pain-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.pain-card-label--bad { color: #c0392b; }
.pain-card-label--good { color: #1e7e4a; }

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pain-list li {
  font-size: 0.9rem;
  color: var(--ink-light);
  padding-left: 1.25rem;
  position: relative;
}

.pain-card--bad .pain-list li::before { content: '—'; position: absolute; left: 0; color: #c0392b; }
.pain-card--good .pain-list li::before { content: '+'; position: absolute; left: 0; color: #1e7e4a; font-weight: 700; }

/* ---- How It Works ---- */
.how {
  background: var(--warm-bg);
  padding: 6rem 2rem;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--slate);
}

.how-subhead {
  font-size: 1.05rem;
  color: var(--ink-light);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.how-step {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  border: 1px solid var(--cream-dark);
  position: relative;
}

.step-number {
  font-family: 'DM Mono', monospace;
  font-size: 2.5rem;
  font-weight: 500;
  color: rgba(232,97,26,0.15);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

.step-body {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.step-detail {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  border-top: 1px solid var(--cream-dark);
  padding-top: 0.75rem;
}

/* Funnel visualization */
.how-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funnel-bar {
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  transition: all 0.3s ease;
}

.funnel-bar--1 { width: 100%; background: var(--slate); }
.funnel-bar--2 { width: 75%; background: var(--slate-mid); }
.funnel-bar--3 { width: 50%; background: var(--slate-light); }
.funnel-bar--4 { width: 35%; background: var(--terracotta); }

/* ---- Pricing ---- */
.pricing {
  background: var(--cream);
  padding: 6rem 2rem;
}

.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--slate);
  margin-bottom: 1rem;
}

.pricing-subhead {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  position: relative;
}

.pricing-card--featured {
  border: 2px solid var(--terracotta);
  background: var(--warm-bg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.65rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.pricing-per {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  font-size: 0.88rem;
  color: var(--ink-light);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

.pricing-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--cream-dark);
  padding-top: 1rem;
}

.pricing-context {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  max-width: 75ch;
  border-left: 3px solid var(--slate);
  padding-left: 1.5rem;
}

/* ---- Trust ---- */
.trust {
  background: var(--slate);
  color: var(--white);
  padding: 6rem 2rem;
}

.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.trust .section-eyebrow { color: var(--terracotta-light); }

.trust-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.trust-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 65ch;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.pillar {}

.pillar-icon {
  color: var(--terracotta-light);
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.pillar-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ---- Closing ---- */
.closing {
  background: var(--warm-bg);
  padding: 6rem 2rem;
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--slate);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 60ch;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.closing-cta-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--slate);
  border-radius: 16px;
  padding: 2.5rem 3rem;
}

.closing-stat {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.closing-stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--terracotta-light);
  line-height: 1;
  flex-shrink: 0;
}

.closing-stat-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stats { gap: 1.5rem; }

  .pain-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .trust-pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .closing-cta-strip {
    flex-direction: column;
    padding: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .diagram-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .pain, .how, .pricing, .trust, .closing { padding: 4rem 1.25rem; }
  .hero-headline { font-size: 2.2rem; }
  .pricing-price { font-size: 2.2rem; }
  .closing-stat-num { font-size: 2.5rem; }
}
/* ---- Nav secondary link ---- */
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--terracotta); }

/* ---- Nav CTA ---- */
.nav-cta {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--terracotta-light); }

/* ---- SEO city pages ---- */
.seo-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.seo-table th, .seo-table td { padding: 0.75rem 1rem; text-align: left; }
.seo-table thead tr { background: var(--slate); color: var(--white); }
.seo-table tbody tr:nth-child(odd) { background: var(--cream-dark); }
.seo-faq details { border: 1px solid var(--cream-dark); border-radius: 8px; margin-bottom: 0.75rem; padding: 1rem 1.25rem; }
.seo-faq summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.seo-faq p { margin-top: 0.75rem; color: var(--ink-light); line-height: 1.8; }
.seo-city-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.seo-city-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; background: var(--slate); color: var(--white); border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
