/* ═══════════════════════════════════════════════════════════════════════════
 * CONVERGE — Swiss Authority — Design tokens
 *
 * Single source of truth for the design system. Plain CSS custom properties —
 * no Tailwind. The `--color-*`/`--text-*`/`--font-*` canonical names and the raw
 * Swiss Authority aliases (--paper, --ink, --line, --accent, …) are both plain
 * `:root` vars, consumed via `var(…)` throughout the hand-written page/component
 * CSS ported verbatim from the prototype.
 *
 * Stance: calm Swiss type (Hanken only), white/cool paper inside a hatched
 * blueprint frame, one forest-green interactive accent, painterly dither
 * "chapter" tiles, pill buttons on ~8–12px rectangles. No dark mode, no
 * second typeface, no eyebrow stacking. See design.md for the full ruleset.
 * ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* ── Surfaces ──────────────────────────────────────────────────────────── */
  --color-background: #ffffff; /* paper — page bg, end to end */
  --color-surface-soft: #fafafa; /* paper-soft */
  --color-surface-muted: #f4f6fa; /* paper-cool — resting tile fill */
  --color-surface-sunken: #eceff4; /* paper-sunken */
  --color-surface-mist: #e8eef6; /* mist */

  /* ── Ink / foreground ──────────────────────────────────────────────────── */
  --color-foreground: #0e1014; /* ink — primary text + primary button fill */
  --color-foreground-soft: #2b2e36; /* ink-soft — nav links, secondary */
  --color-foreground-muted: #5b6068; /* ink-muted — ledes, body on tiles */
  --color-foreground-subtle: #8a8f98; /* ink-subtle — captions, timestamps */
  --color-foreground-inverse: #ffffff; /* on dither / dark photo scrims */

  /* ── Lines ─────────────────────────────────────────────────────────────── */
  --color-border: rgba(14, 16, 20, 0.08); /* default hairline */
  --color-border-strong: rgba(14, 16, 20, 0.18); /* ghost border, dashes */

  /* ── Accent — the ONE interactive accent (forest green) ────────────────── */
  --color-accent: #2f6e4b; /* links-hover, accent spans, primary hover */
  --color-accent-deep: #235638; /* nav CTA hover */
  --color-accent-soft: #e0eae3; /* check-mark chips, pastel fills */
  --color-accent-mist: #eef4ef; /* "Converge column" wash, tinted tiles */

  /* ── Role hues — ILLUSTRATIVE ONLY (never text, never interactive) ─────────
   * Each product layer owns a hue family for its illustrations + dither tile.
   * Cool = server-side tracking/data · Verdant = analytics/measurement ·
   * Warm = the agent / agentic. Alternate flavors down a page. */
  --color-role-cool-1: #5a8aa6;
  --color-role-cool-2: #7cb0c4;
  --color-role-cool-3: #b8c8cc;
  --color-role-verdant-1: #2f6e4b;
  --color-role-verdant-2: #6e8c4a;
  --color-role-verdant-3: #d4a45c;
  --color-role-warm-1: #e8744a;
  --color-role-warm-2: #d4a45c;
  --color-role-warm-deep: #c45a2e;

  /* ── Soft-blue gradient ramp — washes only, never text ─────────────────── */
  --color-grad-1: #ffffff;
  --color-grad-2: #f2f6fb;
  --color-grad-3: #e2eaf4;
  --color-grad-4: #cdd9e8;

  /* ── Type family — Hanken Grotesk only. `--font-hanken` is emitted by
   * Astro's Fonts API (see astro.config.mjs). No mono, no serif, no second
   * family. (Docs code samples use a system monospace, scoped to the docs
   * CodeBlock component — not a brand token.) ────────────────────────────── */
  --font-display: var(--font-hanken), system-ui, sans-serif;
  --font-ui: var(--font-hanken), system-ui, sans-serif;

  /* ── Type scale — paired line-height/tracking/weight modifiers so a single
   * `text-h2` utility sets all four. Large headings use clamp() for fluid
   * mobile→desktop shrink. Sentence case always; bold the operative phrase. ─ */
  --text-display: clamp(
    2.75rem,
    5.4vw,
    4.5rem
  ); /* 44 → 72px — homepage hero h1 */
  --text-display--line-height: 1.04;
  --text-display--letter-spacing: -0.035em;
  --text-display--font-weight: 600;

  --text-h1: clamp(
    2.5rem,
    4.6vw,
    3.75rem
  ); /* 40 → 60px — default h1 / interior hero */
  --text-h1--line-height: 1.04;
  --text-h1--letter-spacing: -0.035em;
  --text-h1--font-weight: 600;

  --text-h2-lg: clamp(2.5rem, 5vw, 4rem); /* 40 → 64px — CTA-band display h2 */
  --text-h2-lg--line-height: 1.05;
  --text-h2-lg--letter-spacing: -0.035em;
  --text-h2-lg--font-weight: 600;

  --text-h2: clamp(2.25rem, 4.4vw, 3.5rem); /* 36 → 56px — section h2 */
  --text-h2--line-height: 1.05;
  --text-h2--letter-spacing: -0.025em;
  --text-h2--font-weight: 500;

  --text-h2-sm: clamp(
    1.75rem,
    2.6vw,
    2.25rem
  ); /* 28 → 36px — featured-tile display title */
  --text-h2-sm--line-height: 1.08;
  --text-h2-sm--letter-spacing: -0.02em;
  --text-h2-sm--font-weight: 500;

  --text-h3: clamp(
    1.375rem,
    2.4vw,
    1.75rem
  ); /* 22 → 28px — tile/feature title */
  --text-h3--line-height: 1.15;
  --text-h3--letter-spacing: -0.015em;
  --text-h3--font-weight: 600;

  --text-h4: 1.125rem; /* 18px — default h4 */
  --text-h4--line-height: 1.3;
  --text-h4--letter-spacing: -0.01em;
  --text-h4--font-weight: 600;

  /* ── Body type: TWO SIZES ONLY ──────────────────────────────────────────
   * Round 12 (Jerome). Equivalent elements had drifted to 15/16/16.5/17/18/
   * 19/20px across pages. There are now exactly two body sizes sitewide:
   *
   *   --text-body (18px)   leads, prose, section sub-lines, CTA body, list items
   *   --text-card (16.5px) any paragraph INSIDE a card / tile / panel
   *
   * Declared in px, not rem, so the mobile root-step below can't fracture them
   * back into a spread. DO NOT introduce a third body size — if a paragraph
   * feels wrong at 18, it is card body and belongs at 16.5, or vice versa.
   * ------------------------------------------------------------------------ */
  --text-body: 18px;
  --text-body--line-height: 1.55;
  --text-body--font-weight: 400;

  --text-card: 16.5px;
  --text-card--line-height: 1.45;
  --text-card--font-weight: 400;

  /* Alias of --text-body, kept because `text-lead` reads better on a hero
   * lede. Same 18px — a lede is NOT its own size. */
  --text-lead: 18px; /* 18px — hero lede / sub line (= --text-body) */
  --text-lead--line-height: 1.55;
  --text-lead--font-weight: 400;

  --text-label: 0.8125rem; /* 13px — small-tile label (sits above body) */
  --text-label--line-height: 1.3;
  --text-label--font-weight: 500;

  /* Eyebrow — DEPRECATED (Round 4: eyebrows removed; h2 + sub does the work).
   * Token kept so legacy markup doesn't break; do not use in new sections. */
  --text-eyebrow: 0.75rem; /* 12px */
  --text-eyebrow--line-height: 1;
  --text-eyebrow--letter-spacing: 0.12em;
  --text-eyebrow--font-weight: 600; /* shipped homepage .eyebrow is 600 (code wins over design.md's 500) */

  --text-stat: clamp(
    1.75rem,
    3vw,
    2.75rem
  ); /* 28 → 44px — stat numerics (use tabular-nums) */
  --text-stat--line-height: 1;
  --text-stat--letter-spacing: -0.02em;
  --text-stat--font-weight: 600;

  /* ── Radii — 8–12px (NOT sharp 90°, NOT the old 18–24px). Buttons are pills. */
  --radius-sm: 8px; /* chips, small icon plates */
  --radius-md: 10px; /* nested mock cards */
  --radius-lg: 12px; /* tiles, panels, tables — the default */
  --radius-xl: 16px; /* legacy case mosaic only — do not copy into new work */

  /* ── Shadows — essentially none at rest. Hover lift only. ──────────────── */
  --shadow-tile-lift: 0 24px 60px -28px rgba(14, 16, 20, 0.45); /* case-tile hover */

  /* ── Named dither backgrounds — the three "chapter" flavors. Always pair
   * with the fractal-noise overlay + white text-shadow (see .dither helpers). */
  --background-image-dither-warm:
    radial-gradient(ellipse 70% 60% at 22% 78%, #e8744a 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 80%, #d4a45c 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 20% 18%, #a89cc4 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 15%, #c89880 0%, transparent 55%),
    linear-gradient(160deg, #b3a4c8 0%, #d49870 55%, #b88858 100%);
  --background-image-dither-sage:
    radial-gradient(
      ellipse 95% 95% at 100% -5%,
      rgba(238, 242, 226, 0.65) 0%,
      rgba(200, 218, 170, 0.32) 28%,
      rgba(140, 165, 110, 0.1) 60%,
      transparent 90%
    ),
    radial-gradient(ellipse 75% 45% at 45% 55%, #6e8c4a 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 100%, #3a4a26 0%, transparent 60%),
    linear-gradient(180deg, #7b9560 0%, #5a7038 45%, #3f4e26 85%, #2f3a1c 100%);
  --background-image-dither-blue:
    radial-gradient(
      ellipse 90% 80% at 85% -5%,
      rgba(244, 248, 252, 0.6) 0%,
      rgba(205, 217, 232, 0.3) 30%,
      transparent 65%
    ),
    radial-gradient(ellipse 70% 50% at 40% 60%, #8aa2c0 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 105%, #3c5070 0%, transparent 62%),
    linear-gradient(175deg, #a8bcd6 0%, #7890b0 50%, #51647f 100%);
  /* Soft-blue section wash — the only section-level gradient allowed (hero +
   * CTA band). Two grad radials over paper; never behind body text. */
  --background-image-hero-wash:
    radial-gradient(
      ellipse 60% 50% at 50% 0%,
      var(--color-grad-2) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 80% 60% at 50% 100%,
      var(--color-grad-3) 0%,
      transparent 65%
    );

  /* ── Motion ────────────────────────────────────────────────────────────── */
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Compatibility shim — raw Swiss Authority names → canonical @theme tokens.
 * Lets the verbatim-ported blueprint chrome + dither recipes keep using
 * var(--paper)/var(--ink)/var(--line)/var(--accent)/var(--ease). New component
 * work should prefer the Tailwind utilities; these are for the infra CSS. ─── */
:root {
  --paper: var(--color-background);
  --paper-soft: var(--color-surface-soft);
  --paper-cool: var(--color-surface-muted);
  --paper-sunken: var(--color-surface-sunken);
  --mist: var(--color-surface-mist);
  --ink: var(--color-foreground);
  --ink-soft: var(--color-foreground-soft);
  --ink-muted: var(--color-foreground-muted);
  --ink-subtle: var(--color-foreground-subtle);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --accent: var(--color-accent);
  --accent-deep: var(--color-accent-deep);
  --accent-soft: var(--color-accent-soft);
  --accent-mist: var(--color-accent-mist);
  --grad-1: var(--color-grad-1);
  --grad-2: var(--color-grad-2);
  --grad-3: var(--color-grad-3);
  --grad-4: var(--color-grad-4);
  --ease: var(--ease-quint);
  --pill: 9999px;
  --rails-top: 0;
  /* Primary CTA fill — flat, no gradient (Round 10). Hover is one lighter step. */
  --btn-fill: #337750;
  --btn-fill-hover: #3a8159;
  /* Green washes. -soft fills icon tiles; -mist is the radial behind an
     interior hero. Both are washes, not surfaces — they never take a border. */
  --p-green-soft: #e7efe9;
  --p-green-mist: #f1f6f2;
  /* Light green for glyphs/eyebrows sitting on a dark hero gradient (the demo
     hero's experience icons). Reads as an accent tint against the dark ground. */
  --p-on-dark: #9fc8b1;
  /* Danger / form-error red — inline validation text + the errored-field
     border (-border, a softer tint), plus the -wash background for error
     alert boxes (the demo's failed-availability notice). */
  --danger: #c0492b;
  --danger-border: #d98b76;
  --danger-wash: #fbf1ee;
  /* Status and role text colours from the Converge design system (same names
     and values as the Hudson canvas, src/styles/hudson/hudson.css). Chip text
     uses the -ink shade on its -soft/-bg fill. The verb picks the family:
     Approved/Scale green, Hold/Needs approval amber, Pause/Cut/Rejected neutral
     (--paper-sunken + --ink-soft), red only for a metric that got worse. */
  --warm-ink: #b14a22;
  --warm-soft: #fbeee5;
  --cool-ink: #3d6c91;
  --amber-ink: #8a5a14;
  --amber-soft: #faf0dc;
  --neg-ink: #b91c1c;
  --neg-bg: #fdeaea;
  /* Hero scene gradients — the dark/spot hero backdrops per product spine
     (homepage hero: verd=agentic/Hudson, warm=analyze, blue=track); --scene-noise
     is the shared grain. */
  --scene-verd:
    radial-gradient(
      ellipse 95% 95% at 100% -5%,
      rgba(238, 242, 226, 0.65) 0%,
      rgba(200, 218, 170, 0.32) 28%,
      rgba(140, 165, 110, 0.1) 60%,
      transparent 90%
    ),
    radial-gradient(ellipse 75% 45% at 45% 55%, #6e8c4a 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 100%, #3a4a26 0%, transparent 60%),
    linear-gradient(180deg, #7b9560 0%, #5a7038 45%, #3f4e26 85%, #2f3a1c 100%);
  --scene-warm:
    radial-gradient(ellipse 70% 60% at 22% 78%, #e8744a 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 80%, #d4a45c 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 20% 18%, #a89cc4 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 15%, #c89880 0%, transparent 55%),
    linear-gradient(160deg, #b3a4c8 0%, #d49870 55%, #b88858 100%);
  --scene-blue:
    radial-gradient(
      ellipse 90% 80% at 85% -5%,
      rgba(244, 248, 252, 0.6) 0%,
      rgba(205, 217, 232, 0.3) 30%,
      transparent 65%
    ),
    radial-gradient(ellipse 70% 50% at 40% 60%, #8aa2c0 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 105%, #3c5070 0%, transparent 62%),
    linear-gradient(175deg, #a8bcd6 0%, #7890b0 50%, #51647f 100%);
  /* The dark verdant hero surface of /hudson (its --hx-dark-bg; the same layers
     as .phero-dark). /hudson lays --scene-noise over it inverted and screened at
     16%, light specks rather than the scenes' overlay grain. */
  --scene-dark:
    radial-gradient(
      72% 52% at 50% 82%,
      rgba(150, 190, 120, 0.42) 0%,
      transparent 60%
    ),
    radial-gradient(
      90% 70% at 50% -8%,
      rgba(225, 236, 205, 0.2) 0%,
      transparent 55%
    ),
    radial-gradient(120% 95% at 50% 122%, #1f3b2a 0%, transparent 60%),
    linear-gradient(180deg, #14281c 0%, #112218 48%, #0d1c14 100%);
  --scene-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --grad-verdant: linear-gradient(
    115deg,
    #1a3d2a 0%,
    #2f6e4b 18%,
    #4d8a5e 35%,
    #5a8a4a 50%,
    #4d8a5e 65%,
    #2f6e4b 82%,
    #1a3d2a 100%
  );
}
/* Generated by scripts/import-hudson-canvas.mjs: the stylesheets the canvas page loads,
   in its order, then each component <helmet> style. *//* Hudson landing page: shared styles. Owner: the orchestrator session (it took
   over from the Color session: palette, stages, chart and status colors);
   every section links it.
   Inline styles carry layout and token colors (literal hexes from the Converge
   tokens). This file carries what inline styles cannot: states, motion,
   responsive overrides, the dark verdant surface, the light stages and the
   shared color layer. Section-specific rules go in that section's own
   css/<section>.css, never here.

   COLOR MEANING (see the Color page on the canvas):
     green = growth, results and the brand accent (CTAs, links, positive)
     warm  = Hudson acting: things it has done or proposed (Applied, New,
             Autopilot, its chat). Never an in-progress state.
     done  = green. In progress = neutral zinc (see WORKING below).
     cool  = data and reporting (attribution, tracking, dashboards, sources)
     zinc  = everything else. Logo emerald / indigo / violet: Converge mark only.
   Text in a family color uses its -ink shade (all pass 4.5:1 on white and on
   that family's washes). Fills, bars, dots and washes use the lighter shades.
   Color is never the only signal: status chips always carry an icon + word. */

:root {
  /* The sync dropped the tokens the site defines here: src/styles/tokens.css is their source. */
  --surface-mist: var(--mist);
  --on-dark: var(--p-on-dark);
  --warm-1: var(--color-role-warm-1); --warm-2: var(--color-role-warm-2); --warm-deep: var(--color-role-warm-deep);
  --shadow-card: 0 1px 2px rgba(14,16,20,0.04), 0 12px 32px -20px rgba(14,16,20,0.18);
  --shadow-viz: 0 1px 2px rgba(14,16,20,0.04);
  --shadow-hero-shot: 0 30px 70px -36px rgba(14,16,20,0.35);
  --font: var(--font-ui);
  --ease-out: cubic-bezier(.2,.7,.2,1);

  /* Green: growth + brand. Text: --green-ink / --accent. */
  --green-ink: var(--accent-deep); --green: var(--accent); --green-2: #4a875a; --green-3: var(--p-on-dark);
  --green-soft: var(--accent-soft); --green-mist: var(--p-green-mist); --on-dark-green: var(--p-on-dark);
  /* Cool: data + reporting (runconverge.com role-cool, grad-cool + soft-blue ramp).
     Text: --cool-ink. -soft = chip / icon-tile fill; -mist / -wash = stage. */
  --cool-deep: #2b4a66; --cool-1: var(--color-role-cool-1); --cool-2: var(--color-role-cool-2); --cool-3: var(--color-role-cool-3);
  --cool-wash-strong: var(--grad-4); --cool-wash: var(--grad-3); --cool-soft: var(--mist); --cool-mist: var(--grad-2); --on-dark-cool: #a9c9dc;
  /* Warm: Hudson acting (runconverge.com role-warm, grad-warm). Text: --warm-ink.
     -soft = chip / icon-tile fill; -mist / -wash = stage. */
  --warm-darkest: #87381c; --warm-3: #f2c4a6;
  --warm-wash: #f7e6d9; --warm-mist: #fbf3ed; --on-dark-warm: #f2a882;
  /* Amber: waiting on you (pending approval, hold). Text: --amber-ink. */
  --amber: var(--color-role-warm-2);

  /* Status (chip text / chip fill / dot). Always paired with an icon + word.
     The verb decides the family:
       pos   green: Approved, Live, Scale, Up, Win
       agent warm:  Hudson has done / proposed: Applied, Launch, New, Autopilot
       info  cool:  Shift, Changed, Synced, Tracked, Report
       pend  amber: Needs your approval, Hold, Exception
       neutral zinc: Pause, Cut, Kept, Queued, No change
       neg   red:   a metric that got worse, failures. Use sparingly. */
  --pos-ink: var(--accent-deep);  --pos-bg: var(--accent-soft);  --pos-dot: var(--accent);
  --neg-dot: #dc2626;
  --pend-ink: var(--amber-ink); --pend-bg: var(--amber-soft); --pend-dot: var(--color-role-warm-2);
  --agent-ink: var(--warm-ink); --agent-bg: var(--warm-soft); --agent-dot: var(--color-role-warm-1);
  --info-ink: var(--cool-ink); --info-bg: var(--mist); --info-dot: var(--color-role-cool-1);
  --neutral-ink: var(--ink-soft); --neutral-bg: var(--paper-sunken); --neutral-dot: var(--ink-subtle);
  /* WORKING (approved 2026-11-17): in-progress is neutral, green means done,
     warm is only for what Hudson has done. An orange spinner reads as a
     warning and sits too close to amber "waiting on you".
       running spinner                         #2b2e36
       "is working" label next to Hudson        #5b6068
       pulse / typing dots, in-progress chip dot #8a8f98
       in-progress chip ("Drafting", "Building", "Analyzing", "Testing"):
         .hx-chip-working = zinc fill, #5b6068 text (4.5:1+), #8a8f98 dot */
  --work-spin: var(--ink-soft); --work-label: var(--ink-muted); --work-dot: var(--ink-subtle); --work-bg: var(--paper-sunken);
  /* Who is talking: Hudson = ink mark + warm-mist bubble; you = zinc bubble + zinc avatar. */
  --bubble-hudson: #fbf3ed; --bubble-you: var(--paper-sunken);

  /* Chart series, in this order. 1-2 for two-line charts; Hudson's own
     actions are marked in --series-3 (warm). */
  --series-1: var(--accent);  /* primary metric / with Hudson */
  --series-2: var(--color-role-cool-1);  /* comparison / baseline / a data source */
  --series-3: var(--color-role-warm-1);  /* Hudson actions, agent share */
  --series-4: var(--color-role-warm-2);  /* fourth category */
  --series-5: var(--ink-subtle);  /* other / benchmark */
  --chart-grid: rgba(14,16,20,0.06); --chart-axis: var(--ink-subtle); --chart-label: var(--ink-muted);
  /* Sequential ramps, light to dark */
  --ramp-green-1: var(--accent-soft); --ramp-green-2: #b9d3c1; --ramp-green-3: #8ab59a; --ramp-green-4: #4a875a; --ramp-green-5: var(--accent);
  --ramp-cool-1: var(--grad-3);  --ramp-cool-2: #c3d5e6;  --ramp-cool-3: #9dbcd3;  --ramp-cool-4: #6f9bba;  --ramp-cool-5: var(--cool-ink);
  --ramp-warm-1: #fbe3d3;  --ramp-warm-2: #f6c3a3;  --ramp-warm-3: #ee9a6e;  --ramp-warm-4: var(--color-role-warm-1);  --ramp-warm-5: var(--color-role-warm-deep);

  /* Shared layers */
  --hx-dark-bg:
    radial-gradient(72% 52% at 50% 82%, rgba(150,190,120,0.42) 0%, transparent 60%),
    radial-gradient(90% 70% at 50% -8%, rgba(225,236,205,0.20) 0%, transparent 55%),
    radial-gradient(120% 95% at 50% 122%, #1f3b2a 0%, transparent 60%),
    linear-gradient(180deg, #14281c 0%, #112218 48%, #0d1c14 100%);
  --hx-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

html { scroll-behavior: smooth; }
.hx-page, .hx-page * { box-sizing: border-box; }
.hx-page { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.hx-page h1, .hx-page h2, .hx-page h3, .hx-page h4, .hx-page p { margin: 0; }
.hx-num { font-variant-numeric: tabular-nums; }

/* Dark verdant surface: hero, final CTA band, dark product stages.
   Still the one dramatic surface; warm / cool enter it only as a glow. */
.hx-dark {
  background: var(--hx-dark-bg);
  color: #ffffff;
}

/* Light stages behind product windows on white sections.
   .hx-stage (green) = growth / results. -cool = data / reporting. -warm = Hudson acting. */
.hx-stage, .hx-stage-green {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(159,200,177,0.38) 0%, transparent 70%),
    linear-gradient(180deg, var(--p-green-mist) 0%, var(--p-green-soft) 100%);
}
.hx-stage-cool {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(124,176,196,0.30) 0%, transparent 70%),
    linear-gradient(180deg, var(--grad-2) 0%, var(--grad-3) 100%);
}
.hx-stage-warm {
  background:
    radial-gradient(60% 55% at 22% 100%, rgba(232,116,74,0.20) 0%, transparent 70%),
    radial-gradient(60% 55% at 82% 100%, rgba(212,164,92,0.22) 0%, transparent 70%),
    linear-gradient(180deg, #fbf3ed 0%, #f7e6d9 100%);
}

/* Painterly scenes (runconverge.com's dither "chapter" tiles). Strong color:
   at most one or two per page, behind a white product window, never behind
   body copy. Add the grain with .hx-grain. */
.hx-scene-warm {
  background:
    radial-gradient(ellipse 70% 60% at 22% 78%, var(--color-role-warm-1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 80% 80%, var(--color-role-warm-2) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 20% 18%, #a89cc4 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 15%, #c89880 0%, transparent 55%),
    linear-gradient(160deg, #b3a4c8 0%, #d49870 55%, #b88858 100%);
}
.hx-scene-cool {
  background:
    radial-gradient(ellipse 90% 80% at 85% -5%, rgba(244,248,252,0.6) 0%, rgba(205,217,232,0.3) 30%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 40% 60%, #8aa2c0 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 105%, #3c5070 0%, transparent 62%),
    linear-gradient(175deg, #a8bcd6 0%, #7890b0 50%, #51647f 100%);
}
.hx-scene-verd {
  background:
    radial-gradient(ellipse 95% 95% at 100% -5%, rgba(238,242,226,0.65) 0%, rgba(200,218,170,0.32) 28%, rgba(140,165,110,0.1) 60%, transparent 90%),
    radial-gradient(ellipse 75% 45% at 45% 55%, var(--color-role-verdant-2) 0%, transparent 70%),
    radial-gradient(ellipse 100% 55% at 50% 100%, #3a4a26 0%, transparent 60%),
    linear-gradient(180deg, #7b9560 0%, #5a7038 45%, #3f4e26 85%, #2f3a1c 100%);
}
.hx-grain { position: relative; isolation: isolate; }
.hx-grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: var(--hx-noise); background-size: 180px 180px; mix-blend-mode: overlay; opacity: .55;
}

/* Glow: a soft bloom behind a product window, on .hx-dark or a stage.
   <div class="hx-glow hx-glow-warm"> <div class="hx-window">...</div> </div> */
.hx-glow { position: relative; isolation: isolate; --glow: rgba(184,216,152,0.42); }
.hx-glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: 94%; height: 124%; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, var(--glow) 0%, transparent 72%);
  filter: blur(30px);
}
.hx-glow-green { --glow: rgba(184,216,152,0.42); }
.hx-glow-warm  { --glow: rgba(232,116,74,0.40); }
.hx-glow-cool  { --glow: rgba(124,176,196,0.40); }

/* Family scope: sets --fam-* so a section's own css can say var(--fam-ink) etc. */
.hx-fam-green { --fam-ink: var(--accent-deep); --fam-1: var(--accent); --fam-2: var(--p-on-dark); --fam-soft: var(--accent-soft); --fam-mist: var(--p-green-mist); --fam-on-dark: var(--p-on-dark); }
.hx-fam-cool  { --fam-ink: var(--cool-ink); --fam-1: var(--color-role-cool-1); --fam-2: var(--color-role-cool-2); --fam-soft: var(--mist); --fam-mist: var(--grad-2); --fam-on-dark: #a9c9dc; }
.hx-fam-warm  { --fam-ink: var(--warm-ink); --fam-1: var(--color-role-warm-1); --fam-2: var(--color-role-warm-2); --fam-soft: var(--warm-soft); --fam-mist: #fbf3ed; --fam-on-dark: #f2a882; }

/* Accent text: gradient clipped to the glyphs (a headline's operative phrase,
   32px and up). Stops are runconverge.com's grad-verdant / grad-cool /
   grad-warm, cut where they would drop under 4.5:1 on white. On .hx-dark use
   the flat on-dark colors instead (#9fc8b1 / #a9c9dc / #f2a882). */
.hx-hl-green, .hx-hl-cool, .hx-hl-warm {
  background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-hl-green { background-image: linear-gradient(90deg, #234f37 0%, var(--accent) 100%); }
.hx-hl-cool  { background-image: linear-gradient(90deg, #2b4a66 0%, var(--cool-ink) 100%); }
.hx-hl-warm  { background-image: linear-gradient(90deg, #87381c 0%, var(--warm-ink) 100%); }

/* Icon tile: soft family fill + family-ink glyph (Lucide, 1.75 stroke) */
.hx-icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; flex: none; }
.hx-icon-tile svg { width: 18px; height: 18px; }
.hx-icon-tile-green { background: var(--accent-soft); color: var(--accent-deep); }
.hx-icon-tile-cool  { background: var(--mist); color: var(--cool-ink); }
.hx-icon-tile-warm  { background: var(--warm-soft); color: var(--warm-ink); }

/* Status chip: icon + word, never color alone */
.hx-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px;
  border-radius: 9999px; font: 500 12px/1 var(--font); white-space: nowrap;
}
.hx-chip svg { width: 12px; height: 12px; flex: none; }
.hx-chip-pos   { background: var(--accent-soft); color: var(--accent-deep); }
.hx-chip-neg   { background: var(--neg-bg); color: var(--neg-ink); }
.hx-chip-pend  { background: var(--amber-soft); color: var(--amber-ink); }
.hx-chip-agent { background: var(--warm-soft); color: var(--warm-ink); }
.hx-chip-info  { background: var(--mist); color: var(--cool-ink); }
.hx-chip-neutral { background: var(--paper-sunken); color: var(--ink-soft); }
.hx-chip-working { background: var(--paper-sunken); color: var(--ink-muted); }
/* Status dot (pair with a label) */
.hx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hx-dot-pos { background: var(--accent); } .hx-dot-neg { background: #dc2626; } .hx-dot-pend { background: var(--color-role-warm-2); }
.hx-dot-agent { background: var(--color-role-warm-1); } .hx-dot-info { background: var(--color-role-cool-1); } .hx-dot-neutral { background: var(--ink-subtle); }
.hx-dot-working { background: var(--ink-subtle); }

/* Chat bubbles: who is talking */
.hx-bubble-hudson { background: #fbf3ed; color: var(--ink); }
.hx-bubble-you { background: var(--paper-sunken); color: var(--ink); }

/* Buttons (pill, 40px, flat fill; no gradients) */
.hx-btn, .hx-btn-ghost, .hx-btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: 9999px;
  font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hx-btn { background: var(--btn-fill); color: #ffffff !important; border: 1px solid var(--btn-fill); }
/* Hover is #3a8159 (white 4.7:1), one step darker than the site's #3c855d (4.46:1). */
.hx-btn:hover { background: var(--btn-fill-hover); border-color: var(--btn-fill-hover); }
.hx-btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid rgba(14,16,20,0.18); }
.hx-btn-ghost:hover { background: var(--paper-soft); border-color: rgba(14,16,20,0.28); }
.hx-btn-ghost-dark { background: rgba(255,255,255,0.04); color: #ffffff !important; border: 1px solid rgba(255,255,255,0.22); }
.hx-btn-ghost-dark:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.34); }
.hx-btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.hx-btn:focus-visible, .hx-btn-ghost:focus-visible, .hx-btn-ghost-dark:focus-visible { outline: 2px solid var(--p-on-dark); outline-offset: 2px; }

/* Links */
.hx-link { color: inherit !important; text-decoration: none; transition: color .15s ease; }
.hx-link:hover { color: var(--accent) !important; }
.hx-navlink { color: rgba(255,255,255,0.78) !important; text-decoration: none; transition: color .15s ease; }
.hx-navlink:hover { color: #ffffff !important; }

/* Product window (the card every product moment sits in) */
.hx-window { background: #ffffff; border: 1px solid rgba(14,16,20,0.08); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }

/* Motion */
@keyframes hx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes hx-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hx-rise { animation: hx-rise .7s var(--ease-out) both; }
.hx-fade { animation: hx-fade .9s ease both; }
.hx-pulse { animation: hx-pulse 1.6s ease-in-out infinite; }
.hx-caret { animation: hx-caret 1s steps(1) infinite; }
.hx-d1 { animation-delay: .08s; } .hx-d2 { animation-delay: .16s; } .hx-d3 { animation-delay: .24s; }
.hx-d4 { animation-delay: .32s; } .hx-d5 { animation-delay: .40s; } .hx-d6 { animation-delay: .48s; }
@supports (animation-timeline: view()) {
  .hx-reveal { animation: hx-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-page *, .hx-page *::before, .hx-page *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive: the page gutter is 40px inline; these shrink it and hide chrome */
@media (max-width: 960px) { .hx-hide-md { display: none !important; } }
@media (max-width: 640px) {
  .hx-hide-sm { display: none !important; }
  .hx-container { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Phones: product stages bleed to the screen edges, so the white windows get
   more of the width. Stages sit in .hx-container's 20px gutter, so -20px
   reaches the edge exactly (no vw, so no scrollbar overshoot). Square corners
   at the edge; the windows inside keep their own radius and shadow. */
@media (max-width: 640px) {
  .hx-page .hx-stage, .hx-page .hx-stage-green, .hx-page .hx-stage-cool, .hx-page .hx-stage-warm,
  .hx-page .cap-stage, .hx-page .how-stage {
    margin-left: -20px !important; margin-right: -20px !important;
    border-radius: 0 !important;
    padding: 12px !important;
  }
}
/* Owner: Logo session. Rules for HudsonLogo.dc.html, LogoSheet.dc.html and the logo round boards only. The logo is static: no animation here. */
/* Owner: Hero session. Rules for Hero.dc.html only. Prefix every class with .hero- */

/* ===== Live hero: action carousel (.hero-c-) ===== */
/* A full-bleed row of cards that steps left one card at a time: hold, then a quick
   shift of exactly one card (256px + 24px gap). The track holds the set twice, so after
   15 steps it is back where it started without a seam. If the card count changes,
   regenerate the keyframes (15 cards x 280px, 2.4s per step). */
.hero-c-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.hero-c-track { animation: hero-c-step 36s infinite; animation-timing-function: cubic-bezier(.65,0,.25,1); will-change: transform; }
/* Keep a card dead centre at every width: the 6th card (index 5; the 8th on phones, below) starts centred, and since each
   step moves exactly one pitch (280px), whichever card is in the middle at every hold is centred.
   Percent is of the full-bleed row, so it tracks the viewport without the scrollbar. Works up to
   about 3000px wide; the 30-card track still covers the right edge at the end of the loop. */
.hero-c-track { margin-left: calc(50% - 128px - 1400px); }
@keyframes hero-c-step {
  0% { transform: translateX(0); }
  4.800% { transform: translateX(-0px); }
  6.667% { transform: translateX(-280px); }
  11.467% { transform: translateX(-280px); }
  13.333% { transform: translateX(-560px); }
  18.133% { transform: translateX(-560px); }
  20.000% { transform: translateX(-840px); }
  24.800% { transform: translateX(-840px); }
  26.667% { transform: translateX(-1120px); }
  31.467% { transform: translateX(-1120px); }
  33.333% { transform: translateX(-1400px); }
  38.133% { transform: translateX(-1400px); }
  40.000% { transform: translateX(-1680px); }
  44.800% { transform: translateX(-1680px); }
  46.667% { transform: translateX(-1960px); }
  51.467% { transform: translateX(-1960px); }
  53.333% { transform: translateX(-2240px); }
  58.133% { transform: translateX(-2240px); }
  60.000% { transform: translateX(-2520px); }
  64.800% { transform: translateX(-2520px); }
  66.667% { transform: translateX(-2800px); }
  71.467% { transform: translateX(-2800px); }
  73.333% { transform: translateX(-3080px); }
  78.133% { transform: translateX(-3080px); }
  80.000% { transform: translateX(-3360px); }
  84.800% { transform: translateX(-3360px); }
  86.667% { transform: translateX(-3640px); }
  91.467% { transform: translateX(-3640px); }
  93.333% { transform: translateX(-3920px); }
  98.133% { transform: translateX(-3920px); }
  100.000% { transform: translateX(-4200px); }
}

/* Hold still while someone reads or uses a card */
.hero-c-marquee:hover .hero-c-track,
.hero-c-marquee:focus-within .hero-c-track { animation-play-state: paused; }

/* Each card is two layers: Hudson's note on top, the customer's ad (a plain white feed ad)
   underneath. The note is plain white with no border or ring: the warm tint, its orange edge
   and a 4px ring read as an orange halo on the green hero (removed 24 November). */
.hero-c-card { transition: transform .35s cubic-bezier(.2,.7,.2,1); user-select: none; }
.hero-c-card:hover { transform: translateY(-6px); }

.hero-c-note {
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.75);
}
/* The note points down at the ad it acted on */
.hero-c-tail {
  position: absolute; left: 26px; bottom: -7px; width: 12px; height: 12px;
  background: #ffffff; transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}

/* Transparent card, white only on the header: no white can bleed at the rounded bottom edge */
.hero-c-ad { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); isolation: isolate; }

/* A paused ad goes grey, so the action reads at a glance */
.hero-c-media-paused video, .hero-c-media-paused img { filter: grayscale(1) brightness(0.9); opacity: 0.7; }

.hero-c-approve:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .hx-container.hero-c-shell { padding-top: 112px !important; }
  .hero-c-marquee { margin-top: 40px !important; }
  .hero-c-track { zoom: 1; }
  /* Phones: the subtitle is long, so it steps down to 16px (about 5 lines at 390 instead of 6) */
  .hero-sub { font-size: 16px !important; }
  /* Phones: the centred card (see the margin rule above) has neighbours peeking about 43px
     at 390 (28px at 360) inside a soft 15% fade, so they read as "more" rather than cropped */
  .hero-c-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  }
  /* Phones start two cards later, on the 8th card (the cinematic edit), so it fills the screen at
     load. The loop still moves 15 cards and ends on that card's copy, so there is no seam. */
  .hero-c-track { margin-left: calc(50% - 128px - 1960px); }
}

/* hudson.css stops every animation under reduced motion; let people scroll the row instead */
@media (prefers-reduced-motion: reduce) {
  .hero-c-marquee {
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-mask-image: none; mask-image: none; padding: 0 24px;
  }
  .hero-c-marquee::-webkit-scrollbar { display: none; }
  .hero-c-track { margin-left: 0; }
  .hero-c-card { scroll-snap-align: center; }
  .hero-c-card[aria-hidden="true"] { display: none !important; }
  .hero-c-card:hover { transform: none; }
}

/* Hudson's notes arrive one by one as each ad slides into view (Hero prop notesIn, on by default).
   A clean rise, no glow. */
.hero-c-media video, .hero-c-media img { transition: filter .9s ease, opacity .9s ease; }
.hero-c-note.is-waiting { opacity: 0; transform: translateY(16px); pointer-events: none; }
.hero-c-note.is-in { animation: hero-c-note-in .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-c-note-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-c-note.is-waiting { opacity: 1; transform: none; }
}

/* ===== Live hero background: living grain (.hero-grain, on the hero's root) =====
   A fine film grain shimmers over the dark verdant surface while the gradient stays still
   (Jerome's pick from the Hero background options page, Nov 17). Light specks (the shared
   noise, inverted) are screened over the green at 16%. The layer is drawn once and only
   jumps between ten offsets a second: transform only, so no repaints (measured 60fps, 0 paints).
   It paints above the hero's background and under its content, which comes later in tree order.
   Under reduced motion the grain stays, still. */
.hero-grain { isolation: isolate; }
.hero-grain::before {
  content: ""; position: absolute; inset: -90px; pointer-events: none; will-change: transform;
  background-image: var(--hx-noise); background-size: 180px 180px;
  filter: invert(1); mix-blend-mode: screen; opacity: .16;
  animation: hero-grain 1s steps(1) infinite;
}
@keyframes hero-grain {
  0% { transform: translate(0, 0); } 10% { transform: translate(-41px, 27px); } 20% { transform: translate(63px, -18px); }
  30% { transform: translate(-12px, -66px); } 40% { transform: translate(38px, 52px); } 50% { transform: translate(-70px, -9px); }
  60% { transform: translate(17px, 74px); } 70% { transform: translate(-55px, -44px); } 80% { transform: translate(80px, 31px); }
  90% { transform: translate(-26px, 59px); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grain::before { animation: none; }
}

/* ===== Closing band: the hero's bookend (.hero-bookend, Main #demo) =====
   The "Book a demo" band wears the hero's surface: .hx-dark (the same --hx-dark-bg layers and
   colours) plus .hero-grain (the same living grain). Only the geometry is adapted: --hx-dark-bg
   sizes its ellipses in percent of the box, so on a short card they squash into hard rings.
   .hero-bookend draws the layers in a box the hero's height (1100px), so they keep the hero's scale:
   the top light hangs from the top edge as in the hero, and the glow's centre sits 100px below the
   bottom edge, so it rises softly under the button the way the hero's glow rises behind the cards
   and the text sits on the same dark field (#1f3026) as the hero's. Layer order follows
   --hx-dark-bg: glow (centre 82% down = 198px above the box's bottom, so +298px), top light,
   deep base glow, base. The glow is at least 720px wide, so on phones it stays a soft mound
   instead of a narrow beam. The grain sits at z-index -1 in the card's isolated stack, under the
   text and the button. Phones: the band bleeds to the screen edge like the hero
   (-20px = .hx-container's phone gutter; no vw, so no scrollbar overshoot). */
.hx-dark.hero-bookend {
  border-radius: 24px;
  background-size: max(100%, 720px) 1100px, 100% 1100px, 100% 1100px, 100% 100%;
  background-position: 50% calc(100% + 298px), 50% 0, 50% 100%, 50% 0;
}
.hero-bookend::before { z-index: -1; }
@media (max-width: 640px) {
  .hx-dark.hero-bookend { margin-left: -20px; margin-right: -20px; border-radius: 0; }
}

/* ===== Tabbed hero option (HeroTabbed.dc.html) ===== */
.hero-t-tab { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.hero-t-tab:hover { background: rgba(255,255,255,0.12) !important; color: #ffffff !important; }
.hero-t-tab[aria-selected="true"], .hero-t-tab[aria-selected="true"]:hover { background: #ffffff !important; color: var(--ink) !important; border-color: #ffffff !important; }
.hero-t-tab:focus-visible { outline: 2px solid var(--p-on-dark); outline-offset: 2px; }
.hero-t-bar { transition: width .1s linear; }
.hero-t-panel { animation: hx-fade .35s ease both; }
.hero-t-approve:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .hero-t-tabs { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .hero-t-tabs::-webkit-scrollbar { display: none; }
  .hero-t-window { min-height: 0 !important; }
  .hero-t-row { grid-template-columns: minmax(0, 1fr) auto !important; }
  .hero-t-row-chip { grid-column: 1 / -1; justify-self: start; }
  .hero-t-row-status { grid-column: 1 / -1; justify-self: start !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-t-panel { animation: none !important; }
  .hero-t-bar { transition: none !important; }
}

/* ===== "What Hudson does" section (WhatHudsonDoes.dc.html): the tabbed tour on white ===== */
.hero-w-tab { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.hero-w-tab:hover { background: var(--paper-sunken) !important; color: var(--ink) !important; }
.hero-w-tab[aria-selected="true"], .hero-w-tab[aria-selected="true"]:hover { background: var(--ink) !important; color: #ffffff !important; border-color: var(--ink) !important; }
.hero-w-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-w-stage { transition: background .4s ease; }
/* "Why Hudson paused it": a native <details>, chevron turns when open */
.hero-w-why > summary { list-style: none; }
.hero-w-why > summary::-webkit-details-marker { display: none; }
.hero-w-chev { transition: transform .2s ease; }
.hero-w-why[open] .hero-w-chev { transform: rotate(90deg); }
.hero-w-why > summary:hover { color: var(--ink) !important; }
.hero-w-why > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 760px) {
  .hero-w-why { margin-left: 20px !important; }
}
@media (max-width: 640px) {
  .hero-w-stage { padding: 12px !important; border-radius: 18px !important; }
}
/* Owner: Social proof session. Rules for SocialProof.dc.html only. Prefix every class with .sp- */

/* Eight tiles in runconverge.com's proof-grid style. The logo leads; under it one quiet
   caption with the result (green lead, grey rest). Each tile has two fixed rows, so across
   a row every logo sits on one line and every caption starts on the next.
   Logo heights (inline, in em) are set for equal visual weight: height follows
   ratio^-0.45 x ink-density^-0.25, measured from the files, then tuned by eye. */
.sp-tile { display: grid; grid-template-rows: 88px auto; align-content: start; justify-items: center; padding: 16px 12px 17px; background: #ffffff; border-radius: 14px; text-align: center; transition: background-color .3s ease; }
.sp-tile:hover { background: var(--p-green-mist); }
.sp-mark { display: flex; align-items: center; justify-content: center; }
.sp-logo { display: block; width: auto; max-width: 100%; object-fit: contain; }
/* Captions break into two balanced lines, about as wide as the logo above them */
.sp-result { max-width: 168px; text-wrap: balance; }

/* Narrower desktops: slightly smaller logos so the widest marks keep their margins */
@media (max-width: 1200px) {
  .sp-grid { font-size: 14.5px !important; }
}

/* Tablet and phone: two per row */
@media (max-width: 960px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-rows: minmax(140px, auto) !important; }
}
/* Tablets: keep 4 x 2 so the band stays short (the 760px rule below still shrinks logos to 10.5px) */
@media (min-width: 641px) and (max-width: 960px) {
  .sp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; font-size: 11px !important; }
}
/* The title (36px here, 32px at 640px and narrower, set inline) keeps more room above it
   than below, so it reads with the grid, not with the hero */
@media (max-width: 760px) {
  .sp-band { padding-top: 64px !important; padding-bottom: 40px !important; }
  .sp-title { margin-bottom: 32px !important; }
  .sp-grid { font-size: 10.5px !important; }
  .sp-tile { grid-template-rows: 64px auto; padding: 14px 10px 16px; }
  .sp-result { font-size: 12.5px !important; }
}

/* The spend cell leads the grid, in runconverge.com's $3B+ proof-cell pattern: the figure (with its
   unit on the same line), then one bold line saying what it measures, then a link down to #results.
   It spans both rows beside the eight tiles; below 960px it becomes a full-width row on top. */
.sp-head { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 26px 30px 24px; text-align: left; }
.sp-stat { display: flex; flex-direction: column; gap: 12px; }
.sp-more:hover { color: var(--accent) !important; }

/* Narrow desktops: a smaller figure so "$1M+ / month" stays on one line in the narrower column */
@media (max-width: 1200px) {
  .sp-head { padding: 22px 22px 20px; }
  .sp-num { font-size: 44px !important; }
  .sp-unit { font-size: 19px !important; }
  .sp-label { font-size: 17px !important; }
}
/* 961-1100px: tiles get narrow beside the spend cell, so the logos step down once more */
@media (min-width: 961px) and (max-width: 1100px) {
  .sp-grid { font-size: 13px !important; }
}
@media (max-width: 960px) {
  .sp-head { grid-row: auto; grid-column: 1 / -1; gap: 10px; padding: 18px 16px; }
  .sp-stat { gap: 10px; }
  .sp-more { min-height: 44px; }
}
/* Owner: Capabilities session. Shared by Capabilities.dc.html and its five tab components (Cap*.dc.html).
   Tab owners: put tab-only rules in your own css/cap-<tab>.css, not here. Prefix every class with .cap- */

/* Tabs: folder tabs on the stage's top edge (design: "Hudson capability tabs" canvas, 2026-11-24).
   The dither layers (.cap-bg) sit behind the tab row and the stage body alike, so the active tab is a window
   onto the same layer: it blends with every tab's colour and crossfades with it. The other tabs are labels on
   white cells; the white assumes the section sits on white, as on /hudson and the homepage. */
.cap-tabs { position: relative; z-index: 3; display: flex; align-items: stretch; height: 48px; }
.cap-tab-fill { flex: 1 1 0; min-width: 40px; background: #ffffff; }
/* Backgrounds swap at once: a fade would show the old tab's dither past its rounded corners for a moment */
.cap-tab {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 0 20px; border: 0; border-radius: 0; background: #ffffff; color: var(--ink-muted);
  font: 500 15px/1 var(--font-ui);
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s ease;
}
/* Hover: the label and icon darken, no box. Icons take the label's colour: black when active. */
.cap-tab:hover { color: var(--ink); }
.cap-tab.is-active { background: transparent; color: var(--ink); font-weight: 600; }
.cap-tab-ic { position: relative; z-index: 1; flex: none; color: inherit; }
.cap-tab-label { position: relative; z-index: 1; display: inline-grid; }
/* Reserve the bold width, so the row never shifts when a tab turns active */
.cap-tab-label::after { content: attr(data-label); font-weight: 600; height: 0; overflow: hidden; visibility: hidden; }
.cap-tab.has-sep::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: rgba(14,16,20,0.12); }
/* The active tab's rounded top corners: white quarter masks over the dither */
.cap-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--cap-fil); pointer-events: none;
  background:
    radial-gradient(circle at 100% 100%, transparent calc(var(--cap-fil) - .5px), #ffffff var(--cap-fil)) left top / var(--cap-fil) var(--cap-fil) no-repeat,
    radial-gradient(circle at 0 100%, transparent calc(var(--cap-fil) - .5px), #ffffff var(--cap-fil)) right top / var(--cap-fil) var(--cap-fil) no-repeat;
}
/* The curves where the active tab opens into the stage: its neighbours round their inner bottom corner */
.cap-tab.is-before, .cap-tab-fill.is-before { border-bottom-right-radius: var(--cap-fil); }
.cap-tab.is-after, .cap-tab-fill.is-after { border-bottom-left-radius: var(--cap-fil); }
/* The stage's own top corners, just under the tab row */
.cap-tabs::before, .cap-tabs::after { content: ""; position: absolute; top: 100%; width: 24px; height: 24px; pointer-events: none; }
.cap-tabs::before { left: 0; background: radial-gradient(circle at 100% 100%, transparent 23.5px, #ffffff 24px); }
.cap-tabs::after { right: 0; background: radial-gradient(circle at 0 100%, transparent 23.5px, #ffffff 24px); }
/* Focus ring on an inner face, for the keyboard only (.cap-pointer: the last input in the row was a click or tap) */
.cap-tab-face { position: absolute; inset: 7px 4px; border-radius: 10px; pointer-events: none; }
.cap-tab:focus-visible { outline: none; }
.hx-container:not(.cap-pointer) .cap-tab:focus-visible .cap-tab-face { box-shadow: 0 0 0 2px var(--accent); }
/* Progress: a 2px line under the active label, flush on the stage's top edge, filling over the 13 s a tab plays
   (full once someone picks a tab) */
.cap-track { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; z-index: 1; overflow: hidden; border-radius: 2px 2px 0 0; pointer-events: none; }
.cap-fill { display: block; height: 100%; background: var(--accent); transition: width .15s linear; }
/* With no header (the homepage titles the section itself), the section sits 48px under that title block */
.hx-container.cap-noheader { padding-top: 48px !important; }

/* Hudson's step trace: waiting (grey circle), running (the same circle with a dark arc turning on it), done (green check).
   The running ring stays put and matches the waiting circle's size, so a step starts and runs without the icon moving.
   In-progress is always neutral: green is the only colour in the list, and it means done.
   Warm orange is kept for things Hudson has done in the windows (Applied by autopilot, New). */
.cap-step-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 0; border-radius: 9999px; transition: background-color .3s ease, color .3s ease; }
.cap-step-ic svg { display: none; }
.cap-step.is-wait .cap-ic-wait, .cap-step.is-run .cap-ic-run, .cap-step.is-done .cap-ic-done { display: block; }
.cap-step.is-wait .cap-step-ic { color: rgba(14,16,20,0.24); }
.cap-step.is-run .cap-step-ic { color: var(--work-spin, var(--ink-soft)); }
.cap-step.is-done .cap-step-ic { background: var(--accent-soft); color: var(--accent); }
.cap-step-txt { color: var(--ink-muted); transition: color .3s ease; }
.cap-step.is-run .cap-step-txt { color: var(--ink); font-weight: 500; }
.cap-step.is-done .cap-step-txt { color: var(--ink); }
.cap-ic-run { animation: cap-spin .9s linear infinite; }
.cap-ic-track { stroke: rgba(14,16,20,0.24); }
@keyframes cap-spin { to { transform: rotate(360deg); } }

/* Product-window rows reveal as Hudson works */
.cap-rv { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), background-color .4s ease; }
.cap-rv.is-out { opacity: 0; transform: translateY(8px); }
.cap-rv.is-in { opacity: 1; transform: none; }
.cap-rv.is-win { background-color: var(--accent-mist); }
.cap-stagger > .cap-rv:nth-child(2) { transition-delay: .07s; }
.cap-stagger > .cap-rv:nth-child(3) { transition-delay: .14s; }
.cap-stagger > .cap-rv:nth-child(4) { transition-delay: .21s; }
.cap-stagger > .cap-rv:nth-child(5) { transition-delay: .28s; }
.cap-stagger > .cap-rv:nth-child(6) { transition-delay: .35s; }
.cap-stagger > .cap-rv:nth-child(7) { transition-delay: .42s; }

/* The stage: the dither layers (.cap-bg) behind the tab row and the body. The body is a size container, so the
   tab panel can follow its width, and it frames the demo evenly: the same space under the tabs, at the sides and
   at the bottom (the demo is centred in the panel's min-height, so a shorter tab gets equal space above and below). */
.cap-stage { position: relative; isolation: isolate; --cap-fil: 14px; --cap-sx: clamp(16px, 2.5vw, 32px); }
.cap-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 24px; pointer-events: none; }
.cap-body { position: relative; z-index: 2; container-type: inline-size; padding: var(--cap-sx); }
.cap-panel { position: relative; z-index: 2; }

/* Stage dithers, one per tab (set D, B, G, C, F from the "Hudson capability dithers" canvas, 2026-11-24).
   The homepage hero's technique: painterly radial layers over a linear base, then the shared grain.
   The left column stays light, because "You", Replay and Hudson's avatar sit straight on the stage there;
   colour blooms at the right and bottom edges, behind the white product window.
   The new tab's layer fades in on top and the old one goes only after it, so a switch never shows the
   white page through two half-faded layers. */
.cap-dth {
  position: absolute; inset: 0; z-index: 0; isolation: isolate; border-radius: inherit; pointer-events: none;
  background-color: #ffffff; opacity: 0; transition: opacity .3s ease .8s;
}
.cap-dth.is-on { z-index: 1; opacity: 1; transition: opacity .8s cubic-bezier(.22,1,.36,1) 0s; }
.cap-dth::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: var(--hx-noise); background-size: var(--cap-grain-size, 180px) var(--cap-grain-size, 180px);
  mix-blend-mode: overlay; opacity: var(--cap-grain, .6);
}
/* Scale and cut: olive and gold, the hero's verdant spine on its pale wash */
.cap-dth-scale {
  --cap-grain: .75; --cap-grain-size: 260px;
  background-image:
    radial-gradient(ellipse 58% 76% at 104% 102%, rgba(110,140,74,0.85) 0%, transparent 66%),
    radial-gradient(ellipse 50% 52% at 64% 118%, rgba(212,164,92,0.58) 0%, transparent 66%),
    radial-gradient(ellipse 85% 85% at -2% -6%, rgba(238,242,226,0.9) 0%, rgba(238,242,226,0.4) 45%, transparent 80%),
    linear-gradient(165deg, #eef2e2 0%, var(--accent-soft) 50%, #c8daaa 100%);
}
/* Launch ads: green and warm sand */
.cap-dth-launch {
  --cap-grain: .6;
  background-image:
    radial-gradient(ellipse 60% 74% at 104% 104%, rgba(74,135,90,0.72) 0%, transparent 66%),
    radial-gradient(ellipse 50% 60% at 96% -8%, rgba(242,196,166,0.95) 0%, transparent 66%),
    radial-gradient(ellipse 52% 60% at -4% 106%, rgba(212,164,92,0.42) 0%, transparent 70%),
    linear-gradient(160deg, #f7e6d9 0%, var(--accent-soft) 46%, #b9d3c1 100%);
}
/* Restructure: green with the warm scene's lilac and blush (a muted lavender, not the logo violet) */
.cap-dth-restructure {
  --cap-grain: .55;
  background-image:
    radial-gradient(ellipse 58% 72% at 102% -4%, rgba(168,156,196,0.72) 0%, transparent 66%),
    radial-gradient(ellipse 64% 74% at 98% 106%, rgba(138,181,154,0.8) 0%, transparent 66%),
    radial-gradient(ellipse 58% 62% at -4% 104%, rgba(200,152,128,0.36) 0%, transparent 70%),
    linear-gradient(170deg, var(--paper-cool) 0%, var(--accent-mist) 50%, var(--accent-soft) 100%);
}
/* Creative learnings: green and cool slate */
.cap-dth-learn {
  --cap-grain: .6; --cap-grain-size: 220px;
  background-image:
    radial-gradient(ellipse 62% 74% at 104% -6%, rgba(111,155,186,0.78) 0%, transparent 66%),
    radial-gradient(ellipse 60% 70% at 100% 108%, rgba(157,188,211,0.8) 0%, transparent 66%),
    radial-gradient(ellipse 70% 92% at -4% 108%, rgba(138,181,154,0.8) 0%, transparent 70%),
    linear-gradient(175deg, var(--accent-soft) 0%, var(--grad-3) 50%, #c3d5e6 100%);
}
/* Targets and pacing: green and teal, a horizon along the bottom */
.cap-dth-pacing {
  --cap-grain: .6; --cap-grain-size: 220px;
  background-image:
    radial-gradient(ellipse 120% 60% at 60% 122%, rgba(90,138,166,0.72) 0%, transparent 66%),
    radial-gradient(ellipse 56% 66% at 104% 44%, rgba(124,176,196,0.72) 0%, transparent 70%),
    radial-gradient(ellipse 62% 82% at -4% 26%, rgba(138,181,154,0.66) 0%, transparent 70%),
    linear-gradient(180deg, var(--accent-soft) 0%, var(--mist) 50%, #c3d5e6 100%);
}

/* The panel is as tall as the tallest tab at the current width, plus a few px, so switching tabs never
   moves the page. Tabs get taller as the stage narrows (columns shrink, text wraps), so the floor follows
   the stage width. Each value names the tab that sets it: re-measure when a tab grows. */
.cap-panel { min-height: 600px; }
@container (min-width: 880px) { .cap-panel { min-height: 565px; } }  /* Scale and cut 559 */
@container (min-width: 890px) { .cap-panel { min-height: 550px; } }  /* Launch ads 544 */
@container (min-width: 945px) { .cap-panel { min-height: 530px; } }  /* Launch ads 524 */
/* Creative learnings, 492 to 514: its four stats wrap to two rows until the stage is about 1100px wide */
@container (min-width: 1030px) { .cap-panel { min-height: max(496px, calc(35.5cqw + 129px)); } }
@container (min-width: 1110px) { .cap-panel { min-height: 496px; } }  /* Restructure, Targets and pacing 490 */
/* Phones (one tab at a time, tapped): */
@media (max-width: 329px) { .cap-panel { min-height: 608px; } }  /* Scale and cut, Launch ads 604 */
@media (min-width: 370px) and (max-width: 439px) { .cap-panel { min-height: max(592px, calc(42vw + 418px)); } }  /* Scale and cut 588, Launch ads up to 593 */
@media (min-width: 480px) and (max-width: 559px) { .cap-panel { min-height: max(600px, calc(43vw + 397px)); } }  /* Launch ads 596 to 622 */
@media (min-width: 560px) and (max-width: 640px) { .cap-panel { min-height: max(600px, calc(38.5vw + 389px)); } }  /* Creative learnings 597 to 627 */

/* Responsive */
/* Below 1024px (tap to switch, no rotation) five full tabs don't fit the stage, so the row goes compact: every
   tab stays in view, the others show their icon and the active one its label too. Each label stays in its tab
   as the accessible name. */
@media (max-width: 1023px) {
  .cap-tabs { height: 44px; }
  .cap-tab-fill { min-width: 12px; }
  .cap-tab { gap: 6px; padding: 0 12px; font-size: 14px; }
  .cap-tab:not(.is-active) { width: 44px; padding: 0; }
  .cap-tab:not(.is-active) .cap-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .cap-tab.has-sep::before { height: 16px; margin-top: -8px; }
  .cap-tab-face { inset: 6px 3px; }
  .cap-track { left: 12px; right: 12px; }
}
@media (max-width: 640px) {
  /* Phones: the stage runs edge to edge with square corners (hudson.css). The tab row sits on its top edge, so
     the stage itself takes no padding and the body keeps the 12px frame. A very narrow phone scrolls the row. */
  .hx-page .cap-stage.cap-stage { padding: 0 !important; --cap-fil: 12px; --cap-sx: 12px; }
  .cap-bg { border-radius: 0; }
  .cap-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cap-tabs::-webkit-scrollbar { display: none; }
  .cap-tabs::before, .cap-tabs::after { display: none; }
  .hx-container.cap-noheader { padding-top: 40px !important; }
  /* Phones: Hudson's trace collapses to one line, the step it is on (or the last one done).
     It ticks through the steps as the tab plays. Browsers without :has() show the full list. */
  .cap-step.is-wait,
  .cap-step.is-done:has(+ .cap-step.is-done),
  .cap-step.is-done:has(+ .cap-step.is-run) { display: none !important; }
  .cap-hide-sm { display: none !important; }
}
@media (max-width: 359px) {
  .cap-tab.is-active .cap-tab-label { font-size: 13px; }
}

/* Plan rows: approve and reject */
.cap-mini, .cap-mini-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 9999px;
  font: 600 12.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cap-mini { background: var(--btn-fill); border: 1px solid var(--btn-fill); color: #ffffff; }
.cap-mini:hover { background: var(--btn-fill-hover); border-color: var(--btn-fill-hover); }
.cap-mini-ghost { background: transparent; border: 1px solid transparent; color: var(--ink-soft); }
.cap-mini-ghost:hover { background: var(--paper-cool); }
.cap-mini:focus-visible, .cap-mini-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Rationale disclosure */
.cap-why summary { list-style: none; }
.cap-why summary::-webkit-details-marker { display: none; }
.cap-why summary:hover { color: var(--ink); }
.cap-why-chev { transition: transform .2s ease; }
.cap-why[open] .cap-why-chev { transform: rotate(90deg); }
/* Owner: How it works session. Rules for HowItWorks.dc.html and BuiltForYou.dc.html only. Prefix every class with .how- or .yours- */

/* Step list (left column of How it works): hairline rows, an ink timer on the active row */
.how-step-title { transition: color .2s ease; }
.how-step[aria-selected="false"]:hover .how-step-title { color: var(--ink) !important; }
.how-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.how-progress { transition: width .55s linear; }

/* Product moments */
.how-pop { animation: hx-rise .4s var(--ease-out, cubic-bezier(.2,.7,.2,1)) both; }

/* Step 1 playbook web, step 2 learning loops, step 3 precision chart */
.how-fade { transition: opacity .4s ease; }
.how-reveal { transition: width .55s linear; }
.how-switch { transition: background-color .3s ease; }
.how-knob { transition: left .3s cubic-bezier(.2,.7,.2,1); }
.how-edge { transition: color .4s ease; }
/* Light motion: the playbook web draws in; a dot travels each learning loop */
@keyframes how-draw { to { stroke-dashoffset: 0; } }
.how-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: how-draw .5s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes how-in { from { opacity: 0; } to { opacity: 1; } }
.how-in { animation: how-in .45s ease both; }
@media (prefers-reduced-motion: reduce) { .how-draw { stroke-dasharray: none; stroke-dashoffset: 0; } .how-flowdot { display: none; } }

/* Built for you */
.yours-tab { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.yours-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.yours-tab-progress { transition: width .6s linear; }
/* Light motion: a neutral placeholder while Hudson builds, then the bars grow in */
@keyframes yours-skel { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.yours-skel { animation: yours-skel 1.6s ease-in-out infinite; }
@keyframes yours-grow { from { width: 0; } }
.yours-grow { animation: yours-grow .8s cubic-bezier(.2,.7,.2,1) .15s both; }
@media (max-width: 860px) {
  .yours-flow { grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
  .yours-flow > * { grid-column: 1 !important; }
  .yours-flow-arrow { display: none !important; }
  .yours-strip { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Phones and tablets: How it works becomes one straight read, each step followed by its visual */
.how-m-narrow { display: none; }
@media (max-width: 900px) {
  .how-desktop { display: none !important; }
  .how-mobile { display: flex !important; }
  .how-wrap { gap: 32px !important; }
}

@media (max-width: 640px) {
  .how-m-wide { display: none !important; }
  .how-m-narrow { display: block !important; }
  .yours-label { padding-left: 15px; }
  .yours-win { min-height: 0 !important; }
  .yours-strip { gap: 0 !important; border: 1px solid rgba(14,16,20,0.08); border-radius: 14px; overflow: hidden; background: #ffffff; }
  .yours-strip > span { border: 0 !important; border-radius: 0 !important; border-top: 1px solid rgba(14,16,20,0.06) !important; }
  .yours-strip > span:first-child { border-top: 0 !important; }
  .yours-tab { min-height: 44px; }
}

/* Owners: Results session (.proof- rules for Proof.dc.html), Proof + FAQ session (.faq- rules). Numbers.dc.html (archived) uses .proof-sr. Prefix every class with .proof- or .faq- */

/* Visually hidden text (final values for screen readers while numbers count) */
.proof-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Results: case-study cards two per row on tablets (desktop keeps auto-fit, phones stack) */
@media (min-width: 700px) and (max-width: 1099px) {
  .proof-results { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Results cards link to their case studies and behave like the homepage case-study tiles:
   no shadow at rest; on hover (and keyboard focus) the card grows 2.5% on a soft lift shadow,
   the photo darkens and "Read the ... case study" fades in on it.
   One link per card: .proof-link's ::after stretches over the whole card, so nothing between
   the link and .proof-card may be positioned or transformed (the photo layers stack with grid).
   Marin's X link sits above that overlay. Touch screens get no hover state: a tap opens the study. */
.proof-card { transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s cubic-bezier(.2,.7,.2,1); }
.proof-link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.proof-link:focus-visible { outline: none; }
.proof-x { position: relative; z-index: 5; }
.proof-logo { filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,0.35)); }
.proof-dark { opacity: 0; transition: opacity .4s cubic-bezier(.2,.7,.2,1); }
.proof-cue { opacity: 0; margin-bottom: 14px !important; transition: opacity .32s cubic-bezier(.2,.7,.2,1), margin-bottom .4s cubic-bezier(.2,.7,.2,1); }
.proof-arrow { transition: transform .3s cubic-bezier(.2,.7,.2,1); }

.proof-card:has(.proof-link:focus-visible) { transform: scale(1.025); z-index: 3; box-shadow: 0 24px 60px -28px rgba(14,16,20,0.45); outline: 2px solid var(--accent); outline-offset: 4px; }
.proof-card:has(.proof-link:focus-visible) .proof-dark { opacity: 1; }
.proof-card:has(.proof-link:focus-visible) .proof-cue { opacity: 1; margin-bottom: 22px !important; }

@media (hover: hover) {
  .proof-card:hover { transform: scale(1.025); z-index: 3; box-shadow: 0 24px 60px -28px rgba(14,16,20,0.45); }
  .proof-card:hover .proof-dark { opacity: 1; }
  .proof-card:hover .proof-cue { opacity: 1; margin-bottom: 22px !important; }
  .proof-card:hover .proof-link-text { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
  .proof-card:hover .proof-arrow { transform: translateX(4px); }
}

/* Phones: one card per row, a shorter photo, and the quote's person a step smaller */
@media (max-width: 699px) {
  .proof-media { height: 200px !important; }
  .proof-logo { margin: 20px 0 0 22px !important; }
  .proof-cue { margin-left: 22px !important; margin-right: 22px !important; }
  .proof-body { padding: 24px !important; gap: 24px !important; }
  .proof-name { font-size: 16px !important; }
  .proof-role { font-size: 14px !important; }
  .proof-face { width: 44px !important; height: 44px !important; }
}

/* FAQ */
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.faq-icon { transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .2s ease, border-color .2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background-color: var(--accent-soft) !important; border-color: var(--accent-soft) !important; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-a { animation: faq-open .28s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .faq-icon { transition: none !important; }
  .proof-card, .proof-dark, .proof-cue, .proof-arrow { transition: none !important; }
  .proof-card:hover, .proof-card:has(.proof-link:focus-visible) { transform: none; }
  .proof-card:hover .proof-arrow { transform: none; }
}

/* Owner: Integrations session. Rules for Integrations.dc.html only. Prefix every class with .int- */

/* Three source cards side by side */
.int-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Tablet and phone: stack the cards */
@media (max-width: 960px) {
  .int-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* Tablets: Converge full width on top, MTA tools and Custom data side by side */
@media (min-width: 641px) and (max-width: 960px) {
  .int-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-cards > :first-child { grid-column: 1 / -1; }
}
/* Owner: Hudson MCP session. Rules for MCPBand.dc.html only. Prefix every class with .mcp- */

/* Phones: the six result cards become one swipeable row, so the section stays short.
   Each card keeps its desktop layout; the next card peeks in from the right. */
@media (max-width: 640px) {
  .mcp-window { padding: 18px 14px !important; }
  .mcp-cards {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    margin: 0 -14px;
    padding: 2px 14px 4px;
    scrollbar-width: none;
  }
  .mcp-cards::-webkit-scrollbar { display: none; }
  .mcp-card { flex: 0 0 82% !important; scroll-snap-align: start; }
  /* Room for two lines, so the cards don't jump while the question types and Hudson replies. */
  .mcp-row { min-height: 64px !important; }
  .mcp-replay { top: 18px !important; left: 14px !important; }
}

/* The narrowest phones: let a card's chip and the BFCM Review button drop to their own line. */
@media (max-width: 359px) {
  .mcp-head, .mcp-bfcm { flex-wrap: wrap !important; }
}
/* Owner: Pricing session. Rules for Pricing.dc.html only. Prefix every class with .price- */

/* Brands / agencies toggle */
.price-toggle-btn { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.price-toggle-btn:hover { color: var(--ink) !important; }
.price-toggle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Brands and agencies views share one grid cell, so the section keeps the
   taller view's height and the page doesn't jump on toggle. The hidden view
   is visibility: hidden (not focusable). On phones the views stack to very
   different heights, so the hidden one is removed instead. */
.price-view { min-width: 0; }

/* Plan cards in a row; one column, centered, below 960px */
@media (max-width: 960px) {
  .price-view[aria-hidden="true"] { display: none !important; }
  .price-plans { grid-template-columns: minmax(0, 1fr) !important; width: 100%; max-width: 560px !important; margin: 0 auto; }
}
body{margin:0}
a{color:var(--accent)}a:hover{color:var(--accent-deep)}
@media (max-width: 960px) {
  .hx-page footer nav > div { gap: 0 !important; }
  .hx-page footer nav a.hx-link { padding: 11px 0; }
}
/* NAV (owner: nav session). Same design as the Converge site nav (src/components/Nav.astro): a 14px 40px bar
   (12px 16px at 960px and narrower) inside 1440px with the menu next to the logo, a 1px hairline under it,
   40px pill links in 14px/500, the site's ghost and green buttons, simple dropdown panels, a 40px menu button
   and a drawer of plain links. Only the logo and the background differ: clear over the top of the hero, dark
   glass while over the hero, the site nav's own white glass after it. On dark the site nav's colour roles
   flip: ink text becomes white, the sunken hover a white wash, the hairline and ghost border white at the
   same strength as on white. */
.hx-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #ffffff; border-bottom: 1px solid rgba(255,255,255,0.08); transition: background-color .2s ease, border-color .2s ease; }
.hx-nav.is-dark { background: rgba(12,26,18,0.8); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.hx-nav.is-light { background: rgba(255,255,255,0.92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); color: var(--ink); }
.hx-nav-bar { position: relative; max-width: 1440px; margin: 0 auto; padding: 14px 40px; box-sizing: border-box; display: flex; align-items: center; gap: 24px; }
.hx-nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; height: 40px; text-decoration: none; border-radius: 6px; }
.hx-nav-logo-white { display: block; }
.hx-nav-logo-ink { display: none; }
.hx-nav.is-light .hx-nav-logo-white, .hx-nav.is-sheet .hx-nav-logo-white { display: none; }
.hx-nav.is-light .hx-nav-logo-ink, .hx-nav.is-sheet .hx-nav-logo-ink { display: block; }
.hx-nav-main { margin-left: 8px; }
.hx-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hx-nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.hx-nav-item { position: relative; }
.hx-nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 12px 16px; border: 1px solid transparent; border-radius: 9999px;
  background: transparent; font: 500 14px/1 var(--font); color: #ffffff; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s cubic-bezier(0.22, 1, 0.36, 1), color .18s cubic-bezier(0.22, 1, 0.36, 1);
}
.hx-nav-link:hover, .hx-nav-trigger[aria-expanded="true"] { color: #ffffff; background: rgba(255,255,255,0.08); }
.hx-nav.is-light .hx-nav-link { color: var(--ink); }
.hx-nav.is-light .hx-nav-link:hover, .hx-nav.is-light .hx-nav-trigger[aria-expanded="true"] { color: var(--ink); background: var(--paper-sunken); }
.hx-nav-chev { flex: none; width: 14px; height: 14px; transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1); }
.hx-nav-trigger[aria-expanded="true"] .hx-nav-chev { transform: rotate(180deg); }
/* Log in: the site's ghost pill. Book a demo keeps .hx-btn, which is the site's green button at the same size. */
.hx-nav-login {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 1px solid rgba(255,255,255,0.18); border-radius: 9999px;
  background: transparent; font: 500 14px/1 var(--font); color: #ffffff; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .25s cubic-bezier(0.22, 1, 0.36, 1), color .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.hx-nav-login:hover { color: #ffffff; border-color: #ffffff; }
.hx-nav.is-light .hx-nav-login { color: var(--ink); border-color: var(--line-strong); }
.hx-nav.is-light .hx-nav-login:hover { color: var(--ink); border-color: var(--ink); }
.hx-nav .hx-nav-cta { transition: background-color .25s cubic-bezier(0.22, 1, 0.36, 1), border-color .25s cubic-bezier(0.22, 1, 0.36, 1); }
.hx-nav-link:focus-visible, .hx-nav-logo:focus-visible, .hx-nav-login:focus-visible, .hx-nav-menu-btn:focus-visible { outline: 2px solid var(--p-on-dark); outline-offset: 2px; }
.hx-nav.is-light .hx-nav-link:focus-visible, .hx-nav.is-light .hx-nav-logo:focus-visible, .hx-nav.is-light .hx-nav-login:focus-visible,
.hx-nav.is-light .hx-nav-menu-btn:focus-visible, .hx-nav.is-sheet .hx-nav-menu-btn:focus-visible, .hx-nav.is-sheet .hx-nav-logo:focus-visible { outline-color: var(--accent); }
.hx-nav.is-light .hx-btn:focus-visible { outline-color: var(--accent); }

/* Dropdown panel: the site nav's simple panel, under the left edge of its trigger. */
.hx-nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: max-content; min-width: 280px; padding: 10px; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
  box-shadow: 0 20px 48px -16px rgba(14,16,20,0.18), 0 4px 12px -4px rgba(14,16,20,0.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s cubic-bezier(0.22, 1, 0.36, 1), transform .15s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear .15s;
}
.hx-nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.hx-nav-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .15s cubic-bezier(0.22, 1, 0.36, 1), transform .15s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.hx-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hx-nav-entry { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); transition: background-color .15s cubic-bezier(0.22, 1, 0.36, 1); }
.hx-nav-entry:hover, .hx-nav-entry:focus-visible { color: var(--ink); background: var(--paper-sunken); }
.hx-nav-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hx-nav-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink); }
.hx-nav-ic svg { width: 20px; height: 20px; }
.hx-nav-label { font: 600 14px/1.25 var(--font); color: var(--ink); white-space: nowrap; }

/* Menu button and drawer: 960px and narrower, as on the site. */
.hx-nav-menu-btn {
  display: none; position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #ffffff; cursor: pointer; align-items: center; justify-content: center;
}
.hx-nav-menu-btn::after { content: ""; position: absolute; inset: -3px; }
.hx-nav-menu-btn:hover { background: rgba(255,255,255,0.08); }
.hx-nav.is-light .hx-nav-menu-btn, .hx-nav.is-sheet .hx-nav-menu-btn { color: var(--ink); }
.hx-nav.is-light .hx-nav-menu-btn:hover, .hx-nav.is-sheet .hx-nav-menu-btn:hover { background: var(--paper-sunken); }
.hx-nav-menu-btn svg { width: 22px; height: 22px; }
.hx-nav-ic-close { display: none; }
.hx-nav.is-sheet .hx-nav-ic-menu { display: none; }
.hx-nav.is-sheet .hx-nav-ic-close { display: block; }
.hx-nav.is-sheet { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line); color: var(--ink); }
.hx-nav-sheet {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px); box-sizing: border-box;
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .22s;
}
.hx-nav-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.hx-nav-sheet-in { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 0; }
.hx-nav-sheet-label { margin: 0; padding: 14px 12px 4px; font: 600 11px/1.55 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.hx-nav-sheet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hx-nav-sheet-link { display: block; padding: 10px 12px; border-radius: 8px; font: 500 15px/1.55 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap; }
.hx-nav-sheet-link:hover { color: var(--ink); background: var(--paper-sunken); }
.hx-nav-sheet-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hx-nav-sheet-top { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hx-nav-sheet-foot {
  display: flex; flex-direction: column; gap: 8px; margin: 16px 4px 0;
  padding: 16px 12px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.hx-nav-sheet-foot .hx-btn, .hx-nav-sheet-foot .hx-btn-ghost { height: auto; padding: 12px 22px; font-size: 14px; line-height: 1.55; }
.hx-nav-sheet-foot .hx-btn { border: 0; }
.hx-nav-sheet-foot .hx-btn-ghost { border-color: var(--line-strong); }
.hx-nav-sheet-foot .hx-btn-ghost:hover { background: transparent; border-color: var(--ink); }
@media (min-width: 961px) {
  .hx-nav-sheet { display: none; }
}
@media (max-width: 960px) {
  .hx-nav-bar { padding: 12px 16px; }
  .hx-nav .hx-nav-login, .hx-nav .hx-nav-cta { display: none; }
  .hx-nav-menu-btn { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-nav, .hx-nav-link, .hx-nav-login, .hx-nav .hx-nav-cta, .hx-nav-entry, .hx-nav-panel, .hx-nav-panel.is-open, .hx-nav-chev, .hx-nav-sheet, .hx-nav-sheet.is-open { transition: none; }
}
/* END NAV */
/* Hudson's notes for the ads in view at first paint cascade in from CSS (.is-boot), left to right
   as the row rises in, so they never wait for the page's script. At the row's starting position
   (the 6th card centred, 280px a card, w the window width): --hero-first is the first card you can
   see, its right edge past the 7% fade, floor((1272 - 0.43w) / 280) + 1; --hero-last is the last
   card whose centre has crossed Hudson's 88% line (the line watch() uses), floor((0.38w + 1400) / 280).
   A card further right waits (1000s) until the logic takes it over and brings its note in as the
   ad slides past the line. */
.hero-c-track { --hero-first: 5; --hero-last: 5; }
@media (min-width: 354px) { .hero-c-track { --hero-first: 4; } }
@media (min-width: 737px) { .hero-c-track { --hero-last: 6; } }
@media (min-width: 1005px) { .hero-c-track { --hero-first: 3; } }
@media (min-width: 1474px) { .hero-c-track { --hero-last: 7; } }
@media (min-width: 1656px) { .hero-c-track { --hero-first: 2; } }
@media (min-width: 2211px) { .hero-c-track { --hero-last: 8; } }
@media (min-width: 2307px) { .hero-c-track { --hero-first: 1; } }
@media (min-width: 2948px) { .hero-c-track { --hero-last: 9; } }
@media (min-width: 2959px) { .hero-c-track { --hero-first: 0; } }
/* Phones (up to 640px) start two cards later, with the 8th card centred (css/hero.css), so both
   counts are two higher there: floor((1832 - 0.43w) / 280) + 1 and floor((0.38w + 1960) / 280). */
@media (max-width: 640px) { .hero-c-track { --hero-first: 7; --hero-last: 7; } }
@media (min-width: 354px) and (max-width: 640px) { .hero-c-track { --hero-first: 6; } }
/* The first note starts with the row's own rise (.hx-d3, .24s), then one every .15s */
.hero-c-card { --hero-at: calc(.24s + max(0, var(--i) - var(--hero-first)) * .15s + max(0, var(--i) - var(--hero-last)) * 1000s); }
.hero-c-note.is-boot { animation: hero-c-note-in .5s cubic-bezier(.2,.7,.2,1) var(--hero-at) both; }
/* A paused ad greys out and shows its chip as its note lands, as with .hero-c-media-paused */
.hero-c-media-boot video, .hero-c-media-boot img { animation: hero-c-grey .9s ease var(--hero-at) both; }
.hero-c-media-boot .hx-chip { animation: hx-fade .5s ease var(--hero-at) both; }
@keyframes hero-c-grey {
  from { filter: none; opacity: 1; }
  to { filter: grayscale(1) brightness(0.9); opacity: 0.7; }
}
body{margin:0}
.ps-pop { animation: hx-rise .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ps-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ps-dots span { display: block; width: 6px; height: 6px; border-radius: 9999px; background: var(--ink-subtle); animation: ps-blink 1.2s ease-in-out infinite; }
.ps-dots span:nth-child(2) { animation-delay: .15s; }
.ps-dots span:nth-child(3) { animation-delay: .3s; }
.psf-dot { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.psf-tab { transition: background-color .2s ease, color .2s ease; }
.psf-knob:focus-visible, .psf-replay:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.psf-tab:focus, .psf-ph button:focus { outline: none; }
.psf-tabs:has(.psf-tab:focus-visible), .psf-ph:has(button:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.psf-tab[aria-selected="false"]:focus-visible, .psf-ph button[aria-pressed="false"]:focus-visible { background: rgba(14,16,20,0.07) !important; }
.psf-anim .psf-after { transition: clip-path 1.4s cubic-bezier(.65,0,.25,1); }
.psf-anim .psf-move { transition: left 1.4s cubic-bezier(.65,0,.25,1), right 1.4s cubic-bezier(.65,0,.25,1), opacity .3s ease; }
.psf-move { transition: opacity .3s ease; }
.psf-knob { cursor: ew-resize; touch-action: none; }
.psf-scroll { scrollbar-width: thin; scrollbar-color: rgba(14,16,20,0.18) transparent; }
@media (max-width: 1100px) {
  .psf-cols { flex-direction: column !important; }
  .psf-left { flex: none !important; width: 100% !important; max-width: 560px; align-self: center; }
  .psf-chat-body { min-height: 0 !important; }
}
@media (max-width: 760px) {
  .psf-bullets { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
}
@media (max-width: 640px) {
  .psf-steps { gap: 6px !important; }
  .psf-steps > li { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .psf-steps .psf-line { display: none !important; }
  .psf-left { max-width: none; }
  .psf-tab { position: relative; }
  .psf-tab::after { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
  .psf-tabs { align-self: center !important; }
  .psf-steps, .psf-chat-win { display: none !important; }
  .psf-title { font-size: min(32px, calc((100vw - 56px) * 0.09)) !important; }
  .psf-frame-p, .psf-frame-c { height: auto !important; }
  .psf-after { position: relative !important; }
  .psf-ph { left: 50% !important; transform: translateX(-50%); width: max-content; top: -54px !important; }
  .psf-cols { gap: 10px !important; }
  .psf-frame { margin-top: 54px !important; }
  .psf-ph button { white-space: nowrap; }
  .psf-ctab { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr)) !important; }
  .psf-sheet-wide { display: none !important; }
  .psf-msg-x { display: none !important; }
  .psf-move { display: none !important; }
  .psf-ph { display: flex !important; }
  .psf-sheet-row { grid-template-columns: 28px 50px repeat(5, minmax(0, 1fr)) !important; }
}
body{margin:0}
/* Scale and cut, phones (640 px and narrower). Desktop and tablets never see these rules:
   the phone-only pieces below are hidden above 640 px and every other rule sits in the media query. */
.cap-scale-res, .cap-scale-meta-sm, .cap-scale-sk-stat, .cap-scale-sk-why { display: none; }
@media (max-width: 640px) {
  /* One column of cards, evenly spaced: trigger, Hudson, plan */
  .cap-scale-cols { gap: 12px !important; }

  /* One Hudson card. The one-line trace and the projected spend share one grid cell,
     so the card is the same height from the first frame and the swap never moves the page. */
  .cap-scale-msg { display: none !important; }
  .cap-scale-body { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cap-scale-body > * { grid-area: 1 / 1; min-width: 0; }
  .cap-scale-trace { align-self: center; transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s; }
  /* Before Hudson starts, the first step waits in grey instead of leaving the card empty */
  .cap-scale-trace > .cap-step.is-wait:first-child { display: flex !important; }
  .cap-scale-trace.cap-scale-gone { opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .cap-scale-res { display: flex; flex-direction: column; gap: 2px; align-self: center; }
  .cap-scale-res.cap-rv.is-out { visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .cap-scale-res.cap-rv.is-in { visibility: visible; transition: opacity .45s ease .15s, transform .45s cubic-bezier(.2,.7,.2,1) .15s, visibility 0s linear .15s; }

  /* Plan rows: one structure for every row.
     Line 1: action chip left, status right. Line 2: thumbnail, then name and metric line. Line 3: Why, full width. */
  .cap-scale-row {
    display: grid !important; grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: minmax(40px, auto) auto; grid-template-areas: "act act stat" "img txt txt";
    gap: 10px 12px !important; align-items: center !important; padding: 14px 18px !important;
  }
  .cap-scale-row.cap-scale-why-row { grid-template-rows: minmax(40px, auto) auto auto; grid-template-areas: "act act stat" "img txt txt" "why why why"; }
  .cap-scale-hero { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
  .cap-scale-dc { display: contents !important; }
  .cap-scale-act { grid-area: act; margin: 0 !important; }
  .cap-scale-stat { grid-area: stat; justify-self: end; margin: 0 !important; }
  .cap-scale-img { grid-area: img; width: 40px !important; height: 50px !important; margin: 0 !important; }
  .cap-scale-txt { grid-area: txt; min-width: 0; text-wrap: pretty; }
  .cap-scale-name { font-size: 15px !important; line-height: 20px; }
  .cap-scale-meta-sm { display: block; }
  .cap-scale-why { grid-area: why; text-wrap: pretty; }
  .cap-scale-list { padding: 0 !important; }
  /* Approve and Reject: 40 px tap targets */
  .cap-scale-row .cap-mini, .cap-scale-row .cap-mini-ghost { height: 40px; padding: 0 14px; font-size: 13px; }

  /* Placeholder rows mirror the real rows, so the plan fills in where it already stands */
  .cap-scale-sk { padding-top: 0 !important; }
  .cap-scale-skx { display: none !important; }
  .cap-scale-sk .cap-scale-row + .cap-scale-row { border-top: 1px solid rgba(14,16,20,0.06); }
  .cap-scale-sk-stat { display: block; grid-area: stat; justify-self: end; width: 128px; height: 24px; border-radius: 9999px; background: #f4f5f8; }
  .cap-scale-sk-why { display: block; grid-area: why; height: 60px; border-radius: 10px; background: var(--paper-soft); }
}
body{margin:0}
.psk-media { font-family: var(--font-ui); }
.psk-media:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.psk-bar { transition: opacity .15s ease, transform .15s ease; transform-origin: bottom; }
.psk-bars:hover .psk-bar { opacity: .55; }
.psk-bars:hover .psk-bar:hover { opacity: 1; }
@media (max-width: 400px) {
  .psk-when { display: none; }
}
@media (max-width: 640px) {
  .psk-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .psk-cards > :not(:nth-child(2)) { display: none !important; }
  .psk-media { aspect-ratio: 4 / 3 !important; }
  .psk-hide-sm { display: none !important; }
}
body{margin:0}
.psp-root button { font-family: var(--font-ui); }
.psp-root button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.psp-ib:hover { background: var(--paper-sunken) !important; color: var(--ink) !important; }
.psp-ltab:hover { color: var(--ink) !important; }
.psp-fade { transition: opacity .25s ease; }
.psp-pop { animation: hx-rise .35s cubic-bezier(.2,.7,.2,1) both; }
@media (max-width: 640px) {
  .psp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .psp-cardhead { flex-wrap: wrap; justify-content: flex-start !important; row-gap: 4px !important; }
  .psp-hide-sm { display: none !important; }
  .psp-chart { height: 180px !important; margin-bottom: 16px !important; }
}
body {
  margin: 0;
}
