/* home.css: the home page's parts, placed and sized with the tokens of system.css (plan.md, "Home"). */

/* ---------- hero: the words on ink, the footage bleeding off the right ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(640px, calc(100svh - 96px), 880px); background: var(--c-ink); color: var(--c-on-ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 36%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.55) 16%, #000 36%); }
/* the kit's header rotation (kit.md), 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(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); }
/* our grade: a low shade so the card and the stop icon read; the warmth of the footage glows against the ink */
.hero__slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 62%, transparent) 0%, transparent 38%), linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 40%, transparent) 0%, transparent 18%); pointer-events: none; }
.hero__slide img.kit-first { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* one new client's way in, in the field's words: found, answered, booked. The card arrives with its picture (--kit-in),
   its three rows waiting dimmed; each time a slide comes in after the first change they light one by one, the booking
   last (its check fills cyan). On load, under the stop icon and under reduced motion, all three are lit. */
.hero__chain { position: absolute; z-index: 2; left: 40%; bottom: 10%; display: grid; width: min(330px, 54%); margin: 0; padding: 0.8rem 1.15rem 0.8rem 0.9rem; list-style: none; border-radius: var(--radius-m); border: 1px solid var(--c-line-ink); background: var(--c-ink-2); color: var(--c-on-ink); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 16px)); }
.hero__step { --ic: 32px; position: relative; display: grid; grid-template-columns: var(--ic) minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.4rem 0; }
.hero__step + .hero__step::before { content: ""; position: absolute; left: calc(var(--ic) / 2 - 0.5px); bottom: calc(50% + var(--ic) / 2); width: 1px; height: calc(100% - var(--ic)); background: color-mix(in srgb, var(--c-brand-on-ink) 45%, transparent); }
.hero__step-icon { position: relative; display: grid; place-items: center; width: var(--ic); height: var(--ic); border-radius: 50%; background: var(--c-ink-3); border: 1px solid color-mix(in srgb, var(--c-brand-on-ink) 55%, transparent); color: var(--c-brand-on-ink); }
.hero__step-icon svg { width: 15px; height: 15px; }
.hero__step--done .hero__step-icon { background: var(--c-brand); border-color: var(--c-brand-dark); color: var(--c-on-brand); }
.hero__step-text { display: grid; gap: 0.1rem; min-width: 0; }
.hero__step-text b { font: 700 0.9375rem/1.25 var(--font-ui); }
.hero__step--done .hero__step-text b { font-size: 1rem; }
.hero__step-text small { font-size: 0.8125rem; line-height: 1.3; color: var(--c-ink-soft-on-ink); }
@keyframes hero-step { from { opacity: 0.32; } to { opacity: 1; } }
@keyframes hero-lit { 0% { transform: scale(0.82); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes hero-done { from { background: var(--c-ink-3); border-color: color-mix(in srgb, var(--c-brand-on-ink) 55%, transparent); color: var(--c-brand-on-ink); } to { background: var(--c-brand); border-color: var(--c-brand-dark); color: var(--c-on-brand); } }
.hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step { animation: hero-step 0.35s var(--ease-out) both; }
.hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step-icon { animation: hero-lit 0.45s var(--ease-out) both; }
.hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step--done .hero__step-icon { animation: hero-lit 0.45s var(--ease-out) both, hero-done 0.3s var(--ease-out) both; }
.hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step:nth-child(1), .hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step:nth-child(1) .hero__step-icon { animation-delay: 0.8s; }
.hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step:nth-child(2), .hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step:nth-child(2) .hero__step-icon { animation-delay: 1.4s; }
.hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step:nth-child(3), .hero:has([data-kit-slide][data-prev]) [data-kit-slide][data-kit-on] .hero__step:nth-child(3) .hero__step-icon { animation-delay: 2s; }
@media (prefers-reduced-motion: reduce) { .hero .hero__step, .hero .hero__step-icon { animation: none !important; } }
.hero__stop { position: absolute; right: var(--gutter); bottom: var(--space-4); z-index: 6; }
.hero__inner { position: relative; z-index: 4; padding-top: clamp(2.5rem, 6vh, 4.5rem); padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.hero__copy { max-width: 40rem; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 0.9rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; }
.hero__word { display: block; white-space: nowrap; font-style: italic; font-weight: 600; color: var(--c-brand-on-ink); }
.hero__end { display: block; white-space: nowrap; }
.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__sweep { width: min(240px, 60%); margin: clamp(1rem, 2vw, 1.35rem) 0 0; }
.hero__line { margin-top: clamp(1rem, 2vw, 1.4rem); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--c-ink-soft-on-ink); max-width: 33rem; }
.picker--hero { margin-top: clamp(1.5rem, 3vw, 2rem); max-width: 34rem; }
.hero__why { display: flex; align-items: center; gap: 0.5rem; margin-top: var(--space-3); font-size: var(--fs-small); color: var(--c-ink-soft-on-ink); }
.hero__why svg { flex: none; color: var(--c-brand-on-ink); }

/* phone and tablet: the footage first, a band at the top of the first screen, then the words and the picker */
@media (max-width: 959px) {
  .hero { --band: clamp(190px, 44vw, 340px); display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { order: 0; position: relative; width: auto; height: var(--band); margin: var(--space-3) var(--gutter) 0; border-radius: var(--radius-m); overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .hero__inner { order: 1; padding-top: var(--space-4); padding-bottom: var(--space-5); }
  .hero__chain { left: 0.75rem; bottom: 0.75rem; width: auto; max-width: min(330px, 66%); }
  /* the band's lower right corner: the faces are in its upper part */
  .hero__stop { top: calc(var(--space-3) + var(--band) - 44px - 0.6rem); right: calc(var(--gutter) + 0.6rem); bottom: auto; }
}
@media (max-width: 559px) {
  .hero__line { font-size: 1rem; }
  .picker__opt span { height: 48px; font-size: 1.15rem; }
  .hero__chain { padding: 0.45rem 0.75rem 0.45rem 0.55rem; }
  .hero__step { --ic: 24px; gap: 0.5rem; padding: 0.2rem 0; }
  .hero__step-icon svg { width: 12px; height: 12px; }
  .hero__step-text b, .hero__step--done .hero__step-text b { font-size: 0.8125rem; }
  .hero__step-text small { display: none; }
}

/* ---------- plan: the free plan tour on white, its scenes in a dark stage beside an agent welcoming a family ---------- */
.tour__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.tour__tab { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: start; padding: 1.1rem 0.25rem 1.25rem 0; text-align: left; font: inherit; color: var(--c-ink); background: none; border: 0; border-bottom: 1px solid var(--c-line); cursor: pointer; }
.tour__num { font: 700 1.9rem/1 var(--font-display); color: var(--c-ink-soft); opacity: 0.55; transition: color var(--dur-fast), opacity var(--dur-fast); }
.tour__tab-text { display: grid; gap: 0.25rem; }
.tour__tab-text b { font: 700 1.0625rem/1.3 var(--font-ui); }
.tour__tab-text span { font-size: var(--fs-small); color: var(--c-ink-soft); }
.tour__progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--kit-fill, 0) * 100%); background: var(--c-brand); }
.tour__tab[aria-selected="true"] { border-bottom-color: var(--c-ink); }
.tour__tab[aria-selected="true"] .tour__num { color: var(--c-brand-text); opacity: 1; }
.tour__tab[aria-selected="true"] .tour__progress { width: calc(var(--kit-fill, 1) * 100%); }
[data-kit-tabs]:not([data-kit-on]) .tour__tab[aria-selected="true"] .tour__progress { width: 100%; }
.tour__tab:hover .tour__num { opacity: 1; }
.tour__stage { position: relative; margin-top: var(--space-4); height: clamp(480px, 40vw, 540px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); isolation: isolate; }
/* the footage in the stage's left 58% (the people in its left part), fading into the ink; the scenes on the right half.
   Like every clip on this page it reaches 1 px past each side of its box it meets, under the box's clip (kit.md, "Video") */
.tour__footage { position: absolute; top: -1px; left: -1px; bottom: -1px; z-index: 0; width: calc(58% + 1px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 50%; filter: brightness(0.9); -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
.tour__panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 52%; display: grid; place-items: center; padding: clamp(1rem, 2.5vw, 2rem); }
.tour__panel:focus-visible { outline-offset: -4px; }
.tour__scene { width: 100%; max-width: 600px; }
.tour__stop { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 3; }
@media (max-width: 759px) {
  .tour__tabs { gap: 0.5rem; }
  .tour__tab { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; padding: 0.75rem 0 0.9rem; }
  .tour__num { font-size: 1.4rem; }
  .tour__tab-text b { font-size: 0.9375rem; }
  .tour__tab-text span { display: none; }
  /* the footage a band at the top, faces in view, the scene overlapping its lower edge */
  .tour__stage { height: auto; min-height: 590px; display: flex; flex-direction: column; } /* the tallest scene's height, so the page below never jumps between tabs */
  .tour__footage { position: relative; inset: auto; width: calc(100% + 2px); height: 221px; margin: -1px -1px 0; object-position: 46% 40%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .tour__panel { position: relative; top: auto; right: auto; bottom: auto; width: auto; margin-top: -64px; padding: 0 0.75rem 1.25rem; place-items: start center; }
}

/* ---------- how: the chat in a phone on the left, the three steps it lights on the right, over hands on a phone ---------- */
.how { overflow: hidden; isolation: isolate; }
.how__footage { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; z-index: -2; }
.how__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 92%, transparent) 46%, color-mix(in srgb, var(--c-ink) 58%, transparent) 74%, color-mix(in srgb, var(--c-ink) 42%, transparent) 100%); }
.how__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.how__grid .phone { order: -1; }
.steps { margin: var(--space-4) 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--c-line-ink); }
.steps__item { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: 1.35rem 0; border-top: 1px solid var(--c-line-ink); transition: opacity var(--dur-med) var(--ease-out); }
.steps:has([aria-current]) .steps__item:not([aria-current]) { opacity: 0.5; }
/* the numerals outlined, filling cyan as the chat reaches their step */
.steps__num { font: 700 3.6rem/0.85 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c-on-ink) 55%, transparent); transition: color var(--dur-med) var(--ease-out), -webkit-text-stroke-color var(--dur-med) var(--ease-out); }
.steps__item[aria-current] .steps__num { color: var(--c-brand-on-ink); -webkit-text-stroke-color: var(--c-brand-on-ink); }
.steps__text h3 { font: 700 clamp(1.35rem, 1.15rem + 0.6vw, 1.65rem)/1.15 var(--font-display); }
.steps__text p { margin-top: 0.45rem; color: var(--c-ink-soft-on-ink); }
/* the phone and its chat: shared, in components.css (Who we help's anyway part uses them too) */
@media (max-width: 899px) {
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .how__grid .phone { order: 0; }
  .how__veil { background: color-mix(in srgb, var(--c-ink) 88%, transparent); }
  .steps__item { grid-template-columns: 4rem minmax(0, 1fr); }
  .steps__num { font-size: 2.7rem; }
}

