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

/* ---------- the header: words and picker on navy, a monitor playing one field at a time ---------- */
/* The kit's header CSS (kit.md, "The header that changes its field"), as it is. */
[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%))); }
[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); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 7vw, 104px); }
.hero__ring { right: -170px; top: -150px; width: 640px; height: 640px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(36px, 4vw, 56px); color: var(--c-on-ink); }
/* the field word in a lighter blue than the token, 11.2:1 on the ink (the token is 8.0:1): Joe's fix list, polish 12,
   "raise the contrast of the rotating word" */
.hero__field { --field: #BBD6FF; display: block; min-height: 1.08em; white-space: nowrap; color: var(--field); }
.hero__field [data-kit-word] { position: relative; display: inline-block; opacity: calc(1 - var(--kit-swap, 0)); transform: translateY(calc(var(--kit-swap, 0) * 0.18em)); }
/* the field's own line: it draws back in from the left as each new field arrives */
.hero__field [data-kit-word]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.07em; border-radius: 1em; background: var(--field); transform-origin: left center; transform: scaleX(calc(1 - var(--kit-swap, 0))); }
.hero__lead { margin-top: var(--space-4); font-size: 19px; line-height: 1.55; color: var(--c-ink-soft-on-ink); max-width: 50ch; }
.hero__picker { margin-top: var(--space-5); }

.hero__device { position: relative; padding: 0 0 0 28px; }
.monitor { position: relative; padding: 12px 12px 0; background: var(--c-paper); border-radius: 22px; box-shadow: 0 46px 90px -34px color-mix(in srgb, var(--c-ink) 40%, black), 0 0 0 1px color-mix(in srgb, var(--c-paper) 60%, transparent); }
.monitor__screen { position: relative; aspect-ratio: 16 / 10; }
.hero .slide { overflow: visible; }
.slide__media { position: absolute; inset: 0; overflow: hidden; border-radius: 26px 6px 26px 6px; background: var(--c-ink-2); }
/* the dentist and her patient sit in the clip's right half: the clip is drawn 1.5 times larger from its right edge, so
   the two come to the middle of the screen and the empty wall at the left falls away (KIKU, 6 Nov) */
.slide__media--dental video { object-position: 100% 0%; transform: scale(1.5); transform-origin: 100% 9%; }
/* each field's booking is the monitor's own status line, in its chin, beside the kiku mark */
.monitor__chin { display: flex; align-items: center; height: var(--chin, 64px); padding-left: 16px; }
.monitor__mark { flex: none; width: 18px; height: 18px; fill: var(--c-accent); }
.hero .slide__card { position: absolute; z-index: 3; left: 46px; right: 8px; bottom: calc(-1 * var(--chin, 64px)); height: var(--chin, 64px); max-width: none; padding: 0 8px 0 0; gap: 12px; background: none; border-radius: 0; box-shadow: none; }
/* the arriving card's white ground covers the leaving one's at once and only its words fade in, so two bookings never
   show through each other (Joe's fix list, polish 12: "booking text ... double-exposing") */
