/* KEYDEAL landing page (/ only). The kit's stylesheets come first; this file holds the palette
   block as start.mjs brand printed it, then page CSS: only what sits inside a visual. */
:root {
  --p-bg: #f4f5f7; --p-surface: #ffffff; --p-ink: #0e1b33; --p-muted: #47536b;
  --p-accent: #173a7a; --p-accent-ink: #f4f5f7; --p-action: #173a7a; --p-action-ink: #f4f5f7;
  --p-inv-bg: #0e1b33; --p-inv-surface: #1b283f; --p-inv-ink: #f4f5f7; --p-inv-muted: #939ba8;
  --p-inv-accent: #f4f5f7; --p-inv-accent-ink: #0e1b33; --p-inv-action: #f4f5f7; --p-inv-action-ink: #0e1b33;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em; --ly-scale: 0.92;
}

/* The app's globals.css uses the kit's names --ink, --surface, --line, --accent, --card and --muted and
   changes them under .dark and .theme-hc. This selector outranks both, so the page stays light under
   a saved dark theme; high contrast is answered in the block after it. */
html:root[data-type="software"] {
  --ink: var(--p-ink); --surface: var(--p-surface); --line: color-mix(in oklab, var(--p-ink) 11%, transparent);
  --accent: var(--p-accent); --card: var(--p-surface); --muted: var(--p-muted);
  color-scheme: light !important;
  /* the product's own colours, used only inside the UI pictures */
  --kd-ink: #0e1b33; --kd-ink-2: #47536b; --kd-ink-3: #5c677c;
  --kd-line: #d9dde5; --kd-line-2: #c0c7d3; --kd-sunk: #eceef2; --kd-navy: #173a7a;
  --kd-hl: #cdf24b; --kd-hl-ink: #0e1b33;
  --kd-met: #0b6b45; --kd-met-bg: #e0f2e8;
  --kd-open: #8a5300; --kd-open-bg: #fbeed3;
  --kd-miss: #b3261e; --kd-miss-bg: #fbe4e1;
}
/* The app's High contrast choice (.theme-hc in globals.css) keeps working here: the same light page with
   that theme's inks, so text stands at 7:1 and the two outlined controls show their edge. */
html:root.theme-hc[data-type="software"] {
  --p-ink: #060e1f; --p-muted: #2c3850; --p-accent: #0f2d66; --p-action: #0f2d66;
  --ground-ink: #060e1f; --ground-muted: #2c3850;
  --kd-ink: #060e1f; --kd-ink-2: #2c3850; --kd-ink-3: #3f4b63; --kd-line: #aeb6c4; --kd-line-2: #7a8599; --kd-navy: #0f2d66;
  --kd-met: #07543a; --kd-open: #6e4200; --kd-miss: #8c1c16;
}
html:root.theme-hc[data-type="software"] :is(.btn--secondary, .nav__toggle) { border-color: var(--p-muted); }
/* Tailwind reads .start-N as inset-inline-start; here it is only the kit's grid column start. */
:is(.start-2, .start-3, .start-4, .start-5, .start-6, .start-7, .start-8, .start-9, .start-10, .start-11, .start-12) { inset-inline-start: auto; }

.nav__logo img { border-radius: 6px; }

