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

/* ---------- The header: one field at a time (kit rotate) ---------- */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 3vw, 4.25rem) clamp(3rem, 2rem + 3.5vw, 5.5rem); background: var(--c-paper); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 38%; height: 100%; background: var(--c-paper-alt); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; }
.hero__copy { container-type: inline-size; }
.hero__kicker { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--c-ink-soft); }
.hero__blk { width: 16px; height: 16px; }
.hero__title { margin-top: var(--space-4); font-size: clamp(2.15rem, 1.05rem + 2.75vw, 3.45rem); line-height: 1.04; min-height: 3.12em; }
.hero__lines { display: block; }
.hero__word { display: block; color: var(--c-brand-text); white-space: nowrap; font-size: min(1em, 9.4cqi); }
.hero__word [data-kit-word] { display: inline-block; opacity: calc(1 - var(--kit-swap, 0)); transform: translateY(calc(var(--kit-swap, 0) * 0.12em)); }
.hero__line { margin-top: var(--space-4); max-width: 34ch; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--c-ink-soft); }
/* The main button, who takes the call under it, then the billing line under a rule (F2: Greg's approved words). */
.hero__actions { display: grid; justify-items: start; gap: var(--space-2); margin-top: var(--space-5); }
.hero__cta-line { max-width: 44ch; font-size: var(--fs-small); color: var(--c-ink-soft); line-height: 1.45; text-wrap: balance; }
.hero__terms { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--c-line); max-width: 48ch; font-size: var(--fs-small); color: var(--c-ink-soft); line-height: 1.45; text-wrap: balance; }

.hero__stage { position: relative; }
.hero__stage::after { content: ""; position: absolute; top: -10px; right: -10px; width: 12px; height: 12px; background: var(--c-brand); box-shadow: 18px -18px 0 var(--c-brand-2), -18px -18px 0 color-mix(in srgb, var(--c-brand) 70%, var(--c-ink)), 0 -36px 0 var(--c-accent-2); pointer-events: none; }
.hero__frame { position: relative; aspect-ratio: 10 / 10.8; }
[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 [data-kit-slide] { overflow: visible; clip-path: polygon(-140px 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% + 140px), -140px calc(100% + 140px)); } /* the kit paints each slide's poster on the slide: cut its corner too, while the card hangs out left and down */
.hero__clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-m); background: var(--c-paper-alt); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.hero__clip-in { position: absolute; inset: 0; overflow: hidden; }
#hero .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Each field's work order, stamped "Booked", hanging over the frame's lower left. */
.job { position: absolute; z-index: 3; left: calc(-1 * clamp(0px, -1.5rem + 3.6vw, 44px)); bottom: 7%; box-sizing: border-box; width: min(292px, 74%); padding: 0 0 14px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
#hero [data-kit-slide][data-prev] .job { visibility: hidden; }
.job__strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--c-line); border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--c-paper-alt); font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--c-ink-soft); }
.job__no { color: var(--c-accent-text); }
/* the work order is a demo: its "Example" tag stands where its number stood (F2) */
.demo-tag.job__tag { height: 20px; padding: 0 7px; box-shadow: none; }
.job__title { padding: 12px 14px 0; font-family: var(--font-display); font-stretch: 106%; font-size: 1.12rem; font-weight: 800; line-height: 1.2; }
.job__meta { display: flex; align-items: center; gap: 8px; padding: 8px 14px 0; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; }
.job__meta svg { width: 17px; height: 17px; fill: none; stroke: var(--c-brand-text); stroke-width: 1.8; }
.job__meta--soft { padding-top: 2px; padding-right: 116px; font-family: var(--font-text); font-size: var(--fs-small); font-weight: 400; color: var(--c-ink-soft); }
.job__stamp { position: absolute; bottom: 14px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 2px solid var(--c-brand-text); border-radius: var(--radius-s); color: var(--c-brand-text); font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-7deg); }
.job__stamp svg { width: 14px; height: 14px; fill: var(--c-brand); }
.hero__stop { right: 14px; bottom: 14px; }
.hero__slide:first-child video { object-position: 65% 50%; }
.hero__slide:nth-child(3) video { object-position: 75% 50%; }

