/* Adblitz Website V3, version B: "Cinematic" (the homepage direction Lucas picked, 2026-11-12).
   One film, in the hero only: the VSL plays muted behind the headline and opens full screen with
   sound. Every other section is still: photo scenes cut against white sheets, each section rising
   over the one before it on a rounded top edge.
   Shared components: styles.css. No raw colours and no pixel font sizes in this file. */

/* ---------- Sections stack like sheets ---------- */

/* Sections meet on a straight edge (Lucas, 2026-11-12: round corners belong to cards only).
   .rise and .sink stay in the markup as harmless markers. */
.rise {
  position: relative;
}

.sheet {
  background: var(--color-white);
}

/* ---------- Hero: the film is the page ---------- */

/* Phone and tablet: the film sits under the header as a whole frame (captions readable), the
   headline follows on the dark ground. Wide screens: the film fills the window behind the headline. */
.hero--film {
  position: relative;
  isolation: isolate;
  padding-top: var(--header-h);
  background: var(--color-darkest);
  color: var(--color-on-pine);
}

.film {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-ink);
}

/* The film's own play control: the whole frame on small screens. */
.film-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-on-pine);
}

.film-hit .play-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.hero--film .hero-inner {
  display: grid;
  padding-block: var(--space-8) var(--space-10);
}

.hero--film .hero-head {
  display: grid;
  justify-items: start;
}

.hero--film .hero-proof {
  margin-bottom: var(--space-5);
}

.hero--film .hero-lead {
  display: grid;
  gap: var(--space-3);
}

.hero--film .hero-actions {
  width: 100%;
  margin-top: var(--space-8);
}

.hero--film .hero-actions > * {
  flex: 1 1 100%;
}

@media (min-width: 48rem) {
  .hero--film .hero-inner {
    padding-block: var(--space-10) var(--space-12);
  }

  .hero--film .hero-actions {
    width: auto;
  }

  .hero--film .hero-actions > * {
    flex: none;
  }
}

@media (min-width: 64rem) {
  .hero--film {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: max(100svh, 42rem);
    padding-top: 0;
    overflow: clip;
  }

  .film {
    position: absolute;
    inset: 0;
    z-index: -2;
    aspect-ratio: auto;
  }

  /* The wide file is already cut above the caption band; keep its top edge. */
  .film .cover {
    object-position: 50% 0%;
  }

  .film-hit {
    display: none;
  }

  /* A pine wash under the copy, a band under the header, a band into the next section. The film
     runs through bright, nearly white app screens, so the copy side has to hold on its own: the
     wash stays strong to the end of the longest headline line, then clears across the middle. */
  .hero--film::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(90deg, var(--color-scrim-strong) 0%, var(--color-scrim-strong) 40%, var(--color-scrim) 56%, transparent 82%),
      linear-gradient(to bottom, var(--color-scrim-strong) 0%, transparent 22%),
      linear-gradient(to top, var(--color-scrim) 0%, transparent 22%);
  }

  .film::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--texture-grain);
    opacity: 0.16;
    mix-blend-mode: soft-light;
    pointer-events: none;
  }

  .hero--film .hero-inner {
    align-content: center;
    padding-block: calc(var(--header-h) + var(--space-10)) var(--space-12);
  }

  /* The headline is set in three lines, the way the live site sets it, with a soft shadow of its
     own for the frames where the film behind it turns white. */
  .hero--film .hero-title {
    text-shadow: 0 2px 32px var(--color-shadow-deep);
  }

  .hero--film .hero-lead {
    color: var(--color-on-pine);
  }

  .hero--film .hero-line {
    display: block;
    white-space: nowrap;
  }

  .hero--film .hero-proof {
    margin-bottom: var(--space-6);
  }

  .hero--film .hero-actions {
    margin-top: var(--space-10);
  }
}

/* The hero fills the window and scrolls away with the page: nothing pins it and nothing slides over
   it (Lucas, 2026-11-12). The section after any Cinematic hero starts square, not with .rise. */

/* ---------- Program pages: the stage hero on a Cinematic page ---------- */

/* Program and Service pages open on the stage hero (styles.css) instead of the film. On a Cinematic
   page it runs full bleed under the header, like the film, and scrolls away with the page:
   <section class="hero hero--stage surface-pine on-pine"> then a section without .rise.
   The stage's photo cards lean past its edge; the hero clips them, as Green machine's panel does,
   so they never push the window sideways. */
.hero--stage {
  overflow: clip;
}

/* ---------- Scene: a photo with copy on its quiet side ---------- */

/* Phone and tablet: the photo sits at the top and fades into the ground, the copy starts on the fade.
   Wide screens: the photo fills the scene and the copy sits on its quiet side. */
.scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--color-darkest);
  color: var(--color-on-pine);
}

.scene-media {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: min(118vw, 34rem);
}

.scene-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--color-darkest) 0%, var(--color-scrim-strong) 24%, transparent 72%);
}

.scene-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--texture-grain);
  opacity: 0.16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.scene-inner {
  display: grid;
  align-content: end;
  padding-block: min(80vw, 24rem) var(--section-y);
}

.scene-copy {
  max-width: 36rem;
}

@media (min-width: 64rem) {
  .scene-media {
    inset: 0;
    height: auto;
  }

  .scene-media::before {
    content: none;
  }

  .scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--gradient-scrim-side), linear-gradient(to top, var(--color-scrim-mid), transparent 46%);
  }

  .scene-inner {
    align-content: center;
    min-height: min(92svh, 46rem);
    padding-block: var(--section-y);
  }
}

/* ---------- Click to Cash: a strip of five photo panels, the active one opens ---------- */

.section-head--row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-head--row > .eyebrow,
.section-head--row > .lead {
  grid-column: 1 / -1;
}

/* Phone and tablet: a swipe row of tall photo cards. */
.strip-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 21rem);
  gap: var(--space-3);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.strip-list::-webkit-scrollbar {
  display: none;
}

.strip-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 27rem;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--color-darkest);
  color: var(--color-on-pine);
  scroll-snap-align: start;
}

.strip-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.strip-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-scrim-up);
}

.strip-body {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  padding: var(--space-5);
}

.strip-tab {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-on-pine);
  text-align: left;
  white-space: nowrap;
}

.strip-index {
  color: var(--color-mint);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.strip-name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-h3);
}

.strip-more {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.strip-desc {
  color: var(--color-on-pine-body);
  line-height: 1.6;
}

@media (min-width: 64rem) {
  .strip-list {
    display: flex;
    height: 36rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  /* design-disable-next-line layout-transition -- the strip is the showpiece: the panels trade width, nothing else on the page moves */
  .strip-panel {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
    transition: flex-grow 900ms var(--ease-out);
  }

  .strip-panel:not(.is-active):hover {
    flex-grow: 1.3;
  }

  .strip-panel.is-active {
    flex-grow: 6.5;
    cursor: auto;
  }

  .strip-media::after {
    opacity: 0.9;
    transition: opacity var(--duration) ease;
  }

  .strip-panel:not(.is-active):hover .strip-media::after {
    opacity: 0.6;
  }

  .strip-body {
    justify-items: center;
    padding: var(--space-6) 0;
  }

  .strip-tab {
    align-items: center;
    writing-mode: vertical-rl;
  }

  .strip-more {
    display: none;
  }

  .strip-panel.is-active .strip-body {
    justify-items: start;
    width: 36rem;
    padding: var(--space-8);
  }

  .strip-panel.is-active .strip-tab {
    align-items: baseline;
    writing-mode: horizontal-tb;
  }

  .strip-panel.is-active .strip-more {
    display: grid;
  }

  .strip-panel .stepper-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 3px;
    background: var(--color-line-on-pine);
    opacity: 0;
  }

  .strip-panel.is-active .stepper-progress {
    opacity: 1;
  }
}

/* The label fades back in after a panel has changed width, so the turn from upright to level is never seen. */
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .strip-panel .strip-body {
    animation: strip-settle 700ms ease both;
  }

  .strip-panel.is-active .strip-body {
    animation: strip-open 900ms ease both;
  }
}

@keyframes strip-settle {
  0%,
  40% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes strip-open {
  0%,
  45% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ---------- Programs: a wall of twelve ---------- */

/* Every trade gets a photo. Frames are wider than tall so the wall stays short: two across on a
   phone, four across from tablet up, three rows inside one screen on a desktop. */
.tile-grid--wall .tile-media {
  aspect-ratio: 4 / 3;
}

.tile-grid--wall .tile-label {
  padding: var(--space-4);
  font-size: var(--fs-body);
}

/* Small frames take the short fade, so more of each photo is left clear. */
.tile-grid--wall .tile::after {
  background: var(--gradient-scrim-low);
  opacity: 0.92;
}

/* Rooms whose subject sits low in the frame (the chair, the desk, the pool). */
.tile--low .tile-media img {
  object-position: 50% 82%;
}

@media (min-width: 48rem) {
  .tile-grid--wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .tile-grid--wall {
    gap: var(--space-5);
  }

  .tile-grid--wall .tile-media {
    aspect-ratio: 3 / 2;
  }

  .tile-grid--wall .tile-label {
    padding: var(--space-5);
    font-size: var(--fs-h3);
    font-weight: var(--fw-heavy);
    letter-spacing: var(--ls-h3);
  }
}

/* The wall arrives as one wave: along each row, each row a beat after the one above. */
@media (prefers-reduced-motion: no-preference) {
  .js .tile-grid--wall[data-reveal-group] > li {
    --reveal-delay: calc(var(--wall-col, 0) * 60ms + var(--wall-row, 0) * 110ms);
  }

  .tile-grid--wall > :nth-child(2n) {
    --wall-col: 1;
  }

  .tile-grid--wall > :nth-child(n + 3) {
    --wall-row: 1;
  }

  .tile-grid--wall > :nth-child(n + 5) {
    --wall-row: 2;
  }
}

@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .tile-grid--wall > :nth-child(4n + 1) {
    --wall-col: 0;
  }

  .tile-grid--wall > :nth-child(4n + 2) {
    --wall-col: 1;
  }

  .tile-grid--wall > :nth-child(4n + 3) {
    --wall-col: 2;
  }

  .tile-grid--wall > :nth-child(4n + 4) {
    --wall-col: 3;
  }

  .tile-grid--wall > :nth-child(-n + 4) {
    --wall-row: 0;
  }

  .tile-grid--wall > :nth-child(n + 5) {
    --wall-row: 1;
  }

  .tile-grid--wall > :nth-child(n + 9) {
    --wall-row: 2;
  }
}

/* ---------- How it goes: four steps along a rail ---------- */

/* The rail fills as the section scrolls through; each step lights up as the rail reaches it.
   Phone and tablet: the rail runs down the left. Wide screens: it runs across the top. */
.journey {
  --progress: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--space-10);
  counter-reset: journey;
}

