/*
 * Landing page sections. Base rules are the small-screen layout; the
 * min-width queries add columns. A large share of "roof replacement cost"
 * traffic is phones, often right after storm damage, so mobile is the
 * default case here rather than the fallback.
 *
 * Design tokens and shared primitives (.wrap, .btn, .card, .section) live in
 * application.css, which Propshaft loads first.
 */

/* Hero -------------------------------------------------------------- */
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.hero-copy {
  max-width: 36rem;
}

.hero-copy .cta-row {
  margin-bottom: 0.75rem;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 3rem;
  }
}

/* Stats bar --------------------------------------------------------- */
.stats-bar {
  background: var(--ink);
  color: #fff;
  padding: 2.25rem 0;
}

.stats-list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ff8a5c;
}

.stat-label {
  font-size: 0.95rem;
  color: #b9c1cb;
  text-wrap: pretty;
}

.stats-caption {
  margin: 1.75rem 0 0;
  color: #dfe3e8;
  font-size: 0.98rem;
  max-width: 44rem;
}

.stats-footnote {
  margin: 0.5rem 0 0;
  color: #8e98a4;
  font-size: 0.82rem;
}

@media (min-width: 48rem) {
  .stats-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Fork cards -------------------------------------------------------- */
.fork-grid {
  grid-template-columns: 1fr;
}

.fork-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.fork-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.fork-card p {
  margin-bottom: 1.5rem;
}

.fork-card .btn {
  margin-top: auto;
}

@media (min-width: 48rem) {
  .fork-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Problem ----------------------------------------------------------- */
.problem-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.problem-quote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 500;
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* How it works ------------------------------------------------------ */
.steps {
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.step {
  counter-increment: step;
  padding-top: 2.75rem;
  position: relative;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.97rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Methodology trust points ------------------------------------------ */
.trust-points {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 500;
}

.trust-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(180, 68, 31, 0.12);
  color: var(--accent);
}

@media (min-width: 48rem) {
  .trust-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Pricing ----------------------------------------------------------- */
.pricing-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(20, 24, 29, 0.09);
}

.plan-name {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.plan-amount {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-cadence {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.plan-summary {
  margin-bottom: 1rem;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.plan-features li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--ink-soft);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.pricing-note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  max-width: 44rem;
}

@media (min-width: 56rem) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ --------------------------------------------------------------- */
.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 3rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 1.15rem;
  font-size: 0.97rem;
  max-width: 42rem;
}

/* Mobile touch targets ---------------------------------------------- */
@media (max-width: 40rem) {
  .btn-lg,
  .fork-card .btn,
  .plan .btn {
    width: 100%;
    text-align: center;
    padding-block: 0.95rem;
  }

  .btn-sm {
    padding: 0.6rem 0.9rem;
  }

  .cta-row {
    gap: 0.6rem;
  }
}