/* ---------- 01 The challenges ---------- */
.challenges__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: stretch; }
.challenges__media { margin: 0; min-height: 480px; }
.challenges__media .frame { height: 100%; }
.alerts { position: absolute; z-index: 2; left: 18px; top: 18px; display: grid; gap: 10px; width: min(310px, calc(100% - 36px)); }
.alert { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-m); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.alert__ico { box-sizing: border-box; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 14%, var(--c-paper)); fill: none; stroke: var(--c-accent-text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.alert--vm .alert__ico { background: var(--c-brand-light); stroke: var(--c-brand-text); }
.alert p { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; font-size: 0.95rem; line-height: 1.3; }
.alert b { font-family: var(--font-ui); font-weight: 700; }
.alert span { font-family: var(--font-ui); font-weight: 600; color: var(--c-ink-soft); }
.alert small { grid-column: 1 / -1; font-size: 0.875rem; color: var(--c-ink-soft); }
.frame__stop { right: 14px; bottom: 14px; }
.qcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.qcard { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.qcard::before { content: ""; position: absolute; left: -1px; top: 18px; width: 4px; height: 26px; border-radius: 0 2px 2px 0; background: var(--c-brand); }
.qcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.qcard__ico { width: 28px; height: 28px; fill: none; stroke: var(--c-brand-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qcard__q { font-size: 1.16rem; font-stretch: 104%; font-weight: 700; line-height: 1.22; }
.qcard__a { font-size: var(--fs-small); color: var(--c-ink-soft); line-height: 1.5; }

/* ---------- 02 The system: one wide stage, four chapters (kit tour) ---------- */
.system__tour { display: grid; gap: 14px; }
.system__stage { position: relative; aspect-ratio: 16 / 8.8; overflow: hidden; border-radius: var(--radius-m); background: var(--c-paper-alt); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.system__panel { position: absolute; inset: 0; }
.system__panel:focus-visible { outline-offset: -4px; }
.system__clip { position: absolute; inset: 0; overflow: hidden; }
.system__clip video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.system__panel--answer .system__clip video { object-position: 50% 58%; }
/* The rating's stars show its 4.8 whole at every moment (the scene fills them one by one, which reads as two, then four) */
#system [data-scene="out-reviews"] .stars .on { width: 96% !important; }
.scene.system__scene { position: absolute; top: 7%; width: min(360px, 36%); }
.scene.system__scene--found { right: 5%; }
.scene.system__scene--answer, .scene.system__scene--reviews, .scene.system__scene--work { left: 4.5%; }
.system__more { position: absolute; z-index: 3; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-ink); font-family: var(--font-ui); font-size: 0.92rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-m); }
.system__more .button__arrow { width: 14px; height: 14px; color: var(--c-brand-text); }
.system__panel--found .system__more { right: 5%; bottom: 22px; }
.system__panel--answer .system__more, .system__panel--reviews .system__more, .system__panel--work .system__more { left: 4.5%; }
.system__stop { right: 14px; bottom: 14px; }
.system__panel--found ~ .system__stop { right: 14px; }
/* "Example" just over each chapter's card, on its side (F2) */
.demo-tag.system__tag { position: absolute; z-index: 4; top: max(8px, calc(7% - 30px)); left: 4.5%; }
.system__panel--found .demo-tag.system__tag { left: auto; right: 5%; }
.system__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.system__tab { position: relative; display: grid; align-content: start; gap: 6px; box-sizing: border-box; padding: 18px 18px 22px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.system__tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.system__tab[aria-selected="true"] { border-color: var(--c-brand); box-shadow: var(--shadow-m), inset 0 0 0 1px var(--c-brand); }
.system__tab-top { display: flex; align-items: center; justify-content: space-between; }
.system__ico { width: 28px; height: 28px; fill: none; stroke: var(--c-brand-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.system__tab-no { font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track-caps); color: var(--c-ink-soft); }
.system__tab-title { margin-top: 4px; font-family: var(--font-display); font-stretch: 108%; font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
.system__tab-line { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
.system__tab-fill { position: absolute; left: 0; bottom: 0; width: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--c-brand) 0 10px, transparent 10px 13px); }
.system__tab[aria-selected="true"] .system__tab-fill { width: calc(var(--kit-fill, 1) * 100%); }

/* ---------- 03 The free plan: a green band (kit tour) ---------- */
.plan { position: relative; background: var(--g-brand); color: var(--c-on-brand); }
.plan .label, .plan .label__no { color: var(--c-on-brand); }
.plan .label__blk .blk__t { fill: var(--c-paper); }
.plan .label__blk .blk__l { fill: var(--c-brand-light); }
.plan .head__line { color: var(--c-on-brand); }
.plan__edge { position: absolute; top: -44px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); width: 110px; height: 44px; pointer-events: none; background:
  linear-gradient(var(--c-brand), var(--c-brand)) 0 22px / 22px 22px no-repeat,
  linear-gradient(var(--c-brand-2), var(--c-brand-2)) 22px 22px / 22px 22px no-repeat,
  linear-gradient(var(--c-brand), var(--c-brand)) 44px 0 / 22px 22px no-repeat,
  linear-gradient(var(--c-brand-2), var(--c-brand-2)) 88px 0 / 14px 14px no-repeat,
  linear-gradient(var(--c-brand), var(--c-brand)) 66px 22px / 22px 22px no-repeat; }
.plan__in { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: center; }
.plan .head { margin-bottom: var(--space-4); }
.plan__tabs { display: grid; gap: 10px; }
.plan__tab { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 14px; box-sizing: border-box; width: 100%; padding: 16px 18px 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c-ink) 22%, transparent); border-radius: var(--radius-m); background: transparent; color: var(--c-on-brand); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.plan__tab:hover { background: color-mix(in srgb, var(--c-paper) 18%, transparent); }
.plan__tab[aria-selected="true"] { border-color: transparent; background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); }
.plan__tab-no { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-s); background: var(--c-ink); color: var(--c-on-ink); font-family: var(--font-ui); font-weight: 800; font-size: 1.05rem; }
.plan__tab[aria-selected="true"] .plan__tab-no { background: var(--c-brand); color: var(--c-on-brand); }
.plan__tab-text { display: grid; gap: 2px; }
.plan__tab-title { font-family: var(--font-display); font-stretch: 106%; font-size: 1.14rem; font-weight: 800; line-height: 1.2; }
.plan__tab-line { font-size: var(--fs-small); line-height: 1.45; }
.plan__tab[aria-selected="true"] .plan__tab-line { color: var(--c-ink-soft); }
.plan__tab-fill { position: absolute; left: 0; bottom: 0; width: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--c-brand) 0 10px, transparent 10px 13px); }
.plan__tab[aria-selected="true"] .plan__tab-fill { width: calc(var(--kit-fill, 1) * 100%); }
.part-cta--plan { align-items: flex-start; text-align: left; margin-top: var(--space-5); }
.part-cta--plan .part-cta__line { color: var(--c-on-brand); }
.plan__stage { position: relative; min-height: clamp(470px, 40vw, 540px); overflow: hidden; border-radius: var(--radius-m); background: var(--c-brand-dark); box-shadow: var(--shadow-l); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.plan__clip { position: absolute; inset: 0; overflow: hidden; }
.plan__clip video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.plan__panel { position: absolute; inset: 0; }
.scene.plan__scene { position: absolute; inset: 24px 24px 64px; }
.plan__stop { right: 14px; bottom: 14px; }
/* "Example" under the demo, at the stage's foot, clear of the stop icon (F2) */
.demo-tag.plan__tag { position: absolute; z-index: 4; left: 24px; bottom: 20px; }

/* ---------- 04 How it works: one track ---------- */
.track { position: relative; }
.track__line { position: absolute; z-index: 0; top: 26px; left: calc(100% / 6); right: calc(100% / 6); height: 8px; background: repeating-linear-gradient(90deg, var(--c-line) 0 12px, transparent 12px 16px); }
.track__fill { position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: repeating-linear-gradient(90deg, var(--c-brand) 0 12px, transparent 12px 16px); }
.track__steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.4rem + 1.6vw, 2rem); margin: 0; padding: 0; list-style: none; }
.step { display: grid; justify-items: center; align-content: start; gap: 14px; text-align: center; }
.step__no { position: relative; display: grid; place-items: center; width: 60px; height: 60px; }
.step__blk { position: absolute; inset: 0; width: 60px; height: 60px; }
.step__blk .blk__t { fill: var(--c-paper); stroke: var(--c-line); stroke-width: 0.6; }
.step__blk .blk__l { fill: var(--c-paper-alt); stroke: var(--c-line); stroke-width: 0.6; }
.step__blk .blk__r { fill: var(--c-line); }
.step__no > span { position: relative; margin-top: -14px; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 800; color: var(--c-ink-soft); }
.step.is-reached .step__blk .blk__t { fill: var(--c-brand-2); stroke: none; }
.step.is-reached .step__blk .blk__l { fill: var(--c-brand); stroke: none; }
.step.is-reached .step__blk .blk__r { fill: color-mix(in srgb, var(--c-brand) 70%, var(--c-ink)); }
.step.is-reached .step__no > span { color: var(--c-on-brand); }
.step__pic { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-m); background: var(--c-paper-alt); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.step__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; }
.scene.step__scene { position: absolute; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; height: 262px; }
.scene.step__scene--03 { height: 280px; }
/* "Example" just over each step's card (F2) */
.demo-tag.step__tag { position: absolute; z-index: 3; left: 12px; bottom: calc(12px + 262px + 8px); }
.step:nth-child(3) .demo-tag.step__tag { bottom: calc(12px + 280px + 8px); }
.step:nth-child(3) .step__photo { object-position: 74% 0%; }
.step__title { margin-top: 6px; font-size: var(--fs-h3); }
.step__line { max-width: 32ch; color: var(--c-ink-soft); font-size: var(--fs-small); line-height: 1.55; }
.track__stop { top: 12px; right: 0; }
/* The leads scene's notes in Saira: its letters stand 20 px tall at 14 px, past the scene's line of 1.3; the name gives back
   what the note takes, so the rows keep their height */
