/* The home page: places and sizes its parts, with the tokens of system.css. */

/* ---------- hero: full-bleed footage under a white veil (computer); words first, then the clip (phone) ---------- */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); } /* the kit gives the glide in whole device pixels */
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); } /* each clip reaches 1 px past its frame, so no still picture shows beside it; until it has shown its first frames, its first paint is cut 1 px inside the frame, so the first picture stays the largest paint */
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; } /* the kit marks a clip once it has shown its first frames */
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); } /* the picture that left goes once the new one covers it whole */
[data-kit-scene="rotate"] [data-kit-slide] img.kit-first { inset: -1px !important; width: calc(100% + 2px) !important; height: calc(100% + 2px) !important; max-width: none; } /* the first picture laid like its clip */

.hero { position: relative; display: flex; align-items: center; min-height: clamp(640px, calc(100svh - var(--header-h)), 860px); overflow: hidden; background: var(--c-paper); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--c-veil) / 0.97) 0%, rgb(var(--c-veil) / 0.94) 33%, rgb(var(--c-veil) / 0.66) 47%, rgb(var(--c-veil) / 0.12) 62%, rgb(var(--c-veil) / 0) 70%),
              linear-gradient(0deg, rgb(var(--c-veil) / 0.5) 0%, rgb(var(--c-veil) / 0) 18%); }
@media (min-width: 1200px) {
  .hero__media::after { background: linear-gradient(90deg, rgb(var(--c-veil) / 0.96) 0%, rgb(var(--c-veil) / 0.92) 36%, rgb(var(--c-veil) / 0.55) 46%, rgb(var(--c-veil) / 0.08) 54%, rgb(var(--c-veil) / 0) 58%),
                linear-gradient(0deg, rgb(var(--c-veil) / 0.4) 0%, rgb(var(--c-veil) / 0) 14%); }
}
.hero__media img.kit-first { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; z-index: 4; right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); bottom: clamp(2rem, 9vh, 5.5rem); width: max-content; max-width: 330px;
  opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 16px)); }
.hero__in { position: relative; z-index: 5; width: 100%; padding-block: clamp(2.5rem, 5vh, 4rem); }
.hero__copy { max-width: 37rem; }
.hero__title { font-size: clamp(2.6rem, 1.4rem + 3.9vw, 4.6rem); line-height: 1.02; letter-spacing: -0.036em; font-weight: 650; }
.hero__l { display: block; }
.hero__word { position: relative; width: fit-content; white-space: nowrap; }
.hero__word::after { content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.08em; height: 0.3em; background: var(--c-brand-light); z-index: -1; border-radius: 2px;
  transform-origin: left; transform: scaleX(calc(1 - var(--kit-swap, 0))); }
.hero__word [data-kit-word] { display: inline-block; opacity: calc(1 - var(--kit-swap, 0)); transform: translateY(calc(var(--kit-swap, 0) * 0.14em)); }
.hero__title > span[aria-hidden] { position: relative; z-index: 0; display: block; }
.hero__line { margin-top: var(--space-4); max-width: 33rem; color: var(--c-ink-soft); }
.hero__picker { margin-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); max-width: 31rem; }
@media (min-width: 900px) {
  /* clips whose people stand near the middle slide right under the veil, so no word crosses a face */
  .hero [data-kit-slide][data-kit-word="remodeling firm"] video { inset: 1px auto 1px 17%; width: calc(100% - 2px); }
  .hero [data-kit-slide][data-kit-word="roofing company"] video { inset: 1px auto 1px 9%; width: calc(100% - 2px); }
  .hero [data-kit-slide][data-kit-word="business"] video { inset: 1px auto 1px 14%; width: calc(100% - 2px); }
}
.hero__stop { top: calc(var(--space-4)); right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); }

