/* Homepage only — layout from the 2026-10-29 banner. Hero art: css/hero-art.css. */
.home .container { width: 100%; max-width: 1280px; padding-inline: 32px; }
.home .section { padding-block: 84px; }
.home h1 { font-size: clamp(2.6rem, 4.2vw, 3.75rem); }
.home h1 span { color: var(--accent); }
.home h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0; }
.home h3 { font-size: 1.1rem; margin-bottom: 0; }
.home :is(p, figure) { margin: 0; }
.home .kicker { margin-bottom: 12px; }
.home .lead { max-width: 600px; margin-top: 20px; font-size: 1.05rem; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero */
.home-hero {
  position: relative; overflow: hidden; padding-block: 64px 60px;
  background:
    radial-gradient(760px 520px at 88% 6%, var(--accent-tint), transparent 68%),
    radial-gradient(640px 420px at 14% 112%, var(--accent-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 40px; align-items: center; }
.hero-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 3px solid var(--accent); margin-bottom: 28px; }
.hero-eyebrow span { color: var(--accent); }
.hero-lead { margin-top: 24px; max-width: 500px; font-size: 1.15rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.hero-actions .btn-lg { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.hero-call { display: block; margin-top: 14px; font-size: 0.9rem; }
.hero-call a { font-weight: 700; color: var(--dark); text-decoration: underline; text-underline-offset: 4px; }
.tiles { display: flex; flex-wrap: wrap; gap: 24px 44px; margin-top: 44px; }
.tiles .tile strong { max-width: 8ch; }
.hero-note { margin-top: 32px; font-size: 0.85rem; max-width: 460px; }

/* Featured case study */
.proof-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px 56px; align-items: start; }
.proof-grid .stat-pair { gap: 24px 40px; margin-bottom: 20px; }
.proof-shot { margin-top: 40px; }
.proof-shot figcaption { padding: 15px 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text-muted); }
.proof-note { max-width: 900px; margin-top: 24px; font-size: 0.875rem; }

/* Fit check */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 32px; }
.fit-aside { border-left: 3px solid var(--accent-tint); padding-left: 26px; }

/* Hero video: the illustration is the cover; the play pill starts the overview */
.hero-video { position: relative; max-width: 680px; }
.video-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--dark); border-radius: var(--radius); visibility: hidden; }
.hero-video .hero-art { position: absolute; inset: 0; }
.hero-cover { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.hero-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.video-play { position: absolute; left: 60%; top: 52%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px; background: rgba(15, 27, 51, 0.9); color: #fff; font-size: 0.9rem; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 36px -14px rgba(15, 27, 51, 0.7); transition: transform 0.2s ease; }
.video-play::before { content: "▶"; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--accent); font-size: 1rem; padding-left: 3px; }
.hero-cover:hover .video-play { transform: translate(-50%, -50%) scale(1.05); }
.is-playing video { visibility: visible; box-shadow: 0 30px 60px -30px rgba(15, 27, 51, 0.6); }
.is-playing .hero-art { display: none; }

/* How it works: four steps in a row */
.home-process { padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.step-row { display: grid; gap: 14px; align-content: start; }
.step-no { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.step-row .kicker { margin-bottom: 2px; }
.step-row p { margin-top: 6px; }

/* Ownership */
.home-own { border-block: 1px solid var(--line); }
.own-grid { gap: 24px; margin-top: 36px; }
.own-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.own-card .tile-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; }
.own-card .tile-icon svg { width: 24px; height: 24px; }
.own-card p { margin-top: 10px; }
.own-note { margin-top: 24px; font-size: 0.875rem; }

/* Work, FAQ, blog */
.work-grid { gap: 28px; margin-top: 36px; }
.work-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(15, 27, 51, 0.4); }
.home-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.work-card > div:last-child { padding: 24px; }
.work-card p { margin-top: 10px; }
.work-card .text-link { display: inline-block; margin-top: 14px; }
.home-faq { padding-top: 0; }
.home .faq { max-width: none; margin: 30px 0 0; }
.home .faq details p { padding: 14px 0 0; max-width: 850px; }
.home-blog .post-list { margin-top: 24px; }
.blog-all { display: inline-block; margin-top: 20px; }

/* Closing CTA with the builder mascot */
.home .cta-band { text-align: left; padding-block: 72px; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.home .cta-band :is(h2, p) { margin-inline: 0; }
.cta-mascot { width: 240px; height: 240px; border-radius: 50%; box-shadow: 0 0 0 14px rgba(126, 176, 255, 0.12); }

/* Footer */
.home-footer { padding-block: 32px; }
.home-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.home-footer p, .home-footer small { display: block; font-size: 0.875rem; margin-top: 8px; }
.home-footlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 0.875rem; }
.home-footlinks a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1000px) {
  .hero-grid { gap: 36px; }
}
@media (max-width: 900px) {
  .hero-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-video { margin-top: 2.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .home-hero { padding-top: 44px; }
  .home h1 { max-width: 14ch; }
  .cta-mascot { width: 180px; height: 180px; }
}
@media (max-width: 640px) {
  .home .container { padding-inline: 20px; }
  .home .section { padding-block: 52px; }
  .home-hero { padding-block: 36px 44px; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
  .tiles .tile strong { font-size: 1rem; max-width: none; }
  .tile-icon { width: 52px; height: 52px; }
  .steps { grid-template-columns: 1fr; }
  .video-play { font-size: 0.8rem; gap: 8px; padding-right: 14px; left: 50%; white-space: normal; width: max-content; max-width: 86%; text-align: left; line-height: 1.25; }
  .video-play::before { width: 40px; height: 40px; }
  .proof-grid, .fit-grid { grid-template-columns: 1fr; gap: 24px; }
  .proof-grid .stat strong { font-size: 1.75rem; }
  .own-card { padding: 22px; }
}