.hero .slide__card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--c-paper); opacity: clamp(0, var(--kit-in, 1) * 1000, 1); }
.hero .slide__card > * { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
/* the arriving slide is itself half see-through while its card comes in (the kit's --kit-move), so the leaving card's
   words go first: gone by the time the new picture is a third in (its card starts at about 0.4) */
.hero [data-kit-slide][data-prev] .slide__card > * { opacity: clamp(0, (0.34 - var(--kit-move, 0)) * 5, 1); transform: none; }
/* the bookings are examples (Joe's fix list, polish 13: "Label them as examples") */
.monitor__tag { position: absolute; z-index: 4; top: 12px; left: 12px; padding: 5px 10px; border-radius: 10px 3px 10px 3px; background: color-mix(in srgb, var(--c-ink) 74%, transparent); color: var(--c-on-ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; pointer-events: none; }
.hero .slide__card .booking__icon { width: 36px; height: 36px; }
.monitor__stand { display: grid; justify-items: center; }
.monitor__stand::before { content: ""; width: 16%; height: 48px; background: color-mix(in srgb, var(--c-line) 70%, var(--c-ink-soft)); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor__stand span { display: block; width: 36%; height: 10px; border-radius: 0 0 12px 12px; background: color-mix(in srgb, var(--c-line) 82%, var(--c-ink-soft)); }
.hero__stop { position: absolute; z-index: 5; top: 24px; right: 24px; }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__device { padding: 0 0 0 10px; margin-top: var(--space-4); }
  .monitor__stand { display: none; }
  .monitor { padding: 8px 8px 0; border-radius: 18px; }
  .monitor { --chin: 58px; }
  .monitor__chin { padding-left: 10px; }
  .hero .slide__card { left: 34px; right: 4px; gap: 10px; }
  .monitor__tag { top: 8px; left: 8px; padding: 4px 8px; font-size: 12px; }
  .hero .slide__card .booking__icon { width: 30px; height: 30px; }
  .hero__picker { max-width: none; }
}
@media (max-width: 600px) {
  .hero__title { font-size: clamp(31px, 8.6vw, 38px); }
  .hero__field { font-size: min(1em, 8.4vw); }
  .hero__lead { font-size: 17.5px; }
  .hero__picker { margin-top: var(--space-4); padding: 18px; }
  .picker { --pick-h: 36px; --pick-rise: 8px; }
  .picker__choice span { font-size: 18px; }
  .booking__text b { font-size: 15px; }
  .booking__value { font-size: 16px; }
}

/* ---------- the free plan tour, in an inset navy panel ---------- */
.plan__ring { left: -240px; bottom: -280px; width: 620px; height: 620px; }
.plan__head { display: grid; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-5); }
.plan__head h2 { font-size: var(--fs-h2); }
.plan__grid { display: grid; grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr); gap: var(--space-5); align-items: stretch; }
.plan__side { display: grid; align-content: space-between; gap: var(--space-5); }
.plan__tabs { display: grid; gap: 12px; align-content: start; }
.plan__tab { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; width: 100%; padding: 18px 20px 20px; text-align: left; border: 1px solid var(--c-line-on-ink); border-radius: var(--petal-s); background: transparent; color: var(--c-on-ink); font: inherit; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.plan__tab:hover { border-color: color-mix(in srgb, var(--c-brand-on-ink) 50%, transparent); }
.plan__tab[aria-selected="true"] { background: var(--c-ink-2); border-color: color-mix(in srgb, var(--c-brand-on-ink) 60%, transparent); }
.plan__num { font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1; color: var(--c-brand-on-ink); }
.plan__tabtext b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.plan__tabtext span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--c-ink-soft-on-ink); }
.plan__fill { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-brand-on-ink); }
.plan__tab[aria-selected="false"] .plan__fill { width: 0; }
.plan__stage { min-height: clamp(470px, 40vw, 540px); }
.plan__panelbox { position: absolute; inset: 0; z-index: 2; isolation: isolate; display: grid; place-items: center; padding: clamp(16px, 2.4vw, 32px); outline-offset: -4px; }
.plan__clip { position: absolute; inset: 0; z-index: -1; }
.plan__clip video, .plan__clip img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; display: block; }
.plan__clip::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-ink) 22%, transparent); }
#plan-p1 .plan__clip video { object-position: 50% 35%; }
.plan__panelbox > .scene { width: 100%; }
.plan__stop { position: absolute; z-index: 3; top: 16px; right: 16px; }
@media (max-width: 960px) {
  .plan__grid { grid-template-columns: 1fr; }
  .plan__side { display: contents; }
  .plan__tabs { order: 1; }
  .plan__stage { order: 2; min-height: 600px; }
  .plan__cta { order: 3; }
}
@media (max-width: 600px) {
  .plan__panel { padding: 24px 16px; border-radius: 24px; }
  .plan__tab { padding: 14px 16px 16px; }
  .plan__stage { min-height: 640px; }
}