@media (max-width: 899px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__in { order: 1; padding-block: var(--space-5) var(--space-4); }
  .hero__title { font-size: clamp(2.35rem, 1.2rem + 6vw, 3.2rem); }
  .hero__line { font-size: 1.0625rem; margin-top: var(--space-3); }
  .hero__picker { margin-top: var(--space-4); }
  .hero__media { order: 2; position: relative; inset: auto; margin: 0 var(--gutter) var(--space-5); aspect-ratio: 16 / 11; border-radius: var(--radius-l); overflow: hidden; }
  .hero__media::after { background: linear-gradient(0deg, rgb(var(--c-veil) / 0.35), rgb(var(--c-veil) / 0) 30%); }
  .hero__card { left: 10px; right: auto; bottom: 10px; max-width: calc(100% - 20px); padding: 0.6rem 0.8rem 0.6rem 0.6rem; }
  .hero__card .cal-card__date { width: 42px; height: 46px; }
  .hero__card .cal-card__date b { font-size: 1.125rem; }
  .hero__card .note-card__title { font-size: 0.875rem; }
  .hero__stop { top: auto; bottom: calc(var(--space-5) + 10px); right: calc(var(--gutter) + 10px); }
}
@media (max-width: 380px) { .picker__choice span { height: 46px; font-size: 1rem; } }

/* ---------- how: "Before and after a coffee": the three steps land over the movers' break ---------- */
.coffee { max-width: 100%; display: flex; align-items: center; aspect-ratio: 16 / 8; min-height: 580px; padding: clamp(1.25rem, 3%, 2.5rem); }
.coffee > video { z-index: 0; object-position: 50% 40%; }
.coffee::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(var(--c-veil) / 0.5), rgb(var(--c-veil) / 0) 45%); }
@media (min-width: 900px) { .coffee > video { inset: 0 auto 0 0; width: 124%; object-position: 50% 22%; } } /* wider than the stage, so the faces sit right of the cards */
.coffee__steps { position: relative; z-index: 2; display: grid; gap: 14px; width: min(400px, 38%); margin: 0; padding: 0; list-style: none; counter-reset: cstep; opacity: calc(1 - var(--kit-out, 0)); }
.cstep { position: relative; margin-left: 44px; padding: 0.95rem 1.1rem 1rem; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-m); box-shadow: var(--shadow-l);
  counter-increment: cstep; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 18px)); }
