/* home.css: the home page's parts, placed and sized with the tokens. */

/* ---------- #hero: full-bleed footage, one business at a time (kit rotate) ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(640px, calc(100svh - 80px), 900px); overflow: hidden; background: var(--c-night); color: var(--c-on-night); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
/* the kit's gentle change, as kit.md gives it */
[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(calc((1 - var(--kit-move, 1)) * 4%)); }
[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; } /* the first picture shows before the scripts run */
[data-kit-scene="rotate"] [data-kit-slide] video { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); } /* each clip 1 px inside its frame: the first picture stays the largest paint */
.hero__slide video { z-index: 0; }
.hero__slide--1 video { object-position: 50% 40%; }
.hero__slide--1 { --pos: 50% 40%; } /* the header's first picture, framed as its clip */
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, rgb(var(--c-shade) / 0.92) 0%, rgb(var(--c-shade) / 0.8) 32%, rgb(var(--c-shade) / 0.4) 52%, rgb(var(--c-shade) / 0) 68%),
  linear-gradient(0deg, rgb(var(--c-shade) / 0.35) 0%, rgb(var(--c-shade) / 0) 28%); }
.hero__in { position: relative; z-index: 2; padding-block: clamp(48px, 6vh, 72px); }
.hero__copy { max-width: 600px; }
.hero__title { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.026em; color: var(--c-paper); }
.hero__title > span[aria-hidden] { display: block; }
.hero__l1, .hero__wordline, .hero__l3 { display: block; }
.hero__wordline { color: var(--c-accent); white-space: nowrap; }
/* the word and its comma change as one, with the picture: the old word goes as the new picture comes in, gone when it is
   half in, and the new word lands with its card (kit rotate's --kit-swap peaks at that half) */
.hero__word { display: inline-block; opacity: calc(1 - var(--kit-swap, 0) * var(--kit-swap, 0)); transform: translateY(calc(var(--kit-swap, 0) * 8px)); }
.hero__word::after { content: ","; }
.hero__line { max-width: 540px; margin: 22px 0 28px; font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--c-on-night) 92%, transparent); }
.hero__picker { max-width: 540px; }
.hero__card { position: absolute; z-index: 3; right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); bottom: 18%; width: 310px; opacity: 1; }
[data-kit-slide][data-kit-on] .hero__card { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 18px)); }
/* the card leaving goes with its word, gone by the time the new picture is half in, just as the new card arrives */
[data-kit-slide][data-prev] .hero__card { opacity: clamp(0, var(--kit-in, 0) * (1 - 2 * var(--kit-move, 1)), 1); transform: translateY(calc(min(1, 2 * var(--kit-move, 1)) * 8px)); }
[data-kit-slide]:not([data-kit-on]):not([data-prev]) .hero__card { visibility: hidden; }
.hero__stop { position: absolute; z-index: 4; top: 20px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); }

@media (max-width: 1100px) {
  .hero__slide::before { background: linear-gradient(90deg, rgb(var(--c-shade) / 0.92) 0%, rgb(var(--c-shade) / 0.82) 45%, rgb(var(--c-shade) / 0.35) 75%, rgb(var(--c-shade) / 0.15) 100%); }
  .hero__card { width: 270px; bottom: 6%; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero__media { bottom: auto; height: 380px; }
  .hero__slide::before { background: linear-gradient(180deg, rgb(var(--c-shade) / 0.1) 0%, rgb(var(--c-shade) / 0.3) 38%, rgb(var(--c-shade) / 0.9) 80%, var(--c-night) 100%); }
  .hero__in { padding-block: 196px 28px; }
  .hero__title { font-size: clamp(1.95rem, 9.2vw, 2.6rem); font-stretch: 104%; }
  .hero__line { margin: 14px 0 18px; font-size: 1.0625rem; }
  .hero__slide--1 video { object-position: 66% 40%; }
  .hero__slide--1 { --pos: 66% 40%; }
  .hero__card { top: 14px; left: var(--gutter); right: auto; bottom: auto; width: min(252px, 68%); padding: 8px 12px 8px 8px; }
  .hero__card .note-card__ico { width: 34px; height: 34px; }
  .hero__stop { top: 14px; right: var(--gutter); }
  .picker__choices { gap: 6px; }
  .picker__choice span { height: 48px; }
}

/* ---------- #plan: the free plan as floating cards (plancards) ---------- */
.plan__stage { position: relative; container-type: inline-size; }
.plan__stop { position: absolute; z-index: 5; top: 16px; right: 16px; }
.plan__scene { position: relative; z-index: 1; width: 100%; }
/* 19 Nov 2026, at the member's request: a clip (plan-night, a desk at night over the city) plays behind the cards
   instead of the blurred, pale plan-desk photo. It fills the scene's stage exactly: 470 px high, 440 px under 700 px. */
.plan__media { position: absolute; z-index: 0; inset: 0 0 auto 0; height: 470px; margin: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); }
.plan__clip { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.plan__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 75% at 50% 55%, rgb(var(--c-shade) / 0.1), rgb(var(--c-shade) / 0.45)); }
.plan .plan__scene .pc-stage { background: transparent; border-color: rgb(255 255 255 / 0.14); }
.plan .plan__scene .pc-stage::before { background: none; }
.plan .plan__scene[data-look] { --pc-card: color-mix(in srgb, var(--c-paper) 94%, transparent); }
@container (width < 700px) { .plan__media { height: 440px; } }

