.homepage {
  --home-paper: #f7f8f4;
  --home-panel: #edf2ed;
  --home-muted: #4f6270;
  --home-teal: #216f62;
  --home-mint: #93f0db;
  --home-rule: #d5dfd9;
  --home-header-height: 70px;
  background: var(--home-paper);
}

.homepage .container { --max: 1120px; }
.homepage .site-header { position: relative; background: var(--navy); border-bottom: 1px solid #213849; }
.homepage .header-inner { min-height: var(--home-header-height); }
.homepage .site-nav { gap: 26px; font-size: 14px; }
.homepage .nav-cta { min-height: 44px; }
.homepage .menu-toggle { width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.homepage .button { border-radius: 8px; }
.homepage :is(a, button, input, summary):focus-visible { outline: 2px solid #2f8d80; outline-offset: 4px; }
.homepage :is(.site-header, .home-hero, .site-footer, .analytics-banner) :focus-visible { outline-color: var(--home-mint); }

.home-hero {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--home-header-height) - 1px);
  padding: clamp(32px, 5.5vh, 78px) 0;
  color: #f5fcfa;
  background: radial-gradient(ellipse at 50% 65%, #12323b 0%, transparent 65%), var(--navy);
}
.home-hero-inner { width: min(calc(100% - clamp(36px, 6vw, 96px)), 1680px); text-align: center; }
.home-hero h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(2.5rem, 6.7vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.home-hero h1 em { display: block; color: var(--home-mint); }
.home-hero-intro {
  max-width: 76ch;
  margin: clamp(18px, 2.7vw, 34px) auto 0;
  color: #c1d3d7;
  font-size: clamp(1.09rem, 2vw, 1.7rem);
  line-height: 1.55;
  text-wrap: balance;
}
.home-primary { margin-top: clamp(22px, 3.3vw, 42px); background: var(--home-mint); }

.homepage .analytics-banner {
  bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 1120px;
  margin-inline: auto;
}

.home-section { padding: clamp(58px, 8vw, 110px) 0; }
.home-section + .home-section { border-top: 1px solid var(--home-rule); }
.home-heading { max-width: 650px; }
.home-heading h2, .home-pricing .section-heading h2, .home-connect h2 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.home-heading p { max-width: 50ch; margin: 0; color: var(--home-muted); }
.home-heading p + p { margin-top: 14px; }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(22px, 3.5vw, 38px); }
.scenario-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: clamp(16px, 2.6vw, 27px);
  border: 1px solid var(--home-rule);
  border-radius: 12px;
  background: #fff;
}
.scenario-card h3 { margin: 0; font: 700 clamp(1.24rem, 2.05vw, 1.6rem)/1.15 var(--display); }
.scenario-question { margin: 8px 0 16px; color: var(--home-muted); line-height: 1.45; }
.scenario-result {
  padding: clamp(12px, 1.7vw, 17px);
  border: 1px solid #d6e4dc;
  border-radius: 8px;
  background: #eff6f2;
}
.scenario-label { display: block; color: var(--home-teal); font-size: .83rem; font-weight: 700; }
.scenario-result blockquote { margin: 6px 0 0; font-weight: 600; line-height: 1.5; }
.scenario-result mark { color: #19574c; background: #daede3; }
.scenario-source { margin: 8px 0 0; color: var(--home-muted); font-size: .85rem; line-height: 1.4; }
.scenario-value { display: block; margin: 4px 0; color: #154f44; font: 700 clamp(1.55rem, 2.7vw, 2.2rem)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.scenario-items { margin: 8px 0 0; color: var(--home-muted); font-size: .88rem; }
.scenario-items div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding-top: 3px; }
.scenario-items dd { margin: 0; font-weight: 700; }
.scenario-change { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 0; color: var(--home-muted); font-variant-numeric: tabular-nums; }

.home-examples { background: var(--home-panel); }
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.example-card {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--home-rule);
  border-radius: 12px;
  background: #fff;
}
.example-card h3 { margin: 0; font: 700 1.6rem/1.14 var(--display); }
.example-card blockquote {
  flex: 1;
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 2px solid #449583;
  border-radius: 0 6px 6px 0;
  background: #eff6f2;
  font-weight: 600;
  line-height: 1.45;
}
.example-card p { margin: 0; color: var(--home-muted); }
.example-card p strong { color: var(--home-teal); }

.home-connect { background: #fff; }
.home-connect .connection-copy {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--home-rule);
  border-radius: 13px;
  background: var(--home-paper);
}
.home-connect .connection-requirements,
.home-connect .endpoint-label,
.home-connect .copy-status { color: var(--home-muted); }
.home-connect .connection-requirements a,
.home-faq .faq-list a { color: var(--home-teal); }
.home-connect .endpoint-control input { flex-basis: 195px; min-height: 48px; border-radius: 6px; }
.home-connect .setup-frame { outline: 1px solid var(--home-rule); background: var(--navy); }
.home-pricing { background: var(--home-panel); }
.home-pricing .pricing-card { border-radius: 12px; }
.home-pricing .pricing-card-free { border-color: #589788; box-shadow: 0 0 0 1px #589788; }
.home-pricing .pricing-card-free .button { margin-top: 20px; min-height: 46px; }
.home-faq .faq-layout { gap: clamp(24px, 5vw, 64px); }
.home-faq .faq-list summary { min-height: 44px; padding-block: 6px; }
.home-faq .faq-list details { padding: 9px 0; }
.home-faq .faq-list details[open] { padding-bottom: 18px; }
.home-faq .faq-list details p { margin-top: 4px; font-size: 1rem; }

.homepage .site-footer { color: #b1c4ce; }
.home-footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 36px 0 28px; border-bottom: 1px solid #203746; }
.home-footer-main p { margin: 9px 0 0; font-size: .9rem; }
.home-footer-connect { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--home-mint); }
.homepage .footer-bottom { font-size: .82rem; }
.homepage .footer-links :is(a, button):not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1000px) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .homepage .faq-layout { grid-template-columns: 1fr; }
  .home-section { padding-block: 52px; }
}
@media (max-width: 700px) {
  .homepage { --home-header-height: 60px; }
  .homepage .site-nav { top: 56px; gap: 0; }
  .home-hero h1 { font-size: clamp(2.4rem, 10.75vw, 4.3rem); }
  .home-hero-intro { font-size: clamp(1.09rem, 4.65vw, 1.25rem); }
  .home-primary { min-height: 46px; }
  .homepage .analytics-banner {
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 12px;
    padding: 14px;
  }
  .home-connect .endpoint-control .button { min-height: 48px; }
  .homepage .footer-bottom { gap: 8px; }
  .homepage .footer-links { margin-top: 0; gap: 0 14px; }
}
@media (max-width: 540px) {
  .scenario-grid, .example-grid { grid-template-columns: 1fr; }
}