.cstep::before { content: counter(cstep); position: absolute; left: -44px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 0 0 4px var(--c-paper); font: 650 0.8125rem/1 var(--font-ui); }
.cstep:not(:last-child)::after { content: ""; position: absolute; left: -31px; top: 48px; width: 2px; height: calc(100% - 20px); background: var(--c-brand); transform-origin: top; transform: scaleY(0); transition: transform 0.7s var(--ease-out); }
.cstep:has(+ .cstep[data-kit-on])::after { transform: scaleY(1); }
.cstep__when { display: block; font: 600 0.8125rem/1 var(--font-ui); letter-spacing: 0.04em; color: var(--c-accent-text); }
.cstep h3 { margin-top: 0.45rem; font: 650 1.125rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.cstep p { margin-top: 0.3rem; font-size: 0.9375rem; line-height: 1.45; color: var(--c-ink-soft); }
.cstep__ping { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.8rem; padding: 0.55rem 0.7rem; border-radius: 12px; background: var(--c-paper-alt); border: 1px solid var(--c-line); }
.cstep__ping .cal-card__date { width: 40px; height: 44px; border-radius: 8px; }
.cstep__ping .cal-card__date b { font-size: 1.0625rem; }
.cstep__ping b, .cstep__ping small { display: block; }
.cstep__ping > span:last-child b { font: 600 0.9375rem/1.25 var(--font-ui); color: var(--c-ink); }
.cstep__ping > span:last-child small { font: 500 0.8125rem/1.3 var(--font-ui); color: var(--c-meta); margin-top: 2px; }
@media (max-width: 899px) {
  .coffee { aspect-ratio: auto; min-height: 0; flex-direction: column; align-items: stretch; justify-content: flex-end; padding: max(230px, 56vw) var(--space-3) var(--space-3); }
  .coffee > video { object-position: 48% 0%; }
  .coffee::after { background: linear-gradient(0deg, rgb(var(--c-veil) / 0.45), rgb(var(--c-veil) / 0) 55%); }
  .coffee__steps { width: auto; gap: 10px; }
  .cstep { margin-left: 40px; padding: 0.8rem 0.9rem 0.85rem; }
  .cstep::before { left: -40px; top: 14px; }
  .cstep:not(:last-child)::after { left: -27px; top: 46px; height: calc(100% - 26px); }
  .cstep p { font-size: 0.875rem; }
}

/* ---------- worth: the calculator ---------- */
.worth { position: relative; }
.worth__stop { top: var(--space-3); right: var(--space-3); }
.worth__box { --calc-surface: var(--c-paper); --calc-track: var(--c-paper-deep); --calc-fill: var(--c-brand); --calc-thumb-edge: var(--c-brand); --calc-font-figure: var(--font-display);
  display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.25fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding: clamp(1.25rem, 0.9rem + 2vw, 3rem);
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: calc(var(--radius-l) + 6px); box-shadow: var(--shadow-m); }
.worth__controls { display: flex; flex-direction: column; gap: var(--space-4); }
.worth__figures { padding-top: var(--space-4); border-top: 1px solid var(--c-line); }
.worth__result { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.worth__currency { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem var(--space-2); }
.worth__currency .calc-slider__label { font-family: var(--calc-font, var(--font-ui)); color: var(--calc-ink, var(--c-ink)); white-space: nowrap; }
.worth__signs { display: flex; gap: 0.375rem; flex: none; }
.worth__sign { position: relative; display: block; cursor: pointer; }
.worth__sign input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.worth__sign span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-m); border: 1.5px solid var(--c-line-strong); background: var(--c-paper); font: 600 1.0625rem/1 var(--font-ui); color: var(--c-ink); transition: background-color .15s, border-color .15s, color .15s; }
.worth__sign:hover span { border-color: var(--c-brand); background: var(--c-paper-deep); }
.worth__sign input:checked + span { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.worth__sign input:focus-visible + span { outline: 2px solid var(--c-accent-text); outline-offset: 2px; }
@media (max-width: 899px) { .worth__box { grid-template-columns: 1fr; } .worth__currency { margin-right: 46px; } .worth__signs { gap: 0.25rem; } .worth__sign span { width: 40px; height: 40px; } }

/* the picture: "Your year, booked" */
.yr { --cell: clamp(9px, 1.05vw, 16px); --gap: clamp(2px, 0.28vw, 4px); width: 100%; }
.yr__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.85rem; }
.yr__title { font: 600 1rem/1.2 var(--font-ui); color: var(--c-ink); }
.yr__legend { display: flex; gap: 0.85rem; font: 500 0.8125rem/1 var(--font-ui); color: var(--c-meta); }
.yr__legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.yr__legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; }
.yr__body { display: grid; grid-template-columns: 1fr auto; gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); align-items: stretch; }
.yr__grid { display: grid; gap: var(--gap); will-change: transform; } /* its own layer: repainting the words beside it never re-draws its squares */
.yr__row { display: grid; grid-template-columns: 1.9em 1fr; align-items: center; gap: 0.4rem; opacity: 0.32; transition: opacity 0.35s var(--ease-out); }
.yr__row[data-kit-on], .worth__picture[data-built] .yr__row { opacity: 1; }
.yr__m { font: 600 0.8125rem/1 var(--font-ui); color: var(--c-meta); text-align: right; font-variant-numeric: tabular-nums; }
.yr__cells { display: grid; grid-template-columns: repeat(21, 1fr); gap: var(--gap); }
.yr__cells i, .yr__legend i { aspect-ratio: 1; border-radius: 3px; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.yr__cells i[data-l="1"], .yr__legend i[data-l="1"] { background: #9dc4f5; box-shadow: none; }
.yr__cells i[data-l="2"], .yr__legend i[data-l="2"] { background: var(--c-accent); box-shadow: none; }
.yr__cells i[data-l="3"], .yr__legend i[data-l="3"] { background: var(--c-brand); box-shadow: none; }
.yr__row[data-kit-on] .yr__cells i[data-l] { transform: scale(calc(0.6 + 0.4 * var(--kit-in, 1))); }
.yr__bar { display: flex; align-items: stretch; gap: 6px; }
.yr__track { position: relative; flex: 1; width: 22px; min-height: 160px; background: var(--c-brand-light); border-radius: 2px; }
.yr__fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill, 0) * 100%); background: var(--c-brand); border-radius: 2px; transition: height 0.45s var(--ease-out); }
.yr__ticks { position: relative; width: 4.1em; font-size: 0.8125rem; }
.yr__tick { position: absolute; left: 8px; bottom: calc(var(--at) * 100%); transform: translateY(50%); font: 600 0.8125rem/1 var(--font-ui); color: var(--c-meta); white-space: nowrap; }
.yr__tick::before { content: ""; position: absolute; right: calc(100% + 1px); top: 50%; width: 6px; height: 1px; background: var(--c-line-strong); }
.yr__cap { margin-top: 0.8rem; font: 500 0.8125rem/1.45 var(--font-ui); color: var(--c-meta); }
@media (max-width: 520px) { .yr { --cell: 9px; --gap: 2px; } .yr__row { grid-template-columns: 1.4em 1fr; gap: 0.3rem; } .yr__track { width: 14px; } .yr__legend { gap: 0.6rem; } }

