/* ---- Webflow parity ---- */
.w-embed { display: contents; }
h1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.17em; }
h4 { font-size: 1em; } h5 { font-size: 0.83em; } h6 { font-size: 0.67em; }
h1, h2, h3, h4, h5, h6 { line-height: inherit; font-weight: bold; margin: 0; }
label { display: inline; margin-bottom: 0; font-weight: inherit; }
blockquote { border-left: 0; padding: 0; font-size: inherit; line-height: inherit; }
img { vertical-align: baseline; }

/*
 * XLeads — page base: the Webflow site's global styles, as reference
 * (SPEC v2 §3, "Quiet frame, loud product").
 *
 * Every section's own CSS (page/<id>.css) builds on this. Islands (React in
 * shadow roots) read the same `--xleads-*` variables, so retheming here
 * retheme them too. src/runtime/tokens.test.ts fails if a value below drifts
 * from src/runtime/tokens.css.ts or motion.ts, if a weight other than
 * 400 / 500 / 600 appears, or a font-size outside the §3.3 scale.
 *
 * Three variable families:
 *   --xleads-*  Webflow variables: colour, type, radii, shadows, spacing, layout.
 *   --ground-*  "the colour for this ground", set by .sec-dark / .sec-stage /
 *               .sec-paper. Components below (and islands) use these, so a
 *               button or chip is right on any ground without a variant.
 *   --xl-*      motion tokens (SPEC v2 §8), identical to src/runtime/motion.ts.
 *
 * Breakpoints are Webflow's: ≥1280 (design) · 992–1279 · 768–991 · ≤767
 * (480–767 and ≤479).
 *
 * The red budget (§3.2): outside a product frame red is only "One login.",
 * the filled buy button (one per viewport), the XPlan card's border / glow /
 * ribbon / Save chip, and the hub hotspot ring. Nothing here adds another.
 *
 * Deprecated aliases kept until the lanes that still read them move off
 * (listed in tokens.css.ts): the v1 colour / radius / shadow names, and the
 * classes .eyebrow (now a quiet sentence-case micro line), .mono, .seal (now
 * a quiet lock line), .tray (now no box), .btn-secondary (= .btn-ghost),
 * .btn-small (= .btn-sm), .sec-surface (= .sec-stage), .statement (= H2),
 * .chip.
 */

/* Type is Poppins only (owner decision 3: the face xleads.com uses), loaded
   from Google Fonts at 400 / 500 / 600. Until it arrives, text sets in
   "Poppins Fallback": local Arial (Liberation Sans on Linux) scaled to
   Poppins' width and given Poppins' vertical metrics (ascent 1050, descent
   350, line gap 100 per 1000), so the swap moves nothing (CLS ≤ 0.05).
   size-adjust is the measured Poppins ÷ Arial width of this page's own copy:
   1.07 for regular text, 1.055 for the 600 headings against Arial Bold.
   Each override = Poppins' metric ÷ size-adjust. */
@font-face {
  font-family: "Poppins Fallback";
  font-weight: 100 549;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107%;
  ascent-override: 98.13%;
  descent-override: 32.71%;
  line-gap-override: 9.35%;
}
@font-face {
  font-family: "Poppins Fallback";
  font-weight: 550 900;
  src:
    local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"),
    local("LiberationSans-Bold"), local("Helvetica Bold");
  size-adjust: 105.5%;
  ascent-override: 99.53%;
  descent-override: 33.18%;
  line-gap-override: 9.48%;
}