#how [data-scene="leads"] .ld-who b { line-height: 1.05; }
#how [data-scene="leads"] .ld-who small { line-height: 1.5; }
/* The calculator's figures keep a size of their own, under calc.css's cap by the box's width: with the cap in charge, the
   measured width flips by a pixel each frame on a phone and the figures never settle */
#worth .calc-box { --calc-figure-size: min(var(--fs-h2), 17.5cqi); --calc-total-size: min(var(--fs-display), 14cqi); }

/* ---------- 05 What it's worth: the calculator ---------- */
/* Its markets (Greg, Nov 17; F2): a row of tabs over the box, the chosen one in the green; the same numbers, only the
   currency's symbol changes (home.js, Calc.currency). Two by two on a small phone. */
.market { box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; min-width: 0; margin: 0 auto var(--space-4); padding: 5px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-s); }
.market__tab { position: relative; display: block; }
.market__tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.market__tab span { display: grid; place-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-s); font-family: var(--font-ui); font-size: 0.9375rem; font-weight: 700; line-height: 1; color: var(--c-ink-soft); white-space: nowrap; transition: background-color var(--dur-fast), color var(--dur-fast); }
.market__tab:hover span { background: var(--c-paper-alt); color: var(--c-ink); }
.market__tab input:checked + span { background: var(--c-brand); color: var(--c-on-brand); }
.market__tab input:focus-visible + span { outline: 3px solid var(--c-brand-text); outline-offset: 2px; }
@media (max-width: 599px) { .market { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; } .market__tab span { padding: 0 6px; } }
.worth__wrap { position: relative; }
.worth__box { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m);
  --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-accent); --calc-focus: var(--c-ink); --calc-surface: var(--c-paper); --calc-font: var(--font-text); --calc-font-figure: var(--font-display); }