/* ---------- outcomes: each scene placed clear of the faces in its clip ---------- */
.row__media--found > video { object-position: 100% 50%; }
.row__media--found > [data-scene] { right: 4%; top: 7%; }
.row__media--answer > video { object-position: 0% 50%; }
.row__media--answer > [data-scene] { left: 4%; bottom: 7%; }
.row__media--reviews > [data-scene] { right: 4%; bottom: 6%; }
.row__media--work > [data-scene] { left: 4%; top: 7%; }
@media (max-width: 899px) {
  .row__media { aspect-ratio: 4 / 5; }
  .row__media--work > [data-scene] { width: min(256px, 72%); }
  .row__media--found > [data-scene] { right: 3%; top: auto; bottom: 4%; transform-origin: bottom right; }
  .row__media--answer > video { object-position: 30% 50%; }
  .row__media--answer > [data-scene] { left: 3%; bottom: 4%; transform-origin: bottom left; }
  .row__media--reviews > [data-scene] { right: 3%; bottom: 3%; transform-origin: bottom right; }
  .row__media--work > [data-scene] { left: 3%; top: auto; bottom: 4%; transform-origin: bottom left; }
}

/* ---------- who: the reel ---------- */
.reel { position: relative; }
.reel__stop { top: 14px; right: 14px; }
.reel__more { margin-top: var(--space-5); }

/* ---------- close ---------- */
.sec--close { padding-top: 0; }
.close-band__media > video { object-position: 85% 40%; }

/* the calculator's numbers in the site's weight */
.worth__box .calc-total, .worth__box .calc-figure b, .worth__box [data-kit-out] { font-weight: 600; letter-spacing: -0.025em; }
.worth__box .calc-label { color: var(--c-ink); font-weight: 500; }

/* ---------- member fix, 23 Nov 2026 ---------- */
/* plan: the member's copy over the tour, one lead line, the turn in bold, two body lines */
.plan-head { max-width: 50rem; }
.plan-head p + p { margin-top: var(--space-3); }
.plan-head p:not(.lead) { max-width: 44rem; margin-inline: auto; color: var(--c-ink-soft); }
.plan-head__turn strong { color: var(--c-ink); font-weight: 650; }
/* the tour's four tabs: a little tighter, so the four stand beside the stage's height */
@media (min-width: 900px) {
  .tour__tabs .tour__tab { padding-block: 1rem 1.05rem; }
}
/* the Impact Report (scan) in the tour: its panel no wider than its stage allows */
.tour__panel > [data-scene="scan"] { max-width: 560px; }
/* worth: the three results stand out, each on its own light-blue ground */
.worth__figures { padding-top: 0; border-top: 0; }
.worth__box .calc-figure { padding: 0.95rem 1.1rem 1rem; background: var(--c-paper-alt); border: 1px solid var(--c-line-strong); border-radius: var(--radius-m); }
.worth__box .calc-total { padding: 1.1rem 1.35rem 1.2rem; background: var(--c-paper-alt); border: 1px solid var(--c-line-strong); border-left: 4px solid var(--c-brand); border-radius: var(--radius-m); }
.worth__box .calc-figure__label, .worth__box .calc-total__label { margin-top: 0.15rem; color: var(--c-ink-soft); }
.worth__box .calc-note { color: var(--c-meta); }
/* outcomes: each row's stop icon on its own picture, in the corner its scene leaves free */
.row__media > .row__stop { top: 14px; }
.row__media > .row__stop--l { left: 14px; right: auto; }
.row__media > .row__stop--r { right: 14px; }
/* compare: the longer tag ("Traditional agency approach") wraps on narrow screens, so it stays clear of the line at rest */
@media (max-width: 700px) {
  .compare__side--before .compare__tag { max-width: calc(50% - var(--space-4) - 14px); line-height: 1.25; border-radius: 12px; }
}