:root {
  /* §3.1 colour */
  --xleads-bg: #08080a;
  --xleads-stage: #08080a;
  --xleads-raised: #111113;
  --xleads-paper: #fafaf7;
  --xleads-card: #ffffff;
  --xleads-ink: #0a0a0b;
  --xleads-text: #fafafa;
  --xleads-muted: #b4b4bd;
  --xleads-faint: #6b6b76;
  --xleads-ink-muted: #55555f;
  --xleads-line: rgba(255, 255, 255, 0.08);
  --xleads-line-strong: rgba(255, 255, 255, 0.14);
  --xleads-line-paper: rgba(10, 10, 11, 0.08);
  --xleads-line-paper-strong: rgba(10, 10, 11, 0.14);
  --xleads-red: #f82032;
  --xleads-red-solid: #e21224;
  --xleads-red-hover: #c90f1f;
  --xleads-red-ink: #be0918;
  --xleads-focus: #ff5a66;
  --xleads-amber: #f5a524;
  --xleads-green: #22c55e;
  --xleads-glass: rgba(8, 8, 10, 0.8);
  /* aliases (v1 names; see the header) */
  --xleads-surface: #0e0e10;
  --xleads-surface-2: #151517;
  --xleads-surface-3: #1d1d20;
  --xleads-red-hot: #ff5a66;
  --xleads-red-soft: rgba(248, 32, 50, 0.14);
  --xleads-amber-ink: #8a5a00;
  --xleads-green-soft: rgba(34, 197, 94, 0.12);
  --xleads-green-ink: #137a38;
  --xleads-real: #ffffff;
  --xleads-unlit: #2a2a30;

  /* §3.3 type: one family, three weights. --xleads-font-mono is an alias of
     the same stack (there is no mono type). */
  --xleads-font-sans: Poppins, "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --xleads-font-mono: Poppins, "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* §3.5 radii + the three shadows */
  --xleads-r-chip: 6px;
  --xleads-r-control: 6px;
  --xleads-r-vignette: 12px;
  --xleads-r-frame: 12px;
  --xleads-shadow-frame: 0 0 0 1px rgba(255, 255, 255, 0.12);
  --xleads-shadow-card: 0 0 0 1px rgba(10, 10, 11, 0.14);
  --xleads-shadow-xplan: 0 0 0 1px #0a0a0b;
  /* aliases (v1 names; see the header) */
  --xleads-r-input: 6px;
  --xleads-r-card: 12px;
  --xleads-r-tray: 12px;
  --xleads-r-pill: 6px;
  --xleads-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  --xleads-underglow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  --xleads-glow: 0 0 0 1px #0a0a0b;
  --xleads-shadow-paper: 0 0 0 1px rgba(10, 10, 11, 0.14);
  --xleads-shadow-primary: 0 0 0 0 transparent;
  --xleads-ring-primary: 0 0 0 0 transparent;

  /* §3.4 spacing: the only steps page layout uses */
  --xleads-sp-4: 4px;
  --xleads-sp-8: 8px;
  --xleads-sp-12: 12px;
  --xleads-sp-16: 16px;
  --xleads-sp-24: 24px;
  --xleads-sp-32: 32px;
  --xleads-sp-48: 48px;
  --xleads-sp-64: 64px;
  --xleads-sp-96: 96px;
  --xleads-sp-128: 128px;
  --xleads-sp-160: 160px;

  /* §3.4 layout (responsive values below, under breakpoints) */
  --xleads-max: 1200px;
  --xleads-max-wide: 1200px;
  --xleads-gutter: 40px;
  --xleads-sec-pad: 96px;
  --xleads-nav-h: 64px;

  /* §8 motion */
  --xl-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --xl-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --xl-ease-stamp: cubic-bezier(0.34, 1.56, 0.64, 1);
  --xl-dur-micro: 120ms;
  --xl-dur-ui: 200ms;
  --xl-dur-panel: 320ms;
  --xl-dur-reveal: 500ms;
  --xl-dur-count: 900ms;
  --xl-dur-draw: 600ms;
  --xl-dur-flip: 400ms;
  --xl-dur-coin: 400ms;
  --xl-dur-scan: 420ms;
  --xl-dur-stamp: 250ms;
  --xl-dur-pulse: 600ms;
  --xl-stagger-cards: 120ms;
  --xl-stagger-rows: 70ms;
  --xl-reveal-distance: 16px;
}

/* ------------------------------------------------------------- grounds -- */