/* The rail sits under every step (z-index -1 inside the list's own layer), so a node or a number
   always covers it, whatever the steps are doing as they reveal. */
.journey::before,
.journey::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: 0.4375rem;
  z-index: -1;
  width: 2px;
  border-radius: var(--radius-pill);
}

.journey::before {
  background: var(--color-line-strong);
}

.journey::after {
  background: var(--color-green);
  transform: scaleY(var(--progress));
  transform-origin: center top;
}

.journey-step {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding-left: var(--space-10);
  counter-increment: journey;
}

/* The node on the rail and, beside it, the step number (drawn, the list carries the order). */
.journey-step::before {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px var(--color-surface-soft);
  transition: background-color var(--duration) ease;
}

.journey-step::after {
  content: counter(journey, decimal-leading-zero);
  order: -1;
  color: var(--color-green-pressed);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  transition: color var(--duration) ease;
}

.is-tracking .journey-step:not(.is-reached)::before {
  background: var(--color-line-solid);
}

.is-tracking .journey-step:not(.is-reached)::after {
  color: var(--text-muted);
}

.journey-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* The step Ad Blitz does: a pine card listing what gets built, in place of a photo. */
.journey-card--us {
  display: grid;
  align-content: space-between;
  justify-items: start;
  padding: var(--space-5);
  background:
    radial-gradient(90% 90% at 88% 12%, var(--color-glow-soft), transparent 70%),
    var(--gradient-pine);
  color: var(--color-on-pine);
}

.journey-mark {
  width: 7.5rem;
}

.journey-parts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.journey-parts li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-fill-on-pine);
  box-shadow: inset 0 0 0 1px var(--color-line-on-pine);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1;
}

.journey-body {
  display: grid;
  gap: var(--space-2);
}

.journey-name {
  color: var(--color-ink);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-h3);
}

.journey-line {
  color: var(--color-body);
  line-height: 1.6;
}

.journey-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  color: var(--color-body);
  line-height: 1.4;
}

@media (min-width: 48rem) {
  .journey-step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-8);
    align-items: center;
  }

  .journey-step::after {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .journey {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .journey::before,
  .journey::after {
    top: 0.4375rem;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }

  .journey::after {
    transform: scaleX(var(--progress));
    transform-origin: left center;
  }

  .journey-step {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    gap: var(--space-5);
    padding: var(--space-10) 0 0;
  }

  .journey-step::before {
    top: 0;
  }

  /* The number sits on the rail beside its node, on a patch of the section's own ground. */
  .journey-step::after {
    position: absolute;
    top: -0.125rem;
    left: 1rem;
    z-index: 1;
    padding-inline: var(--space-2) var(--space-3);
    background: var(--color-surface-soft);
  }

  .journey-card {
    aspect-ratio: 1;
  }

  .journey-card--us {
    padding: var(--space-6);
  }
}

.journey-next {
  margin-top: var(--space-10);
}

.journey-next .btn {
  width: 100%;
}

@media (min-width: 48rem) {
  .journey-next {
    margin-top: var(--space-12);
  }

  .journey-next .btn {
    width: auto;
  }
}

/* ---------- Close and footer ---------- */

.site-footer {
  padding-top: var(--space-16);
}

@media (min-width: 64rem) {
  .close.scene::before {
    background:
      linear-gradient(90deg, var(--color-scrim-strong) 0%, var(--color-scrim-strong) 26%, var(--color-scrim-mid) 56%, var(--color-scrim-soft) 100%),
      linear-gradient(to top, var(--color-scrim-mid), transparent 50%);
  }

  .close .scene-inner {
    min-height: 38rem;
  }
}

/* One radius for every card, tile, photo frame and panel (Lucas, 2026-11-12). */
.tile,
.stage-card,
.video,
.step-card,
.panel,
.fit-panel,
.path-card,
.demo-panel,
.case-card,
.media-split-photo,
.strip-panel,
.journey-card,
.program-card-media {
  border-radius: var(--radius-card);
}

/* The close headline sits on two lines, so the owner in the photo stays clear of it. */
.close-title .emph {
  display: block;
}

/* ---------- Photo hero: trade and job pages (Lucas, 2026-11-12) ----------
   The page's own photo fills the hero behind the copy, instead of the pine panel with photo cards.
   A pine wash holds the copy side; the photo clears toward the right. */
.hero--photo {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: max(36rem, 82svh);
  padding-top: var(--header-h);
  overflow: clip;
  background: var(--color-darkest);
  color: var(--color-on-pine);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Right-focused cast heroes (Lucas, 2026-11-19): the scene sits in the right half, so narrow
   screens crop toward it instead of the empty left. */
.hero-photo--right .cover {
  object-position: 78% center;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-darkest) 0%, var(--color-scrim-strong) 38%, var(--color-scrim-soft) 100%);
}

.hero--photo .hero-inner {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-16) var(--space-12);
}

.hero--photo .hero-head {
  display: grid;
  justify-items: start;
  max-width: 40rem;
}

@media (min-width: 64rem) {
  .hero-photo::after {
    background:
      linear-gradient(to bottom, var(--color-scrim-mid) 0, transparent 10rem),
      linear-gradient(to right, var(--color-scrim-strong) 0%, var(--color-scrim-mid) 38%, transparent 72%),
      linear-gradient(to top, var(--color-darkest) 0%, transparent 34%);
  }

  /* Desktop: the hero fills the window and the copy sits in the middle, like the homepage
     (Lucas, 2026-11-19). */
  .hero--photo {
    align-items: center;
    min-height: 100svh;
  }

  .hero--photo .hero-inner {
    padding-block: var(--space-12);
  }
}

/* ROI calculator: "How much would 100 appointments change your business?" (scripts/roi.mjs, Lucas 2026-11-19).
   A pine band after Click to Cash on every trade and job page: three sliders, one loud revenue number. */
.calc {
  padding-block: var(--section-y);
  background: radial-gradient(60% 70% at 85% 10%, var(--color-glow-soft), transparent 70%), var(--color-pine);
}

.calc-grid {
  display: grid;
  gap: var(--space-8);
}

.calc-inputs {
  display: grid;
  gap: var(--space-8);
}

.calc-field {
  display: grid;
  gap: var(--space-3);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  color: var(--color-on-pine-body);
  font-size: var(--fs-body);
}

.calc-row output {
  color: var(--color-on-pine);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.calc-select {
  width: 100%;
  min-height: 3rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-line-on-pine);
  border-radius: var(--radius-control);
  background: var(--color-pine-lift);
  color: var(--color-on-pine);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  cursor: pointer;
}

.calc-select:hover {
  border-color: var(--color-edge-on-pine);
}

.calc-field[hidden] {
  display: none;
}

.calc-range {
  --fill: 50%;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.calc-range::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-mint) var(--fill), var(--color-line-on-pine) var(--fill));
}

.calc-range::-moz-range-track {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-mint) var(--fill), var(--color-line-on-pine) var(--fill));
}

.calc-range::-webkit-slider-thumb {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.5625rem;
  border: 3px solid var(--color-pine);
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  box-shadow: 0 0 0 1px var(--color-mint);
  appearance: none;
  transition: transform var(--duration-fast) var(--ease-out);
}

.calc-range::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border: 3px solid var(--color-pine);
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  box-shadow: 0 0 0 1px var(--color-mint);
}

.calc-range:hover::-webkit-slider-thumb,
.calc-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.calc-result {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-8);
  border: 1px solid var(--color-line-on-pine);
  border-radius: var(--radius-card);
  background: var(--color-fill-on-pine);
}

.calc-label {
  color: var(--color-on-pine-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.calc-total {
  color: var(--color-on-pine);
  font-size: var(--fs-cover);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-cover);
  letter-spacing: var(--ls-cover);
  font-variant-numeric: tabular-nums;
}

.calc-from {
  color: var(--color-on-pine-body);
  font-size: var(--fs-lead);
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
  margin-block: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line-on-pine);
}

.calc-kpis div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--space-1);
}

.calc-kpis dd {
  margin: 0;
  color: var(--color-mint);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-heading);
  font-variant-numeric: tabular-nums;
}

.calc-kpis dt {
  color: var(--color-on-pine-muted);
  font-size: var(--fs-small);
}

.calc-note {
  margin-top: var(--space-6);
  color: var(--color-on-pine-muted);
  font-size: var(--fs-small);
}

@media (max-width: 51.9375rem) {
  .calc-result {
    order: -1;
    padding: var(--space-6);
  }

  .calc-kpis {
    grid-template-columns: 1fr;
  }

  .calc-kpis div {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: baseline;
  }

  .calc-result .btn {
    width: 100%;
  }
}

@media (min-width: 52rem) {
  .calc-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-16);
    align-items: center;
  }

  /* The job picker stays a sensible width so its arrow sits near the words (Lucas, 2026-11-19). */
  .calc-select {
    max-width: 22rem;
  }
}

