/* ============================================================
   Homepage-specific styles
   ============================================================ */

/* ===== Hero ===== */
.hero {
  background: var(--canvas-ink);
  color: #fff;
  padding: 156px 0 96px;
  position: relative;
  overflow: hidden;
  min-height: min(960px, 100vh);
  display: flex;
  align-items: center;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(46,107,107,0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(46,107,107,0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero-headline span {
  display: block;
}
.hero-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #8FCBCB;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--on-dark-2);
  max-width: 540px;
  margin: 0 0 40px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reveal animation for hero */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 800ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Stat block */
.stat-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.stat {
  padding: 4px 0;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}
.stat-num span { color: #fff; }
.stat-lbl {
  font-size: 14px;
  color: var(--on-dark-2);
  line-height: 1.4;
  letter-spacing: 0;
}
.stat-divider {
  height: 1px;
  background: var(--hairline-dark);
  margin: 24px 0;
}
.stat-caption {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-dark);
  font-size: 13px;
  color: var(--on-dark-3);
  letter-spacing: 0;
}

@media (max-width: 1000px) {
  .hero { padding: 132px 0 80px; min-height: auto; }
}

/* ===== Stats band ===== */
.stats-band { padding: 64px 0; }
.stats-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: #fff;
  overflow: hidden;
}
.stats-row .stat {
  flex: 1;
  padding: 36px 40px;
  border-right: 1px solid var(--hairline);
}
.stats-row .stat:last-child { border-right: 0; }
.stats-row .stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4.8vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin-bottom: 8px;
}
.stats-row .stat-num span { color: var(--fg-1); }
.stats-row .stat-lbl { font-size: 14px; color: var(--fg-3); line-height: 1.4; }
.stats-band .stat-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-4);
}

@media (max-width: 700px) {
  .stats-row { flex-direction: column; }
  .stats-row .stat { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 28px 32px; }
  .stats-row .stat:last-child { border-bottom: 0; }
}

/* ===== Specialty pills ===== */
.specialties-pills {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.specialty-pill {
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-3);
  background: transparent;
}

/* ===== Problem section ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.problem-left h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--brand-teal);
}
.problem-list {
  display: flex;
  flex-direction: column;
}
.problem-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.problem-item:last-child { border-bottom: 1px solid var(--hairline); }
.problem-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--fg-4);
  padding-top: 4px;
}
.problem-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
  color: var(--fg-1);
}
.problem-item p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0;
  max-width: 520px;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-item { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
}

/* ===== Promise band ===== */
.promise { padding: clamp(96px, 12vw, 160px) 0; text-align: left; }
.promise-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 1080px;
  margin: 0 0 32px;
  text-wrap: balance;
}
.promise-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #8FCBCB;
}
.promise-body {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-2);
  max-width: 720px;
  margin: 0;
}
.promise-cta {
  margin-top: 36px;
  text-align: left;
}

/* ===== Benefits grid ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.benefit:hover { border-color: var(--fg-3); box-shadow: var(--shadow-1); }
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: var(--brand-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
}
.benefit h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}
.benefit p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0;
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { padding: 28px; }
}

/* ===== Section eyebrow + h2 em styles for headlines ===== */
.section h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section.cream h2 em { color: var(--brand-teal); }
.section.ink h2 em { color: #8FCBCB; }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.03em;
  color: #8FCBCB;
  line-height: 1;
  margin-bottom: 40px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
  color: #fff;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-2);
  margin: 0;
}
.steps-cta {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.4;
  color: var(--brand-teal);
  margin-bottom: 16px;
  height: 24px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--fg-1);
  margin: 0 0 32px;
  flex: 1;
}
.testimonial figcaption {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial figcaption strong {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-1);
}
.testimonial figcaption span {
  font-size: 13px;
  color: var(--fg-3);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.specialties {
  margin-top: 64px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: -0.005em;
  color: var(--fg-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}
.specialties .dot { color: var(--fg-5); }
