/* Sections styles */

/* ─── Section heads ──────────────────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head-center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 16px;
  margin-bottom: 64px;
}
.section-head-center .lead { margin: 8px auto 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; } }

/* ─── Problem ──────────────────────────────────────────────────────── */
.section-problem { background: var(--bg); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  position: relative;
  padding: 36px 32px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
}
.problem-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.problem-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-tint);
  display: grid; place-items: center;
  color: var(--fg);
  margin-bottom: 24px;
}
.problem-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.015em; }
.problem-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 28px; flex: 1; }
.problem-stat {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}

/* ─── Solution ───────────────────────────────────────────────────────── */
.section-solution { background: var(--bg-tint); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; }
.step-illustration { margin-bottom: 24px; }
.ill { width: 100%; height: auto; display: block; border-radius: 12px; }
.step-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-n {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.step-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.step-body { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ─── Features ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 1080px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-elev);
  padding: 32px 28px;
  transition: background 200ms;
}
.feature:hover { background: var(--bg-tint); }
.feature-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--fg);
  margin-bottom: 24px;
}
.feature h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ─── Score ──────────────────────────────────────────────────────────── */
.section-score { background: var(--bg); }
.score-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .score-grid { grid-template-columns: 1fr; } }

.score-visual {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 640px) { .score-visual { grid-template-columns: 1fr; gap: 24px; justify-items: center; } }

.score-card { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.score-ring { display: block; }
.score-meta { text-align: center; }
.score-meta .small { color: var(--muted); margin-bottom: 8px; letter-spacing: 0.08em; }
.score-opp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
}
.score-opp .dot { width: 8px; height: 8px; border-radius: 50%; }
.score-opp.tone-low { background: rgba(220,38,38,0.1); color: #b91c1c; }
.score-opp.tone-low .dot { background: #dc2626; }
.score-opp.tone-mid { background: rgba(180,83,9,0.1); color: #92400e; }
.score-opp.tone-mid .dot { background: #b45309; }
.score-opp.tone-high { background: rgba(21,128,61,0.1); color: #15803d; }
.score-opp.tone-high .dot { background: #15803d; }

.score-bars { display: flex; flex-direction: column; gap: 14px; min-width: 220px; width: 100%; }
.score-bar-row { display: grid; gap: 6px; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.score-bar-label span:last-child { color: var(--fg); font-weight: 500; }
.score-bar { height: 6px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ea580c);
  border-radius: 999px;
  transition: width 600ms cubic-bezier(.2,.6,.2,1);
}
.score-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.score-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fg);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.score-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg);
  border-radius: 999px;
  height: 32px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  margin-top: 6px;
  width: fit-content;
}
.score-toggle:hover { background: var(--bg-tint); }

.score-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.legend-row:last-child { border-bottom: 1px solid var(--line); }
.legend-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 2px;
}
.legend-range .dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-range .dot.tone-low { background: var(--accent); }
.legend-range .dot.tone-mid { background: #b45309; }
.legend-range .dot.tone-high { background: #15803d; }
.legend-text b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.01em; }
.legend-text p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ─── Pricing ────────────────────────────────────────────────────────── */
.section-pricing { background: var(--bg-tint); }
.billing-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 24px;
}
.billing-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.billing-toggle button.on {
  background: var(--fg);
  color: var(--bg);
}
.billing-toggle button.on .tag { background: rgba(255,255,255,0.18); color: var(--bg); border: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card-beta {
  border-color: var(--fg);
  box-shadow: 0 24px 60px -20px rgba(10,10,10,0.18);
  background: linear-gradient(180deg, var(--bg-elev), color-mix(in srgb, var(--accent-tint) 30%, var(--bg-elev)));
}
.ribbon {
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  margin: 0;
  background: var(--fg);
  color: var(--bg);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 0 0 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.price-card-beta .price-head { margin-top: 16px; }

.pricing-flat .price-card { border-radius: 0; border-right: 0; }
.pricing-flat .price-card:last-child { border-right: 1px solid var(--line); }
.pricing-flat .price-card-beta { border-color: var(--line); border-top: 2px solid var(--accent); }

.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.price-head h3 { font-size: 18px; font-weight: 500; }
.tag-accent { background: var(--accent-tint); color: var(--accent); border-color: rgba(220,38,38,0.18); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.amt {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.amt-strike {
  font-size: 24px;
  color: var(--muted-2);
  text-decoration: line-through;
  font-weight: 400;
}
.per { color: var(--muted); font-size: 14px; }
.price-note { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.price-list svg { color: var(--good); flex-shrink: 0; }
.price-fineprint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ─── Testimonials ───────────────────────────────────────────────────── */
.section-testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 220ms cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--accent-tint));
  opacity: 0;
  transition: opacity 220ms;
  pointer-events: none;
}
.testimonial:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 16px 40px -16px rgba(10,10,10,0.14);
}
.testimonial:hover::before { opacity: 1; }
.testimonial > * { position: relative; z-index: 1; }
.stars { display: flex; gap: 2px; margin-bottom: 18px; }
.testimonial blockquote {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  letter-spacing: -0.005em;
  flex: 1;
}
.testimonial-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author > div { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial-author b { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.testimonial-author span { font-size: 12px; color: var(--muted); }
.testimonial-stat { text-align: right; line-height: 1.2; }
.testimonial-stat b { display: block; font-size: 18px; color: var(--accent); font-weight: 500; letter-spacing: -0.02em; }
.testimonial-stat span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.section-faq { background: var(--bg-tint); }
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--fg);
  flex-shrink: 0;
}
.faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(.2,.6,.2,1);
}
.faq-item.open .faq-a-wrap { max-height: 240px; }
.faq-a {
  padding: 0 56px 28px 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ─── Final CTA ──────────────────────────────────────────────────────── */
.section-final-cta { background: var(--bg); padding-bottom: 64px; }
.final-cta {
  background: var(--fg);
  color: var(--bg);
  border-radius: 24px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta h2 { color: var(--bg); font-size: clamp(36px, 5vw, 60px); }
.final-cta .lead { color: rgba(250,250,247,0.7); margin: 16px auto 36px; }
.final-cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  margin-bottom: 32px;
  color: rgba(250,250,247,0.7);
}
.final-cta-meta .small { color: rgba(250,250,247,0.5); }
.final-cta-meta .cd-cell b { color: var(--bg); }
.final-cta-meta .cd-cell i { color: rgba(250,250,247,0.5); }
.final-cta-meta .cd-sep { color: rgba(250,250,247,0.3); }

.final-form { display: flex; justify-content: center; }
.final-form .signup-form {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.final-form .signup-form:focus-within { border-color: rgba(255,255,255,0.4); }
.final-form .signup-form input { color: var(--bg); }
.final-form .signup-form input::placeholder { color: rgba(250,250,247,0.4); }
.final-form .signup-form .btn-primary { background: var(--bg); color: var(--fg); }

.seats-bar { max-width: 480px; margin: 36px auto 12px; }
.seats-track {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.seats-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 600ms;
}
.seats-text {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(250,250,247,0.5);
  margin-top: 10px;
}
.seats-text b { color: var(--bg); font-weight: 500; }
.footnote { font-size: 12px; color: rgba(250,250,247,0.4); margin: 8px 0 0; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-tag {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36ch;
}
.footer-tag .small { color: var(--muted-2); display: inline-block; margin-top: 4px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  padding: 6px 0;
  letter-spacing: -0.005em;
}
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}
