/* Homepage layout only (body.home). Other pages share style.css, so nothing here touches them. */

/* One grid for the whole page: every section starts on the same left edge. */
body.home .wrap { max-width: 1180px; }

/* ---------- hero: centered, headline sized to fill the screen ---------- */
body.home .hero-v2 { padding: clamp(40px, 7vh, 72px) 0 clamp(48px, 8vh, 80px); }
body.home .hero-v2 .wrap { max-width: none; }
body.home .hero-grid { display: block; text-align: center; }
/* width-led, capped by height so the button stays on the first screen. rotator.js trims it if a word won't fit. */
body.home .hero-v2 h1 { font-size: min(11.5vw, 19vh); line-height: 1; }
/* swash: dashes break up on a stroke this large, so reveal it with a wipe instead */
body.home .hero-v2 .swash path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; stroke-width: max(3px, 0.03em); }
body.home .hero-v2 .swash { clip-path: inset(-100% 105% -100% -5%); animation: swash-wipe 1.1s 1s var(--ease) forwards; }
@keyframes swash-wipe { to { clip-path: inset(-100% -5% -100% -5%); } }
@media (prefers-reduced-motion: reduce) { body.home .hero-v2 .swash { animation: none; clip-path: none; } }
body.home .hero-v2 .eyebrow { margin-bottom: clamp(18px, 3vh, 28px); }
body.home .hero-v2 .lede { max-width: 62ch; text-wrap: balance; margin: clamp(24px, 4vh, 40px) auto 0; font-size: clamp(18px, 1.7vw, 24px); }
body.home .hero-v2 .cta-row { flex-direction: column; gap: 14px; margin-top: clamp(20px, 3.5vh, 36px); }
body.home .cta-ask { margin: 0; font: 500 16px/1.4 var(--sans); color: var(--ink); }
body.home .cta-pair { display: flex; justify-content: center; gap: 12px; }
body.home .hero-v2 .btn { padding: 22px 36px; font-size: 19px; border-radius: 10px; gap: 12px; justify-content: center; }
body.home .hero-v2 .btn.ghost { background: rgba(255, 255, 255, 0.6); border-color: rgba(17, 17, 17, 0.28); }
@media (hover: hover) { body.home .hero-v2 .btn.ghost:hover { background: #fff; border-color: var(--ink); } }
/* style.css paints non-brand buttons solid ink on touch hover, which would hide this button's ink label after a tap */
@media (hover: none) { body.home .hero-v2 .btn.ghost:hover { background: rgba(255, 255, 255, 0.6); border-color: rgba(17, 17, 17, 0.28); } }
body.home .hero-v2 .cta-note { margin: 0; }
body.home .hero-v2 .cta-note b { font: 500 15px/1.4 var(--sans); color: var(--ink); }
body.home .hero-v2 .btn svg { width: 20px; height: 20px; }

/* ---------- logo strip: the whole band wears the "money" gradient; chips are white outlines with white logos ---------- */
body.home .tools { background: linear-gradient(100deg, #e98a5f 0%, #9a7fe0 50%, #3fa58f 100%); border-color: transparent; }
body.home .tools-label { color: #fff; }
body.home .marquee-track span { color: #fff; background: transparent; border: 1.5px solid #fff; font-weight: 600; }
body.home .marquee-track svg, body.home .marquee-track span:hover svg { fill: #fff; }

/* ---------- section rhythm ---------- */
@media (min-width: 881px) {
  body.home main > section:not(.closing) { padding: 104px 0; }
  body.home .section-head { margin-bottom: 48px; }
}
/* the explainer used to sit flush under a light section; it's a full dark band now */
@media (max-width: 880px) { body.home .explain { padding-top: 88px; } }
@media (max-width: 560px) { body.home .explain { padding-top: 72px; } }

/* Consecutive light sections read as one surface: color only where it can't hit a seam. */
body.home main > section#fit { background: radial-gradient(55% 45% at 100% 0%, rgba(255, 205, 180, 0.15), rgba(255, 205, 180, 0) 70%), #fcfcfd; }
body.home main > section#closed { background: #fcfcfd; border-top: 0; padding-top: 0; }
body.home main > section#faq { background: radial-gradient(55% 55% at 0% 100%, rgba(196, 186, 255, 0.15), rgba(196, 186, 255, 0) 70%), #fcfcfd; border-top: 0; padding-top: 0; }

/* ---------- explainer: fits a laptop screen with its captions ---------- */
@media (min-width: 881px) {
  body.home .stage { aspect-ratio: auto; height: 480px; }
}

/* caption tracks: four equal columns, and each fill stops at the end of its own track */
body.home .caps { column-gap: 20px; }
body.home .cap, body.home .cap + .cap { padding-left: 0; padding-right: 0; }
body.home .cap::before, body.home .cap + .cap::before, body.home .cap .fill, body.home .cap + .cap .fill { left: 0; }

/* ---------- score: the whole card fits on one screen, result reads top to bottom ---------- */
body.home .score-inputs { align-content: space-between; padding: 32px; gap: 24px; }
body.home .score-out { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-content: start; align-items: center;
  justify-items: stretch; text-align: left; padding: 32px; }
body.home .score-out .ring { width: 116px; height: 116px; }
body.home .score-out .ring-num b { font-size: 40px; }
body.home .score-out .ring-num { text-align: center; }
body.home .sc-tier { margin: 0; justify-self: start; }
body.home .drivers, body.home .sc-note, body.home .sc-cta { grid-column: 1 / -1; }
body.home .sc-cta { margin-top: auto; }

@media (min-width: 881px) {
  body.home .chips { display: grid; grid-template-columns: repeat(4, 1fr); }
  body.home .chips button { justify-content: center; padding-left: 8px; padding-right: 8px; }
}

/* ---------- who qualifies ---------- */
body.home .not-fit { margin: 24px 0 0; }
body.home .disclose { margin-top: 48px; }

/* ---------- shutdown callout: copy left, the "keep these on" panel right ---------- */
@media (min-width: 881px) {
  body.home .callout-v2 { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
}
body.home .callout-v2 .ws { margin-top: 0; max-width: none; }
body.home .callout-v2 h2 { margin-bottom: 20px; }

/* ---------- FAQ: heading beside the answers, on the page's left edge ---------- */
@media (min-width: 881px) {
  body.home .faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
  body.home .faq-wrap .section-head { margin: 0; position: sticky; top: 104px; }
}

/* ---------- redaction showpiece ---------- */
body.home .redact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: center; }
body.home .redact-copy p:not(.eyebrow) { margin: 20px 0 0; font-size: 18px; color: rgba(255, 255, 255, 0.72); }
body.home .rd-section h2 em { background: linear-gradient(100deg, #ffc1a0, #c9bcff, #9fe3d1); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 0.12em 0.2em 0.04em; margin: 0 -0.12em -0.2em -0.04em; }
body.home .redact-points { list-style: none; margin: 28px 0 0; padding: 0; }
body.home .redact-points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-size: 16px; }
body.home .redact-points svg { width: 16px; height: 16px; margin-top: 5px; color: #8fd8c4; }

body.home .rd-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
body.home .rd-bar output { color: #fff; text-align: center; }
body.home .rd-stage { position: relative; }
body.home .rd-card { position: relative; overflow: hidden; border-radius: 16px; background: #fff; color: var(--body); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
body.home .rd-layer { padding: 28px; background: #fff; }
body.home .rd-raw { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
body.home .rd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.home .rd-head b { font: 400 28px/1.15 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
body.home .rd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 20px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.home .rd-meta dt { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.home .rd-meta dd { margin: 5px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
body.home .rd-work { margin: 18px 0 0; padding: 0 0 0 20px; font-size: 15px; line-height: 1.6; }
body.home .rd-work li + li { margin-top: 8px; }
/* same box in both layers, so swapping them never moves the text */
body.home .pii { border-radius: 4px; padding: 1px 4px; margin: 0 -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.home .rd-raw .pii { background: #fde6da; color: #8a3d1c; }
body.home .rd-clean .pii { background: #2f3437; color: transparent; user-select: none; }

/* a real range input, so touch, mouse and keyboard all work. Overhangs by half its thumb so the handle tracks the pointer exactly. */
body.home .rd-range { position: absolute; top: 0; bottom: 0; left: -22px; width: calc(100% + 44px); height: 100%; margin: 0; opacity: 0; z-index: 2; cursor: ew-resize; touch-action: pan-y; }
body.home .rd-range::-webkit-slider-runnable-track { height: 100%; background: none; }
body.home .rd-range::-webkit-slider-thumb { width: 44px; height: 100%; margin-top: 0; }
body.home .rd-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
body.home .rd-line { position: absolute; top: -6px; bottom: -6px; left: calc(var(--p) * 1%); width: 2px; margin-left: -1px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #e98a5f, #9a7fe0 50%, #3fa58f); }
body.home .rd-grip { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); transition: transform .15s; }
body.home .rd-grip svg { width: 20px; height: 12px; }
body.home .rd-range:active ~ .rd-line .rd-grip { transform: scale(1.08); }
body.home .rd-range:focus-visible ~ .rd-line .rd-grip { box-shadow: 0 0 0 4px rgba(201, 188, 255, 0.7), 0 4px 16px rgba(0, 0, 0, 0.35); }
body.home .rd-stage:not(.ready) .rd-range, body.home .rd-stage:not(.ready) .rd-line { display: none; }
body.home .rd-note { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- CTA after "who qualifies" ---------- */
body.home .fit-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 32px; padding: 28px 32px; border-radius: 14px; background: var(--closing-bg); }
body.home .fit-cta p { margin: 0; font: 400 clamp(26px, 3vw, 36px)/1.15 var(--serif); letter-spacing: -0.02em; color: #fff; }
body.home .fit-cta em { background: linear-gradient(100deg, #ffc1a0, #c9bcff, #9fe3d1); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.1em 0.15em 0; margin: 0 -0.1em -0.15em 0; }
body.home .fit-cta .btn { flex: none; }

@media (max-width: 880px) {
  body.home .redact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- industry pages (body.ind): headline, then the video, then the buttons ---------- */
body.ind .hero-v2 h1 { font-size: min(5.8vw, 9.5vh); }
body.ind .vsl { margin: clamp(20px, 3vh, 32px) auto 0; max-width: max(480px, min(880px, calc((100vh - 500px) * 16 / 9))); border-radius: 16px; overflow: hidden; background: #15161f; box-shadow: 0 30px 70px rgba(21, 22, 31, 0.28); }
body.ind .vsl video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #15161f; }
body.ind .hero-v2 .lede { margin-top: clamp(16px, 2.5vh, 24px); font-size: clamp(17px, 1.4vw, 20px); }
body.ind .vsl-empty { padding: 28px 24px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
body.ind .vsl-empty code { font: 500 14px var(--mono); color: #fff; }
body.ind .vsl.is-empty video { display: none; }
body.ind .fit .no svg { color: var(--yellow); }

@media (max-width: 880px) { body.home .callout-v2 { grid-template-columns: minmax(0, 1fr); } }
/* ---------- collage on the homepage: fit cards, shutdown tile, closing arches ---------- */
body.home .hc-card { padding: 28px 32px 22px; border: 0; color: #15161f; overflow: hidden; }
body.home .fit-yes.hc-card { background: #a996f0; }
body.home .fit-small.hc-card { background: #f3cf86; }
body.home .hc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; min-height: 196px; }
body.home .hc-head > div { align-self: flex-start; }
body.home .hc-head .tag { background: rgba(255, 255, 255, 0.72); color: #15161f; }
body.home .hc-card .fit-h { font-size: 34px; color: #15161f; max-width: 8.5em; }
body.home .hc-head img { flex: none; width: auto; height: auto; }
body.home .hc-man { max-height: 196px; margin: -4px -34px 0 0; }
body.home .hc-obj { max-width: 58%; max-height: 150px; margin-bottom: 8px; }
body.home .hc-card ul { margin-top: 0; }
body.home .hc-card li { border-top-color: rgba(21, 22, 31, 0.2); color: #15161f; }
body.home .hc-card .yes svg { color: #15161f; }

body.home .hc-tile { overflow: hidden; padding: 28px 28px 24px; border-radius: 18px; background: linear-gradient(135deg, #f0a07a 0%, #a996f0 55%, #5cc3a8 100%); }
body.home .hc-tile img { display: block; width: auto; height: auto; max-width: 74%; max-height: 240px; margin: 0 -30px -44px auto; }
body.home .hc-tile .ws { position: relative; box-shadow: 0 18px 40px rgba(21, 22, 31, 0.18); }
body.home .hc-tile .ws-head { gap: 12px; }
body.home .hc-tile .ws-head b, body.home .hc-tile .ws-head span { white-space: nowrap; }
body.home .hc-tile .ws-head b { font-size: 13.5px; }

body.home .hc-arch { position: absolute; bottom: 0; width: clamp(230px, 21vw, 320px); height: clamp(320px, 29vw, 430px); border-radius: 999px 999px 0 0; overflow: hidden;
  background: linear-gradient(160deg, #f0a07a 0%, #a996f0 55%, #5cc3a8 100%); }
body.home .hc-arch img { position: absolute; bottom: 0; width: auto; height: auto; max-height: 82%; max-width: 96%; }
body.home .hc-arch-l { left: 4%; }
body.home .hc-arch-l img { left: 8%; }
body.home .hc-arch-r { right: 4%; background: linear-gradient(200deg, #f3cf86 0%, #a996f0 55%, #5cc3a8 100%); }
body.home .hc-arch-r img { right: -3px; }
@media (max-width: 1180px) {
  body.home .hc-closing { padding-bottom: 0; }
  body.home .hc-arch-r { display: none; }
  body.home .hc-arch-l { position: relative; left: auto; order: 2; margin: 56px auto 0; width: 260px; height: 320px; display: block; }
  body.home .hc-closing { display: flex; flex-direction: column; }
  body.home .hc-arch-l img { left: 10%; }
}
@media (max-width: 560px) {
  body.home .hc-card { padding: 24px 20px 14px; }
  body.home .hc-head { min-height: 170px; }
  body.home .hc-card .fit-h { font-size: 28px; }
  body.home .hc-man { max-height: 170px; margin-right: -22px; }
  body.home .hc-obj { max-width: 46%; max-height: 110px; }
  body.home .hc-tile { padding: 20px 16px 16px; }
  body.home .hc-tile img { margin-right: -18px; }
  body.home .callout-v2 { padding: 24px 20px; }
  body.home .hc-tile .ws-head { flex-wrap: wrap; gap: 4px 12px; }
}

/* ---------- founder block: a real, identifiable person, so no redaction bar ---------- */
body.home main > section#founder { background: #fcfcfd; border-top: 0; padding-top: 0; }
body.home .fd { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 56px; align-items: center; }
body.home .fd-tile { position: relative; height: 300px; margin: 0; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #f0a07a 0%, #a996f0 55%, #5cc3a8 100%); }
body.home .fd-tile img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: auto; height: auto; max-width: 92%; max-height: 90%; }
body.home .fd-copy h2 em { background: linear-gradient(100deg, #e98a5f 0%, #9a7fe0 50%, #3fa58f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em .2em .04em; margin: 0 -.12em -.2em -.04em; }
body.home .fd-copy > p:not(.eyebrow):not(.fd-sign):not(.fd-links) { margin: 20px 0 0; max-width: 56ch; font-size: 18px; }
body.home .fd-sign { display: grid; gap: 2px; margin: 24px 0 0; }
body.home .fd-sign b { font: 400 28px/1.1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
body.home .fd-sign span { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
body.home .fd-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
@media (max-width: 880px) {
  body.home .fd { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.home .fd-tile { height: 260px; width: 100%; max-width: 240px; }
}

/* ---------- phones ---------- */
@media (max-width: 560px) {
  body.home .cta-pair { flex-direction: column; width: 100%; }
  body.home .hero-v2 .btn { width: 100%; padding: 18px 24px; font-size: 17px; }
  body.home .hero-v2 .cta-note .sep { display: none; }
  body.home .hero-v2 .cta-note b, body.home .hero-v2 .cta-note span { display: block; }
  body.home .score-out { padding: 24px 20px; }
  body.ind .hero-v2 h1 { font-size: 11.4vw; }
  body.home .rd-layer { padding: 20px; }
  body.home .rd-meta { grid-template-columns: minmax(0, 1fr); }
  body.home .rd-bar { font-size: 10.5px; letter-spacing: .04em; }
  body.home .fit-cta { padding: 24px 20px; }
  body.home .fit-cta em { display: block; }
  body.home .fit-cta .btn { width: 100%; justify-content: center; }
}