/* Two grounds and one stage (§3.1, V2-D5): dark (nav → AI) → paper (support,
   pricing, FAQ) → dark (final CTA, footer). The hub band is the stage. */
:root,
.sec-dark,
.sec-stage,
.sec-surface,
.ground-dark {
  --ground-fg: var(--xleads-text);
  --ground-muted: var(--xleads-muted);
  --ground-accent: var(--xleads-red);
  --ground-seal: var(--xleads-muted);
  --ground-ok: var(--xleads-green);
  --ground-demo: var(--xleads-amber);
  --ground-line: var(--xleads-line);
  --ground-line-strong: var(--xleads-line-strong);
  --ground-focus: var(--xleads-focus);
  --ground-frame-shadow: var(--xleads-shadow-frame);
  --ground-ghost-fill: transparent;
  --ground-ghost-border: var(--xleads-line-strong);
  --ground-ghost-hover: rgba(255, 255, 255, 0.04);
}
.sec-paper,
.ground-paper {
  --ground-fg: var(--xleads-ink);
  --ground-muted: var(--xleads-ink-muted);
  --ground-accent: var(--xleads-red-ink);
  --ground-seal: var(--xleads-ink-muted);
  --ground-ok: var(--xleads-green-ink);
  --ground-demo: var(--xleads-amber-ink);
  --ground-line: var(--xleads-line-paper);
  --ground-line-strong: var(--xleads-line-paper-strong);
  /* #FF5A66 is under 3:1 on paper; the ring turns red-ink there. */
  --ground-focus: var(--xleads-red-ink);
  --ground-frame-shadow: var(--xleads-shadow-card);
  --ground-ghost-fill: transparent;
  --ground-ghost-border: var(--xleads-line-paper-strong);
  --ground-ghost-hover: rgba(10, 10, 11, 0.04);
}

/* --------------------------------------------------------------- reset -- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchor jumps and scrollIntoView land under the sticky nav, not behind it. */
  scroll-padding-top: var(--xleads-nav-h);
  background: var(--xleads-bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--xleads-bg);
  color: var(--ground-fg);
  font-family: var(--xleads-font-sans);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}
img,
svg,
video,
picture,
canvas {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
a {
  color: inherit;
}
b,
strong {
  font-weight: 600;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: rgba(250, 250, 250, 0.22);
  color: #ffffff;
}
.sec-paper ::selection {
  background: rgba(10, 10, 11, 0.12);
  color: var(--xleads-ink);
}
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--ground-focus);
  outline-offset: 2px;
}

/* Screen-reader only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--xleads-r-control);
  background: var(--xleads-text);
  color: var(--xleads-ink);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible {
  transform: none;
}

/* Custom elements are inline until defined; every xl-* wrapper is a block. */
xl-nav,
xl-hero,
xl-what,
xl-see-it-work,
xl-ai-agents,
xl-support,
xl-pricing,
xl-faq,
xl-final-cta,
xl-footer {
  display: block;
}

/* ---------------------------------------------------------- containers -- */

/* 1200 px for every section, the hub included (§3.4). At 1440 the first
   column starts at x = 120. */
.container {
  width: 100%;
  max-width: calc(var(--xleads-max) + 2 * var(--xleads-gutter));
  margin-inline: auto;
  padding-inline: var(--xleads-gutter);
}
/* Alias: the 1280 hub width is retired; it is the 1200 container now. */
.container-wide {
  max-width: calc(var(--xleads-max-wide) + 2 * var(--xleads-gutter));
}
/* 12 × 24 desktop, 8 × 24 tablet, 4 × 16 phone. */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

/* ------------------------------------------------------------- sections -- */

.sec {
  position: relative;
  display: block;
  padding-block: var(--xleads-sec-pad);
}
.sec-dark {
  background: var(--xleads-bg);
  color: var(--ground-fg);
}
/* The hub band (full bleed, no border): a stage, not a ground change. */
.sec-stage,
.sec-surface {
  background: var(--xleads-stage);
  color: var(--ground-fg);
}
.sec-paper {
  background: var(--xleads-paper);
  color: var(--ground-fg);
}
/* Rhythm: sections are parted by space, three steps of it (160 / 96 / 64),
   and at most one hairline (.sec-rule), never by a card. */