.worth__controls { display: grid; align-content: center; gap: 30px; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); border-right: 1px solid var(--c-line); background: var(--c-paper-alt); }
.worth__result { display: grid; align-content: start; gap: 14px; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.worth__result .calc-total__value { font-stretch: var(--stretch-display); font-weight: 800; color: var(--c-brand-text); }
.worth__picture { position: relative; }
.wall { display: block; width: 100%; height: auto; overflow: visible; }
.wall__ground { stroke: var(--c-line); stroke-width: 2; }
.wall__label { font-family: var(--font-ui); font-size: 21px; font-weight: 600; fill: var(--c-ink-soft); }
.wall__month { opacity: 0; }
.wall__month[data-kit-on] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * -22px)); }
.wb__f { fill: var(--c-brand); }
.wb__t { fill: var(--c-brand-2); }
.wb__r { fill: color-mix(in srgb, var(--c-brand) 68%, var(--c-ink)); }
.wb--lit .wb__f { fill: var(--c-accent-2); }
.wb--lit .wb__t { fill: color-mix(in srgb, var(--c-accent-2) 70%, var(--c-paper)); }
.wb--lit .wb__r { fill: var(--c-accent); }
.worth__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; color: var(--c-ink-soft); }
.worth__key { display: inline-flex; align-items: center; gap: 8px; }
.worth__keyblk { width: 15px; height: 15px; }
.worth__key--m::before { content: ""; width: 10px; height: 15px; background: repeating-linear-gradient(0deg, var(--c-brand) 0 3px, transparent 3px 4px); }
.worth__pic { position: relative; padding-top: 44px; }
.worth__stop { top: 0; right: 0; }
.wall--still .wall__month { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wall__month[data-kit-on] { opacity: 1; transform: none; } }