/* ---------- three steps lit by the chat ---------- */
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.how .section-head { margin-bottom: var(--space-5); }
.steps { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; }
.steps__item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0 22px 4px; border-top: 1px solid var(--c-line); }
.steps__item:last-child { border-bottom: 1px solid var(--c-line); }
.steps__item::before { content: ""; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px; background: var(--c-brand); transform: scaleY(0); transition: transform var(--dur-med) var(--ease-out); }
.steps__item[aria-current="step"]::before { transform: scaleY(1); }
.steps__num { font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 0.9; color: var(--c-ink-soft); transition: color var(--dur-med); }
.steps__item[aria-current="step"] .steps__num { color: var(--c-brand-text); }
.steps__item h3 { font-size: var(--fs-h3); }
.steps__item p { margin-top: 6px; color: var(--c-ink-soft); }
.how__visual { position: relative; }
.how__frame { aspect-ratio: 1 / 1.08; max-height: 660px; }
.how__frame video { object-position: 18% 50%; }
.phone { position: absolute; top: 50%; right: 7%; transform: translateY(-50%); width: 300px; height: 560px; padding: 11px; border-radius: 46px; background: var(--c-ink); box-shadow: var(--shadow-l), 0 0 0 1px color-mix(in srgb, var(--c-paper) 18%, transparent); }
.phone__in { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 36px; background: var(--c-paper); }
/* the whole phone opens his chat (Paul, 20 Nov: "Link both to his chat"), the chips too */
.phone__go { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.phone__go:hover { box-shadow: 0 0 0 3px var(--c-brand); }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 22px 16px 12px; border-bottom: 1px solid var(--c-line); }
.chat__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 4px 12px 4px; background: var(--c-ink); }
.chat__avatar .mark { width: 18px; height: 18px; fill: var(--c-accent); }
.chat__who b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.chat__who small { font-size: 13px; color: var(--c-ink-soft); }
.chat__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 12px 16px; overflow: hidden; opacity: calc(1 - var(--kit-out, 0)); }
.msg { flex: none; max-width: 88%; padding: 10px 13px; border-radius: 16px 16px 16px 5px; font-size: 14.5px; line-height: 1.4; opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.msg--bot { align-self: flex-start; background: var(--c-paper-alt); color: var(--c-ink); }
.msg--me { align-self: flex-end; background: var(--c-brand); color: var(--c-on-brand); border-radius: 16px 16px 5px 16px; font-weight: 600; }
.msg-open { flex: none; display: flex; flex-direction: column; gap: 8px; opacity: var(--kit-in, 1); }
.msg-open .msg { opacity: 1; transform: none; }
.msg--chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: none; }
.msg--chips span { padding: 6px 11px; border: 1.5px solid var(--c-line); border-radius: 10px 3px 10px 3px; font-weight: 700; font-size: 14px; color: var(--c-ink); background: var(--c-paper); }
.msg--chips span[data-kit-on] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.msg--typing { display: flex; gap: 5px; padding: 13px 14px; align-self: flex-start; background: var(--c-paper-alt); }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink-soft); animation: dot 1s infinite var(--ease-in-out); }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--check { width: 88%; font-weight: 600; }
.msg__bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.msg__bar::after { content: ""; display: block; height: 100%; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-brand); border-radius: 3px; }
.msg--result { max-width: 100%; width: 100%; display: grid; gap: 8px; padding: 14px; background: var(--c-ink); color: var(--c-on-ink); border-radius: 16px 5px 16px 5px; font-size: 13.5px; }
.msg--result > b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.msg--result span b { color: var(--c-brand-on-ink); }
.msg__bars { display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.msg__bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--c-brand-on-ink); }
.how__stop { position: absolute; top: 16px; left: 16px; }
@media (max-width: 960px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__visual { order: -1; }
}
@media (max-width: 600px) {
  /* Joe, 18 Nov: the phone (520 px) stood taller than the frame and covered "Three steps to a"; the frame now holds it whole */
  .how__frame { aspect-ratio: auto; height: 572px; max-height: none; }
  .phone { right: 50%; transform: translate(50%, -50%); width: 272px; height: 520px; }
}