/* Desktop: a full band with room to breathe (Lucas, 2026-11-19: first "too big on desktop", then
   "compact and squished"). Taller than the one-screen cut, shorter than the default section. */
@media (min-width: 64rem) {
  .calc {
    padding-block: var(--space-20);
  }

  .calc .section-head {
    margin-bottom: var(--space-12);
  }

  .calc-inputs {
    gap: var(--space-8);
  }

  .calc-field {
    gap: var(--space-2);
  }

  .calc-result {
    padding: var(--space-10) var(--space-10);
  }

  .calc-kpis {
    margin-block: var(--space-8);
    padding-top: var(--space-8);
  }

  .calc-note {
    margin-top: var(--space-8);
  }
}

/* Right-focused calendar closes on the trade pages (Lucas, 2026-11-19): narrow screens crop
   toward the owner and the screen, not the empty left. */
.scene-media--right .cover {
  object-position: 78% center;
}

/* ---------- Feature flow: "What's included" on the service pages (Lucas, 2026-11-19) ----------
   Full-width rows that alternate text and a small brand UI mockup, joined by a thin line, in
   place of the point list and the Click to Cash accordion. The mockups are real markup, so the
   words and numbers are exact. */
.feature-flow {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-12);
}

.feature-row {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.feature-num {
  color: var(--color-green-pressed);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
}

.feature-name {
  margin-top: var(--space-2);
  color: var(--color-ink);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-h2);
  line-height: var(--lh-heading);
}

.feature-line {
  max-width: 28rem;
  margin-top: var(--space-3);
  color: var(--color-body);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.feature-art {
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: var(--space-8);
  border-radius: var(--radius-card);
  background: radial-gradient(70% 80% at 70% 20%, var(--color-chip), transparent 70%), var(--color-surface-soft);
}

@media (min-width: 52rem) {
  .feature-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-16);
  }

  .feature-row:nth-child(even) .feature-copy {
    order: 2;
  }

  .feature-row:nth-child(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* The mockups: a phone, a board, a week, a proposal, a funnel. */
.mock-phone {
  width: 15rem;
  padding: var(--space-3);
  border-radius: 2rem;
  background: var(--color-ink);
  box-shadow: var(--shadow-xl);
}

.mock-screen {
  display: grid;
  gap: var(--space-3);
  min-height: 19rem;
  padding: var(--space-5) var(--space-4);
  border-radius: 1.5rem;
  background: var(--color-white);
}

.mock-panel {
  width: 100%;
  max-width: 30rem;
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.mock-title {
  color: var(--color-ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.mock-muted {
  color: var(--color-muted);
  font-size: var(--fs-eyebrow);
}

.mock-bar {
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-green) 60%, var(--color-line) 60%);
}

.mock-option {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

.mock-option.is-on {
  border-color: var(--color-green);
  background: var(--color-chip);
  color: var(--color-green-pressed);
}

.mock-bubble {
  max-width: 85%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--color-ink);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.mock-bubble.is-me {
  justify-self: end;
  background: var(--color-green);
  color: var(--color-white);
}

.mock-tag {
  justify-self: start;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-chip);
  color: var(--color-green-pressed);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
}

.mock-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.mock-col {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.mock-card {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  color: var(--color-ink);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
}

.mock-card b {
  display: block;
  color: var(--color-green-pressed);
  font-weight: var(--fw-semibold);
}

.mock-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.mock-day {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  min-height: 11rem;
}

.mock-slot {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-chip);
  color: var(--color-green-pressed);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: var(--fs-small);
}

.mock-big {
  color: var(--color-ink);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heavy);
  font-variant-numeric: tabular-nums;
}

.mock-funnel {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.mock-step {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-chip);
  color: var(--color-green-pressed);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.mock-step:nth-child(1) { width: 100%; }
.mock-step:nth-child(2) { width: 88%; }
.mock-step:nth-child(3) { width: 76%; }
.mock-step:nth-child(4) { width: 64%; }
.mock-step:nth-child(5) { width: 52%; background: var(--color-green); color: var(--color-white); }

/* Extra mockup parts for the service pages (Lucas, 2026-11-19). */
.mock-img {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--color-surface-soft);
}

.mock-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.mock-btn {
  justify-self: start;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--color-green);
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.mock-stars {
  color: var(--color-green-pressed);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
}

.mock-text {
  margin-top: var(--space-1);
  color: var(--color-body);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.mock-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.mock-caption {
  margin-top: calc(var(--space-8) * -1);
  padding: var(--space-1) var(--space-2);
  justify-self: center;
  border-radius: var(--radius-sm);
  background: var(--color-scrim-strong);
  color: var(--color-white);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

/* ---------- Proof band (Lucas, 2026-11-19): real proof instead of a photo with a headline ----------
   Logos, two client cases with their quote and numbers, then 250+ clients and the Results link. */
.proof-cards {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.proof-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-8);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.proof-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

@media (min-width: 52rem) {
  .proof-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.proof-count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.proof-count::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-green);
}

/* On a grey section the mockup panels sit on white (trade pages, Lucas 2026-11-19). */
.surface-soft .feature-art {
  background: radial-gradient(70% 80% at 70% 20%, var(--color-chip), transparent 70%), var(--color-white);
}

/* ---------- Scenes: the six CRM demos, played by assets/js/scenes.js (Lucas, 2026-11-19) ----------
   "Show the actual thing in action": a real-proportion phone or a desktop window plays each step,
   every stage the same height, no panel behind the device. Screens are drawn at true size (393 x 852
   phone, 760 x 564 window body) and scaled to fit by --fit. */
.feature-flow--scenes {
  gap: var(--space-20);
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 34rem;
}

.ui {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform: scale(var(--fit, 0.6));
  transform-origin: 0 0;
  background: var(--color-ui-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-ui-body);
  line-height: 1.35;
  transition: opacity 500ms ease;
}

.is-ending .ui {
  opacity: 0;
}

/* Phone: iPhone proportions, a 393 x 852 screen in a thin dark frame. */
.phone {
  position: relative;
  height: 100%;
  aspect-ratio: 413 / 872;
  padding: 2.3%;
  border-radius: 13.5% / 6.4%;
  background: var(--color-device);
  box-shadow: inset 0 0 0 2px var(--color-device-edge), var(--shadow-device);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12% / 5.6%;
  background: var(--color-ui-bg);
}

.ui--phone {
  width: 393px;
  height: 852px;
}

.ui-island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 30;
  width: 124px;
  height: 36px;
  border-radius: 20px;
  background: var(--color-device);
  transform: translateX(-50%);
}

.ui-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
  padding: 0 32px 0 46px;
  font-size: var(--fs-ui-body);
  font-weight: var(--fw-semibold);
}

.ui-signal {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ui-signal i {
  display: block;
  width: 26px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.ui-signal b {
  display: block;
  width: 17px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(90deg, currentColor 0 22%, transparent 22% 26%, currentColor 26% 48%, transparent 48% 52%, currentColor 52% 74%, transparent 74% 78%, currentColor 78%);
}

.ui-home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 30;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-ink);
  transform: translateX(-50%);
}

/* Desktop window: a browser-style frame around a 760 x 564 app screen. */
.window {
  position: relative;
  width: 100%;
  max-width: 44rem;
  aspect-ratio: 760 / 600;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-ui-card);
  box-shadow: var(--shadow-device);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 6%;
  padding-inline: 2.4%;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface-soft);
}

.window-bar i {
  width: 0.625rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-line-strong);
}

.window-body {
  position: relative;
  height: 94%;
}

.ui--desk {
  width: 760px;
  height: 564px;
  padding: 22px 24px;
  background: var(--color-ui-card);
}

/* Shared motion. */
.fx {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 450ms var(--ease-out), transform 700ms var(--ease-out);
}

.fx.is-on {
  opacity: 1;
  transform: none;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  transform: translateY(102%);
  transition: transform 700ms var(--ease-out);
}

.overlay.is-on {
  transform: none;
}

.banner {
  position: absolute;
  top: 58px;
  right: 10px;
  left: 10px;
  z-index: 28;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-ui-card) 92%, transparent);
  box-shadow: 0 12px 30px -8px var(--color-ui-shadow);
  font-size: var(--fs-ui-small);
  opacity: 0;
  transform: translateY(-140%);
  transition: transform 700ms var(--ease-out), opacity 300ms ease;
}

.banner.is-on {
  opacity: 1;
  transform: none;
}

.banner b {
  display: block;
}

.banner small {
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: var(--fs-ui-caption);
  font-weight: var(--fw-heavy);
}

.tap {
  position: absolute;
  z-index: 26;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-ink) 22%, transparent);
  opacity: 0;
  pointer-events: none;
}

.tap.is-on {
  animation: tap 700ms var(--ease-out) forwards;
}

@keyframes tap {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* Scene 1: smart form. */
.ad {
  position: absolute;
  inset: 54px 0 0;
  background: var(--color-ui-card);
}

.ad-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.ad-head small {
  display: block;
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.ad img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ad-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-ui-line);
  background: var(--color-surface-soft);
  font-weight: var(--fw-semibold);
}

.ad-cta .icon {
  width: 18px;
  height: 18px;
}

.ad-copy {
  padding: 12px 16px;
  font-size: var(--fs-ui-small);
}

.form {
  background: var(--color-ui-card);
}

.form-top {
  display: grid;
  gap: 14px;
  padding: 64px 24px 0;
}

.form-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-semibold);
}

.form-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--color-ui-line);
}

.form-progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 600ms var(--ease-out);
}

.form-progress i[data-state="1"] { transform: scaleX(0.2); }
.form-progress i[data-state="2"] { transform: scaleX(0.4); }
.form-progress i[data-state="3"] { transform: scaleX(0.6); }
.form-progress i[data-state="4"] { transform: scaleX(0.8); }
.form-progress i[data-state="5"] { transform: scaleX(1); }