/* ---------- #how: the three steps and the chat ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.how__copy .cta-row { align-items: flex-start; }
.how__copy .cta-row__note { justify-content: flex-start; }
.how__visual { position: relative; display: flex; align-items: center; min-height: 640px; padding-block: 40px; }
.how__media { position: absolute; inset: 0 0 0 120px; margin: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); }
.how__clip { width: 100%; height: 100%; object-fit: cover; }
.how__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--c-shade) / 0.35), rgb(var(--c-shade) / 0)); }
.how__stop { position: absolute; z-index: 3; top: 16px; right: 16px; }
.how__visual .phone { margin-left: 24px; }
@media (max-width: 980px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .how__visual { min-height: 0; justify-content: center; padding-block: 32px; }
  .how__media { inset: 0; }
  .how__visual .phone { margin-left: 0; }
}
@media (max-width: 420px) { .phone { width: 100%; max-width: 300px; } }

/* ---------- #worth: the calculator and its climb ---------- */
.worth__box { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "sliders total" "sliders picture" "sliders figures" "sliders note"; column-gap: clamp(28px, 4vw, 56px); row-gap: 14px; padding: clamp(22px, 4vw, 48px); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m);
  --calc-fill: var(--c-brand); --calc-thumb-edge: var(--c-brand); --calc-track: var(--c-line); --calc-focus: var(--c-brand-text); --calc-font-figure: var(--font-display); --calc-gap: 28px; --calc-total-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.5rem); --calc-figure-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); --calc-value-size: 1.375rem; }
.worth__stop { position: absolute; top: 16px; right: 16px; }
.worth__controls { grid-area: sliders; align-self: center; }
.worth__box .calc-total { grid-area: total; }
.worth__box .worth__picture { grid-area: picture; min-width: 0; }
.worth__box .calc-figures { grid-area: figures; }
.worth__box .calc-note { grid-area: note; }
.worth__box .calc-slider__label { font-weight: 700; }
.worth__box .calc-slider__value { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; color: var(--c-brand-text); }
.worth__box .calc-total { display: grid; gap: 4px; padding-right: 48px; }
.worth__box .calc-total__value { font-stretch: var(--display-stretch); font-weight: 800; letter-spacing: -0.02em; color: var(--c-ink); }
.worth__box .calc-total__label { font: 600 1rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.worth__box .calc-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.worth__box .calc-figure { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--c-paper-alt); }
.worth__box .calc-figure__value { font-stretch: var(--display-stretch); font-weight: 800; color: var(--c-ink); }
.worth__box .calc-figure__label { font: 600 0.875rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.worth__box .calc-note { font-size: 0.875rem; color: var(--c-ink-soft); }
@media (max-width: 900px) { .worth__box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "total" "picture" "sliders" "figures" "note"; row-gap: 14px; --calc-gap: 16px; --calc-total-size: 2.1rem; --calc-figure-size: 1.45rem; --calc-value-size: 1.2rem; } .worth__box .climb { aspect-ratio: 2.3 / 1; } .worth__box .calc-figure { padding: 10px 12px; } .worth__box .calc-total { padding-right: 52px; } }