/* ------------------------------------------------------------ the product UI, shared pieces */
.kd { --fx-bg: #ffffff; --fx-surface: var(--kd-sunk); --fx-ink: var(--kd-ink); --fx-muted: var(--kd-ink-2); --fx-accent: var(--kd-navy); --fx-accent-ink: #ffffff; color: var(--kd-ink); }
.kd b { font-weight: 600; }
.kd-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kd-label { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; color: var(--kd-ink-2); }
.kd-sub { font-size: 12px; line-height: 16px; color: var(--kd-ink-2); }
.kd-h { font-size: 13px; line-height: 20px; font-weight: 600; }
.kd-tip { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--kd-line-2); background: #fff; color: var(--kd-ink-2); font: 600 12px/1 var(--font-text); font-style: normal; }
.kd-tip.is-open { background: var(--kd-ink); border-color: var(--kd-ink); color: #fff; }
.kd-chip { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 12px/1 var(--font-text); white-space: nowrap; background: var(--kd-sunk); color: var(--kd-ink-2); }
.kd-chip--met { background: var(--kd-met-bg); color: var(--kd-met); }
.kd-chip--miss { background: var(--kd-miss-bg); color: var(--kd-miss); }
.kd-chip--open { background: var(--kd-open-bg); color: var(--kd-open); }
/* the highlighter has one job: it marks the answer */
.kd-hl { background: var(--kd-hl); color: var(--kd-hl-ink); padding: 2px 8px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.kd-seg { display: inline-flex; flex: none; padding: 2px; border-radius: 8px; background: var(--kd-sunk); font-size: 12px; font-weight: 500; line-height: 24px; color: var(--kd-ink-2); }
.kd-seg > span { padding: 0 10px; border-radius: 6px; white-space: nowrap; }
.kd-seg > .is-on { background: #fff; color: var(--kd-ink); box-shadow: 0 0 0 1px var(--kd-line); }
.kd-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--kd-line); font-size: 13px; color: var(--kd-ink-2); white-space: nowrap; }
.kd-bar__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--kd-ink); letter-spacing: -0.01em; }
.kd-bar__brand img { width: 18px; height: 18px; border-radius: 4px; }
.kd-bar .is-on { color: var(--kd-ink); font-weight: 500; }
.kd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 20px; border-bottom: 1px solid var(--kd-line); }
.kd-head__title { display: block; font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.02em; }
.kd-head__sub { display: block; font-size: 13px; line-height: 20px; color: var(--kd-ink-2); }
.kd-kpi { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--kd-line); border-radius: 10px; background: #fff; }
.kd-kpi__fig { font-size: 22px; line-height: 28px; font-weight: 500; }
.kd-kpi__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* ------------------------------------------------------------ hero: the answer window and one lever */
.hero__proof { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.hero__proof img { width: 18px; height: 18px; flex: none; }
/* The window ends inside the frame, where the card lies over its lower-left corner: the band under its
   last block is the card's. Its blocks are shown whole or not at all, so no frame height cuts a line:
   each rule below adds or drops one block at the window height where it starts or stops fitting, and
   the answer takes the height left over. */
.hero__art { container: kd-art / size; --kd-in: var(--s-8); --kd-note-b: var(--s-6); --kd-note-h: 96px; --kd-over: 48px; }
.kd-win { container: kd-win / size; display: flex; flex-direction: column; overflow: hidden; }
.kd-win > * { flex: none; padding-right: var(--ly-cut-room); }
.hero__art > .kd-win { bottom: calc(var(--kd-note-b) + var(--kd-note-h) - var(--kd-over)); padding-bottom: calc(var(--kd-over) + 12px); }
.kd-win > .kd-verdict { flex: 1 0 auto; max-height: 300px; }
.kd-verdict { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-bottom: 1px solid var(--kd-line); }
.kd-answer, .kd-price { display: grid; align-content: center; justify-items: start; gap: 8px; padding: 16px 0 16px 20px; }
.kd-price { border-left: 1px solid var(--kd-line); }
.kd-price__main { display: grid; justify-items: start; gap: 8px; }
.kd-answer p { font-size: 14px; line-height: 21px; color: var(--kd-ink); padding-right: 16px; }
.kd-price__fig { font-size: 28px; line-height: 36px; font-weight: 500; }
.kd-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px 20px 0; }
.kd-verdict + .kd-kpis { padding-top: 16px; }
/* the price the line under the answer is measured from: only where the card that names it is not */
.kd-offer { display: none; }
.kd-offer > .kd-in { padding: 0; border: 0; }
/* the list the lever card is lifted from: a tall window only */
.kd-more { display: none; padding: 0 20px; }
.kd-offer + .kd-more { padding-top: 16px; }
.kd-win > :is(.kd-kpis, .kd-more) { padding-right: var(--ly-cut-room); }
.kd-more__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; border-bottom: 1px solid var(--kd-line); font-size: 13px; font-weight: 500; }
.hero__art > .kd-note { left: var(--s-6); bottom: var(--kd-note-b); width: 300px; height: var(--kd-note-h); z-index: 2; padding: 0 16px; display: grid; align-content: center; gap: 6px; }
.kd-note__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kd-note__fig { font-size: 13px; line-height: 20px; color: var(--kd-ink); }
@media (max-width: 1023px) {
  .hero__art { --kd-in: var(--s-6); --kd-note-b: var(--s-4); }
  .hero__art > .kd-note { left: var(--s-4); width: 300px; }
}
/* The queries read the window's inner size (its width less 2px, its height less the 62px band), as
   ranges, so a size between two whole pixels falls under one rule. Heights: bar 40, address 73, list
   80 + 44 + 44; the answer and the two rows of figures by the window's width, as their words wrap.
   A block may use 12px of the band's air. The bar gives way to the first figures.
   Two columns from 508px. From 557px: answer 154, figures 120 and 106. */
