/* Win the click (plan.md). Layout J: the words on a full-width navy band, the clip under it as a wide strip to both
   edges, the cards overlapping the strip's top edge at the right (clear of faces); the three bars on the paper; the
   funnel over a home lit at dusk; the questions; the close with its words at the right. Tokens only. */

/* ---------- the header ---------- */
.ah { position: relative; background: var(--c-brand); }
.ah__band { padding-block: clamp(2.75rem, 1.5rem + 5vh, 4.75rem) clamp(3.5rem, 2rem + 6vh, 5.5rem); }
.ah__band .ph__title { max-width: 16ch; }
.ah__strip { position: relative; height: clamp(340px, 46vh, 480px); }
.ah__stage { position: absolute; inset: 0; overflow: hidden; background: var(--c-brand); }

/* the kit's header (kit.md), as it gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(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; object-position: var(--pos, 50% 50%); }
[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); }
/* the grade: one still layer, the navy band's color running a little way into the strip's top */
.ah__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 38%, transparent) 0%, color-mix(in srgb, var(--c-brand) 0%, transparent) 30%); }
.ah__stop { top: 16px; right: 16px; }

/* the cards: the ad first, then the call it brings; at the left, where both clips are window and wall */
.ah__cards { position: absolute; z-index: 4; top: -2.6rem; left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); display: grid; gap: .6rem; width: min(330px, 28vw); }
.ah__lsa { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge call" "name call" "sub call"; align-items: center; gap: .15rem .9rem; padding: .95rem 1.1rem; border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-l); }
.ah__badge { grid-area: badge; display: inline-flex; align-items: center; gap: .35rem; font: 600 .78rem/1.2 var(--font-text); color: var(--c-brand-text); }
.ah__badge svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; fill: none; stroke: var(--c-on-brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: var(--c-brand); }
.ah__lsa b { grid-area: name; font: 600 1.02rem/1.25 var(--font-text); color: var(--c-ink); }
.ah__lsa small { grid-area: sub; font-size: .84rem; color: var(--c-ink-soft); }
.ah__stars { color: var(--c-accent-text); letter-spacing: .04em; }
.ah__call { grid-area: call; display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font: 600 .86rem/1 var(--font-text); }
.ah__call svg { width: 14px; height: 14px; fill: currentColor; }
.ah__ring { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: .8rem; margin: 0; padding: .8rem 1.1rem .8rem .8rem; border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-l); }
.ah__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-accent); }
.ah__ico svg { width: 18px; height: 18px; fill: var(--c-on-accent); }
.ah__ring b { display: block; font: 600 .98rem/1.25 var(--font-text); color: var(--c-brand); }
.ah__ring small { display: block; font-size: .84rem; color: var(--c-ink-soft); }

/* ---------- the three bars (the signature), on the paper with the motif faint behind ---------- */
.chs.motif-bars::before { right: auto; left: 1%; bottom: 4%; width: min(22vw, 300px); } /* behind the headline's column, never beside the bars */
.chs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: end; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.chs__grid .head { margin-bottom: 0; align-self: center; }
.chs__stage { position: relative; }
.chs__stop { top: -10px; right: 0; }
.chs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, .5rem + 1.2vw, 1.5rem); align-items: end; }
.ch { display: grid; align-content: end; gap: .55rem; }
.ch__total { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.ch__total b { font: 600 var(--fs-h3)/1 var(--font-display); color: var(--c-brand); margin-right: .2rem; }
/* each bar as tall as its new customers, so they rise like the logo's bars; the fullest edged in brass. Each new
   customer lands as a chip (initials and the job), stacking up from the foot */
.ch__bar { position: relative; padding: .6rem; border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-brand) 18%, transparent); }
.ch:last-child .ch__bar { box-shadow: inset 0 0 0 3px var(--c-accent); }
.ch__dot { box-shadow: var(--shadow-s); }
.ch__dots { display: flex; flex-direction: column-reverse; gap: .4rem; }
.ch__dot { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .3rem .7rem .3rem .3rem; border-radius: 999px; background: var(--c-card); color: var(--c-ink); font-size: .84rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch__dot i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c-brand) 10%, var(--c-card)); color: var(--c-brand); font: 600 .72rem/1 var(--font-ui); font-style: normal; letter-spacing: .02em; }
.ch:last-child .ch__dot i { background: var(--c-accent); color: var(--c-on-accent); }
.ch__name { margin-top: .4rem; font-size: var(--fs-h3); }
.ch__line { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }
.chs__foot { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--c-line); font: 500 var(--fs-ui)/1.3 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-soft); }

@media (max-width: 1023.98px) {
  .chs__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the funnel, over the home at dusk ---------- */
.afun { position: relative; isolation: isolate; overflow: hidden; background: var(--c-brand); color: var(--c-on-ink); }
.afun__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.afun__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c-brand) 92%, transparent) 0%, color-mix(in srgb, var(--c-brand) 80%, transparent) 42%, color-mix(in srgb, var(--c-brand) 45%, transparent) 100%); }
.afun__stop { top: 18px; right: 18px; }
.afun__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); min-height: 640px; padding-block: var(--section-y); }
.afun__in .head { margin-bottom: 0; }
.scene.afun__scene { min-height: 520px; }

/* ---------- the close's budget card ---------- */
.ac__card { width: min(320px, 30vw); }
.tcard__row.ac__head { grid-template-columns: minmax(0, 1fr); }
.tcard__row.ac__share { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name pct" "bar bar"; gap: .35rem .8rem; padding-block: .65rem; }
.ac__name { grid-area: name; font-weight: 500; color: var(--c-ink); }
.ac__pct { grid-area: pct; font: 600 1rem/1.2 var(--font-text); color: var(--c-brand); }
.ac__bar { grid-area: bar; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c-brand) 0 var(--share), var(--c-paper-alt) var(--share) 100%); }
.tcard__row--now .ac__bar { background: linear-gradient(90deg, var(--c-accent) 0 var(--share), var(--c-paper-alt) var(--share) 100%); }

/* ---------- the phone ---------- */
@media (max-width: 759.98px) {
  /* tall enough that the cards at its foot stay below both faces (drawn at most 988 px wide: the 960 px first picture stays sharp) */
  .ah__strip { height: 520px; }
  .ah__cards { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; }
  .ah__stop { top: 12px; left: auto; right: 12px; }
  .chs__list { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ch__bar { border-radius: var(--radius-m); }
  .afun__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* the budget card on the tiles at the right of the phone's crop, clear of both faces at the left */
  .closer__over .ac__card { left: auto; right: 10px; bottom: 10px; width: 58%; }
  .ac__card .tcard__row { padding: .5rem .7rem; font-size: .82rem; }
}