/* ---------- the calculator: your year in bloom ---------- */
.worth__box { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); max-width: 1140px; margin-inline: auto; overflow: hidden; background: var(--c-paper); border-radius: var(--petal); box-shadow: var(--shadow-l);
  --calc-fill: var(--c-brand); --calc-thumb-edge: var(--c-brand); --calc-track: var(--c-line); --calc-thumb-radius: 9px 3px 9px 3px; --calc-thumb-size: 30px; --calc-value-size: 24px; --calc-label-size: 17px; --calc-font-figure: var(--font-display); }
.worth__controls { display: grid; align-content: center; padding: clamp(28px, 4vw, 56px); }
.worth__controls .calc-sliders { --calc-gap: 30px; }
.worth__controls .calc-slider__value { font-family: var(--font-display); font-weight: 600; color: var(--c-brand-text); }
.worth__result { position: relative; display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 40px); text-align: center; background: var(--c-ink); color: var(--c-on-ink);
  --calc-ink: var(--c-on-ink); --calc-ink-soft: var(--c-ink-soft-on-ink); --calc-total-size: clamp(42px, 4.6vw, 64px); --calc-figure-size: clamp(26px, 2.4vw, 32px); }
.worth__result .calc-total { justify-self: stretch; font-weight: 300; }
.worth__result .calc-total .calc-num, .worth__result .calc-total .calc-fit { color: var(--c-accent-on-ink); }
.worth__picture { position: relative; width: min(100%, 330px); aspect-ratio: 1; }
/* the bloom is painted into its canvas (home.js); the SVG only holds the months the kit's year marks */
.bloom { display: block; width: 100%; height: 100%; visibility: hidden; }
.bloom__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.bloom__month { fill: none; stroke: var(--c-ink-2); stroke-width: 7; stroke-linecap: round; }
.bloom__month[data-kit-on] { stroke: var(--c-brand-on-ink); }
.bloom__petal { stroke: var(--c-ink); stroke-width: 1.4; stroke-linejoin: round; }
.bloom__heart { fill: var(--c-accent); }
@media (max-width: 380px) { .worth__controls .calc-scale__mark:nth-last-child(2) { display: none; } }
.bloom__heart-in { fill: color-mix(in srgb, var(--c-accent) 55%, var(--c-paper)); }
.worth__legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 14.5px; color: var(--c-ink-soft-on-ink); }
.worth__key { width: 10px; height: 16px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--c-brand); box-shadow: 0 0 0 1.5px var(--c-brand-light); }
.worth__result .calc-figures { width: 100%; padding-top: 14px; border-top: 1px solid var(--c-line-on-ink); }
.worth__result .calc-note { font-size: 14px; color: var(--c-ink-soft-on-ink); }
.worth__stop { position: absolute; top: 14px; right: 14px; }
@media (max-width: 900px) {
  .worth__box { grid-template-columns: 1fr; }
  .worth__picture { width: min(100%, 290px); }
}