@container kd-win (width < 578px) { .kd-win .kd-head__place { display: none; } }
@container kd-win (width >= 557px) and (height < 481px) { .kd-win > .kd-kpis + .kd-kpis { display: none; } }
@container kd-win (width >= 557px) and (height < 335px) { .kd-win > .kd-kpis { display: none; } }
@container kd-win (width >= 557px) and (335px <= height < 375px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (width >= 557px) and (height < 255px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (width >= 557px) and (height >= 561px) { .kd-win > .kd-offer + .kd-more { display: grid; } }
@container kd-win (width >= 557px) and (height >= 605px) { .kd-win > .kd-offer + .kd-more + .kd-more { display: grid; } }
@container kd-win (width >= 557px) and (height >= 649px) { .kd-win > .kd-more { display: grid; } }
/* under 557px the answer takes a fourth line: 175, 120 and 122 */
@container kd-win (508px <= width < 557px) and (height < 518px) { .kd-win > .kd-kpis + .kd-kpis { display: none; } }
@container kd-win (508px <= width < 557px) and (height < 356px) { .kd-win > .kd-kpis { display: none; } }
@container kd-win (508px <= width < 557px) and (356px <= height < 396px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (508px <= width < 557px) and (height < 276px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (508px <= width < 557px) and (height >= 598px) { .kd-win > .kd-offer + .kd-more { display: grid; } }
@container kd-win (508px <= width < 557px) and (height >= 642px) { .kd-win > .kd-offer + .kd-more + .kd-more { display: grid; } }
@container kd-win (508px <= width < 557px) and (height >= 686px) { .kd-win > .kd-more { display: grid; } }
/* A narrower window (a small laptop): the price under the answer, no district, no view switch. */
@container kd-win (width < 508px) {
  .kd-win .kd-seg { display: none; }
  .kd-win > .kd-verdict { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .kd-answer, .kd-price { padding-right: var(--ly-cut-room); }
  .kd-answer { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .kd-answer p { grid-column: 1 / -1; padding-right: 0; }
  .kd-price { border-left: 0; border-top: 1px solid var(--kd-line); }
}
/* from 414px: answer 226, figures up to 160 and 122 */
@container kd-win (414px <= width < 508px) and (height < 609px) { .kd-win > .kd-kpis + .kd-kpis { display: none; } }
@container kd-win (414px <= width < 508px) and (height < 447px) { .kd-win > .kd-kpis { display: none; } }
@container kd-win (414px <= width < 508px) and (447px <= height < 487px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (414px <= width < 508px) and (height < 327px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (414px <= width < 508px) and (height >= 689px) { .kd-win > .kd-offer + .kd-more { display: grid; } }
@container kd-win (414px <= width < 508px) and (height >= 733px) { .kd-win > .kd-offer + .kd-more + .kd-more { display: grid; } }
@container kd-win (414px <= width < 508px) and (height >= 777px) { .kd-win > .kd-more { display: grid; } }
/* under 414px the answer takes a third line: 247, figures up to 176 and 122 */
@container kd-win (width < 414px) and (height < 646px) { .kd-win > .kd-kpis + .kd-kpis { display: none; } }
@container kd-win (width < 414px) and (height < 484px) { .kd-win > .kd-kpis { display: none; } }
@container kd-win (width < 414px) and (484px <= height < 524px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (width < 414px) and (height < 348px) { .kd-win > .kd-bar { display: none; } }
@container kd-win (width < 414px) and (height >= 726px) { .kd-win > .kd-offer + .kd-more { display: grid; } }
@container kd-win (width < 414px) and (height >= 770px) { .kd-win > .kd-offer + .kd-more + .kd-more { display: grid; } }
@container kd-win (width < 414px) and (height >= 814px) { .kd-win > .kd-more { display: grid; } }
/* A phone, or a frame too short for the answer above the card: the window alone, 16px in, as tall as
   its blocks. The address, the result and the price that works fit the kit's smallest frame (220px).
   The second block repeats the first for a short frame on a wider screen. */
@media (max-width: 639px) {
  .hero__art { --kd-in: var(--s-4); }
  .hero__art > .kd-win { container-type: normal; bottom: auto; max-height: calc(100% - 2 * var(--kd-in)); padding-bottom: 12px; }
  .kd-win > :is(.kd-bar, .kd-kpis, .kd-more), .kd-win :is(.kd-seg, .kd-head__place), .kd-answer p { display: none; }
  .kd-win > .kd-head { padding-block: 8px; }
  .kd-win > .kd-verdict { display: block; flex: none; max-height: none; padding-right: 0; border-bottom: 0; }
  .kd-answer, .kd-price { padding: 12px var(--ly-cut-room) 0 20px; border: 0; }
  .kd-answer { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .kd-win > .kd-offer { display: block; padding: 12px var(--ly-cut-room) 0 20px; }
}
/* the frame heights under which the address and the answer do not fit above the card, by the answer's lines */
@container kd-art (height < 421px) or ((width < 595px) and (height < 442px)) or ((width < 546px) and (height < 493px)) or ((width < 452px) and (height < 514px)) {
  .hero__art > .kd-note { display: none; }
  .hero__art > .kd-win { container-type: normal; left: var(--s-4); top: var(--s-4); bottom: auto; width: calc(100% - var(--s-4) + var(--ly-cut)); max-height: calc(100% - 2 * var(--s-4)); padding-bottom: 12px; }
  .kd-win > :is(.kd-bar, .kd-kpis, .kd-more), .kd-win :is(.kd-seg, .kd-head__place), .kd-answer p { display: none; }
  .kd-win > .kd-head { padding-block: 8px; }
  .kd-win > .kd-verdict { display: block; flex: none; max-height: none; padding-right: 0; border-bottom: 0; }
  .kd-answer, .kd-price { padding: 12px var(--ly-cut-room) 0 20px; border: 0; }
  .kd-answer { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
  .kd-win > .kd-offer { display: block; padding: 12px var(--ly-cut-room) 0 20px; }
}
/* The smallest frames show neither the price you offer (40px) nor the line under the answer that
   is measured from it (40px); the line never shows without it. A tall phone's frame adds the first figure. */
@container kd-art (height < 258px) { .kd-win > .kd-offer { display: none; } }
@container kd-art (height < 298px) { .kd-win .kd-price > .kd-sub { display: none; } }
/* a narrow phone has no room for the property type before the plan */
@container kd-art (width < 312px) { .kd-win .kd-head__kind { display: none; } }
@media (max-width: 639px) {
  @container kd-art (height >= 414px) {
    .kd-win > .kd-verdict + .kd-kpis { display: block; padding: 12px var(--ly-cut-room) 0 20px; }
    .kd-win .kd-kpi:not(:first-child) { display: none; }
  }
}
/* the narrowest phones have no room for the question beside its answer */
@media (max-width: 359px) { .kd-win .kd-answer > .kd-label { display: none; } }

/* ------------------------------------------------------------ the deal screen in one window (app-frame) */
.kd-app.ui { display: flex; flex-direction: column; margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); overflow: hidden; }
.kd-app > .kd-bar, .kd-app > .kd-head { flex: none; }
.kd-app > .kd-bar { height: 44px; }
.kd-app__add { margin-left: auto; }
.kd-app__chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.kd-app__works { display: inline-flex; align-items: center; height: 22px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.kd-app__panes { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3.4fr) minmax(0, 3.6fr); grid-template-rows: minmax(0, 1fr); }
.kd-app__panes > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.kd-app__panes > .app__pane + .app__pane { border-left: 1px solid var(--kd-line); }
.kd-app__panes > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.kd-app__panes > .app__pane > .ui-panel { width: 100%; padding: 16px 20px; border: 0; border-radius: 0; box-shadow: none; background: none; }
.kd-group + .kd-group { margin-top: 20px; }
.kd-pane__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
/* inputs: label, boxed value, where it came from */
.kd-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--kd-line); }
.kd-in__label { font-size: 13px; line-height: 20px; font-weight: 500; }
.kd-in__val { justify-self: end; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--kd-line-2); border-radius: 7px; background: #fff; font-size: 13px; }
.kd-in__src { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kd-cost { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 7px 0; border-bottom: 1px solid var(--kd-line); font-size: 13px; line-height: 20px; }
.kd-cost > .kd-num { justify-self: end; }
.kd-cost > .kd-in__src { grid-column: 1 / -1; }
/* levers: what to change, and what the engine says it would do */
.kd-lever { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--kd-line); }
.kd-lever__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kd-lever__top b { font-size: 13px; line-height: 20px; }
.kd-lever__try { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--kd-line-2); font-size: 12px; font-weight: 500; }
.kd-lever__eff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 4px; font-size: 12px; line-height: 20px; }
.kd-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--kd-line); font-size: 13px; line-height: 20px; color: var(--kd-ink-2); }
.kd-step > i { font: 500 12px/20px var(--font-mono); font-style: normal; color: var(--kd-ink-3); }
.kd-step b { color: var(--kd-ink); }
.kd-decide__row { display: flex; gap: 8px; padding-bottom: 12px; }
.kd-decide__row span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--kd-line-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
/* best use: the same property under five plans */
.kd-use { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--kd-line); }
.kd-use__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 20px; font-weight: 600; }
.kd-use__fit { font: 500 12px/1 var(--font-mono); color: var(--kd-ink-2); }
.kd-use__means { grid-column: 1; font-size: 12px; line-height: 18px; color: var(--kd-ink-2); }
.kd-use__result { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; justify-items: end; gap: 2px; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .kd-app__panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kd-app__panes > .app__pane--inputs { display: none; }
  .kd-app__panes > .app__pane--levers { border-left: 0; }
}
@media (max-width: 1023px) {
  .kd-app__panes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kd-app__panes > .app__pane--inputs { display: none; }
  .kd-app__panes > .app__pane--levers { border-left: 0; }
  .kd-app .kd-bar > span:not(.kd-bar__brand, .is-on) { display: none; }
  /* a narrow pane has no room for a result beside the plan: it goes under it */
  .kd-use { grid-template-columns: minmax(0, 1fr); }
  .kd-use__result { grid-column: 1; grid-row: auto; justify-items: start; margin-top: 2px; }
}
@media (max-width: 639px) {
  .kd-app__panes { grid-template-columns: minmax(0, 1fr); }
  .kd-app__panes > .app__pane--uses, .kd-app > .kd-bar, .kd-app .kd-seg, .kd-app__chips > .kd-chip { display: none; }
  .kd-app__panes > .app__pane > .ui-panel { padding-inline: 16px; }
  .kd-app > .kd-head { padding: 10px 16px; }
  .kd-app :is(.kd-head__place, .kd-head__kind, .kd-head__src) { display: none; }
  /* the price under its label, so the address beside them keeps one line */
  .kd-app__works { flex-direction: column; align-items: flex-end; height: auto; }
  /* the pane ends inside the levers: the list under them never shows on a phone */
  .kd-app .app__pane--levers .kd-group + .kd-group { display: none; }
}

/* ------------------------------------------------------------ numbers: the ? opened on one figure */
.kd-roles { margin-top: var(--s-7); }
.kd-slice { width: 880px; padding: 0; overflow: hidden; }
/* two figures in view, the third past the frame's edge: the cut falls between them */
.kd-slice__kpis { display: grid; grid-template-columns: repeat(3, 270px); gap: 12px; padding: 16px; }
.kd-slice__body { display: grid; grid-template-columns: 352px 116px; align-items: start; gap: 16px; padding: 0 16px 16px; margin-top: -8px; }
.kd-slice__left { display: grid; gap: 16px; }
.kd-slice__rows { display: grid; gap: 10px; padding-top: 12px; }
.kd-slice__rows > div { display: grid; justify-items: start; gap: 2px; }
.kd-slice__rows .kd-in__val { justify-self: start; }
.kd-stmt { display: grid; padding: 0 2px; }
.kd-stmt .kd-h { margin-bottom: 4px; }
.kd-kpi.is-open { border-color: var(--kd-ink); }
.kd-bubble { position: relative; z-index: 2; padding: 12px 14px; display: grid; gap: 8px; border: 1px solid var(--kd-ink); border-radius: 10px; background: #fff; box-shadow: 0 14px 32px -14px rgb(14 27 51 / 0.35); font-size: 13px; line-height: 20px; color: var(--kd-ink-2); }
.kd-bubble__t { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--kd-ink); }
.kd-bubble__t span { margin-left: 4px; font: 400 12px/1 var(--font-mono); color: var(--kd-ink-3); }
.kd-bubble__k { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--kd-ink); }
.kd-bubble__sum { padding: 8px 10px; border-radius: 6px; background: var(--kd-sunk); color: var(--kd-ink); }
.kd-bubble__sum .kd-num { display: block; font-size: 12px; line-height: 18px; }
/* a phone shows the open explanation alone, down to its sum */
@media (max-width: 639px) {
  .kd-slice { width: auto; border: 0; box-shadow: none; background: none; }
  .kd-slice__kpis, .kd-slice__rows, .kd-stmt { display: none; }
  .kd-slice__body { display: block; padding: 0; margin: 0; }
}

/* ------------------------------------------------------------ three steps (the pinned-chapters moment): each
   step's screen on the lit ground. From 1024px a screen stands in its frame whole. */
#steps .mo-pc__text > .link { justify-self: start; }
#steps .mo-pc__visual--lit > .kd-card { width: min(100%, 460px); flex: none; }
.kd-card { padding: 0; overflow: hidden; }
.kd-card > .ui-head { height: 40px; }
.kd-card__body { padding: 4px 16px 16px; }
.kd-card--rows { container: kd-card / inline-size; display: flex; flex-direction: column; max-height: 100%; padding-bottom: 16px; }
.kd-card--rows > * { flex: none; }
.kd-card--rows > .kd-rows { margin-inline: 16px; }
.kd-rows, .kd-row { display: grid; }
.kd-rows--goals { --kd-row: 55px; }
.kd-rows--steps { --kd-row: 57px; }
.kd-goal { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--kd-line); font-size: 13px; line-height: 20px; }
.kd-goal > span:first-child { display: grid; }
.kd-goal .kd-chip { min-width: 58px; justify-content: center; }
/* a way to add a deal: its name, the first sentence under it, its button */
.kd-way { display: grid; justify-items: start; align-content: center; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--kd-line); font-size: 13px; line-height: 20px; }
.kd-way > .ui-btn { margin-top: 4px; }
/* 1024 to 1279: system.css lays a section out as a column there and stretches its .wrap, which would
   make the moment's sticky stage two screens tall; it keeps its own height. The column is 420px wide,
   so the frames are square and their margin 24px, and each screen still stands whole. */