.q {
  position: absolute;
  top: 150px;
  right: 0;
  left: 0;
  display: grid;
  gap: 12px;
  padding: 0 24px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 400ms ease, transform 600ms var(--ease-out);
}

.q[data-state="now"] {
  opacity: 1;
  transform: none;
}

.q[data-state="past"] {
  opacity: 0;
  transform: translateX(-60px);
}

.q-title {
  margin-bottom: 8px;
  font-size: var(--fs-ui-title);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.q-option,
.q-field {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border: 1.5px solid var(--color-ui-line);
  border-radius: 14px;
  background: var(--color-ui-card);
  transition: border-color 300ms ease, background-color 300ms ease;
}

.q-option .icon {
  width: 20px;
  height: 20px;
  color: var(--color-green);
  opacity: 0;
  transition: opacity 300ms ease;
}

.q-option.is-on {
  border-color: var(--color-green);
  background: var(--color-chip);
}

.q-option.is-on .icon {
  opacity: 1;
}

.q-field {
  display: grid;
  align-content: center;
  gap: 2px;
}

.q-field small {
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.q-field span:empty::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--color-ui-bubble-out);
  vertical-align: middle;
}

.ui-btn {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin-top: 6px;
  border-radius: 14px;
  background: var(--color-green);
  color: var(--color-white);
  font-weight: var(--fw-semibold);
}

.q-done {
  justify-items: center;
  padding-top: 70px;
  text-align: center;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
}

.done-mark .icon {
  width: 40px;
  height: 40px;
}

.q-done p {
  max-width: 280px;
  color: var(--color-body);
}

/* Scene 2: AI setter, the buyer's text thread. */
.sms-head {
  position: absolute;
  top: 54px;
  right: 0;
  left: 0;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--color-ui-line);
  background: color-mix(in srgb, var(--color-ui-bg) 94%, transparent);
  font-size: var(--fs-ui-caption);
}

.sms-head .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.sms-thread {
  position: absolute;
  top: 150px;
  right: 0;
  bottom: 70px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  padding: 0 14px;
}

.msg {
  max-width: 76%;
  max-height: 0;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--color-ui-bubble-in);
  font-size: var(--fs-ui-body);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: 0 100%;
  transition: max-height 500ms var(--ease-out), padding 500ms var(--ease-out), opacity 350ms ease, transform 500ms var(--ease-out);
}

.msg.is-on {
  max-height: 12rem;
  padding: 10px 14px;
  opacity: 1;
  transform: none;
}

.msg--out {
  align-self: flex-end;
  background: var(--color-ui-bubble-out);
  color: var(--color-white);
  transform-origin: 100% 100%;
}

.msg--meta {
  align-self: center;
  max-width: none;
  background: none;
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.msg--card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-ui-line);
  background: var(--color-ui-card);
}

.msg--card b {
  color: var(--color-green);
  font-size: var(--fs-ui-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msg--card u {
  margin-top: 6px;
  color: var(--color-ui-bubble-out);
  text-decoration: none;
}

.msg--typing {
  display: flex;
  gap: 5px;
}

.msg--typing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ui-muted);
  animation: typing 1.2s infinite ease-in-out;
}

.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.4; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

.sms-input {
  position: absolute;
  right: 14px;
  bottom: 26px;
  left: 14px;
  height: 40px;
  border: 1px solid var(--color-ui-line);
  border-radius: 20px;
  background: var(--color-ui-card);
}

/* Desktop app chrome shared by the board, the calendar and the report. */
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.app-top h4 {
  font-size: var(--fs-ui-title);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.01em;
}

.app-top small {
  display: block;
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.app-kpi {
  text-align: right;
}

.app-kpi strong {
  display: block;
  color: var(--color-green);
  font-size: var(--fs-ui-large);
  font-weight: var(--fw-heavy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Scene 3: live pipeline. */
.board {
  position: relative;
  height: 400px;
}

.board-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 172px;
  padding: 10px;
  border-radius: 12px;
  background: var(--color-ui-bg);
}

.board-col:nth-child(1) { left: 0; }
.board-col:nth-child(2) { left: 180px; }
.board-col:nth-child(3) { left: 360px; }
.board-col:nth-child(4) { left: 540px; }

.board-col p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-ui-caption);
  font-weight: var(--fw-semibold);
}

.board-col p::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-ui-muted);
}

.board-col:nth-child(2) p::before { background: var(--color-ui-blue); }
.board-col:nth-child(3) p::before { background: var(--color-ui-amber); }
.board-col:nth-child(4) p::before { background: var(--color-green); }

.deal {
  position: absolute;
  top: 40px;
  left: 10px;
  display: grid;
  gap: 2px;
  width: 152px;
  padding: 10px 12px;
  border: 1px solid var(--color-ui-line);
  border-radius: 10px;
  background: var(--color-ui-card);
  box-shadow: 0 6px 14px -10px var(--color-ui-shadow);
  font-size: var(--fs-ui-caption);
  opacity: 0;
  transform: translate(calc(var(--x, 0) * 180px), calc(var(--y, 0) * 84px)) scale(0.92);
  transition: transform 900ms var(--ease-out), opacity 400ms ease, border-color 400ms ease, background-color 400ms ease;
}

.deal b {
  font-size: var(--fs-ui-small);
}

.deal span {
  overflow: hidden;
  color: var(--color-ui-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal em {
  color: var(--color-ink);
  font-style: normal;
  font-weight: var(--fw-semibold);
}

.deal:not([data-state=""]) {
  opacity: 1;
  transform: translate(calc(var(--x, 0) * 180px), calc(var(--y, 0) * 84px));
}

.deal[data-state^="0"] { --x: 0; }
.deal[data-state^="1"] { --x: 1; }
.deal[data-state^="2"] { --x: 2; }
.deal[data-state^="3"] { --x: 3; }
.deal[data-state$="-0"] { --y: 0; }
.deal[data-state$="-1"] { --y: 1; }
.deal[data-state$="-2"] { --y: 2; }
.deal[data-state$="-3"] { --y: 3; }

.deal[data-state^="3"] {
  border-color: var(--color-green);
  background: var(--color-chip);
}

/* Scene 4: full calendar. */
.cal {
  display: grid;
  grid-template-columns: 56px repeat(5, minmax(0, 1fr));
  grid-template-rows: 28px repeat(9, 42px);
  column-gap: 6px;
  font-size: var(--fs-ui-caption);
}

.cal-day {
  grid-row: 1;
  color: var(--color-ui-muted);
  font-weight: var(--fw-semibold);
  text-align: center;
}

.cal-hour {
  grid-column: 1;
  color: var(--color-ui-muted);
  border-top: 1px solid var(--color-ui-line);
}

.cal-line {
  grid-column: 2 / -1;
  border-top: 1px solid var(--color-ui-line);
}

.cal-ev {
  z-index: 1;
  margin: 3px 0;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-chip);
  color: var(--color-pine);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  white-space: nowrap;
}

.cal-ev small {
  display: block;
  color: var(--color-green-pressed);
  font-size: var(--fs-ui-caption);
  font-weight: var(--fw-regular);
}

.d1 { grid-column: 2; }
.d2 { grid-column: 3; }
.d3 { grid-column: 4; }
.d4 { grid-column: 5; }
.d5 { grid-column: 6; }
.h8 { grid-row: 2; }
.h9 { grid-row: 3; }
.h10 { grid-row: 4; }
.h11 { grid-row: 5; }
.h12 { grid-row: 6; }
.h13 { grid-row: 7; }
.h14 { grid-row: 8; }
.h15 { grid-row: 9; }
.h16 { grid-row: 10; }

.cal-pop {
  position: absolute;
  top: 168px;
  left: 268px;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: 290px;
  padding: 16px 18px;
  border: 1px solid var(--color-ui-line);
  border-radius: 14px;
  background: var(--color-ui-card);
  box-shadow: 0 24px 48px -16px var(--color-ui-shadow);
  font-size: var(--fs-ui-small);
}

.cal-pop b {
  font-size: var(--fs-ui-body);
}

.cal-pop span {
  display: flex;
  justify-content: space-between;
  color: var(--color-ui-muted);
}

.cal-pop span em {
  color: var(--color-ink);
  font-style: normal;
}

.tag-ok {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-chip);
  color: var(--color-green-pressed);
  font-size: var(--fs-ui-caption);
  font-weight: var(--fw-semibold);
}

/* Scene 5: signed proposal and paid deposit. */
.doc-view {
  position: absolute;
  inset: 54px 0 0;
  overflow: hidden;
  background: var(--color-ui-card);
}

.doc {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  gap: 14px;
  padding: 10px 22px 40px;
  background: var(--color-ui-card);
  transition: transform 1200ms var(--ease-out);
}

.doc[data-state="mid"] { transform: translateY(-300px); }
.doc[data-state="end"] { transform: translateY(-420px); }

.doc-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-ui-line);
  font-size: var(--fs-ui-caption);
  color: var(--color-ui-muted);
}

.doc-brand span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-size: var(--fs-ui-body);
  font-weight: var(--fw-heavy);
}

.doc .doc-title {
  font-size: var(--fs-ui-large);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-ui-line);
  font-size: var(--fs-ui-small);
}

.doc-row--total {
  border-bottom: 0;
  font-size: var(--fs-ui-title);
  font-weight: var(--fw-heavy);
}

.doc-row--deposit {
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--color-chip);
  color: var(--color-pine);
  font-weight: var(--fw-semibold);
}