/* ---------- the outcomes: owners rising into their panels ---------- */
.rows { position: relative; display: grid; gap: clamp(64px, 8vw, 112px); }
.outcomes__stop { position: absolute; z-index: 4; top: -60px; right: 0; }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.row--flip .row__words { order: 2; }
.row__words { display: grid; justify-items: start; gap: 14px; }
.row__num { font-family: var(--font-display); font-weight: 300; font-size: 46px; line-height: 1; color: var(--c-brand-text); }
.row__words h3 { font-size: clamp(27px, 2.6vw, 36px); }
.row__words p { font-size: 19px; color: var(--c-ink-soft); max-width: 44ch; }
/* each owner, cut out, stands in front of their own workplace and rises above the panel's top edge */
.row__panel { position: relative; height: clamp(400px, 35vw, 470px); margin-top: clamp(40px, 4vw, 60px); border-radius: var(--petal); }
.row__bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--c-panel); }
.row__bg img { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); max-width: none; object-fit: cover; filter: blur(2px) saturate(0.9) brightness(1.04); }
.row__bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-paper) 16%, transparent); }
.row__person { position: absolute; z-index: 1; bottom: 0; left: 4%; width: 46%; height: calc(100% + clamp(40px, 4vw, 60px)); }
.row--flip .row__person { left: auto; right: 4%; }
#out-answer .row__person { width: 58%; }
#out-revenue .row__person { width: 58%; }
.row__person img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%; }
/* step 04's lawyer is Joe's own photo (13 Nov: "an extended version of the lawyer photo ... extended down so her framing
   matches 01-03"), drawn like the dentist's in row 02: the box as wide, no special height */