/* ---------- worth: the calculator and the year's sweep ---------- */
.worth .sec-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
/* the stop under the calculator's lower right, beside the result and its year (in view with it on the computer and the phone);
   it sits in the section's foot room, so the page keeps its height */
.worth__stop { position: relative; z-index: 5; display: grid; margin: 12px 0 -56px auto; background: var(--c-paper); color: var(--c-ink); border-color: var(--c-line); }
.worth__box { --calc-ink: var(--c-ink); --calc-ink-soft: var(--c-ink-soft); --calc-track: var(--c-line); --calc-fill: var(--c-brand); --calc-thumb: var(--c-paper); --calc-thumb-edge: var(--c-violet); --calc-focus: var(--c-violet); --calc-surface: var(--c-paper); --calc-font-figure: var(--font-display); --calc-thumb-radius: 50%; --calc-track-radius: 3px; --calc-value-size: 1.6rem; --calc-total-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); --calc-figure-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0; border-radius: var(--radius-l); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-m); overflow: hidden; }
.worth__controls { padding: clamp(1.5rem, 3.5vw, 2.75rem); border-right: 1px solid var(--c-line); display: grid; align-content: center; }
.worth__controls .calc-sliders { gap: clamp(1.6rem, 3vw, 2.4rem); }
.worth__controls .calc-slider__label { font-weight: 600; }
.worth__controls .calc-slider__value { font-family: var(--font-display); font-weight: 700; color: var(--c-accent-text); }
.worth__result { display: grid; align-content: start; gap: var(--space-3); padding: clamp(1.5rem, 3.5vw, 2.75rem); background: var(--c-ink); color: var(--c-on-ink); --calc-ink: var(--c-on-ink); --calc-ink-soft: var(--c-ink-soft-on-ink); }
.worth__result .calc-total { font-weight: 700; }
.worth__result .calc-figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--c-line-ink); }
.worth__result .calc-note { font-size: 0.875rem; color: var(--c-ink-soft-on-ink); }
.worth__picture { position: relative; }
.yearsweep { --ys-h: clamp(160px, 15vw, 200px); --ys-pad: 2.2rem; position: relative; padding-top: var(--ys-pad); }
.yearsweep__svg { display: block; width: 100%; height: var(--ys-h); overflow: visible; }
.yearsweep__grid line { stroke: var(--c-line-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.yearsweep__grid .yearsweep__base { stroke: color-mix(in srgb, var(--c-on-ink) 35%, transparent); }
.ys-glow-a { stop-color: var(--c-brand); stop-opacity: 0.34; }
.ys-glow-b { stop-color: var(--c-brand); stop-opacity: 0; }
.yearsweep__edge { fill: none; stroke: var(--c-brand-on-ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.yearsweep__curl { fill: none; stroke: url(#ys-fill); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.yearsweep__dot { fill: var(--c-ink); stroke: var(--c-brand); stroke-width: 3; vector-effect: non-scaling-stroke; }
.yearsweep__tip { position: absolute; left: calc(var(--tx, 1) * 100%); top: calc(var(--ys-pad) + var(--ty, 0) * var(--ys-h)); transform: translate(var(--tx-shift, -100%), -170%); padding: 0.35em 0.6em; border-radius: var(--radius-s); background: var(--c-ink-3); border: 1px solid var(--c-line-ink); font: 600 0.8125rem/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-on-ink); pointer-events: none; white-space: nowrap; }
.yearsweep__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0.5rem 0 0; padding: 0; list-style: none; }
.yearsweep__months li { text-align: center; font: 600 0.8125rem/1 var(--font-ui); color: color-mix(in srgb, var(--c-on-ink) 34%, transparent); }
.yearsweep__months li[data-kit-on] { color: var(--c-ink-soft-on-ink); }
@media (max-width: 899px) {
  .worth__box { grid-template-columns: minmax(0, 1fr); }
  .worth__controls .calc-scale { font-size: 0.8125rem; }
  .worth__controls { border-right: 0; border-bottom: 1px solid var(--c-line); }}

/* ---------- outcomes: one customer's way in, four cards in a row: the footage a band at the top (faces in its upper
   part), the scene overlapping its lower edge, the words on solid ink under it ---------- */
.outcomes__wrap { max-width: calc(var(--max-w) + 10rem); }
.outcomes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.9rem, 1.3vw, 1.25rem); }
.ocard { --band: clamp(240px, 19vw, 280px); position: relative; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--c-line-ink); background: var(--c-ink-2); isolation: isolate; }
.ocard__footage { position: relative; z-index: 0; display: block; flex: none; width: calc(100% + 2px); max-width: none; height: calc(var(--band) + 1px); margin: -1px -1px 0; object-fit: cover; }
.ocard--reviews .ocard__footage { object-position: 100% 50%; }
.ocard--work .ocard__footage { object-position: 75% 50%; }
/* the fade reaches 2 px past the clip, solid at its foot: where the band's height falls between pixels (19vw), the clip's last row showed under it as a thin line */
.ocard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: calc(var(--band) + 2px); background: linear-gradient(0deg, var(--c-ink-2) 0, var(--c-ink-2) 4px, color-mix(in srgb, var(--c-ink-2) 60%, transparent) 30%, transparent 62%); pointer-events: none; }
.ocard__scene { position: relative; z-index: 2; width: calc(100% - 1.5rem); margin: -96px auto 0; }
.ocard__stop { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 3; } /* the part's stop, on the first card's footage, clear of its scene */
.ocard__text { position: relative; margin-top: auto; padding: 1.75rem clamp(1.1rem, 1.6vw, 1.5rem) clamp(1.25rem, 1.8vw, 1.6rem); }
.ocard__text h3 { font: 700 clamp(1.4rem, 1.1rem + 0.6vw, 1.7rem)/1.12 var(--font-display); }
.ocard__text p { margin-top: 0.55rem; max-width: 30rem; color: var(--c-ink-soft-on-ink); }
.ocard__link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1rem; font: 700 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-brand-on-ink); text-decoration: none; }
.ocard__link[data-planned] { opacity: 0.85; }
.ocard__link:hover { text-decoration: underline; }
@media (max-width: 1319px) {
  .outcomes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocard { --band: 300px; }
}
@media (max-width: 859px) {
  .outcomes__grid { grid-template-columns: minmax(0, 1fr); }
  .ocard { --band: 290px; }
  .ocard__scene { width: calc(100% - 2rem); }
}