.doc small {
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.sign {
  position: relative;
  height: 120px;
  border: 1.5px dashed var(--color-ui-line);
  border-radius: 12px;
}

.sign small {
  position: absolute;
  bottom: 8px;
  left: 14px;
}

.sign svg {
  position: absolute;
  inset: 10px 20px 24px;
  width: calc(100% - 40px);
  height: 86px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.sign.is-on svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1600ms ease-in-out;
}

.pay {
  top: auto;
  height: 430px;
  padding: 26px 24px;
  border-radius: 28px 28px 0 0;
  background: var(--color-ui-card);
  box-shadow: 0 -20px 40px -20px var(--color-ui-shadow);
}

.pay-in,
.pay-done {
  display: grid;
  gap: 12px;
  transition: opacity 400ms ease;
}

.pay-done {
  position: absolute;
  inset: 40px 24px auto;
  justify-items: center;
  opacity: 0;
  text-align: center;
}

.pay-done.is-on {
  opacity: 1;
}

.pay-done.is-on ~ .pay-in {
  opacity: 0;
}

.pay-amount {
  font-size: var(--fs-ui-hero);
  font-weight: var(--fw-heavy);
  letter-spacing: -0.02em;
}

/* Scene 6: cash reporting. */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kpi {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-ui-bg);
}

.kpi small {
  display: block;
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.kpi strong {
  font-size: var(--fs-ui-title);
  font-weight: var(--fw-heavy);
  font-variant-numeric: tabular-nums;
}

.kpi--cash {
  background: var(--color-pine);
  color: var(--color-white);
}

.kpi--cash small {
  color: var(--color-on-pine-muted);
}

.kpi--cash strong {
  color: var(--color-mint);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 96px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-ui-line);
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--color-green);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 800ms var(--ease-out);
}

.bars i.is-on {
  transform: none;
}

.bars i:nth-child(1) { height: 22%; }
.bars i:nth-child(2) { height: 30%; }
.bars i:nth-child(3) { height: 28%; }
.bars i:nth-child(4) { height: 41%; }
.bars i:nth-child(5) { height: 47%; }
.bars i:nth-child(6) { height: 44%; }
.bars i:nth-child(7) { height: 58%; }
.bars i:nth-child(8) { height: 63%; }
.bars i:nth-child(9) { height: 71%; }
.bars i:nth-child(10) { height: 78%; }
.bars i:nth-child(11) { height: 86%; }
.bars i:nth-child(12) { height: 100%; }

.cash-table {
  display: grid;
  font-size: var(--fs-ui-small);
}

.cash-row {
  display: grid;
  grid-template-columns: 1fr 80px 70px 60px 100px;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-ui-line);
  text-align: right;
}

.cash-row > :first-child {
  text-align: left;
}

.cash-row--head {
  color: var(--color-ui-muted);
  font-size: var(--fs-ui-caption);
}

.cash-row b {
  color: var(--color-green);
}

@media (min-width: 52rem) {
  .stage {
    height: 36rem;
  }
}

@media (max-width: 51.9375rem) {
  .stage {
    height: 30rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui,
  .fx,
  .overlay,
  .banner,
  .q,
  .msg,
  .deal,
  .doc,
  .bars i {
    transition: none;
  }
}

/* Where each tap lands on its 393 x 852 screen. */
.tap--next { top: 436px; left: 196px; }
.tap--slot { top: 228px; left: 196px; }
.tap--accept { top: 700px; left: 196px; }
.tap--pay { top: 690px; left: 196px; }

/* ---------- Scenes, round two (Lucas, 2026-11-19: "make them as good as we possibly can") ----------
   Every rule below is scoped to .ui (a scene screen), so nothing can reach the page around it. */
.ui .ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui .ic--pin { width: 46px; height: 46px; fill: var(--color-green); stroke: var(--color-white); stroke-width: 1.4; }

/* Social feed */
.ui .ig-top { position: absolute; top: 54px; right: 0; left: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 16px; background: var(--color-ui-card); font-size: var(--fs-ui-title); font-weight: var(--fw-heavy); }
.ui .ig-top span { display: flex; gap: 18px; }
.ui .ig-view { position: absolute; top: 98px; right: 0; bottom: 83px; left: 0; overflow: hidden; background: var(--color-ui-card); }
.ui .feed { transition: transform 1600ms var(--ease-out); }
.ui .feed[data-state="ad"] { transform: translateY(-647px); }
.ui .stories { display: flex; gap: 14px; height: 96px; padding: 6px 14px; overflow: hidden; }
.ui .story { display: grid; justify-items: center; gap: 4px; flex: none; width: 66px; font-size: var(--fs-ui-caption); }
.ui .story i { position: relative; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(45deg, var(--color-ui-ring-1), var(--color-ui-ring-2), var(--color-ui-ring-3)); }
.ui .story i::after { content: ""; position: absolute; inset: 3px; border: 2.5px solid var(--color-ui-card); border-radius: 50%; background: var(--color-ui-line); }
.ui .story--you i { background: var(--color-ui-line); }
.ui .story small { overflow: hidden; max-width: 66px; color: var(--color-body); font-size: var(--fs-ui-caption); text-overflow: ellipsis; white-space: nowrap; }
.ui .post { padding-bottom: 12px; }
.ui .post-head { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; font-size: var(--fs-ui-small); }
.ui .post-head > .ic { margin-left: auto; }
.ui .post-head small { display: block; color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .post-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--color-ui-line); }
.ui .post-av--ring { display: grid; place-items: center; padding: 2px; background: linear-gradient(45deg, var(--color-ui-ring-1), var(--color-ui-ring-2), var(--color-ui-ring-3)); }
.ui .post-av--ring .app-icon { width: 100%; height: 100%; border: 2px solid var(--color-ui-card); border-radius: 50%; font-size: var(--fs-ui-caption); }
.ui .post-media { position: relative; }
.ui .post-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ui .post-img--sq { aspect-ratio: 1; }
.ui .post-cta { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--color-ui-line); background: var(--color-ui-bg); font-size: var(--fs-ui-small); font-weight: var(--fw-semibold); }
.ui .post-cta .icon { width: 18px; height: 18px; }
.ui .ig-acts { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 14px; }
.ui .ig-acts span { flex: 1; }
.ui .post-text { padding: 2px 14px; font-size: var(--fs-ui-small); }
.ui .ig-tabs { position: absolute; right: 0; bottom: 0; left: 0; z-index: 6; display: flex; justify-content: space-around; height: 83px; padding-top: 12px; border-top: 1px solid var(--color-ui-line); background: var(--color-ui-card); }
.ui .vid-bar { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: color-mix(in srgb, var(--color-white) 35%, transparent); }
.ui .vid-bar i { display: block; height: 100%; background: var(--color-white); transform: scaleX(0); transform-origin: 0 50%; }
.ui .vid-bar i.is-on { transform: scaleX(1); transition: transform 9s linear; }
.ui .vid-sound { position: absolute; right: 12px; bottom: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-glass); color: var(--color-white); }
.ui .vid-sound .ic { width: 16px; height: 16px; }
.ui .dbl-heart { position: absolute; top: 50%; left: 50%; color: var(--color-white); opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
.ui .dbl-heart .ic { width: 110px; height: 110px; fill: var(--color-white); stroke: none; }
.ui .dbl-heart.is-on { animation: heart 1200ms var(--ease-out) forwards; }
@keyframes heart { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); } 25% { opacity: 0.95; transform: translate(-50%, -50%) scale(1); } 70% { opacity: 0.95; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); } }
.ui .sheet-comments, .ui .share { top: auto; height: 400px; padding: 10px 18px; border-radius: 26px 26px 0 0; background: var(--color-ui-card); box-shadow: 0 -20px 40px -20px var(--color-ui-shadow); }
.ui .share { height: 300px; }
.ui .sheet-grab { width: 38px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--color-ui-line); }
.ui .sheet-title { margin-bottom: 12px; font-size: var(--fs-ui-small); font-weight: var(--fw-semibold); text-align: center; }
.ui .cmt { display: flex; gap: 10px; padding: 10px 0; font-size: var(--fs-ui-small); }
.ui .cmt b { display: block; font-size: var(--fs-ui-caption); }
.ui .cmt--reply { padding-left: 40px; }

/* Lock screen */
.ui .lock { position: absolute; inset: 0; z-index: 22; transition: opacity 600ms ease, transform 700ms var(--ease-out); }
.ui .lock.is-on { opacity: 0; transform: scale(1.06); pointer-events: none; }
.ui .lock-wall { position: absolute; inset: 0; background: radial-gradient(80% 60% at 30% 20%, var(--color-pine-mid), transparent 70%), linear-gradient(180deg, var(--color-pine), var(--color-darkest)); }
.ui .lock-date, .ui .lock-time { position: relative; color: var(--color-white); text-align: center; }
.ui .lock-date { padding-top: 92px; font-size: var(--fs-ui-body); font-weight: var(--fw-semibold); }
.ui .lock-time { font-size: var(--fs-ui-clock); font-weight: var(--fw-semibold); letter-spacing: -0.02em; line-height: 1.05; }
.ui .lock-note { position: absolute; top: 300px; right: 10px; left: 10px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 22px; background: color-mix(in srgb, var(--color-ui-card) 86%, transparent); font-size: var(--fs-ui-small); }
.ui .lock-note b { display: block; }
.ui .lock-note small { display: block; color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .sms-back { position: absolute; top: 18px; left: 12px; color: var(--color-ui-bubble-out); }
.ui .msg--read { align-self: flex-end; max-width: none; background: none; color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .msg--read.is-on { padding: 0 4px; }

/* Pipeline cursor and calendar toasts */
.ui .cursor { position: absolute; top: 82px; left: 120px; z-index: 4; width: 24px; height: 24px; opacity: 0; transform: translate(calc(var(--x, 0) * 180px), calc(var(--y, 0) * 84px)); transition: transform 600ms var(--ease-out), opacity 300ms ease; }
.ui .cursor svg { width: 100%; height: 100%; fill: var(--color-ink); stroke: var(--color-white); stroke-width: 1.5; }
.ui .cursor:not([data-state=""]) { opacity: 1; }
.ui .cursor[data-state^="0"] { --x: 0; }
.ui .cursor[data-state^="1"] { --x: 1; }
.ui .cursor[data-state^="2"] { --x: 2; }
.ui .cursor[data-state^="3"] { --x: 3; }
.ui .cursor[data-state$="-0"] { --y: 0; }
.ui .cursor[data-state$="-1"] { --y: 1; }
.ui .toast { position: absolute; top: 18px; right: 24px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--color-ui-line); border-radius: 12px; background: var(--color-ui-card); box-shadow: 0 12px 30px -12px var(--color-ui-shadow); font-size: var(--fs-ui-caption); }
.ui .toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-green); }
.ui .toast b { display: block; font-size: var(--fs-ui-small); }