/* ---------- 06 The founder ---------- */
.founder__in { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(2rem, 1rem + 3.5vw, 5rem); align-items: center; }
.founder__photo { position: relative; margin: 0 24px 24px 0; }
.founder__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-m); background: var(--g-brand); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.founder__frame { position: relative; aspect-ratio: 781 / 827; overflow: hidden; border-radius: var(--radius-m); background: var(--c-paper-alt); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.founder__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__cap { position: absolute; z-index: 1; left: -14px; bottom: 30px; display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-m); }
.founder__cap b { font-family: var(--font-display); font-stretch: 106%; font-size: 1.1rem; font-weight: 800; }
.founder__cap span { font-size: 0.875rem; color: var(--c-ink-soft); }
.founder .head { margin-bottom: var(--space-4); }
/* the main button, and Greg's own booking page beside it (F2) */
.founder__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; margin: 0; padding: 6px 20px 10px; list-style: none; }
.facts li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--c-line); line-height: 1.5; }
.facts li:last-child { border-bottom: 0; }
.facts__blk { width: 16px; height: 16px; margin-top: 4px; }

/* ---------- 07 Who we help: a bento of trades ---------- */
.who__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 15.5vw, 236px); gap: 12px; margin: 0; padding: 0; list-style: none; }
.who__tile--solar { grid-column: span 2; grid-row: span 2; }
.who__tile--any { grid-column: span 3; }
.who__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius-m); background: var(--c-brand-dark); color: var(--c-on-ink); text-decoration: none; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.who__tile--solar .who__link { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.who__pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
.who__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 25, 29, 0.86) 0%, rgba(22, 25, 29, 0.5) 38%, rgba(22, 25, 29, 0) 66%); }
.who__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 16px 18px 18px; }
.who__blk { position: absolute; top: -30px; left: 18px; width: 22px; height: 22px; transition: transform var(--dur-fast) var(--ease-out); }
.who__name { font-family: var(--font-display); font-stretch: 108%; font-size: 1.22rem; font-weight: 800; line-height: 1.15; }
.who__tile--solar .who__name { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); }
.who__jobs { font-size: var(--fs-small); line-height: 1.4; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.who__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--font-ui); font-size: 0.92rem; font-weight: 700; color: var(--c-brand-on-ink); }
.who__go .button__arrow { width: 14px; height: 14px; }
.who__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.who__link:hover .who__pic img { transform: scale(1.045); }
.who__link:hover .who__blk { transform: translateY(-3px); }
.who__link:hover .who__blk .blk__t { fill: var(--c-accent-2); }