/* ---------- compare: drag the line ---------- */
.cmp { position: relative; height: clamp(520px, 46vw, 600px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.cmp__side { position: absolute; inset: 0; }
.cmp__side--after { clip-path: inset(0 0 0 calc(var(--kit-v, 0.5) * 100%)); }
.cmp__photo, .cmp__side picture, .cmp__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__side--before img { filter: grayscale(1) contrast(0.92) brightness(0.78); }
/* each photo mirrored so its subject sits on its own side of the line: the reports on the left, the builder on the right */
.cmp__side img { transform: scaleX(-1); }
.cmp__side--before::after, .cmp__side--after::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cmp__side--before::after { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 70%, transparent), color-mix(in srgb, var(--c-ink) 20%, transparent) 60%); }
.cmp__side--after::after { background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 66%, transparent), color-mix(in srgb, var(--c-ink) 8%, transparent) 62%); }
.cmp__cards { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; gap: 0.7rem; width: min(300px, 38%); }
.cmp__side--before .cmp__cards { left: clamp(1rem, 3vw, 2.5rem); }
.cmp__side--after .cmp__cards { right: clamp(1rem, 3vw, 2.5rem); }
.cmp__tag { justify-self: start; padding: 0.45em 0.8em; border-radius: var(--radius-s); font: 600 0.8125rem/1 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; background: color-mix(in srgb, var(--c-ink) 80%, transparent); color: var(--c-ink-soft-on-ink); border: 1px solid var(--c-line-ink); }
.cmp__tag--us { justify-self: end; background: var(--c-brand); color: var(--c-on-brand); border-color: var(--c-brand-dark); }
.cmp__card { display: grid; gap: 0.2rem; padding: 0.85rem 1rem; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); }
.cmp__card b { font: 700 1rem/1.25 var(--font-ui); }
.cmp__card small { font-size: 0.875rem; color: var(--c-ink-soft); }
.cmp__side--before .cmp__card { background: color-mix(in srgb, var(--c-paper) 88%, var(--c-ink)); color: var(--c-ink-soft); }
.cmp__side--before .cmp__card b { color: var(--c-ink); }
.cmp__card--chart b { font-family: var(--font-display); font-size: 1.2rem; }
.cmp__bars { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 0.4rem; }
.cmp__bars i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--c-brand); }
.cmp__card--free b { color: var(--c-brand-text); }
[data-kit-whole] { transition: opacity 0.2s, visibility 0s; }
[data-kit-under] { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.cmp__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp__handle { position: absolute; z-index: 3; 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); }
.cmp__range:focus-visible + .cmp__handle { opacity: 1; }
.cmp__range:focus-visible + .cmp__handle .cmp__knob { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.cmp__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--c-paper); box-shadow: 0 0 18px color-mix(in srgb, var(--c-brand) 60%, transparent); }
.cmp__knob { position: absolute; left: -26px; top: 14%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); }
.cmp__hint { position: absolute; left: -32px; top: calc(14% + 60px); width: 64px; padding: 6px 0 6px 0.16em; border-radius: var(--radius-s); background: var(--c-ink); text-align: center; font: 700 0.8125rem/1 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-on-ink); }
[data-kit-touched] .cmp__hint { opacity: 0; }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; }
.promises li { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; line-height: 1.4; }
.promises svg { flex: none; margin-top: 0.1rem; color: var(--c-brand-text); }
@media (max-width: 899px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cmp { height: 600px; }
  .cmp__cards { top: auto; bottom: 1rem; transform: none; width: calc(50% - 1.5rem); gap: 0.5rem; }
  .cmp__side--before .cmp__cards { left: 0.75rem; }
  .cmp__side--after .cmp__cards { right: 0.75rem; }
  .cmp__card { padding: 0.65rem 0.7rem; }
  .cmp__card b { font-size: 0.875rem; }
  .cmp__card small { font-size: 0.8125rem; }
  .cmp__card--chart b { font-size: 1rem; }
  .cmp__tag { font-size: 0.75rem; letter-spacing: 0.08em; padding: 0.45em 0.55em; white-space: normal; line-height: 1.2; }
  .cmp__knob { top: 9%; }
  .cmp__hint { top: calc(9% + 60px); }
  .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: clamp(0.9rem, 1.8vw, 1.25rem); }