/* Map: pin, radius, leads */
.ui .map { position: absolute; inset: 0; background: var(--color-ui-map); }
.ui .map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui .map-water { fill: var(--color-ui-water); }
.ui .map-park { fill: var(--color-ui-park); }
.ui .map-road { fill: none; stroke: var(--color-ui-road); stroke-width: 14; }
.ui .map-street { fill: none; stroke: var(--color-ui-road); stroke-width: 6; }
.ui .map-radius { fill: color-mix(in srgb, var(--color-green) 14%, transparent); stroke: var(--color-green); stroke-width: 2; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 1400ms var(--ease-out); }
.ui .map-radius.is-on { transform: none; }
.ui .map-dot { fill: var(--color-green); stroke: var(--color-white); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.ui .map-dot--out { fill: var(--color-ui-muted); opacity: 0.45; }
.ui .map-pin { position: absolute; top: 290px; left: 470px; z-index: 2; opacity: 0; transform: translate(-50%, -160%); transition: transform 700ms var(--ease-out), opacity 300ms ease; }
.ui .map-pin.is-on { opacity: 1; transform: translate(-50%, -96%); }
.ui .map-card { position: absolute; top: 20px; left: 20px; display: grid; gap: 8px; width: 290px; padding: 16px 18px; border-radius: 14px; background: var(--color-ui-card); box-shadow: 0 16px 36px -16px var(--color-ui-shadow); font-size: var(--fs-ui-small); }
.ui .map-card span { display: flex; justify-content: space-between; gap: 10px; color: var(--color-ui-muted); }
.ui .map-card em { color: var(--color-ink); font-style: normal; font-weight: var(--fw-semibold); text-align: right; }
.ui .map-lead { position: absolute; top: 150px; left: 540px; display: grid; padding: 10px 14px; border-radius: 12px; background: var(--color-ui-card); box-shadow: 0 12px 30px -12px var(--color-ui-shadow); font-size: var(--fs-ui-caption); }
.ui .map-lead b { color: var(--color-green); }
.ui .map-lead--b { top: 400px; left: 330px; }

/* Search results and a phone call */
.ui .srch { position: absolute; inset: 54px 0 0; background: var(--color-ui-card); }
.ui .srch-bar { display: flex; align-items: center; gap: 10px; height: 46px; margin: 10px 14px; padding: 0 16px; border-radius: 23px; background: var(--color-ui-bg); font-size: var(--fs-ui-small); }
.ui .srch-bar .ic { width: 20px; height: 20px; color: var(--color-ui-muted); }
.ui .srch-res { display: grid; padding: 0 16px; }
.ui .res { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--color-ui-line); font-size: var(--fs-ui-small); }
.ui .res small { font-size: var(--fs-ui-caption); font-weight: var(--fw-semibold); }
.ui .res-site { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui-caption); }
.ui .res-site b { display: block; font-size: var(--fs-ui-small); }
.ui .res-site .app-icon, .ui .res-site .post-av { width: 28px; height: 28px; border-radius: 50%; }
.ui .res-title { color: var(--color-ui-link); font-size: var(--fs-ui-body); }
.ui .res-text { color: var(--color-body); }
.ui .res-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ui .res-links span { padding: 4px 10px; border: 1px solid var(--color-ui-line); border-radius: 999px; font-size: var(--fs-ui-caption); }
.ui .res-call { display: inline-flex; justify-self: start; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: var(--color-chip); color: var(--color-pine); font-weight: var(--fw-semibold); }
.ui .res-call .ic { width: 18px; height: 18px; }
.ui .calling { display: grid; align-content: start; justify-items: center; gap: 6px; padding-top: 170px; background: var(--color-ui-dark); color: var(--color-white); }
.ui .calling-name { font-size: var(--fs-ui-large); font-weight: var(--fw-semibold); }
.ui .calling-sub { color: var(--color-on-pine-muted); }
.ui .calling-end { position: absolute; bottom: 110px; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--color-ui-red); transform: translateX(-50%); }
.ui .calling-end .ic { transform: rotate(135deg); }

/* Map pack */
.ui .mp { position: absolute; inset: 54px 0 0; background: var(--color-ui-card); }
.ui .mp-map { position: relative; height: 360px; background: var(--color-ui-map); }
.ui .mp-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui .mp-pin { position: absolute; opacity: 0; transform: translate(-50%, -160%); transition: transform 700ms var(--ease-out), opacity 300ms ease; }
.ui .mp-pin.is-on { opacity: 1; transform: translate(-50%, -96%); }
.ui .mp-pin:nth-of-type(1) { top: 170px; left: 196px; }
.ui .mp-pin:nth-of-type(2) { top: 120px; left: 110px; }
.ui .mp-pin:nth-of-type(3) { top: 240px; left: 290px; }
.ui .mp-pin:not(.mp-pin--you) .ic--pin { width: 34px; height: 34px; fill: var(--color-ui-muted); }
.ui .mp-list { position: relative; display: grid; gap: 4px; margin-top: -18px; padding: 16px; border-radius: 20px 20px 0 0; background: var(--color-ui-card); }
.ui .mp-row { display: grid; gap: 3px; padding: 10px 12px; border-bottom: 1px solid var(--color-ui-line); font-size: var(--fs-ui-small); }
.ui .mp-row small { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .mp-row--you { border: 1.5px solid var(--color-green); border-radius: 14px; background: color-mix(in srgb, var(--color-chip) 50%, var(--color-ui-card)); }
.ui .stars { color: var(--color-ui-star); }
.ui .stars small { color: var(--color-ui-muted); }
.ui .mp-btns { display: flex; gap: 8px; margin-top: 6px; }
.ui .mp-btns span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--color-ui-line); border-radius: 999px; font-size: var(--fs-ui-caption); }
.ui .mp-btns .mp-call { border-color: var(--color-green); background: var(--color-green); color: var(--color-white); }
.ui .mp-call .ic { width: 15px; height: 15px; }

/* Review */
.ui .rv, .ui .rv-done, .ui .apv-done { display: grid; align-content: start; gap: 16px; padding: 70px 24px 0; background: var(--color-ui-card); }
.ui .rv-head { display: flex; align-items: center; gap: 10px; }
.ui .rv-stars { display: flex; gap: 10px; }
.ui .rv-star { color: var(--color-ui-line); font-size: var(--fs-ui-hero); line-height: 1; transition: color 200ms ease, transform 300ms var(--ease-out); }
.ui .rv-star.is-on { color: var(--color-ui-star); transform: scale(1.12); }
.ui .rv-text { align-content: start; min-height: 110px; padding-top: 12px; }
.ui .rv-score { font-size: var(--fs-ui-large); font-weight: var(--fw-heavy); }
.ui .rv-count { color: var(--color-ui-muted); }

/* AI answer */
.ui .ai { position: absolute; inset: 0; display: grid; align-content: start; gap: 16px; padding: 26px 34px; background: var(--color-ui-card); }
.ui .ai-head { display: flex; align-items: center; gap: 8px; color: var(--color-green); font-size: var(--fs-ui-body); }
.ui .ai-q { justify-self: end; max-width: 70%; min-height: 48px; padding: 12px 16px; border-radius: 20px; background: var(--color-ui-bg); }
.ui .ai-think { display: flex; gap: 6px; }
.ui .ai-think i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-ui-muted); animation: typing 1.2s infinite ease-in-out; }
.ui .ai-think i:nth-child(2) { animation-delay: 0.15s; }
.ui .ai-think i:nth-child(3) { animation-delay: 0.3s; }
.ui .ai-a { max-width: 620px; font-size: var(--fs-ui-title); line-height: 1.5; }
.ui .ai-src { display: flex; gap: 8px; }
.ui .ai-src span { padding: 5px 12px; border: 1px solid var(--color-ui-line); border-radius: 999px; color: var(--color-body); font-size: var(--fs-ui-caption); }

/* Camera and share sheet */
.ui .cam { position: absolute; inset: 0; background: var(--color-ui-dark); }
.ui .cam-view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ui .cam-top { position: absolute; top: 60px; left: 50%; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; background: var(--color-glass); color: var(--color-white); font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.ui .cam-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--color-ui-muted); }
.ui .cam-rec.is-on { background: var(--color-ui-red); animation: blink 1s infinite steps(2); }
@keyframes blink { 50% { opacity: 0.3; } }
.ui .cam-modes { position: absolute; right: 0; bottom: 150px; left: 0; display: flex; justify-content: center; gap: 20px; color: var(--color-white); font-size: var(--fs-ui-caption); }
.ui .cam-modes b { color: var(--color-ui-star); }
.ui .cam-btn { position: absolute; bottom: 52px; left: 50%; width: 76px; height: 76px; border: 4px solid var(--color-white); border-radius: 50%; transform: translateX(-50%); }
.ui .cam-btn::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--color-ui-red); transition: inset 300ms var(--ease-out), border-radius 300ms var(--ease-out); }
.ui .cam-btn.is-on::after { inset: 20px; border-radius: 6px; }
.ui .share-apps { display: flex; gap: 22px; padding: 8px 6px; }
.ui .share-app { display: grid; justify-items: center; gap: 6px; font-size: var(--fs-ui-caption); }
.ui .share-app i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--color-ui-bg); font-style: normal; }
.ui .share-app--ab i { background: var(--color-green); color: var(--color-white); font-weight: var(--fw-heavy); }

/* Video editor */
.ui .ed { position: absolute; inset: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-template-rows: minmax(0, 1fr) 104px; gap: 14px; }
.ui .ed-view { position: relative; overflow: hidden; border-radius: 12px; background: var(--color-ui-dark); }
.ui .ed-img { width: 100%; height: 100%; object-fit: cover; }
.ui .ed-cap { position: absolute; right: 30px; bottom: 26px; left: 30px; color: var(--color-white); font-size: var(--fs-ui-large); font-weight: var(--fw-heavy); line-height: 1.15; text-align: center; text-shadow: 0 2px 12px var(--color-scrim-strong); }
.ui .ed-cap span { opacity: 0; transition: opacity 150ms ease; }
.ui .ed-cap span.is-on { opacity: 1; }
.ui .ed-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--color-pine); color: var(--color-white); font-size: var(--fs-ui-title); }
.ui .ed-end span { color: var(--color-mint); font-size: var(--fs-ui-body); }
.ui .ed-side { display: grid; align-content: start; gap: 10px; font-size: var(--fs-ui-small); }
.ui .ed-time { position: relative; grid-column: 1 / -1; display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--color-ui-bg); }
.ui .ed-track { display: flex; gap: 4px; height: 30px; }
.ui .ed-track i { flex: 1; border-radius: 6px; background: var(--color-green); }
.ui .ed-track--cap i { background: var(--color-ui-blue); }
.ui .ed-head { position: absolute; top: 8px; bottom: 8px; left: 14px; width: 2px; background: var(--color-ui-red); }
.ui .ed-head.is-on { transform: translateX(660px); transition: transform 8s linear; }

/* Approval */
.ui .apv { position: absolute; inset: 54px 0 0; display: grid; align-content: start; gap: 12px; padding: 16px; background: var(--color-ui-bg); }
.ui .apv-top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-ui-title); }
.ui .apv-top small { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .apv-card { overflow: hidden; border-radius: 16px; background: var(--color-ui-card); }
.ui .apv-img { display: block; width: 100%; height: 300px; object-fit: cover; }
.ui .apv-text { padding: 12px 14px 4px; font-size: var(--fs-ui-small); }
.ui .apv-meta { padding: 0 14px 12px; color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .apv-alt { color: var(--color-ui-muted); font-size: var(--fs-ui-small); text-align: center; }
.ui .apv-done { justify-items: center; padding-top: 220px; text-align: center; }

/* One video, every channel */
.ui .ch { position: absolute; inset: 0; padding: 26px 24px; }
.ui .ch-hub { display: grid; justify-items: center; gap: 8px; width: 280px; margin: 0 auto 26px; font-size: var(--fs-ui-small); }
.ui .ch-img { width: 100%; height: 170px; border-radius: 12px; object-fit: cover; }
.ui .ch-card { position: relative; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--color-ui-line); border-radius: 12px; background: var(--color-ui-card); font-size: var(--fs-ui-small); }
.ui .ch-card small { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .ch-card .tag-ok { justify-self: start; }
.ui .ch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: start; gap: 10px; }
.ui .ch-hub, .ui .ch-total { grid-column: 1 / -1; }
.ui .ch-total { margin-top: 18px; color: var(--color-ui-muted); font-size: var(--fs-ui-body); text-align: center; }
.ui .ch-total b { color: var(--color-green); font-size: var(--fs-ui-large); }

/* Phone website */
.ui .br-bar { position: absolute; top: 54px; right: 0; left: 0; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 6px; height: 44px; background: var(--color-ui-bg); font-size: var(--fs-ui-caption); }
.ui .br-bar .ic { width: 14px; height: 14px; }
.ui .site { position: absolute; top: 98px; right: 0; bottom: 0; left: 0; display: grid; align-content: start; gap: 14px; padding-bottom: 20px; background: var(--color-ui-card); }
.ui .site-view { position: absolute; top: 98px; right: 0; bottom: 0; left: 0; overflow: hidden; background: var(--color-ui-card); }
.ui .site--long { position: relative; top: 0; transition: transform 1200ms var(--ease-out); }
.ui .site--long[data-state="s1"] { transform: translateY(-250px); }
.ui .site--long[data-state="s2"] { transform: translateY(-470px); }
.ui .site-hero { position: relative; height: 300px; }
.ui .site-img { width: 100%; height: 100%; object-fit: cover; }
.ui .site-hero::after { content: ""; position: absolute; inset: 0; background: var(--gradient-scrim-up); }
.ui .site-hero p { position: absolute; right: 18px; bottom: 18px; left: 18px; z-index: 1; color: var(--color-white); font-size: var(--fs-ui-large); font-weight: var(--fw-heavy); line-height: 1.1; }
.ui .site-btn, .ui .site-sticky { display: grid; place-items: center; min-height: 54px; margin: 0 16px; border-radius: 14px; background: var(--color-green); color: var(--color-white); font-weight: var(--fw-semibold); }
.ui .site-sticky { position: absolute; right: 0; bottom: 30px; left: 0; z-index: 5; box-shadow: 0 14px 30px -12px var(--color-ui-shadow); }
.ui .site-trust { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); text-align: center; }
.ui .site-cards { display: grid; gap: 8px; padding: 0 16px; }
.ui .site-cards p { display: grid; padding: 12px 14px; border: 1px solid var(--color-ui-line); border-radius: 12px; font-size: var(--fs-ui-small); }
.ui .site-cards span { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .site-quote { display: grid; gap: 4px; margin: 0 16px; padding: 14px; border-radius: 12px; background: var(--color-ui-bg); font-size: var(--fs-ui-small); }
.ui .site-quote small { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .speed { position: absolute; right: 18px; bottom: 110px; z-index: 5; display: grid; justify-items: center; width: 128px; padding: 14px; border-radius: 18px; background: var(--color-ui-card); box-shadow: 0 18px 40px -14px var(--color-ui-shadow); }
.ui .speed svg { width: 70px; height: 70px; transform: rotate(-90deg); }
.ui .speed-bg, .ui .speed-fg { fill: none; stroke-width: 4; }
.ui .speed-bg { stroke: var(--color-ui-line); }
.ui .speed-fg { stroke: var(--color-green); stroke-dasharray: 100.5; stroke-dashoffset: 100.5; stroke-linecap: round; }
.ui .speed-fg.is-on { stroke-dashoffset: 2; transition: stroke-dashoffset 1600ms var(--ease-out); }
.ui .speed b { margin-top: -50px; margin-bottom: 26px; font-size: var(--fs-ui-title); font-weight: var(--fw-heavy); }
.ui .speed small { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }

/* Where the new taps land on a 393 x 852 screen. */
.tap--o1 { top: 226px; left: 196px; }
.tap--o2 { top: 296px; left: 196px; }
.tap--o3 { top: 366px; left: 196px; }
.tap--ad { top: 667px; left: 196px; }
.tap--lock { top: 336px; left: 196px; }
.tap--call { top: 318px; left: 64px; }
.tap--mpcall { top: 532px; left: 62px; }
.tap--review { top: 745px; left: 140px; }
.tap--post { top: 390px; left: 196px; }
.tap--rec { top: 764px; left: 196px; }
.tap--share { top: 642px; left: 54px; }
.tap--approve { top: 600px; left: 196px; }
.tap--sticky { top: 794px; left: 196px; }

@media (min-width: 52rem) {
  .stage { height: 40rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ui .feed, .ui .lock, .ui .cursor, .ui .map-radius, .ui .map-pin, .ui .mp-pin, .ui .site--long, .ui .ed-head, .ui .vid-bar i { transition: none; }
}
.ui .post-art { display: grid; place-items: center; padding: 40px; background: radial-gradient(70% 70% at 30% 20%, var(--color-ui-ring-1), transparent 70%), linear-gradient(135deg, var(--color-ui-ring-2), var(--color-ui-ring-3)); color: var(--color-white); font-size: var(--fs-ui-hero); font-weight: var(--fw-heavy); letter-spacing: -0.02em; line-height: 1.05; text-align: center; }

/* A scene never widens its row on a phone (the 760 px screen inside is scaled, not laid out). */
.feature-scene {
  min-width: 0;
}

@media (max-width: 51.9375rem) {
  .feature-flow--scenes .feature-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ui .q { transition: opacity 250ms ease, transform 500ms var(--ease-out); }
.ui .q[data-state="now"] { transition-delay: 220ms; }
.ui .ai { align-content: center; }

/* Content, repositioned (Lucas, 2026-11-20): to-do list, sources, a converting profile, script to clip. */
.ui .todo { display: grid; align-content: start; gap: 10px; }
.ui .todo-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-ui-line); border-radius: 12px; font-size: var(--fs-ui-body); transition: background-color 400ms ease, border-color 400ms ease; }
.ui .todo-box { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--color-ui-line); border-radius: 8px; color: var(--color-white); transition: background-color 300ms ease, border-color 300ms ease; }
.ui .todo-box .icon { width: 16px; height: 16px; opacity: 0; transform: scale(0.5); transition: opacity 250ms ease, transform 400ms var(--ease-out); }
.ui .todo-row em { color: var(--color-green-pressed); font-size: var(--fs-ui-caption); font-style: normal; font-weight: var(--fw-semibold); opacity: 0; transform: translateX(-8px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
.ui .todo-row.is-on { border-color: var(--color-chip); background: color-mix(in srgb, var(--color-chip) 45%, var(--color-ui-card)); }
.ui .todo-row.is-on span:nth-child(2) { color: var(--color-ui-muted); text-decoration: line-through; }
.ui .todo-row.is-on .todo-box { border-color: var(--color-green); background: var(--color-green); }
.ui .todo-row.is-on .todo-box .icon, .ui .todo-row.is-on em { opacity: 1; transform: none; }

.ui .src { display: grid; align-content: start; gap: 14px; }
.ui .src-cards { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.ui .src-card { display: grid; align-content: start; gap: 4px; padding: 16px; border: 1px solid var(--color-ui-line); border-radius: 14px; font-size: var(--fs-ui-small); }
.ui .src-card b { font-size: var(--fs-ui-body); }
.ui .src-card span { color: var(--color-ui-muted); font-size: var(--fs-ui-caption); }
.ui .src-card--main { border: 2px solid var(--color-green); background: color-mix(in srgb, var(--color-chip) 40%, var(--color-ui-card)); }
.ui .src-card--quiet.is-on { opacity: 0.75; }
.ui .src-tag { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--color-green-pressed); font-size: var(--fs-ui-caption); font-weight: var(--fw-semibold); }
.ui .src-tag .ic { width: 16px; height: 16px; }
.ui .src-gen { display: block; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: var(--color-ui-line); }
.ui .src-gen i { display: block; height: 100%; background: var(--color-green); transform: scaleX(0); transform-origin: 0 50%; }
.ui .src-gen i.is-on { transform: scaleX(1); transition: transform 2200ms var(--ease-out); }
.ui .src-head { font-size: var(--fs-ui-small); font-weight: var(--fw-semibold); }
.ui .src-queue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ui .src-post { position: relative; overflow: hidden; border-radius: 12px; }
.ui .src-post img { display: block; width: 100%; height: 190px; object-fit: cover; }
.ui .src-post span { position: absolute; bottom: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--color-glass); color: var(--color-white); font-size: var(--fs-ui-caption); }

.ui .prof { position: absolute; inset: 54px 0 0; display: grid; align-content: start; gap: 12px; padding: 14px 16px; background: var(--color-ui-card); }
.ui .prof-top { display: flex; align-items: center; gap: 22px; }
.ui .prof-av { width: 86px; height: 86px; }
.ui .prof-av .app-icon { font-size: var(--fs-ui-title); }
.ui .prof-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; font-size: var(--fs-ui-caption); }
.ui .prof-stats span { display: grid; }
.ui .prof-stats b { font-size: var(--fs-ui-body); }
.ui .prof-bio { display: grid; gap: 2px; font-size: var(--fs-ui-small); }
.ui .prof-bio span { color: var(--color-body); }
.ui .prof-btn { display: grid; place-items: center; min-height: 44px; border-radius: 10px; background: var(--color-green); color: var(--color-white); font-size: var(--fs-ui-small); font-weight: var(--fw-semibold); }
.ui .prof-hl { display: flex; gap: 14px; }
.ui .prof-hl span { display: grid; justify-items: center; gap: 4px; width: 70px; font-size: var(--fs-ui-caption); text-align: center; }
.ui .prof-hl i { width: 60px; height: 60px; border: 2px solid var(--color-ui-line); border-radius: 50%; background: var(--color-chip); }
.ui .prof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0 -16px; }
.ui .prof-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.ui .tele { position: absolute; inset: 0; display: grid; align-content: start; justify-items: center; gap: 18px; padding-top: 80px; background: var(--color-ui-dark); color: var(--color-white); }
.ui .tele-tag, .ui .clip-tag { padding: 4px 12px; border-radius: 999px; background: var(--color-glass); color: var(--color-mint); font-size: var(--fs-ui-caption); font-weight: var(--fw-semibold); }
.ui .tele-view { height: 420px; overflow: hidden; padding: 0 28px; mask-image: linear-gradient(180deg, transparent, var(--color-ink) 18%, var(--color-ink) 82%, transparent); }
.ui .tele-text { display: grid; gap: 22px; padding-top: 140px; font-size: var(--fs-ui-large); font-weight: var(--fw-semibold); line-height: 1.2; text-align: center; transition: transform 1100ms var(--ease-out); }
.ui .tele-text[data-state="a"] { transform: translateY(-110px); }
.ui .tele-text[data-state="b"] { transform: translateY(-230px); }
.ui .tele-text[data-state="c"] { transform: translateY(-350px); }
.ui .tele-rec { position: absolute; bottom: 70px; left: 50%; width: 70px; height: 70px; border: 4px solid var(--color-white); border-radius: 50%; transform: translateX(-50%); }
.ui .tele-rec::after { content: ""; position: absolute; inset: 18px; border-radius: 6px; background: var(--color-ui-red); }
.ui .clip { background: var(--color-ui-dark); }
.ui .clip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ui .clip-tag { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); }
.ui .clip-cap { bottom: 140px; }

.tap--profbtn { top: 280px; left: 196px; }

/* The five lead checks sit in one row on a desktop, so no slot is left empty (Lucas, 2026-11-20). */
@media (min-width: 64rem) {
  .point-list--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-8) var(--space-6);
  }
}

/* ---------- Cards: one hover language (finishing audit, 2026-11-20) ----------
   Every photo card lifts a little, its shadow deepens, the photo eases in and the arrow slides. */
.tile,
.service-card {
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.tile:hover,
.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.tile .tile-label .icon {
  transition: transform var(--duration) var(--ease-out), opacity var(--duration-fast) ease;
}

.tile:hover .tile-label .icon {
  opacity: 1;
  transform: translateX(4px);
}

.service-card-media img {
  transition: scale 900ms var(--ease-out);
}

/* Programs: the job links read as links, not as tags. */
.service-card-subs a {
  text-decoration: underline;
  text-decoration-color: var(--color-line-strong);
  text-underline-offset: 0.25em;
}

/* Five cards in one row on a desktop (the Services hub), three then two on a tablet. */
@media (min-width: 48rem) {
  .tile-grid--five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tile-grid--five > li {
    grid-column: span 2;
  }

  .tile-grid--five > li:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 64rem) {
  .tile-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tile-grid--five > li,
  .tile-grid--five > li:nth-child(4) {
    grid-column: auto;
  }

  .tile-grid--five .tile-media {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover,
  .service-card:hover {
    transform: none;
  }
}

/* Card names line up across a row: every caption keeps room for three lines. */
.tile-grid--five .tile-line,
.tile-grid--menu .tile-line {
  min-height: 4.2em;
}

/* Menu panels: the cards and columns rise in one after another as a panel opens (finishing audit, 2026-11-20). */
@media (prefers-reduced-motion: no-preference) {
  .nav-item.is-open .nav-panel .tile-grid > li,
  .nav-item.is-open .nav-panel .mega-col {
    animation: panel-rise 520ms var(--ease-out) both;
  }

  .nav-item.is-open .nav-panel .tile-grid > li:nth-child(2),
  .nav-item.is-open .nav-panel .mega-col:nth-child(2) { animation-delay: 40ms; }

  .nav-item.is-open .nav-panel .tile-grid > li:nth-child(3),
  .nav-item.is-open .nav-panel .mega-col:nth-child(3) { animation-delay: 80ms; }

  .nav-item.is-open .nav-panel .tile-grid > li:nth-child(4),
  .nav-item.is-open .nav-panel .mega-col:nth-child(4) { animation-delay: 120ms; }

  .nav-item.is-open .nav-panel .tile-grid > li:nth-child(5) { animation-delay: 160ms; }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Footer, rebalanced (finishing audit, 2026-11-20): the brand with its two actions, three even
   columns, and the legal links in the base line. It stays black (Lucas: black caps the page off). */
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}

.footer-login,
.footer-legal a {
  color: var(--color-on-pine-body);
  transition: color var(--duration-fast) ease;
}

.footer-login:hover,
.footer-legal a:hover {
  color: var(--color-on-pine);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

@media (min-width: 64rem) {
  .footer-top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .footer-nav--full {
    justify-self: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
  }
}

/* FAQ: the closed icon keeps its circle on a grey section too (finishing audit, 2026-11-20). */
.surface-soft .accordion-icon {
  background: var(--color-white);
}

/* Video popup: the close control sits inside the frame's corner, on glass. */
.theater-close {
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-glass);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}

/* Stat row on a dark ground (the Results hero), and a three-up variant. */
.on-pine .stat {
  border-top-color: var(--color-line-on-pine);
}

.on-pine .stat-value {
  color: var(--color-mint);
}

.on-pine .stat-label {
  color: var(--color-on-pine-muted);
}

@media (min-width: 64rem) {
  .stat-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 48rem;
  }
}

/* ---------- Component library page (components.html, scripts/library.py) ---------- */
.lib-label {
  position: relative;
  z-index: 2;
  padding-block: var(--space-3);
  border-block: 1px solid var(--color-line);
  background: var(--color-chip);
  color: var(--color-pine);
  font-size: var(--fs-small);
}

.lib-label p {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.lib-label span {
  color: var(--color-green-pressed);
  font-variant-numeric: tabular-nums;
}

/* ---------- Legal pages (Lucas, 2026-11-20: "pine band, then text") ----------
   Privacy and Terms: a short pine band (the hero shell, no photo, no button) with crumbs, the title and
   the date, then the Legal text part: the section list sticks on the left, the text reads on the right. */

.hero--band {
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--color-pine);
  color: var(--color-on-pine);
}

.hero--band .hero-head {
  display: grid;
  gap: var(--space-4);
}

.hero--band .hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-h1);
}

.hero-meta {
  color: var(--color-on-pine-muted);
  font-size: var(--fs-small);
}

.legal-index {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.legal-index ol {
  display: grid;
  gap: var(--space-3);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.legal-index a {
  color: var(--color-body);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--duration-fast) ease;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  text-decoration-color: currentColor;
}

.legal {
  display: grid;
  gap: var(--space-10);
  max-width: 42rem;
}

.legal-part {
  display: grid;
  gap: var(--space-3);
  scroll-margin-top: calc(var(--header-h) + var(--space-8));
}

.legal-part h2 {
  color: var(--color-ink);
  font-size: var(--fs-h3);
  font-weight: var(--fw-heavy);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-h3);
}

.legal-part p {
  color: var(--color-body);
  line-height: var(--lh-body);
}

.legal-part a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-note {
  color: var(--text-muted);
  font-size: var(--fs-small);
}