/* ---------- 08 FAQ ---------- */
.faq__in { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(2rem, 1rem + 3.5vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--bar-h) + 28px); margin-bottom: 0; }
.faq__cta { margin-top: var(--space-3); }
.faq__item { border-top: 1px solid var(--c-line); }
.faq__item:last-child { border-bottom: 1px solid var(--c-line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 22px 0; font-family: var(--font-display); font-stretch: 104%; font-size: 1.16rem; font-weight: 700; line-height: 1.3; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__mark { position: relative; flex: none; width: 30px; height: 30px; border-radius: var(--radius-s); background: var(--c-paper-alt); }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--c-brand-text); transition: transform var(--dur-fast); }
.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark { background: var(--c-brand); }
.faq__item[open] .faq__mark::before, .faq__item[open] .faq__mark::after { background: var(--c-on-brand); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }
.faq__a { max-width: 62ch; padding: 0 44px 24px 0; color: var(--c-ink-soft); }

/* ---------- The close ---------- */
.close { position: relative; display: grid; align-items: center; min-height: clamp(500px, 44vw, 640px); overflow: hidden; background: var(--c-brand-dark); color: var(--c-on-ink); }
.close__media { position: absolute; inset: 0; overflow: hidden; }
.close__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 40%; }
.close__in { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.close__panel { box-sizing: border-box; display: grid; gap: var(--space-3); width: min(540px, 100%); padding: clamp(1.75rem, 1.2rem + 2vw, 3rem); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-brand-dark) 95%, transparent); box-shadow: var(--shadow-l); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.close__blk { width: 30px; height: 30px; }
.close__title { font-size: var(--fs-h2); color: var(--c-on-ink); }
.close__line { font-size: calc(var(--fs-body) * 1.06); color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-2); }
.close__note { font-size: var(--fs-small); color: color-mix(in srgb, var(--c-on-ink) 78%, transparent); text-wrap: balance; }
.close__stop { right: 14px; bottom: 14px; }

/* ---------- The tablet ---------- */
@media (max-width: 1100px) {
  .scene.system__scene { width: min(340px, 42%); }
  .qcards { grid-template-columns: 1fr 1fr; }
}