.rise-ready .row__person[data-rise] { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.rise-ready .row__person[data-rise].is-in { opacity: 1; transform: none; }
.row__scene { position: absolute; z-index: 2; right: 4%; bottom: 7%; width: min(360px, 52%); }
.row--flip .row__scene { right: auto; left: 4%; }
.row__scene > .scene { width: 100%; }
@media (max-width: 900px) {
  .row, .row--flip { grid-template-columns: 1fr; gap: var(--space-4); }
  .row--flip .row__words { order: 0; }
  .row__panel { order: -1; height: auto; margin-top: 44px; padding: 300px 12px 14px; }
  .row__person, .row--flip .row__person, #out-revenue .row__person { top: -44px; bottom: auto; left: 50%; right: auto; width: 82%; height: 344px; transform: translateX(-50%); }
  /* here the owner ends inside the panel, above the card: the cut fades into the workplace */
  .row__person img { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
  .rise-ready .row__person[data-rise] { transform: translate(-50%, 36px); }
  .rise-ready .row__person[data-rise].is-in { transform: translateX(-50%); }
  .row__scene, .row--flip .row__scene { position: relative; left: auto; right: auto; bottom: auto; width: min(360px, 100%); margin: -48px auto 0; }
  .outcomes__stop { top: 8px; right: 8px; }
}

/* ---------- compare: bills or bookings ---------- */
.cmp { position: relative; height: clamp(470px, 44vw, 580px); overflow: hidden; border-radius: var(--petal); box-shadow: var(--shadow-l); background: var(--c-ink); }
.cmp__side { position: absolute; inset: 0; }
.cmp__side img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.cmp__side--before img { filter: grayscale(0.9) brightness(0.78) contrast(0.92); object-position: 50% 30%; transform: scaleX(-1); }
.cmp__side--after img { object-position: 62% 30%; }
.after { clip-path: inset(0 0 0 calc(var(--kit-v, 0.5) * 100%)); }
.cmp__tag { position: absolute; top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px 4px 12px 4px; font-weight: 700; font-size: 15px; }
.cmp__side--before .cmp__tag { left: 22px; background: color-mix(in srgb, var(--c-ink) 82%, transparent); color: var(--c-on-ink); }
.cmp__tag--kiku { right: 22px; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); }
.cmp__tag--kiku .mark { width: 14px; height: 14px; fill: var(--c-accent); }
.cmp__cards { position: absolute; bottom: 22px; display: grid; gap: 10px; width: min(300px, 40%); }
.cmp__side--before .cmp__cards { left: 22px; }
.cmp__side--after .cmp__cards { right: 22px; }
.cmp__card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px 4px 14px 4px; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); font-size: 14px; }
.cmp__card b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.cmp__card small { color: var(--c-ink-soft); font-size: 13.5px; }
.cmp__card--bill { background: color-mix(in srgb, var(--c-paper) 90%, var(--c-ink-soft)); border: 1px dashed color-mix(in srgb, var(--c-ink-soft) 50%, transparent); }
.cmp__card.booking { display: flex; padding: 10px 12px 10px 10px; }
.cmp__card.booking .booking__icon { width: 34px; height: 34px; }
.cmp__card.booking .booking__value { font-size: 16px; }
.cmp__card--line svg { width: 100%; height: 40px; margin-block: 4px; }
.cmp__card--line path { stroke: var(--c-accent); }
.cmp__card--line circle { fill: var(--c-accent); }
.cmp__card--ok b { color: var(--c-brand-text); }
.cmp input[type="range"] { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: calc(var(--kit-v, 0.5) * 100%); width: 0; pointer-events: none; opacity: clamp(0, calc((min(var(--kit-v, 0.5), 1 - var(--kit-v, 0.5)) - 0.03) * 14), 1); }
.handle__line { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--c-paper); box-shadow: 0 0 12px color-mix(in srgb, var(--c-ink) 45%, transparent); }
.handle__knob { position: absolute; top: 30%; left: -28px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.handle__hint { position: absolute; top: calc(30% + 64px); left: -32px; width: 64px; text-align: center; font-weight: 700; font-size: 14px; color: var(--c-on-ink); text-shadow: 0 1px 8px color-mix(in srgb, var(--c-ink) 80%, transparent); }
.cmp[data-kit-touched] .handle__hint { display: none; }
.cmp input:focus-visible + .handle { opacity: 1; }
.cmp input:focus-visible + .handle .handle__knob { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.cmp [data-kit-whole] { transition: opacity 0.2s, visibility 0s; }
.cmp [data-kit-under] { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.promises { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); }
.promises li { display: flex; align-items: center; gap: 10px; padding: 18px 16px; font-weight: 600; font-size: 16.5px; border-right: 1px solid var(--c-line); }
.promises li:last-child { border-right: 0; }
.promises svg { flex: none; color: var(--c-brand); }
@media (max-width: 760px) {
  .cmp { height: 600px; }
  .cmp__cards { width: calc(50% - 26px); bottom: 14px; gap: 8px; }
  .cmp__side--before .cmp__cards { left: 10px; }
  .cmp__side--after .cmp__cards { right: 10px; }
  .cmp__tag { top: 12px; font-size: 13px; padding: 7px 10px; max-width: calc(50% - 22px); }
  .cmp__side--before .cmp__tag { left: 10px; }
  .cmp__tag--kiku { right: 10px; }
  .cmp__card { padding: 9px 10px; }
  .cmp__card b { font-size: 14px; }
  .cmp__card small { font-size: 13px; }
  .cmp__card.booking { display: grid; }
  .cmp__card.booking .booking__icon { display: none; }
  .cmp__card.booking .booking__value { margin-left: 0; padding-left: 0; }
  .handle__knob { top: 22%; }
  .handle__hint { top: calc(22% + 64px); }
  .promises { grid-template-columns: 1fr 1fr; }
  .promises li:nth-child(2) { border-right: 0; }
  .promises li { border-bottom: 1px solid var(--c-line); font-size: 15px; padding: 14px 10px; }
}

/* ---------- who it is for ---------- */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kind { position: relative; display: block; color: var(--c-on-ink); text-decoration: none; }
.kind__media { display: block; aspect-ratio: 4 / 4.6; }
.kind__media img { transition: transform 0.7s var(--ease-out); }
.kind:hover .kind__media img { transform: scale(1.04); }
.kind__text { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--petal-s); background: color-mix(in srgb, var(--c-ink) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kind__text b { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.kind__text small { font-size: 14px; line-height: 1.4; color: var(--c-ink-soft-on-ink); }
.kind:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 4px; border-radius: var(--petal); }
.kind:nth-child(6) .kind__media img { object-position: 45% 50%; }
.kind--more { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); padding: 28px 36px; border-radius: var(--petal); background: var(--c-ink); }
.kind--more b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.kind--more p { color: var(--c-ink-soft-on-ink); }
.kind__mark { width: 40px; height: 40px; fill: var(--c-accent); }
@media (max-width: 1000px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kinds { grid-template-columns: 1fr; }
  .kind__media { aspect-ratio: 4 / 3.2; }
  .kind--more { grid-template-columns: 1fr; justify-items: start; padding: 24px; }
}

/* ---------- the geo grid: ranks across the whole area, over a suburb from the air (KIKU, 6 Nov) ---------- */
.area__frame { display: grid; place-items: center; min-height: clamp(580px, 46vw, 660px); padding: clamp(16px, 3vw, 48px); }
.area__clip { position: absolute; inset: 0; z-index: -1; }
.area__clip video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; display: block; }
.area__clip::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-ink) 24%, transparent); }
/* the scene's stage: 760 x 520 at its design size, a little larger on a wide screen */
.area__frame > .scene { width: min(100%, 860px); height: clamp(520px, 40vw, 580px); }
.area__stop { position: absolute; z-index: 3; top: 14px; right: 14px; }
@media (max-width: 600px) {
  /* room at the top for the stop icon, over the footage and clear of the search */
  .area__frame { min-height: 0; padding: 60px 12px 12px; }
  .area__frame > .scene { height: 560px; }
}

