/* Home-only composition after the opening viewport. The topic pages share home.css. */
.home-page {
  --home-ground: #000;
  --story-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  --story-gap: clamp(32px, 6vw, 88px);
  --story-heading: clamp(32px, 3.35vw, 50px);
  background: var(--home-ground);
}
.home-page .hero-stage { background: var(--bg); }
.home-page .site-footer { --color-page: var(--home-ground); margin-top: 0; }
.home-page .section { background: var(--home-ground); padding-block: clamp(54px, 6vw, 90px); }
.home-page .features { padding-top: clamp(48px, 6vw, 88px); }
.home-page .features > .wrap { display: grid; }
.home-page .features .section-head { margin: 0 0 25px; justify-items: start; text-align: left; }
.home-page .features .section-head h2,
.setup-layout h2, .home-page .updates-copy h2 {
  font-size: var(--story-heading); text-wrap: balance; line-height: 1.06; letter-spacing: -.055em; font-weight: 480;
}
.home-page .tab-list {
  width: 100%; margin: 0 0 24px; padding: 0; gap: 4px;
  border: 0; background: none; mask: none;
}
.home-page .tab {
  position: relative; padding: 8px 14px; min-height: 40px; border-radius: 6px;
  font-size: 15px; font-weight: 450; letter-spacing: -.015em; text-transform: none; background: none; color: #aaa;
}
.home-page .tab[aria-selected="true"] { background: var(--panel-active); box-shadow: none; color: white; }
.home-page :is(.tab-panel, .setup-layout, .updates-grid) { grid-template-columns: var(--story-columns); gap: var(--story-gap); }
.home-page .tab-copy { gap: 16px; }
.home-page .tab-copy h3 { max-width: 21ch; font-size: clamp(29px, 2.85vw, 43px); line-height: 1.08; letter-spacing: -.055em; font-weight: 450; text-wrap: balance; }
.home-page .tab-copy > p { max-width: 44ch; color: var(--text-body); text-wrap: pretty; }
.story-link { display: inline-flex; align-items: center; justify-self: start; gap: 7px; min-height: 32px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
.story-link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: translate 150ms ease; }
.story-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.story-link:hover::after { translate: 3px; }
.setup-layout { display: grid; }
.setup-layout h2 { max-width: 19ch; margin: 0 0 16px; }
.setup-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.setup-steps li { counter-increment: step; }
.setup-steps summary { display: flex; align-items: baseline; gap: 18px; padding: 17px 2px; list-style: none; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.035em; cursor: pointer; }
.setup-steps summary::-webkit-details-marker { display: none; }
.setup-steps summary::before { content: counter(step, decimal-leading-zero); font: 12px var(--font-mono); color: #aaa; }
.setup-steps summary::after { content: "+"; margin-left: auto; color: #aaa; }
.setup-steps details[open] summary::after { content: "−"; }
.setup-steps p { padding: 0 22px 18px 36px; color: var(--text-body); max-width: 56ch; font-size: 15px; line-height: 1.55; }

.home-page .updates { padding-block: clamp(38px, 4vw, 58px);  }
.home-page .updates-copy h2 { font-size: clamp(28px, 3vw, 38px); }
.home-page .updates-copy .lede { color: var(--text-body); max-width: 42ch; text-wrap: pretty; }
.home-page .updates-offer { margin-top: 8px; color: #aaa; }
.home-page .updates-bar { border: 1px solid var(--border-strong); border-radius: 6px; }
.home-page .cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; }
.home-page .cta-grid h2 { font-size: var(--story-heading); text-wrap: balance; font-weight: 460; margin: 0 0 12px; letter-spacing: -.055em; }
.home-page .cta-grid .hero-actions { margin: 0; }

@media (max-width: 760px) {
  .home-page .features .section-head { margin-bottom: 10px; }
  .home-page .tabs { display: block; }
  .home-page .tab-list { width: 100%; gap: 2px; margin: 0 0 18px; }
  .home-page .tab { font-size: 14px; padding: 7px clamp(6px, 2vw, 12px); }
  .home-page .tab-panel:not([hidden]) { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .home-page .tab-copy h3 { max-width: 21ch; font-size: clamp(28px, 6vw, 33px); }
  .home-page .tab-copy { gap: 10px; }
  .home-page { --story-columns: minmax(0, 1fr); --story-gap: 26px; }
  .setup-layout h2 { max-width: 16ch; }
  .home-page .updates-grid { gap: 20px; }
  .home-page .updates-bar { border: 0; }
  .home-page .cta-grid { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .story-link::after { transition: none; } }
/* The opening retains natural scroll and can pin below a tall introductory block. */
.home-page main { padding-top: 0; }
.home-page .site-header { position: fixed; background: transparent; transition: background-color 180ms ease; }
.home-page .site-header[data-assembly-solid], .home-page .site-header[data-open="true"],
.home-page:not(:has(.hero-sequence[data-ready])) .site-header[data-scrolled="true"] { background: #000; }
html:has(.home-page) { scroll-padding-top: calc(var(--nav-height) + 4px); }
@media (prefers-reduced-motion: reduce) { .home-page .site-header { transition: none; } }
.hero-stage { position: relative; }
.hero-assembly {
  position: absolute; inset: auto 0 0; height: 100svh; overflow: clip;
  pointer-events: none; visibility: hidden;
}
.hero-sequence:not([data-ready]) .hero-assembly { display: none; }
.assembly-window {
  --assembly-gutter: max(var(--gutter), calc((100% - var(--page-width)) / 2));
  position: absolute; inset: auto var(--assembly-gutter) 0;
  height: min(var(--desktop-crop, 48svh), 83svh);
  overflow: hidden; border-radius: 10px 10px 0 0; transform-origin: center bottom;
  background: #0b0b0b; box-shadow: 0 0 0 1px #38383a, 0 24px 70px rgb(0 0 0 / 48%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-sequence[data-ready] { position: relative; }
  .hero-sequence[data-ready]::after { content: ""; display: block; height: calc(clamp(1650px, 285svh, 3300px) + 38svh); }
  .hero-sequence[data-ready] + .features #features-title {
    position: relative; z-index: 1; transform-origin: left top;
  }
  .hero-sequence[data-ready] + .features .tabs:not(:focus-within) { opacity: var(--entry-opacity, 1); }
  .hero-sequence[data-ready] + .features .tabs:not(:focus-within) .tab-list { translate: 0 var(--tabs-lift, 0px); }
  .hero-sequence[data-ready] .hero-stage {
    position: sticky; top: var(--pin-top, 0px); min-height: calc(100svh + var(--assembly-tail, 0px)); padding-bottom: var(--assembly-tail, 0px); overflow: clip;
  }
  .hero-sequence[data-ready] .hero-copy > :is(.wordmark, .tagline, .hero-links) { opacity: var(--copy-opacity, 1); translate: 0 var(--copy-lift, 0px); }
  .hero-sequence[data-ready] .hero-title { translate: 0 var(--headline-lift, 0px); scale: var(--headline-scale, 1); transform-origin: left bottom; }
  .hero-stage[data-drawing] .providers li { animation-play-state: paused; }
  .hero-stage[data-drawing] .rotator-word.is-on { animation: none; }
  .hero-stage[data-drawing] .hero-assembly { visibility: visible; }
}
@media (max-width: 800px) {
  .assembly-window { inset-inline: var(--gutter); height: min(var(--compact-crop, 460px), 80svh); }
}