/* the climb: the year as a ridge that rises with the visitor's numbers */
.climb { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius-m); overflow: hidden; background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-brand-light) 100%); }
.climb__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.climb__path { stroke: color-mix(in srgb, var(--c-paper) 55%, transparent); stroke-width: 2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.climb__trail { stroke: var(--c-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.climb__dot { fill: var(--c-brand-dark); stroke: var(--c-paper); stroke-width: 2; vector-effect: non-scaling-stroke; }
.climb__dot[data-kit-on] { fill: var(--c-accent); stroke: var(--c-ink); }

.climb__flag line { stroke: var(--c-ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.climb__flag path { fill: var(--c-accent); stroke: var(--c-ink); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.climb__today, .climb__tag { position: absolute; font: 700 0.8125rem/1.2 var(--font-ui); white-space: nowrap; }
.climb__today { left: 3%; bottom: 6%; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-paper) 92%, transparent); color: var(--c-ink); }
.climb__tag { left: var(--tag-x, 70%); top: var(--tag-y, 20%); transform: translate(calc(-100% - 14px), -50%); padding: 7px 12px; border-radius: 999px; background: var(--c-ink); color: var(--c-on-night); box-shadow: var(--shadow-m); }
.climb__tag b { font: 800 0.9375rem/1 var(--font-display); color: var(--c-accent); }


/* ---------- #outcomes: review stars keep their real color ---------- */
#outcomes [data-scene="out-reviews"] { --oc-star: var(--c-star); }

/* ---------- #compare: drag the line (kit compare) ---------- */
.versus { position: relative; isolation: isolate; aspect-ratio: 16 / 7.4; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-m); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.versus__side { position: absolute; inset: 0; }
.versus__side--before { z-index: 0; }
.versus__side--after { z-index: 1; } /* each side its own layer, so the second side covers the first side's cards beyond the line (kit.md, Compare) */
.versus__photo { width: 100%; height: 100%; object-fit: cover; }
.versus__side--before .versus__photo { filter: grayscale(1) contrast(0.92) brightness(1.04); }
.versus__side--before::after { content: ""; position: absolute; inset: 0; background: rgb(var(--c-shade) / 0.18); }
.versus__side--after { clip-path: inset(0 0 0 calc(var(--kit-v, 0.55) * 100%)); }
.versus__side--after .versus__photo { object-position: 60% 30%; }
.versus__tag { position: absolute; z-index: 2; top: 20px; left: 20px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c-paper) 92%, transparent); font: 700 0.875rem/1 var(--font-ui); color: var(--c-ink-soft); }
.versus__tag--us { left: auto; right: 20px; background: var(--c-accent); color: var(--c-on-accent); }
.versus__cards { position: absolute; z-index: 2; bottom: 22px; display: grid; gap: 10px; width: min(290px, 40%); }
.versus__side--before .versus__cards { left: 22px; }
.versus__side--after .versus__cards { right: 22px; }
.v-card { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-paper) 94%, transparent); box-shadow: var(--shadow-m); color: var(--c-ink); }
.v-card small { font: 600 0.8125rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.v-card b { font: 800 1.0625rem/1.25 var(--font-display); font-stretch: var(--display-stretch); }
.versus__side--before .v-card { color: var(--c-ink-soft); }
.versus__side--before .v-card b { font-family: var(--font-ui); font-weight: 700; }
.v-card__bad { font: 700 0.875rem/1.3 var(--font-ui); color: var(--c-ink); text-decoration: line-through; text-decoration-thickness: 2px; }

.v-card__bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 3px; height: 34px; margin-top: 6px; }
.v-card__bars i { display: block; height: var(--v); border-radius: 3px 3px 1px 1px; background: var(--c-brand); }
.v-card--ok { display: flex; align-items: center; gap: 10px; }
.v-card--ok > span:last-child { display: grid; gap: 2px; }
.v-card__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); }
.versus__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.versus__range:focus-visible ~ .versus__handle .versus__knob { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.versus__handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: calc(var(--kit-v, 0.55) * 100%); width: 3px; margin-left: -1.5px; background: var(--c-paper); pointer-events: none; }
.versus__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 3px solid var(--c-paper); border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-l); }
.versus__hint { position: absolute; top: calc(50% + 40px); left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: var(--c-ink); font: 700 0.8125rem/1.2 var(--font-ui); color: var(--c-on-night); transition: opacity var(--dur-med); }
.versus[data-kit-touched] .versus__hint { opacity: 0; }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.promises li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--radius-m); font: 700 1rem/1.35 var(--font-ui); }
.promises li::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.4v7.2L9.6 6z' fill='%2306222b'/%3E%3C/svg%3E") 55% 50% / 12px no-repeat; }
@media (max-width: 980px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .versus { aspect-ratio: 4 / 5; }
  .versus__side--after .versus__photo { object-position: 66% 30%; }
  .versus__cards { width: 44%; bottom: 12px; gap: 6px; }
  .versus__side--before .versus__cards { left: 10px; }
  .versus__side--after .versus__cards { right: 10px; }
  .v-card { padding: 9px 10px; }
  .v-card b { font-size: 0.875rem; }

  .v-card--ok .v-card__ico { display: none; }
  .versus__tag { top: 12px; left: 12px; font-size: 0.8125rem; }
  .versus__hint { top: auto; bottom: calc(50% + 40px); }
  .versus__tag--us { left: auto; right: 12px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- #who: six categories and many more ---------- */
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .who__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .who__grid::-webkit-scrollbar { display: none; }
  .who__grid .tile { scroll-snap-align: start; }
}

/* ---------- #faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }
