/* ==========================================================================
   InforceLeads floating product cards, v2
   Owner feedback 10/13/2026. v1 is at archive/floating-cards-v1.css.
   --------------------------------------------------------------------------
   What changed from v1:
   - Nothing floats inside an image. Products are transparent cut-outs that
     stand on the room floor. Their bottom edge sits on the ground line and a
     soft elliptical contact shadow is drawn under them in CSS.
   - The room is a smooth studio: a wall gradient, then a floor plane from
     about 66 percent height. No reflection band, no light pool, no image
     masks, no brightness or contrast filters, no blend modes.
   - The card may still float (.il-float) and tilt (.il-tilt, 4 degrees by
     default). The image inside never moves relative to the card.
   - Every gradient uses several stops and gentle alpha steps, so there is
     no hard edge and no visible banding.

   Load after tokens/tokens.css. Every value is a --il-* token.

   Two deliberate exceptions to the v1.3 component spec, asked for by the
   owner and limited to this family:
   1. Motion: .il-float loops (slow idle levitation of the whole card) and
      .il-tilt moves the card on hover. Both turn off under
      prefers-reduced-motion, and tilt never runs on touch.
   2. Shadow: a floating card carries one soft drop shadow. It lives in
      --il-float-shadow-rest and --il-float-shadow-high, only on .il-float.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens. Dark (default) on :root, light under data-theme="light",
   repeated in the system preference fallback like tokens.css does.
   -------------------------------------------------------------------------- */
:root {
  /* Room: a smooth charcoal studio in dark mode */
  --il-room-center: #262a31;                      /* wall, brightest */
  --il-room-edge: #0e1014;                        /* wall, corners */
  --il-room-horizon: 66%;                         /* floor plane starts here */
  --il-room-horizon-section: 74%;                 /* full-bleed section rooms */
  --il-room-ground: 84%;                          /* contact line where cut-outs stand */
  --il-room-floor-lift: rgba(255, 255, 255, 0.045); /* floor catches a little light where products stand */
  --il-room-floor-near: rgba(0, 0, 0, 0.24);      /* floor darkens toward you */
  --il-room-shadow: 0 0 0;                        /* contact shadow color, as r g b */
  --il-room-shadow-strength: 1;                   /* scales every shadow alpha */

  /* Float: idle levitation and hover tilt, for the card only */
  --il-float-distance: -8px;
  --il-float-duration: 7s;
  --il-float-shadow-rest: 0 14px 28px -14px rgba(0, 0, 0, 0.70);
  --il-float-shadow-high: 0 30px 48px -20px rgba(0, 0, 0, 0.50);
  --il-float-tilt-max: 4deg;
  --il-float-tilt-subtle: 4deg;
  --il-float-tilt-lively: 8deg;
  --il-float-perspective: 1000px;
  --il-float-floor-gap: 56px;
  --il-float-hover-scale: 1.02;

  /* Type sizes this family needs that v1.3 did not have */
  --il-float-title-size: 28px;
  --il-float-number-size: 64px;
  --il-float-weight-heavy: 800;
}

:root[data-theme="light"] {
  --il-room-center: #f2f3f5;
  --il-room-edge: #c4c7cc;
  --il-room-floor-lift: rgba(255, 255, 255, 0.45);
  --il-room-floor-near: rgba(17, 18, 20, 0.07);
  --il-room-shadow: 28 31 36;
  --il-room-shadow-strength: 0.9;
  --il-float-shadow-rest: 0 14px 28px -14px rgba(17, 18, 20, 0.26);
  --il-float-shadow-high: 0 30px 48px -20px rgba(17, 18, 20, 0.15);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --il-room-center: #f2f3f5;
    --il-room-edge: #c4c7cc;
    --il-room-floor-lift: rgba(255, 255, 255, 0.45);
    --il-room-floor-near: rgba(17, 18, 20, 0.07);
    --il-room-shadow: 28 31 36;
    --il-room-shadow-strength: 0.9;
    --il-float-shadow-rest: 0 14px 28px -14px rgba(17, 18, 20, 0.26);
    --il-float-shadow-high: 0 30px 48px -20px rgba(17, 18, 20, 0.15);
  }
}

/* --------------------------------------------------------------------------
   0. Mode images. Two stacked cut-outs per room: silver for light mode,
   charcoal for dark mode. Pure CSS, so there is no flash on load.
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .il-cut--dark { display: none; }
:root[data-theme="dark"] .il-cut--light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .il-cut--dark { display: none; } }
@media not (prefers-color-scheme: light) { :root:not([data-theme]) .il-cut--light { display: none; } }

/* --------------------------------------------------------------------------
   1. Room: a smooth studio
   Two layers over the wall:
   a. floor: from the horizon down, a faint lift near the wall that eases
      into a slightly darker floor toward the viewer
   b. wall: a wide radial from the bright center to the corners
   Intermediate stops are mixed in oklab so each step is small.
   -------------------------------------------------------------------------- */
.il-room {
  --h: var(--il-room-horizon);
  --g: var(--il-room-ground);
  --il-room-mid-1: color-mix(in oklab, var(--il-room-center) 80%, var(--il-room-edge));
  --il-room-mid-2: color-mix(in oklab, var(--il-room-center) 55%, var(--il-room-edge));
  --il-room-mid-3: color-mix(in oklab, var(--il-room-center) 30%, var(--il-room-edge));
  --il-room-mid-4: color-mix(in oklab, var(--il-room-center) 12%, var(--il-room-edge));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--il-radius-none);
  background-color: var(--il-room-edge);
  background-image:
    linear-gradient(to bottom,
      transparent 0%,
      transparent calc(var(--h) - 12%),
      color-mix(in srgb, var(--il-room-floor-lift) 25%, transparent) calc(var(--h) - 6%),
      color-mix(in srgb, var(--il-room-floor-lift) 70%, transparent) calc(var(--h) + 1%),
      var(--il-room-floor-lift) calc(var(--h) + 8%),
      color-mix(in srgb, var(--il-room-floor-lift) 70%, transparent) calc(var(--h) + 16%),
      color-mix(in srgb, var(--il-room-floor-lift) 25%, transparent) calc(var(--h) + 24%),
      transparent calc(var(--h) + 32%)),
    linear-gradient(to bottom,
      transparent 0%,
      transparent var(--h),
      color-mix(in srgb, var(--il-room-floor-near) 18%, transparent) calc(var(--h) + (100% - var(--h)) * 0.35),
      color-mix(in srgb, var(--il-room-floor-near) 50%, transparent) calc(var(--h) + (100% - var(--h)) * 0.65),
      color-mix(in srgb, var(--il-room-floor-near) 80%, transparent) calc(var(--h) + (100% - var(--h)) * 0.88),
      var(--il-room-floor-near) 100%),
    radial-gradient(ellipse 95% 90% at 50% 38%,
      var(--il-room-center) 0%,
      var(--il-room-mid-1) 22%,
      var(--il-room-mid-2) 45%,
      var(--il-room-mid-3) 68%,
      var(--il-room-mid-4) 86%,
      var(--il-room-edge) 100%);
}

/* A room that holds a cut-out measures itself, so the cut-out can size to
   it with container units. Card media, lead figures and scene tiles get
   this automatically; add .il-room--stage to any other room with a
   cut-out. It needs a size of its own (aspect-ratio or height). */
.il-room--stage,
.il-product-card__media,
.il-pack-card__media,
.il-lead-card__figure,
.il-scene__room { container-type: size; }

/* --------------------------------------------------------------------------
   2. Cut-out: a transparent product render standing on the floor
   Markup: <span class="il-cut" style="--fill:.9;--hfill:.47;--pad:23.4;--cx:.1">
             <img src srcset width height alt></span>
   --fill, --hfill: share of the image width and height the subject fills
   --pad: empty space under the subject, percent of the image height
   --cx: subject center minus image center, percent of the image width
   The room sets the target size: --cut-w (percent of room width) and
   --cut-h (percent of room height). The smaller fit wins.
   -------------------------------------------------------------------------- */
.il-cut {
  --fill: 1;
  --hfill: 1;
  --pad: 0;
  --cx: 0;
  position: absolute;
  left: 50%;
  bottom: calc(100% - var(--g));
  z-index: 1;
  width: min(
    calc(var(--cut-w, 80) * 1cqw / var(--fill)),
    calc(var(--cut-h, 64) * 1cqh / var(--hfill) * 1.7918)
  );
  aspect-ratio: 1600 / 893;
  translate: calc(-50% - var(--cx) * 1%) calc(var(--pad) * 1%);
  isolation: isolate;
  pointer-events: none;
}
.il-cut img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

/* Contact shadow: a wide, very soft ellipse with a tighter core right at
   the feet. Many stops, alpha never above 0.35, so it has no ring. */
.il-cut::before {
  --a: var(--il-room-shadow-strength);
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(50% + var(--cx) * 1%);
  bottom: calc(var(--pad) * 1%);
  width: calc(var(--fill) * 100% * var(--shadow-spread, 1.12));
  aspect-ratio: var(--shadow-ratio, 8);
  translate: -50% 52%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side,
      rgb(var(--il-room-shadow) / calc(0.22 * var(--a))) 0%,
      rgb(var(--il-room-shadow) / calc(0.17 * var(--a))) 30%,
      rgb(var(--il-room-shadow) / calc(0.08 * var(--a))) 60%,
      rgb(var(--il-room-shadow) / calc(0.02 * var(--a))) 85%,
      rgb(var(--il-room-shadow) / 0) 100%),
    radial-gradient(closest-side,
      rgb(var(--il-room-shadow) / calc(0.32 * var(--a))) 0%,
      rgb(var(--il-room-shadow) / calc(0.24 * var(--a))) 18%,
      rgb(var(--il-room-shadow) / calc(0.13 * var(--a))) 38%,
      rgb(var(--il-room-shadow) / calc(0.05 * var(--a))) 58%,
      rgb(var(--il-room-shadow) / calc(0.01 * var(--a))) 74%,
      rgb(var(--il-room-shadow) / 0) 88%);
  background-size: 100% 100%, 86% 46%;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* Full-bleed room section, a row of cards floats inside it */
.il-room--section {
  --h: var(--il-room-horizon-section);
  padding-block: var(--il-section-gap) var(--il-space-32);
}
.il-room--section > * { position: relative; z-index: 1; }

/* A floating card in a section room casts a soft shadow on the floor.
   It stays put while the card rises, so it counters the float. */
.il-room--section .il-float::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: calc(var(--il-float-floor-gap) * -1);
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgb(var(--il-room-shadow) / calc(0.30 * var(--il-room-shadow-strength))) 0%,
    rgb(var(--il-room-shadow) / calc(0.22 * var(--il-room-shadow-strength))) 30%,
    rgb(var(--il-room-shadow) / calc(0.10 * var(--il-room-shadow-strength))) 60%,
    rgb(var(--il-room-shadow) / calc(0.03 * var(--il-room-shadow-strength))) 84%,
    rgb(var(--il-room-shadow) / 0) 100%);
  z-index: -1;
  pointer-events: none;
  animation: inherit;
  animation-name: il-floor-shadow;
}
@keyframes il-floor-shadow {
  0%, 100% { translate: 0 0; scale: 1; opacity: 1; }
  50%      { translate: 0 calc(var(--il-float-distance) * -1); scale: 0.9; opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   3. Float: idle levitation of the whole card, the one card shadow
   Uses the translate property so it never fights the tilt transform.
   -------------------------------------------------------------------------- */
.il-float {
  animation: il-float var(--il-float-duration) var(--il-ease-in-out) infinite;
  box-shadow: var(--il-float-shadow-rest);
}
.il-float:nth-child(4n + 2) { animation-delay: -2.2s; animation-duration: calc(var(--il-float-duration) + 0.6s); }
.il-float:nth-child(4n + 3) { animation-delay: -4.1s; animation-duration: calc(var(--il-float-duration) - 0.6s); }
.il-float:nth-child(4n + 4) { animation-delay: -5.6s; animation-duration: calc(var(--il-float-duration) + 1s); }

@keyframes il-float {
  0%, 100% { translate: 0 0;                         box-shadow: var(--il-float-shadow-rest); }
  50%      { translate: 0 var(--il-float-distance);  box-shadow: var(--il-float-shadow-high); }
}

/* --------------------------------------------------------------------------
   4. Tilt: floating-cards.js writes --tilt-x and --tilt-y as fractions
   from -1 to 1. CSS turns them into degrees, so strength is a token.
   -------------------------------------------------------------------------- */
.il-tilt {
  --tilt-x: 0;
  --tilt-y: 0;
  --tilt-scale: 1;
  transform:
    perspective(var(--il-float-perspective))
    rotateX(calc(var(--tilt-y) * var(--il-float-tilt-max) * -1))
    rotateY(calc(var(--tilt-x) * var(--il-float-tilt-max)))
    scale(var(--tilt-scale));
  transition: transform var(--il-duration-slow) var(--il-ease-out);
  will-change: transform;
}
.il-tilt--subtle { --il-float-tilt-max: var(--il-float-tilt-subtle); }
.il-tilt--lively { --il-float-tilt-max: var(--il-float-tilt-lively); }

@media (hover: hover) and (pointer: fine) {
  .il-tilt:hover { --tilt-scale: var(--il-float-hover-scale); }
}

/* --------------------------------------------------------------------------
   Shared bits: link row with chevrons, chips, buttons
   -------------------------------------------------------------------------- */
.il-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: var(--il-weight-medium);
  color: var(--il-color-text);
}
.il-link-arrow svg { width: 14px; height: 14px; transition: translate var(--il-duration-fast) var(--il-ease-out); }
.il-link-arrow:hover { color: var(--il-color-blue-text); text-decoration: underline; text-decoration-thickness: 1px; }
.il-link-arrow:hover svg { translate: 3px 0; }

.il-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--il-space-2);
  height: 26px;
  padding: 0 var(--il-space-2);
  border-radius: var(--il-radius-sm);
  font-family: var(--il-font-mono);
  font-size: var(--il-size-eyebrow-lg);
  letter-spacing: var(--il-tracking-eyebrow);
  text-transform: uppercase;
  font-weight: var(--il-weight-medium);
  white-space: nowrap;
}
.il-chip--blue { background: var(--il-color-blue-tint); color: var(--il-color-blue-text); }
.il-chip--quiet { background: var(--il-color-surface-3); color: var(--il-color-text-2); }
.il-chip--neutral { background: var(--il-color-surface-3); color: var(--il-color-text); } /* save chips: the images already carry the orange */

.il-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--il-space-2);
  min-height: 44px;
  padding: var(--il-space-3) 20px;
  border-radius: var(--il-radius-sm);
  border: 1px solid transparent;
  font: var(--il-weight-semibold) 15px/1 var(--il-font-body);
  cursor: pointer;
  transition: background-color var(--il-duration-fast) var(--il-ease-standard), color var(--il-duration-fast) var(--il-ease-standard), border-color var(--il-duration-fast) var(--il-ease-standard);
}
.il-btn--primary { background: var(--il-color-primary); color: var(--il-color-on-primary); }
.il-btn--primary:hover { background: var(--il-color-blue-hover); color: var(--il-color-on-blue); text-decoration: none; }
.il-btn--primary:active { background: var(--il-color-primary-active); color: var(--il-color-on-primary); }
.il-btn--ghost { background: transparent; color: var(--il-color-text); border-color: var(--il-color-border-strong); }
.il-btn--ghost:hover { background: var(--il-color-surface-3); border-color: var(--il-color-text-3); text-decoration: none; }
.il-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Product card: DJI tile at a larger scale
   Text block on top, the room fills the bottom edge to edge.
   -------------------------------------------------------------------------- */
.il-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--il-color-surface-1);
  border-radius: var(--il-radius-md);
  padding: var(--il-space-8) var(--il-space-8) 0;
  text-align: center;
}
.il-product-card__eyebrow { margin-bottom: var(--il-space-3); }
.il-product-card__title {
  font-size: var(--il-float-title-size);
  line-height: var(--il-leading-h3);
  letter-spacing: var(--il-tracking-h2);
  font-weight: var(--il-weight-semibold);
}
.il-product-card__desc {
  margin: var(--il-space-2) 0 0;
  color: var(--il-color-text-2);
  font-size: var(--il-size-body);
}
.il-product-card__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--il-space-2) var(--il-space-6);
  margin-top: var(--il-space-4);
}
.il-product-card__media {
  --cut-w: 82;
  --cut-h: 62;
  aspect-ratio: 4 / 3;
  margin: var(--il-space-6) calc(var(--il-space-8) * -1) 0;
  border-radius: 0 0 var(--il-radius-md) var(--il-radius-md);
}
.il-product-card--wide .il-product-card__media { aspect-ratio: 21 / 9; --cut-w: 80; --cut-h: 62; }

/* --------------------------------------------------------------------------
   6. Pack card: pricing packs
   -------------------------------------------------------------------------- */
.il-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--il-color-surface-1);
  border-radius: var(--il-radius-md);
  padding: 0 var(--il-space-8) var(--il-space-8);
}
.il-pack-card__media {
  --cut-w: 84;
  --cut-h: 64;
  aspect-ratio: 16 / 10;
  margin: 0 calc(var(--il-space-8) * -1) var(--il-space-6);
  border-radius: var(--il-radius-md) var(--il-radius-md) 0 0;
}
.il-pack-card__number {
  font-family: var(--il-font-display);
  font-weight: var(--il-float-weight-heavy);
  font-size: var(--il-float-number-size);
  line-height: 1;
  letter-spacing: var(--il-tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--il-color-text);
}
.il-pack-card__label { margin-top: var(--il-space-2); color: var(--il-color-text-2); }
.il-pack-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--il-space-2) var(--il-space-3);
  margin-top: var(--il-space-6);
  padding-top: var(--il-space-6);
  border-top: 1px solid var(--il-color-border);
}
.il-pack-card__amount {
  font-family: var(--il-font-display);
  font-size: var(--il-size-h2);
  font-weight: var(--il-weight-semibold);
  letter-spacing: var(--il-tracking-h2);
  font-variant-numeric: tabular-nums;
}
.il-pack-card__unit { font-family: var(--il-font-mono); font-size: var(--il-size-body-sm); color: var(--il-color-text-3); }
.il-pack-card__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--il-space-2);
  margin: var(--il-space-4) 0 var(--il-space-6);
  min-height: 34px;
}
.il-pack-card .il-btn { margin-top: auto; }
.il-pack-card--featured {
  outline: 2px solid var(--il-color-text);
  outline-offset: -2px;
}
.il-pack-card--featured > .il-pack-card__media { margin-top: 2px; margin-inline: calc(var(--il-space-8) * -1 + 2px); }

/* Promo code chip: dashed outline, mono, copy button */
.il-code-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border: 1px dashed color-mix(in srgb, var(--il-color-text-3) 75%, transparent);
  border-radius: var(--il-radius-sm);
  font-family: var(--il-font-mono);
  font-size: var(--il-size-body-sm);
  letter-spacing: var(--il-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--il-color-text);
}
.il-code-chip__code { padding: 0 var(--il-space-2) 0 var(--il-space-3); }
.il-code-chip__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 var(--il-space-3);
  border: 0;
  border-left: 1px dashed color-mix(in srgb, var(--il-color-text-3) 75%, transparent);
  border-radius: 0 var(--il-radius-sm) var(--il-radius-sm) 0;
  background: transparent;
  color: var(--il-color-text-2);
  font: inherit;
  font-size: var(--il-size-eyebrow-lg);
  cursor: pointer;
  transition: background-color var(--il-duration-fast) var(--il-ease-standard), color var(--il-duration-fast) var(--il-ease-standard);
}
.il-code-chip__copy:hover { background: var(--il-color-surface-3); color: var(--il-color-text); }
.il-code-chip__copy svg { width: 14px; height: 14px; }
.il-code-chip__copy[data-copied] { color: var(--il-color-text); }

/* --------------------------------------------------------------------------
   7. Promo code field
   -------------------------------------------------------------------------- */
.il-code-field { max-width: 420px; }
.il-code-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--il-size-body-sm);
  font-weight: var(--il-weight-medium);
  color: var(--il-color-text-2);
}
.il-code-field__row { display: flex; gap: var(--il-space-2); }
.il-code-field__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: var(--il-space-3) 14px;
  background: var(--il-color-surface-input);
  border: 1px solid var(--il-color-border-input);
  border-radius: var(--il-radius-sm);
  color: var(--il-color-text);
  font-family: var(--il-font-mono);
  font-size: var(--il-size-body);
  letter-spacing: var(--il-tracking-eyebrow);
  text-transform: uppercase;
}
.il-code-field__input::placeholder { color: var(--il-color-text-3); text-transform: none; letter-spacing: 0; font-family: var(--il-font-body); }
.il-code-field__input:hover { border-color: var(--il-color-border-strong); }
.il-code-field__input:focus-visible {
  outline: none;
  border-color: var(--il-color-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--il-color-focus) 20%, transparent);
}
.il-code-field[data-state="error"] .il-code-field__input { border-color: var(--il-color-danger); }
.il-code-field__applied { display: none; align-items: center; gap: var(--il-space-3); flex-wrap: wrap; }
.il-code-field__applied .il-chip { height: 34px; padding-right: 0; }
.il-code-field__remove {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--il-color-text-2);
  cursor: pointer;
  border-radius: 0 var(--il-radius-sm) var(--il-radius-sm) 0;
}
.il-code-field__remove:hover { color: var(--il-color-text); background: var(--il-color-surface-3); }
.il-code-field__remove svg { width: 14px; height: 14px; }
.il-code-field__msg { min-height: 22px; margin: var(--il-space-2) 0 0; font-size: var(--il-size-body-sm); color: var(--il-color-text-3); }
.il-code-field[data-state="applied"] .il-code-field__row { display: none; }
.il-code-field[data-state="applied"] .il-code-field__applied { display: flex; }
.il-code-field[data-state="applied"] .il-code-field__msg { color: var(--il-color-success); }
.il-code-field[data-state="error"] .il-code-field__msg { color: var(--il-color-danger); }

/* --------------------------------------------------------------------------
   8. Flow: how a week works (kept for the lab; the pricing page now uses
   the credit visual instead)
   -------------------------------------------------------------------------- */
.il-flow {
  --il-flow-tile: 120px;
  --il-flow-col: calc((100% - 5 * var(--il-space-4)) / 6);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--il-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.il-flow::before {
  content: "";
  position: absolute;
  top: calc(var(--il-flow-tile) / 2);
  left: calc(var(--il-flow-col) / 2);
  right: calc(var(--il-flow-col) / 2);
  height: 0;
  border-top: 1px solid var(--il-color-border-strong);
  z-index: -1;
}
.il-flow__day { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--il-space-2); }
.il-flow__tile {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: var(--il-flow-tile);
  height: var(--il-flow-tile);
  border-radius: var(--il-radius-md);
  color: var(--il-color-text);
}
.il-flow__tile svg { width: 60px; height: 60px; position: relative; z-index: 1; }
.il-flow__num {
  font-family: var(--il-font-display);
  font-size: var(--il-size-h1);
  font-weight: var(--il-float-weight-heavy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: var(--il-space-2);
}
.il-flow__label { font-size: var(--il-size-body-sm); color: var(--il-color-text-2); }
@media (max-width: 767px) {
  .il-flow { --il-flow-tile: 64px; grid-template-columns: 1fr; gap: var(--il-space-3); }
  .il-flow::before { top: calc(var(--il-flow-tile) / 2); bottom: calc(var(--il-flow-tile) / 2); left: calc(var(--il-flow-tile) / 2); right: auto; height: auto; border-top: 0; border-left: 1px solid var(--il-color-border-strong); }
  .il-flow__day { display: grid; grid-template-columns: var(--il-flow-tile) 1fr auto; align-items: center; gap: var(--il-space-4); text-align: left; }
  .il-flow__tile svg { width: 40px; height: 40px; }
  .il-flow__num { order: 3; margin: 0; font-size: var(--il-size-h2); }
}

/* --------------------------------------------------------------------------
   9. Lead card: what a policy review lead contains
   The figure is the navy lead cut-out standing in a small room.
   -------------------------------------------------------------------------- */
.il-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--il-color-surface-1);
  border-radius: var(--il-radius-md);
  overflow: clip;
}
.il-lead-card__figure {
  --g: 86%;
  --cut-w: 60;
  --cut-h: 70;
  --shadow-spread: 3.2;
  --shadow-ratio: 6;
  min-height: 360px;
  color: var(--il-color-text-2);
}
.il-lead-card__figure > svg { position: absolute; left: 50%; bottom: calc(100% - var(--g)); translate: -50% 0; z-index: 1; width: auto; height: 64%; }
.il-lead-card__body { padding: var(--il-space-8); }
.il-lead-card__rows { margin: var(--il-space-4) 0 0; padding: 0; list-style: none; }
.il-lead-card__row {
  display: grid;
  grid-template-columns: 20px 72px 1fr;
  align-items: center;
  gap: var(--il-space-3);
  min-height: 48px;
  border-bottom: 1px solid var(--il-color-border);
  font-size: var(--il-size-body);
}
.il-lead-card__row svg { width: 18px; height: 18px; color: var(--il-color-text-3); }
.il-lead-card__key { font-family: var(--il-font-mono); font-size: var(--il-size-eyebrow-lg); letter-spacing: var(--il-tracking-eyebrow); text-transform: uppercase; color: var(--il-color-text-3); }
.il-lead-card__val { color: var(--il-color-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.il-lead-card__row--confirm { grid-template-columns: 20px 1fr; font-weight: var(--il-weight-medium); }
.il-lead-card__row--confirm svg { color: var(--il-color-text); }
.il-lead-card__mix { margin-top: var(--il-space-6); }
.il-lead-card__bar { display: flex; height: 12px; gap: 2px; margin-top: var(--il-space-2); border-radius: var(--il-radius-sm); overflow: hidden; }
.il-lead-card__bar span:nth-child(1) { background: var(--il-color-text-3); }
.il-lead-card__bar span:nth-child(2) { background: var(--il-color-text-2); }
.il-lead-card__bar span:nth-child(3) { background: var(--il-color-text); }
.il-lead-card__legend { display: flex; flex-wrap: wrap; gap: var(--il-space-2) var(--il-space-4); margin: var(--il-space-3) 0 0; padding: 0; list-style: none; font-size: var(--il-size-body-sm); color: var(--il-color-text-2); }
.il-lead-card__legend li { display: inline-flex; align-items: center; gap: 6px; }
.il-lead-card__legend i { width: 10px; height: 10px; border-radius: 2px; }
.il-lead-card__legend li:nth-child(1) i { background: var(--il-color-text-3); }
.il-lead-card__legend li:nth-child(2) i { background: var(--il-color-text-2); }
.il-lead-card__legend li:nth-child(3) i { background: var(--il-color-text); }

/* --------------------------------------------------------------------------
   10. Scene tile: a big room with one cut-out and one short line
   -------------------------------------------------------------------------- */
.il-scene { display: flex; flex-direction: column; gap: var(--il-space-4); margin: 0; }
.il-scene__room {
  --cut-w: 84;
  --cut-h: 66;
  aspect-ratio: 4 / 3;
  border-radius: var(--il-radius-md);
}
.il-scene__step { font: var(--il-weight-medium) var(--il-size-eyebrow-lg)/1 var(--il-font-mono); letter-spacing: var(--il-tracking-eyebrow); text-transform: uppercase; color: var(--il-color-text-3); }
.il-scene__line { margin: 0; font: var(--il-weight-semibold) var(--il-size-h4)/1.35 var(--il-font-display); letter-spacing: -0.01em; color: var(--il-color-text); }

@media (max-width: 767px) {
  .il-lead-card { grid-template-columns: 1fr; }
  .il-lead-card__figure { min-height: 0; height: 320px; } /* a definite height, so container units resolve */
  .il-lead-card__body { padding: var(--il-space-6); }
  .il-product-card { padding: var(--il-space-6) var(--il-space-6) 0; }
  .il-product-card__media { margin-inline: calc(var(--il-space-6) * -1); }
  .il-product-card--wide .il-product-card__media { aspect-ratio: 16 / 10; --cut-w: 88; }
  .il-pack-card { padding: 0 var(--il-space-6) var(--il-space-6); }
  .il-pack-card__media { margin-inline: calc(var(--il-space-6) * -1); }
  .il-pack-card--featured > .il-pack-card__media { margin-inline: calc(var(--il-space-6) * -1 + 2px); }
  :root { --il-float-title-size: 24px; --il-float-number-size: 56px; }
}

/* --------------------------------------------------------------------------
   Reduced motion: nothing floats, the shadow holds still at rest
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .il-float,
  .il-room--section .il-float::after { animation: none !important; }
  .il-float { translate: none; box-shadow: var(--il-float-shadow-rest); }
  .il-tilt { transform: none; transition: none; }
}