.sec-xl {
  padding-block: var(--xleads-sp-160);
}
.sec-sm {
  padding-block: var(--xleads-sp-64);
}
.sec-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--xleads-gutter);
  right: var(--xleads-gutter);
  max-width: var(--xleads-max);
  margin-inline: auto;
  height: 1px;
  background: var(--ground-line-strong);
}
/* A section's heading block: H2 → 24 → lede, then 64 to the content. */
.sec-head {
  display: grid;
  gap: 24px;
  max-width: 996px;
  margin-bottom: 64px;
}
.sec-head-center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

/* ----------------------------------------------------------------- type -- */

/*
 * The closed type scale (design pass, Nov 11, 2026: editorial black):
 * 14 / 18 / 24 / 40 / 72, with 96 for the hero H1 and bare numerals and 20
 * for row titles. 12 is the frame caption only (.t-cap). Poppins 600 for
 * headlines and numerals, 400 for text. Every price and count is tabular.
 * The v1 class names (.h1 .h2 .h3 .lede .body .small .micro .price,
 * .statement = H2) are the same roles.
 */
.t-display,
.h1,
.t-h2,
.h2,
.statement,
.t-h3,
.h3,
.t-title,
.t-plan,
.t-price,
.price,
.t-num {
  font-family: var(--xleads-font-sans);
  font-weight: 600;
  color: var(--ground-fg);
  text-wrap: balance;
}
.t-display,
.h1 {
  font-size: 96px;
  line-height: 96px;
  letter-spacing: -0.045em;
}
.t-h2,
.h2,
.statement {
  font-size: 72px;
  line-height: 76px;
  letter-spacing: -0.04em;
}
/* The quiet H2 of a side column (FAQ, support). */
.t-h2s {
  font-family: var(--xleads-font-sans);
  font-weight: 600;
  color: var(--ground-fg);
  text-wrap: balance;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -0.03em;
}
.t-h3,
.h3 {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.015em;
}
/* Row titles, FAQ questions. */
.t-title {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.t-plan {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.015em;
}
.t-price,
.price {
  font-size: 72px;
  line-height: 72px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* A bare numeral: the figure is the picture. */
.t-num {
  font-size: 96px;
  line-height: 96px;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.t-lede,
.lede {
  max-width: 44ch;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--ground-muted);
  text-wrap: pretty;
}
.t-body,
.body {
  max-width: 60ch;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  text-wrap: pretty;
}
.t-ui {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}
/* Footnotes, disclosures, labels: the 14 px floor. */
.t-small,
.small,
.t-micro,
.micro {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}
.t-micro,
.micro {
  color: var(--ground-muted);
}
/* The one caption under a product frame ("Sample data"): the only 12. */
.t-cap {
  margin-top: 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--ground-muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
/* Beta products (src/data/beta.ts): a small red "*beta" right after the
   name, held to it so it never wraps away, and the note the asterisk points
   to. Red on dark, red-ink on paper (the ground's own accent). */
.xl-beta-w {
  white-space: nowrap;
}
/* Smaller and quieter (owner, Nov 27, 2026: "make *beta in less big it looks
   off"): about 0.62 of the line's size, medium weight, lowercase, a light
   superscript that never moves the line height (line-height 0), 1px after
   the name and nothing after it, so a comma or period sits right after the
   mark. */
.xl-beta {
  position: static;
  margin: 0 0 0 1px;
  padding: 0;
  font-size: 0.62em;
  line-height: 0;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  text-transform: lowercase;
  vertical-align: super;
  color: var(--ground-accent, #f82032);
}
/* Beside a logo picture: by the top of its plate. */
.b-logo-plate + .xl-beta {
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
  vertical-align: top;
}
.xl-beta-note {
  max-width: 68ch;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--ground-muted);
  text-wrap: pretty;
}
.xl-beta-star {
  font-weight: 600;
  color: var(--ground-accent, #f82032);
}

/* The one data highlight in a viewport: red text on dark, red-ink on paper. */
.accent {
  color: var(--ground-accent);
}
.muted {
  color: var(--ground-muted);
}
/* Alias: Poppins too (there is no mono type). */
.mono {
  font-family: var(--xleads-font-sans);
}
/* Deprecated: no eyebrows. Left as a quiet line for a fragment that still
   carries one. */
.eyebrow {
  font-family: var(--xleads-font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--ground-muted);
}

/* -------------------------------------------------------------- buttons -- */

/*
 * §3.6 one component per job. Heights: 36 nav (.btn-sm) · 40 hub controls
 * (.btn-md) · 44 default · 52 hero, plan cards, plan sheet (.btn-lg) · 56
 * final CTA (.btn-xl). Padding 0 20 (24 for 52 / 56), radius 10, sentence
 * case. No glow: the red button's hover is a darker red.
 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--xleads-r-control);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ground-fg);
  font-family: var(--xleads-font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--xl-dur-micro) var(--xl-ease-out),
    background-color var(--xl-dur-ui) var(--xl-ease-out),
    border-color var(--xl-dur-ui) var(--xl-ease-out),
    color var(--xl-dur-ui) var(--xl-ease-out);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--ground-focus);
  outline-offset: 2px;
}
.btn-sm,
.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-md {
  height: 40px;
}
.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}
.btn-xl {
  height: 56px;
  padding: 0 24px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
/* Red primary: the buy button. At most one filled red button per viewport. */
.btn-primary {
  background: var(--xleads-red-solid);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--xleads-red-hover);
}
/* Neutral solid on dark: the nav CTA, hub Next. */
.btn-neutral {
  background: var(--xleads-text);
  color: var(--xleads-ink);
}
.btn-neutral:hover {
  background: #e4e4e7;
}
/* Ink solid on paper: Basic's buttons. */
.btn-ink {
  background: var(--xleads-ink);
  color: #ffffff;
}
.btn-ink:hover {
  background: #26262b;
}
/* Ghost: transparent with a strong hairline ("See it work", hub Back). */
.btn-ghost,
.btn-secondary {
  background: var(--ground-ghost-fill);
  border-color: var(--ground-ghost-border);
  color: var(--ground-fg);
}
.btn-ghost:hover,
.btn-secondary:hover {
  background: var(--ground-ghost-hover);
  border-color: rgba(255, 255, 255, 0.28);
}
.sec-paper .btn-ghost:hover,
.sec-paper .btn-secondary:hover {
  border-color: rgba(10, 10, 11, 0.28);
}
/* Text link: 15/500 with a trailing →; the arrow moves 2 px on hover and a
   1 px underline appears at offset 4. */
.btn-text,
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ground-fg);
  font-family: var(--xleads-font-sans);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-color var(--xl-dur-ui) var(--xl-ease-out);
}
.btn-text:hover,
.link:hover {
  text-decoration-color: currentColor;
}
/* The trailing arrow (a text "→" or a 16 px icon). */
.btn-arrow,
.link-arrow {
  display: inline-block;
  flex: none;
  text-decoration: none;
  transition: transform var(--xl-dur-ui) var(--xl-ease-out);
}
.btn:hover .btn-arrow,
.link:hover .link-arrow,
.btn-text:hover .link-arrow {
  transform: translateX(2px);
}

/* ---------------------------------------------------------------- labels -- */

/* There are no chips or pills (design pass, Nov 11, 2026). A frame's sample
   label is the plain .t-cap caption under it. */

/* Deprecated: the v1 XPlan seal, now the quiet lock line (§3.6: lock icon +
   the word "XPlan", never colour alone). */
.seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ground-muted);
  font-family: var(--xleads-font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
}
.seal svg {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Deprecated: the v1 CTA tray is no box now (never a card around buttons). */
.tray {
  display: grid;
  gap: 12px;
}
.tray-note {
  font-size: 14px;
  line-height: 22px;
  color: var(--ground-muted);
}

/* --------------------------------------------------------------- reveal -- */

/* The one frame fade-up (§8 c): opacity 0→1, y 16→0, 500 ms, once. Wired by
   the bundle (runtime/routes.ts): only frames below the fold get
   .reveal-armed, so without JS, above the fold or under reduced motion
   nothing is hidden. Put .reveal on product frames only, never on text. */
.reveal-armed {
  transition:
    opacity var(--xl-dur-reveal) var(--xl-ease-out) var(--xl-reveal-delay, 0ms),
    transform var(--xl-dur-reveal) var(--xl-ease-out) var(--xl-reveal-delay, 0ms);
}
.reveal-armed:not(.is-in) {
  opacity: 0;
  transform: translateY(var(--xl-reveal-distance));
}

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 1279px) {
  :root {
    --xleads-gutter: 32px;
  }
  .t-display,
  .h1 {
    font-size: 72px;
    line-height: 76px;
    letter-spacing: -0.04em;
  }
}
@media (max-width: 991px) {
  :root {
    --xleads-nav-h: 56px;
  }
  .grid-12 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .t-h2,
  .h2,
  .statement {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.03em;
  }
  .t-num {
    font-size: 72px;
    line-height: 72px;
    letter-spacing: -0.04em;
  }
}
@media (max-width: 767px) {
  :root {
    --xleads-gutter: 24px;
    --xleads-sec-pad: 64px;
    --xleads-sp-160: 96px;
  }
  .sec-sm {
    padding-block: var(--xleads-sp-48);
  }
  .grid-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
  }
  .sec-head {
    gap: 16px;
    margin-bottom: 40px;
  }
  .t-display,
  .h1 {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.03em;
  }
  .t-price,
  .price {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.03em;
  }
}
@media (max-width: 479px) {
  :root {
    --xleads-gutter: 16px;
  }
}