.tile { position: relative; display: flex; align-items: flex-end; min-height: clamp(260px, 24vw, 320px); padding: clamp(1.1rem, 2vw, 1.5rem); border-radius: var(--radius-l); overflow: hidden; color: var(--c-on-ink); text-decoration: none; border: 1px solid var(--c-line-ink); background: var(--c-ink-2); isolation: isolate; }
.tile__photo, .tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 34%, transparent 70%); }
.tile:hover img { transform: scale(1.04); }
.tile__text { display: grid; gap: 0.45rem; padding-right: 3rem; }
.tile__name { font: 700 clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem)/1.1 var(--font-display); }
.tile__fields { font: 600 0.8125rem/1.5 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-soft-on-ink); }
.tile__line { color: var(--c-ink-soft-on-ink); }
.tile__go { position: absolute; right: clamp(1.1rem, 2vw, 1.5rem); bottom: clamp(1.1rem, 2vw, 1.5rem); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); transition: transform var(--dur-fast) var(--ease-out); }
.tile:hover .tile__go { transform: translateX(3px); }
.tile--more { grid-column: 1 / -1; min-height: 0; align-items: center; padding-block: clamp(1.5rem, 3vw, 2.25rem); background: var(--c-ink); }
.tile--more::before { display: none; }
.tile--more .tile__text { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: var(--space-4); }
.tile__sweep { position: absolute; right: 6.5rem; top: 50%; width: min(320px, 30%); transform: translateY(-50%); }
@media (max-width: 1023px) { .who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile__sweep { display: none; } }
@media (max-width: 639px) {
  .who__grid { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 240px; }
  .tile--more .tile__text { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- faq: the FAQ list's styles are shared, in components.css ---------- */

/* ---------- close: the last push, the words on ink at the left, a florist and her customer on the right ---------- */
.close { overflow: hidden; isolation: isolate; padding: clamp(4.5rem, 7vw, 6.5rem) 0; }
.close__media { position: absolute; top: -1px; right: -1px; bottom: -1px; z-index: -1; width: calc(60% + 1px); -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.6) 12%, #000 26%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.6) 12%, #000 26%); }
/* her face (45-55% of the clip) past the fade, his (70-85%, drifting right) whole */
.close__footage { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 85% 40%; }
.close__inner { display: grid; justify-items: start; }
.close .sec__stop { top: auto; bottom: var(--space-4); } /* off the customer's face, at the top of the footage */
.close__inner > * { max-width: min(34rem, 46vw); }
.close__sweep { width: 200px; }
.close__title { margin-top: var(--space-4); max-width: 15ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.04; }
.picker--close { width: min(34rem, 100%); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 859px) {
  .close { display: flex; flex-direction: column; padding-top: 0; }
  .close__media { position: relative; inset: auto; order: 0; width: auto; height: calc(clamp(220px, 56vw, 380px) + 1px); margin: -1px -1px var(--space-5); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .close__footage { object-position: 100% 35%; }
  .close .sec__stop { top: calc(clamp(220px, 56vw, 380px) - 44px - var(--space-3)); right: var(--space-3); bottom: auto; } /* on the band's lower right, under the faces */
  .close__inner { order: 1; }
  .close__inner > * { max-width: 100%; }
}