@media (min-width: 1024px) and (max-width: 1279px) {
  main > #steps.is-live > .mo-pc__grid { flex: none; }
  #steps :is(.mo-pc__visuals, .mo-pc__visual--lit) { aspect-ratio: 1; }
  #steps .mo-pc__visual--lit { padding: var(--s-5); }
}
/* Under 1024 the section is at rest and a frame is shorter than its screen. The screen starts 16px
   down and runs out through the frame's foot (28px past it); it shows the rows that fit whole, which
   share the height, so the last one's rule sits on the cut. */
@media (max-width: 1023px) {
  #steps .mo-pc__visual--lit { align-items: flex-start; padding: var(--s-4) var(--s-4) 0; }
  #steps .kd-card--rows { container-type: size; height: calc(100% + 28px); max-height: none; padding-bottom: 32px; }
  /* Equal rows, as many as fit at the height of the tallest (a term or a step on one line more in a
     narrow card); a row past the last track has no height. */
  #steps .kd-rows { flex: 1 1 0; min-height: 0; grid-template-rows: repeat(auto-fit, minmax(var(--kd-row), 1fr)); grid-auto-rows: 0; }
  #steps .kd-row { min-height: 0; overflow: hidden; }
  #steps .kd-step { align-content: center; grid-template-columns: 16px minmax(0, 1fr); }
  @container kd-card (max-width: 271px) { #steps .kd-rows--goals { --kd-row: 71px; } }
  @container kd-card (max-width: 306px) and (min-height: 166px) { #steps .kd-rows--goals { --kd-row: 71px; } }
  @container kd-card (max-width: 238px) { #steps .kd-rows--goals { --kd-row: 110px; } #steps .kd-card .ui-meta { display: none; } }
  /* A step runs to three lines in a card under 344px. A tablet's frame shows two rows, and the
     first two keep two lines down to 284px; a phone's shows the third as well. */
  @container kd-card (max-width: 287px) { #steps .kd-rows--steps { --kd-row: 77px; } }
  @container kd-card (max-width: 347px) and (min-height: 166px) { #steps .kd-rows--steps { --kd-row: 77px; } }
  /* The first screen's two ways are not alike, so each row is as tall as its own words. A way
     stands whole: both with their sentence where the card holds them (97 or 113px each, 133 in a
     card under 289px, more under 254 and 214), else both without it (77px, 97 for a name on two
     lines), else the first alone. The heights are the card's, less its 40px head. */
  #steps .kd-rows--ways { grid-template-rows: minmax(0, 1fr); }
  #steps .kd-way > .kd-sub { display: none; }
  @container kd-card ((min-width: 391px) and (min-height: 137px) and (max-height: 193px)) or ((min-width: 289px) and (max-width: 390px) and (min-height: 153px) and (max-height: 193px)) or ((min-width: 214px) and (max-width: 288px) and (min-height: 173px) and (max-height: 213px)) or ((max-width: 213px) and (min-height: 189px) and (max-height: 213px)) {
    #steps .kd-way > .kd-sub { display: block; }
  }
  @container kd-card ((min-width: 289px) and (min-height: 194px)) or (min-height: 214px) {
    #steps .kd-rows--ways { grid-template-rows: repeat(2, minmax(min-content, 1fr)); }
  }
  @container kd-card ((min-width: 391px) and (min-height: 250px)) or ((min-width: 289px) and (min-height: 266px)) or ((min-width: 254px) and (min-height: 286px)) or ((min-width: 214px) and (min-height: 302px)) or (min-height: 318px) {
    #steps .kd-way > .kd-sub { display: block; }
  }
}
/* a tablet holds the three rows in one screen: each frame shows a head and 114px of rows (176px in
   all), and the rows stand further apart on a taller screen (32px at 768x1024, 89px at 820x1180) */
@media (min-width: 640px) and (max-width: 1023px) {
  #steps .mo-pc__visual--lit { aspect-ratio: auto; height: 176px; }
  #steps .mo-pc__steps { gap: clamp(var(--s-6), 36.6svh - 343px, 120px); }
}
/* at rest on a phone the section is two whole screens; a frame is as wide as the phone, up to 340px tall */
@media (max-width: 639px) {
  main > #steps[data-moment]:not(.is-live) { min-height: 200vh; min-height: 200lvh; }
  #steps .mo-pc__visual--lit { aspect-ratio: 9 / 8; max-height: 340px; }
  @media (max-width: 339px) { #steps .mo-pc__visual--lit { aspect-ratio: auto; height: 190px; } }
}

/* ------------------------------------------------------------ close: the name set wide */
/* seven letters set from line to line (4.61em wide at this tracking); the capitals' ink stays inside
   the 0.8em box, so nothing is clipped */
.closing__cta.close--word { container-type: inline-size; }
.close__word { font-size: calc(100cqw / 4.61); line-height: 0.8; letter-spacing: 0.03em; overflow: visible; }

/* a tablet sets the two link columns across the row, as a phone does */
@media (min-width: 640px) and (max-width: 1023px) { .closing__links .footer__col { grid-column: auto / span 6; } }
/* a phone keeps the close and the links on one screen, so the action bar never comes up over them */
@media (max-width: 639px) { .kd-close__lead, .kd-foot__brand { display: none; } }

/* ------------------------------------------------------------ questions: the third result, drawn */
#questions .frame { --ratio: 92%; }
/* a tablet holds the section in one screen: the answers in two columns, and the picture as tall as the
   screen leaves (203px at 768x1024, 357px at 820x1180) */
@media (min-width: 640px) and (max-width: 1023px) {
  #questions .frame { --ratio: 0%; height: clamp(170px, 98.7svh - 808px, 420px); }
  #questions .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--s-5); }
  #questions .faq > .faq__item:first-child { padding-top: var(--s-5); }
  #questions .faq > .faq__item:last-child { grid-column: 1 / -1; }
}
/* a phone gives the section two screens; the taller picture fills them */
@media (max-width: 639px) { #questions .frame { --ratio: 185%; } }
.kd-note-text { font-size: 14px; line-height: 21px; color: var(--kd-ink); padding: 12px 0 4px; }