/* ------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal-armed:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .reveal-armed:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}

/* /replaces (owner, Nov 10, 2026): "What XLeads replaces", by tool.
   Mobile first: rows are stacked cards on phones, a 3-column row from 900;
   the summary sits under the list on phones (with a fixed total bar) and is
   a sticky right column from 1100. Dark ground, red only for XLeads. */

html,
body.rp {
  background: var(--xleads-bg);
}
body.rp {
  min-height: 100vh;
  margin: 0;
  color: var(--ground-fg);
  padding-bottom: 72px; /* room for the phone total bar */
}

/* ----------------------------------------------------------- top bar -- */
.rp-top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--xleads-max) + 2 * var(--xleads-gutter));
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--xleads-gutter);
  box-shadow: inset 0 -1px 0 var(--xleads-line);
}
.rp-brand {
  display: inline-flex;
  flex: none;
  align-items: flex-end;
  gap: 4px;
  min-height: 44px;
  padding-block: 10px;
  color: var(--xleads-text);
  text-decoration: none;
  border-radius: 4px;
}
.rp-brand:focus-visible {
  outline: 2px solid var(--xleads-focus);
  outline-offset: 2px;
}
.rp-logo {
  display: block;
  flex: none;
  width: 88px;
  height: 24px;
}
.rp-sep {
  flex: none;
  width: 1px;
  height: 20px;
  background: var(--xleads-line-strong);
}
.rp-label {
  min-width: 0;
  overflow: hidden;
  color: var(--xleads-muted);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Home and Pricing: 44 px targets at every width. */
.rp-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.rp-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--xleads-muted);
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.rp-link:hover {
  color: var(--xleads-text);
}
.rp-link:focus-visible {
  outline: 2px solid var(--xleads-focus);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (max-width: 479px) {
  .rp-top .rp-sep,
  .rp-top .rp-label {
    display: none;
  }
}

/* -------------------------------------------------------------- intro -- */
.rp-main {
  padding-block: 40px 64px;
}
.rp-head {
  display: grid;
  gap: 16px;
  max-width: 792px;
}
.rp-eyebrow {
  margin: 0;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
.rp-h1,
.rp-lede {
  margin: 0;
}
.rp-lede {
  color: var(--xleads-muted);
}
.rp-per {
  color: var(--xleads-muted);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0;
}

/* ----------------------------------------------------- worked example -- */
.rp-ex {
  margin-top: 40px;
  padding: 20px;
  border-radius: var(--xleads-r-frame);
  background: var(--xleads-stage);
  box-shadow: inset 0 0 0 1px var(--xleads-line);
}
.rp-ex-h {
  margin: 0 0 12px;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.rp-ex-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rp-ex-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--xleads-line-strong);
  border-radius: var(--xleads-r-control);
  font-size: 14px;
  line-height: 20px;
}
.rp-ex-line span:first-child {
  min-width: 0;
  overflow: hidden;
  color: var(--xleads-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-ex-line .num {
  font-weight: 600;
}
.rp-ex-lead {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--xleads-muted);
}
.rp-ex-sum {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.rp-ex-vs,
.rp-ex-plus,
.rp-ex-note {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 24px;
}
.rp-ex-vs .num:first-child {
  color: var(--xleads-red);
  font-weight: 600;
}
.rp-ex-plus,
.rp-ex-note {
  color: var(--xleads-muted);
}
.rp-ex-note {
  font-size: 14px;
  line-height: 20px;
}

/* ------------------------------------------------------------ columns -- */
.rp-cols {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
.rp-list {
  min-width: 0;
}
.rp-list-head {
  display: grid;
  gap: 6px;
}
.rp-list-h,
.rp-sum-h,
.rp-notes-h {
  margin: 0;
}
.rp-list-sub {
  margin: 0;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 22px;
}
.rp-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
/* The set buttons need the picker script. */
html:not([data-rp-live]) .rp-sets {
  display: none;
}
.rp-set {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--xleads-line-strong);
  border-radius: var(--xleads-r-control);
  background: transparent;
  color: var(--xleads-text);
  font: 500 14px/20px var(--xleads-font-sans);
  cursor: pointer;
}
.rp-set:hover {
  background: rgba(255, 255, 255, 0.04);
}
.rp-set:focus-visible {
  outline: 2px solid var(--xleads-focus);
  outline-offset: 2px;
}

.rp-group {
  margin-top: 28px;
}
.rp-job {
  margin: 0 0 10px;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.rp-rows {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------------------------------------------------------------- row -- */
.rp-row {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--xleads-r-vignette);
  background: var(--xleads-stage);
  box-shadow: inset 0 0 0 1px var(--xleads-line);
  transition: box-shadow var(--xl-dur-ui) var(--xl-ease-out);
}
.rp-row:has(.rp-check:checked) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  background: var(--xleads-surface-2);
}
.rp-pick {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-height: 44px;
  cursor: pointer;
}
/* The native box stays in the tree (keyboard, screen readers); the drawn
   box shows its state. */
.rp-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.rp-box {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background: transparent;
}
.rp-check:checked + .rp-box {
  border-color: var(--xleads-text);
  background: var(--xleads-text)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.rp-check:focus-visible + .rp-box {
  outline: 2px solid var(--xleads-focus);
  outline-offset: 2px;
}
.rp-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.rp-used {
  grid-column: 2;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 22px;
}
.rp-price,
.rp-xl {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 36px;
}
.rp-amt {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.rp-fine,
.rp-src {
  color: var(--xleads-faint);
  font-size: 14px;
  line-height: 18px;
}
/* 12 px lines need more contrast than the faint token gives on the stage. */
.rp-fine {
  color: var(--xleads-muted);
}
.rp-xl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.rp-xl-name {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.rp-xl-name::before {
  content: "→ ";
  color: var(--xleads-red);
}
.rp-scope {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--xleads-line-strong);
  border-radius: var(--xleads-r-chip);
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.rp-scope-x {
  border-color: rgba(248, 32, 50, 0.5);
  color: var(--xleads-red-hot);
}
.rp-for {
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 22px;
}
.rp-src {
  margin: 0;
  padding-left: 36px;
  color: var(--xleads-muted);
}

/* ------------------------------------------------------------ summary -- */
.rp-sum {
  min-width: 0;
  padding: 20px;
  border-radius: var(--xleads-r-frame);
  background: var(--xleads-stage);
  box-shadow: var(--xleads-shadow-frame);
  scroll-margin-top: 16px;
}
.rp-sum-lines {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 22px;
}
.rp-sum-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rp-sum-line span:first-child,
.rp-sum-empty {
  color: var(--xleads-muted);
}
.rp-sum-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--xleads-line-strong);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.rp-sum-total .num {
  margin-left: auto;
  font-size: 32px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rp-sum-total .rp-per {
  font-size: 14px;
}
.rp-sum-math,
.rp-plan-math {
  margin: 4px 0 0;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.rp-sum-math {
  text-align: right;
}
.rp-sum-fine {
  margin: 8px 0 0;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 18px;
}
.rp-plan {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--xleads-r-vignette);
  box-shadow: inset 0 0 0 1px var(--xleads-line-strong);
}
.rp-plan-xplan {
  box-shadow: inset 0 0 0 1px var(--xleads-red-solid);
}
.rp-plan-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.rp-plan-name {
  margin-right: auto;
  font-size: 16px;
}
.rp-plan-xplan .rp-plan-name {
  color: var(--xleads-red-hot);
}
.rp-plan-head .rp-per {
  font-size: 14px;
}
.rp-plan-line {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 22px;
}

/* -------------------------------------------------------- notes + CTA -- */
.rp-notes {
  max-width: 792px;
  margin-top: 56px;
}
.rp-notes-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 22px;
}
.rp-cta {
  display: grid;
  gap: 12px;
  max-width: 792px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--xleads-line);
}
.rp-cta-h,
.rp-cta-p {
  margin: 0;
}
.rp-cta-p {
  color: var(--xleads-muted);
}
.rp-cta-btns {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
/* The direct buy button with its renewal line right under it. */
.rp-buy {
  display: grid;
  gap: 8px;
}
.rp-buy-renew {
  margin: 0;
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 18px;
}

/* ----------------------------------------------------- phone total bar -- */
.rp-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px var(--xleads-gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--xleads-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--xleads-line-strong);
  color: var(--xleads-text);
  text-decoration: none;
}
.rp-bar-l {
  color: var(--xleads-muted);
  font-size: 14px;
  line-height: 20px;
}
.rp-bar-t {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.rp-bar-go {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-left: auto;
  padding: 0 14px;
  border-radius: var(--xleads-r-control);
  background: var(--xleads-text);
  color: var(--xleads-ink);
  font-size: 14px;
  font-weight: 600;
}
.rp-bar:focus-visible {
  outline: 2px solid var(--xleads-focus);
  outline-offset: -4px;
}

/* ---------------------------------------------------------------- ≥600 -- */
@media (min-width: 600px) {
  .rp-ex {
    padding: 28px;
  }
  .rp-ex-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rp-ex-sum {
    font-size: 28px;
    line-height: 36px;
  }
  .rp-cta-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------------------- ≥900 -- */
@media (min-width: 900px) {
  .rp-main {
    padding-block: 64px 96px;
  }
  .rp-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr) minmax(0, 1.5fr);
    column-gap: 24px;
    row-gap: 10px;
    padding: 18px 20px;
  }
  .rp-price,
  .rp-xl {
    padding-left: 0;
  }
  .rp-src {
    grid-column: 1 / -1;
  }
  .rp-ex-lines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------- ≥1100 -- */
@media (min-width: 1100px) {
  body.rp {
    padding-bottom: 0;
  }
  .rp-bar {
    display: none;
  }
  .rp-cols {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    column-gap: 32px;
  }
  .rp-sum {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: auto;
  }
  .rp-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.35fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-row {
    transition: none;
  }
}