/* ---------- the questions ---------- */
/* its headline on one line on the computer (Joe's fix list, polish 14: "the FAQ heading wrapping across several lines at
   desktop width"); balanced where it must wrap */
#faq .section-head { max-width: 1100px; }
#faq .section-head h2 { text-wrap: balance; }

/* ---------- owners' words (Joe, 25 Nov): a short strip of three quotes. Since 26 Nov (Joe's ask) it sits straight under
   the outcomes, white between the white outcomes and the white compare. Its top padding is the outcomes' own bottom
   padding, so the quotes read as the proof of the four rows above them; below, the section's full gap to the compare. ---------- */
.owners { padding-top: 0; }
.owners__head { margin-bottom: var(--space-5); }
.owners__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.say { position: relative; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); padding: 30px 28px 26px; background: var(--c-brand-light); border-radius: var(--petal-s); }
.say__mark { font-family: var(--font-display); font-size: 64px; line-height: 0.6; height: 26px; color: var(--c-accent); }
.say blockquote { margin: 0; }
.say blockquote p { font-size: 18px; line-height: 1.55; color: var(--c-ink); }
.say figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.say figcaption::before { content: ''; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--c-accent); }
.say__who { display: grid; gap: 2px; line-height: 1.3; }
.say__who b { font-size: 16px; font-weight: 700; color: var(--c-ink); }
.say__who small { font-size: var(--fs-small); font-weight: 600; color: var(--c-brand-text); }
/* On a tablet or a phone the three stay one row the visitor swipes (the next card peeks in at the edge), so the strip stays short. */
@media (max-width: 900px) {
  .say { padding: 24px 22px 22px; }
  .owners__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; }
  .owners__row::-webkit-scrollbar { display: none; }
  .owners__row:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
  .say { scroll-snap-align: start; }
}

/* ---------- the close: the idea's line ---------- */
.close { padding-bottom: 0; }
.close__panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.close__ring { right: -200px; bottom: -260px; width: 600px; height: 600px; }
.close__words { display: grid; gap: var(--space-3); }
.close__title { font-size: clamp(34px, 3.9vw, 54px); }
.close__picker { margin-top: var(--space-3); }
.close__visual { position: relative; }
.close__frame { aspect-ratio: 4 / 3.3; }
.close__frame video { object-position: 50% 30%; }
.close__card { position: absolute; z-index: 2; left: -28px; bottom: 26px; max-width: 86%; }
.close__stop { position: absolute; z-index: 3; top: 14px; right: 14px; }
@media (max-width: 900px) {
  .close__panel { grid-template-columns: 1fr; }
  .close__card { left: 10px; bottom: -20px; }
  .close__visual { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .close .panel-navy { padding: 28px 16px; border-radius: 24px; }
  .close__picker { padding: 16px; }
}