/* ---------- The phone ---------- */
@media (max-width: 899px) {
  .hero::before { display: none; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__copy { display: contents; }
  .hero__kicker { order: 1; }
  .hero__title { order: 2; margin-top: var(--space-3); font-size: clamp(1.95rem, 1.3rem + 3.2vw, 2.3rem); }
  .hero__word { font-size: min(1em, 8.6cqi); }
  .hero__stage { order: 3; margin-top: var(--space-4); }
  .hero__line { order: 4; }
  .hero__actions { order: 5; margin-top: var(--space-4); }
  .hero__terms { order: 6; }
  .hero__frame { aspect-ratio: 16 / 11.6; }
  .hero__stage::after { display: none; }
  .job { left: 10px; bottom: 10px; width: min(236px, 66%); padding-bottom: 10px; }
  .job__strip { padding: 6px 10px; }
  .job__title { padding: 8px 10px 0; padding-right: 10px; font-size: 1rem; }
  .job__meta { padding: 6px 10px 0; font-size: 0.875rem; }
  .job__meta--soft, .job__stamp { display: none; }

  .challenges__grid { grid-template-columns: 1fr; }
  .challenges__media { min-height: 0; }
  .challenges__media .frame { height: auto; aspect-ratio: 4 / 4.2; }
  .alerts { left: 12px; top: 12px; width: min(290px, calc(100% - 24px)); }

  .system__stage { aspect-ratio: 3 / 4.6; }
  .scene.system__scene { left: 12px; right: 12px; top: auto; bottom: 64px; width: auto; }
  .scene.system__scene--found { left: 12px; }
  /* her face sits mid-frame: the clip, a third larger and held at the bottom, lifts it above the search card */
  .system__panel--found .system__clip video { top: auto; bottom: -1px; height: 136%; object-position: 36% 100%; }
  .system__panel--answer .system__clip video { object-position: 45% 40%; }
  .system__panel--reviews .system__clip video { object-position: 70% 50%; }
  .system__panel--work .system__clip video { object-position: 72% 50%; }
  .system__more, .system__panel--found .system__more { left: 12px; right: auto; bottom: 14px; }
  .system__stop { top: 14px; bottom: auto; }
  .demo-tag.system__tag, .system__panel--found .demo-tag.system__tag { top: 14px; left: 12px; right: auto; }
  .system__tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .system__tab { padding: 14px 14px 18px; }
  .system__tab-line { display: none; }

  .plan__in { grid-template-columns: 1fr; }
  .plan__stage { min-height: 560px; }
  .scene.plan__scene { inset: 14px 10px 58px; }
  .demo-tag.plan__tag { left: 12px; bottom: 18px; }

  .track__line { display: none; }
  .track__steps { grid-template-columns: 1fr; gap: var(--space-5); }
  /* the scene stays on its photo, below a band that keeps the face clear (as on the computer) */
  .step__pic { display: grid; aspect-ratio: auto; max-width: 420px; padding: 200px 12px 12px; }
  .scene.step__scene, .scene.step__scene--03 { position: relative; left: auto; right: auto; bottom: auto; }
  .demo-tag.step__tag, .step:nth-child(3) .demo-tag.step__tag { top: 168px; bottom: auto; }
  .track__stop { top: 0; right: 0; }

  .worth__box { grid-template-columns: 1fr; }
  .worth__controls { gap: 14px; padding: 18px 18px 16px; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .worth__result { gap: 8px; padding: 16px 18px 18px; }
  .worth__legend { gap: 2px 14px; font-size: 0.8125rem; }
  .worth .head { margin-bottom: var(--space-4); }
  .wall__label { font-size: 30px; }
  .wall__label:not(:nth-of-type(1)):not(:nth-of-type(6)):not(:nth-of-type(12)) { display: none; }

  .founder__in { grid-template-columns: 1fr; }
  .founder__photo { max-width: 420px; }

  .who__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 176px; gap: 8px; }
  .who__tile--solar { grid-row: span 1; }
  .who__tile--any, .who__tile--landscape { grid-column: span 2; }
  .who__body { padding: 12px 12px 14px; }
  .who__name { font-size: 1.05rem; }
  .who__jobs { display: none; }
  .who__tile--solar .who__jobs, .who__tile--any .who__jobs { display: block; }

  .faq__in { grid-template-columns: 1fr; }
  .faq__head { position: static; }

  .close { align-items: end; min-height: 0; }
  .close__media { inset: 0 0 auto 0; height: 300px; }
  .close__in { padding-top: 240px; padding-bottom: var(--space-5); }
  .close__stop { top: 14px; bottom: auto; }
}
@media (max-width: 520px) {
  .qcards { grid-template-columns: 1fr; }
  .who__grid { grid-auto-rows: 160px; }
}
