/* ==========================================================================
   Hubble MCP — page styles
   Hubble brand design language: pure-black premium dark, rounded geometric
   light-weight display type (Outfit), pill + metallic buttons, squircle
   app-icon tiles, blueprint "+" corner motifs, restrained orange accent.
   Fira Code (from colors_and_type.css) carries the mono/MCP tokens.
   ========================================================================== */

:root {
  /* accent is tweakable; tints derive from it via color-mix */
  --accent: #FF7A3C;
  --accent-2: #FF9A5A;
  --accent-tint: color-mix(in srgb, var(--accent) 16%, #0a0a0a);
  --accent-tint-2: color-mix(in srgb, var(--accent) 8%, #0a0a0a);
  --accent-ink: color-mix(in srgb, var(--accent) 78%, #ffffff);

  /* surfaces */
  --bg:        #000000;
  --bg-2:      #070707;
  --card:      #0E0E0E;
  --card-2:    #141414;
  --card-hover:#1A1A1A;
  --border:    rgba(255,255,255,0.09);
  --border-2:  rgba(255,255,255,0.16);
  --border-3:  rgba(255,255,255,0.04);

  /* ink */
  --tx:   #F5F3F0;
  --tx-2: #A8A5A0;
  --tx-3: #6E6B66;
  --tx-4: #4A4844;

  /* metallic primary button */
  --metal: linear-gradient(180deg, #ffffff 0%, #ededed 48%, #d2d2d2 100%);
  --metal-hover: linear-gradient(180deg, #ffffff 0%, #f4f4f4 48%, #dcdcdc 100%);

  --font-display: 'Outfit', 'Inter', -apple-system, system-ui, sans-serif;
  --font-sans:    'Outfit', 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono:    var(--molt-font-mono);

  --maxw: 1180px;
  --pad-section: 120px;
}

* { box-sizing: border-box; }
/* never let any descendant force the page wider than the device — the layout
   viewport must equal device-width or mobile browsers zoom the whole page in */
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

/* audio-waveform backdrop: a halftone dot-matrix — a fine grid of dots whose
   visibility is shaped into a flowing diagonal wave band (dense in the core,
   feathering out at the edges), like a dithered audio waveform. Light dots on
   pure black; the whole band blinks slowly. */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  /* dot grid */
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.28) 0.9px, transparent 1.4px);
  background-size: 7px 7px;
  background-position: center;
  /* shape the dots into a wavy band: opaque in the band core, transparent
     elsewhere, so only band dots survive — feathered edges = halftone falloff */
  -webkit-mask-image:
    radial-gradient(120% 70% at 18% 78%, #000 0%, rgba(0,0,0,0.55) 26%, transparent 52%),
    radial-gradient(130% 80% at 82% 30%, #000 0%, rgba(0,0,0,0.5) 28%, transparent 56%);
  -webkit-mask-composite: source-over;
          mask-image:
    radial-gradient(120% 70% at 18% 78%, #000 0%, rgba(0,0,0,0.55) 26%, transparent 52%),
    radial-gradient(130% 80% at 82% 30%, #000 0%, rgba(0,0,0,0.5) 28%, transparent 56%);
  mask-composite: add;
  animation: wave-blink 6s ease-in-out infinite;
  will-change: opacity;
}

@keyframes wave-blink {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: 0.45; }
}

::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); color: #fff; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

body.density-compact { --pad-section: 84px; }
body.density-comfy   { --pad-section: 150px; }

/* =========================================================
   Brand mark (Hubble comet) + spark (agent/AI)
   ========================================================= */
.spark, .hmark { display: inline-block; flex: none; line-height: 0; }
.spark { color: var(--accent); }
.spark svg, .hmark svg { display: block; width: 100%; height: 100%; }
@keyframes spark-pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity:.65; transform: scale(.9);} }
.spark.pulse svg { animation: spark-pulse 1.7s ease-in-out infinite; transform-origin: center; }

/* =========================================================
   Top nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--molt-dur-2) var(--molt-ease), background var(--molt-dur-2);
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; font-size: 19px; color: #fff; flex: none; white-space: nowrap; }
.brand .hmark { width: 24px; height: 24px; }
.hmark-stack { position: relative; overflow: visible; }
/* favicon glyph badge — bottom-left of the comet, ~50% overlapping (half on the
   mark, half hanging off). Dark backing ring so it reads as a distinct badge. */
.hmark-fav {
  position: absolute;
  left: -28%; bottom: -28%;
  width: 56%; height: 56%;
  display: grid; place-items: center;
  background: #000; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--bg, #000);
  color: #fff;
}
.hmark-fav svg { display: block; width: 74%; height: 74%; }
.brand b { font-weight: 600; }
.brand .mcp { color: var(--tx-3); font-weight: 500; }
.nav-endpoint {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; color: var(--tx-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 6px 11px 6px 10px; border-radius: 999px; margin-left: 2px;
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: #45D483; flex: none;
  box-shadow: 0 0 8px color-mix(in srgb, #45D483 80%, transparent); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(69,212,131,.5);} 70%,100% { box-shadow: 0 0 0 6px transparent;} }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--tx-2); padding: 8px 13px; border-radius: 999px; transition: background var(--molt-dur-1), color var(--molt-dur-1); }
.nav-links a:hover { background: rgba(255,255,255,0.05); color: var(--tx); }

/* =========================================================
   Buttons — pills
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background var(--molt-dur-2) var(--molt-ease), border-color var(--molt-dur-1), transform var(--molt-dur-1), box-shadow var(--molt-dur-2);
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
.btn-primary { background: var(--metal); color: #141414; border-color: rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 26px rgba(0,0,0,0.55); }
.btn-primary:hover { background: var(--metal-hover); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 32px rgba(0,0,0,0.6); }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--tx); border-color: var(--border-2); }
.btn-secondary:hover { background: rgba(255,255,255,0.09); }
.btn-ghost { background: transparent; color: var(--tx-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--tx); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* =========================================================
   Section scaffolding
   ========================================================= */
section { padding: var(--pad-section) 0; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--tx-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 7px 14px 7px 13px; border-radius: 999px;
}
/* the glyph carries side-bearing inside its own box, so the flex gap alone
   reads as too tight — center it in a fixed box and let gap do the spacing */
.eyebrow::before {
  content: '✦'; color: var(--accent); font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; flex: none;
}
.section-head { max-width: 760px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.08;
  letter-spacing: -0.03em; margin: 22px 0 0; color: #fff;
}
.section-head p { font-size: 18px; line-height: 1.6; color: var(--tx-2); margin: 18px 0 0; max-width: 600px; font-weight: 300; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: 60px; padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
/* grid/flex items must be allowed to shrink below their content's intrinsic
   min-width, or a wide child (chat card, code row) stretches the whole column
   past the viewport on small screens */
.hero-grid > * { min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px); font-weight: 400;
  line-height: 1.0; letter-spacing: -0.04em; margin: 22px 0 0; color: #fff;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .dim { color: var(--tx-3); }
.hero .lede { font-size: 19px; line-height: 1.58; color: var(--tx-2); margin: 24px 0 0; max-width: 530px; text-wrap: pretty; font-weight: 300; }

/* text blocks that sit directly on the halftone backdrop carry a soft,
   transparent-black shadow with spread — it pools darkness behind the copy so
   the dot pattern recedes and the text stays readable. The matching tinted
   background fills the box interior the spread shadow wraps. */
.hero h1,
.hero .lede,
.section-head h2,
.section-head p {
  background: rgba(0,0,0,0.42);
  box-shadow: 0 0 40px 24px rgba(0,0,0,0.42);
  border-radius: 6px;
}

.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 22px; margin-top: 28px; font-size: 13.5px; color: var(--tx-3); }
.hero-meta .i { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* install code card */
.install { margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 520px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.install-row { display: flex; align-items: center; gap: 12px; padding: 15px 14px 15px 18px; }
.install-row .prompt { color: var(--accent); font-family: var(--font-mono); font-size: 13.5px; flex: none; }
.install-row code { font-family: var(--font-mono); font-size: 12.5px; color: var(--tx); overflow-x: auto; white-space: nowrap; flex: 1; scrollbar-width: none; }
.install-row code::-webkit-scrollbar, .eco-cmd code::-webkit-scrollbar { display: none; }
.eco-cmd code { scrollbar-width: none; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; color: var(--tx-2); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 12px;
  transition: background var(--molt-dur-1), color var(--molt-dur-1);
}
.copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--tx); }
.copy-btn svg { width: 13px; height: 13px; }
.install-tabs { display: flex; gap: 3px; padding: 7px; border-top: 1px solid var(--border); background: var(--bg-2); }
.install-tabs button {
  font-family: var(--font-mono); font-size: 12px; color: var(--tx-3);
  background: transparent; border: none; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.install-tabs button.active { background: rgba(255,255,255,0.07); color: var(--tx); }

/* =========================================================
   Hero teaser chat card
   ========================================================= */
.teaser { background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); padding: 8px; position: relative; }
.teaser::before, .teaser::after { content: '+'; position: absolute; color: var(--tx-4); font-size: 16px; line-height: 1; }
.teaser::before { top: -8px; left: -8px; } .teaser::after { bottom: -8px; right: -8px; }
.teaser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 12px 12px; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 999px; display: block; }
.teaser-bar .t-title { font-size: 12px; color: var(--tx-3); margin-left: 6px; font-family: var(--font-mono); }
.teaser-body { background: var(--bg-2); border: 1px solid var(--border-3); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* =========================================================
   Chat thread (teaser + main demo)
   ========================================================= */
.thread { display: flex; flex-direction: column; gap: 18px; }
.u-row { display: flex; justify-content: flex-end; }
.u-bubble { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 16px; padding: 11px 15px; font-size: 14.5px; line-height: 1.5; color: var(--tx); max-width: 80%; }
.a-row { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.a-head { display: flex; align-items: center; gap: 8px; }
.a-head .spark { width: 16px; height: 16px; }
.a-head .name { font-size: 13px; font-weight: 500; color: var(--tx-2); }
.a-text { font-size: 15px; line-height: 1.6; color: var(--tx); font-weight: 300; }
.a-text code { font-family: var(--font-mono); font-size: 12.5px; background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: 5px; color: var(--accent-ink); }
.a-text b { font-weight: 600; color: #fff; }

/* tool-call card */
.tool { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 11px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; }
.tool .status { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.tool .spinner { width: 15px; height: 15px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.16); border-top-color: var(--accent); border-right-color: var(--accent); animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool .check { color: #45D483; }
.tool .tbody { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--tx); overflow: hidden; min-width: 0; }
.tool .fn { font-weight: 600; color: #fff; }
.tool .key { color: var(--tx-3); }
.tool .str { color: #E0A87C; }
.tool .num { color: #9FC2E8; }
.tool .pill-ms { font-family: var(--font-mono); font-size: 11px; color: var(--tx-3); }

/* typing dots */
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing span { width: 5px; height: 5px; border-radius: 999px; background: var(--tx-3); animation: tdot 1.2s ease-in-out infinite; }
.typing span:nth-child(2){ animation-delay:.15s;} .typing span:nth-child(3){ animation-delay:.3s;}
@keyframes tdot { 0%,60%,100%{opacity:.3;} 30%{opacity:1;} }

/* =========================================================
   Brand-result cards + squircle tiles
   ========================================================= */
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.gcard { display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.gtile { width: 36px; height: 36px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 14px; letter-spacing: -0.02em; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 2px 6px rgba(0,0,0,0.4); }
/* real brand logo (SSR'd from the Hubble catalogue, mirrored on jsDelivr) fills
   the squircle; white inset keeps transparent-PNG wordmarks legible on the tile */
.gtile .gicon { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; background: #fff; }
.gcard .gname { font-size: 13.5px; font-weight: 500; color: var(--tx); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard > div { min-width: 0; flex: 1; }
.gcard .gmeta { font-size: 11px; color: var(--tx-3); margin-top: 2px; font-family: var(--font-mono); }
.gcard .gdisc { margin-left: auto; flex: none; white-space: nowrap; font-size: 11px; font-weight: 500; color: #45D483; background: rgba(69,212,131,0.12); padding: 3px 8px; border-radius: 999px; }

/* cart card in chat */
.cartcard { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cartcard .ch { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.cartcard .ch .lbl { font-size: 12.5px; font-weight: 500; color: var(--tx-2); }
.cartcard .ch .url { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-ink); }
.cartcard .ci { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--tx); }
.cartcard .ci + .ci { border-top: 1px solid var(--border-3); }
.cartcard .ci .amt { margin-left: auto; font-family: var(--font-mono); color: var(--tx); }
.cartcard .cf { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: rgba(255,255,255,0.02); }
.cartcard .cf .total { font-size: 13px; color: var(--tx-2); } .cartcard .cf .total b { color: #fff; font-family: var(--font-mono); }

/* =========================================================
   Main demo frame
   ========================================================= */
.demo-shell { display: grid; grid-template-columns: 1fr 400px; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,0.6); overflow: hidden; margin-top: 44px; position: relative; }
.demo-chat { padding: 24px 26px; min-height: 560px; display: flex; flex-direction: column; }
.demo-chat .thread { flex: 1; }

/* left side: written-out flow steps that highlight in sync with the replay */
.demo-steps { padding: 24px 26px; min-height: 560px; display: flex; flex-direction: column; }
.flow-walk { flex: 1; list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.walk-step { display: flex; gap: 15px; padding: 15px 16px; border-radius: 14px; border: 1px solid transparent; transition: background var(--molt-dur-2), border-color var(--molt-dur-2), opacity var(--molt-dur-2); opacity: 0.5; }
.walk-step .fs-n { font-family: var(--font-mono); font-size: 12px; color: var(--tx-3); padding-top: 3px; flex: none; transition: color var(--molt-dur-2); }
.walk-step .fs-b { min-width: 0; }
.walk-step .fs-t { font-size: 15px; font-weight: 500; color: var(--tx); letter-spacing: -0.01em; }
.walk-step .fs-d { font-size: 13px; line-height: 1.5; color: var(--tx-3); font-weight: 300; margin-top: 4px; }
.walk-step.active { opacity: 1; background: rgba(255,255,255,0.04); border-color: var(--border); }
.walk-step.active .fs-n { color: var(--accent); }
.walk-step.done { opacity: 0.72; }
.walk-step.done .fs-n { color: #45D483; }
.demo-chrome { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.demo-chrome .who { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--tx-2); }
.demo-chrome .who .spark { width: 16px; height: 16px; }
.demo-chrome .powered { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx-3); font-family: var(--font-mono); }
.demo-chrome .powered .hmark { width: 14px; height: 14px; }
.seg { display: flex; gap: 2px; margin-left: auto; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button { font-size: 12.5px; font-family: var(--font-sans); color: var(--tx-3); border: none; background: transparent; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-weight: 500; transition: all var(--molt-dur-1); }
.seg button.active { background: rgba(255,255,255,0.1); color: var(--tx); }
.demo-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.demo-foot .replay { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--tx-2); cursor: pointer; background: transparent; border: none; padding: 7px 10px; border-radius: 999px; }
.demo-foot .replay:hover { background: rgba(255,255,255,0.06); color: var(--tx); }
.demo-foot .replay svg { width: 15px; height: 15px; }
.demo-foot .progress { margin-left: auto; display: flex; gap: 5px; }
.demo-foot .progress i { width: 24px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.12); transition: background var(--molt-dur-2); }
.demo-foot .progress i.on { background: var(--accent); }

/* right side: app phone preview */
.demo-side { background: var(--bg-2); border-left: 1px solid var(--border); padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.demo-side .side-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--tx-3); align-self: flex-start; }

/* phone — dark app */
.phone { width: 286px; border-radius: 38px; background: #000; padding: 8px; box-shadow: 0 30px 70px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.08); }
.phone-screen { background: #0B0B0B; border-radius: 31px; overflow: hidden; height: 524px; display: flex; flex-direction: column; position: relative; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px 6px; font-size: 11px; font-weight: 500; color: var(--tx); }
.phone-url { display: flex; align-items: center; gap: 6px; margin: 6px 12px 12px; padding: 8px 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; color: var(--tx-2); }
.phone-url .lock { width: 11px; height: 11px; color: var(--tx-3); }
.phone-content { flex: 1; overflow: hidden; padding: 4px 14px 16px; }
.cart-page-brand { display: flex; align-items: center; gap: 8px; margin: 6px 2px 16px; }
.cart-page-brand .hmark { width: 18px; height: 18px; }
.cart-page-brand b { font-size: 14.5px; font-weight: 600; color: #fff; }
.cart-page-brand .tag { margin-left: auto; font-size: 10.5px; font-family: var(--font-mono); color: var(--tx-3); }
.cpitem { display: flex; align-items: center; gap: 11px; padding: 11px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; }
.cpitem .gtile { width: 40px; height: 40px; border-radius: 12px; }
.cpitem .cpn { font-size: 13px; font-weight: 500; color: var(--tx); }
.cpitem .cpv { font-size: 11px; color: var(--tx-3); font-family: var(--font-mono); margin-top: 1px; }
.cpitem .cpa { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--tx); }
.cart-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 16px; font-size: 13px; color: var(--tx-2); }
.cart-total b { font-family: var(--font-mono); font-size: 17px; color: #fff; }
.cart-open-btn { width: 100%; justify-content: center; }
.cart-open-btn.paying { opacity: 0.85; pointer-events: none; }
.cart-open-note { font-size: 10.5px; color: var(--tx-3); text-align: center; margin-top: 11px; line-height: 1.45; }

/* phone — one-tap payment success state */
.paid-screen { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 54px 14px 0; }
.paid-check { width: 60px; height: 60px; border-radius: 999px; background: rgba(69,212,131,0.14); border: 1px solid rgba(69,212,131,0.4); color: #45D483; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; animation: paid-pop .45s var(--molt-ease) both; }
.paid-check svg { width: 30px; height: 30px; }
@keyframes paid-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.paid-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -0.02em; }
.paid-sub { font-size: 13px; color: var(--tx-2); margin-top: 7px; font-weight: 300; }
.paid-note { font-size: 10.5px; color: var(--tx-3); margin-top: 20px; font-family: var(--font-mono); line-height: 1.5; max-width: 200px; }

/* phone — the agent conversation plays inside the device */
.phone-chat { display: flex; flex-direction: column; gap: 11px; overflow-y: auto; min-height: 0; padding-top: 8px; scrollbar-width: none; }
.phone-chat::-webkit-scrollbar { display: none; }
/* every chat node keeps its natural height — never let flex shrink them into overlap */
.phone-chat > * { flex: 0 0 auto; flex-shrink: 0; min-height: max-content; }
.pc-u { align-self: flex-end; max-width: 82%; background: var(--accent); color: #0B0B0B; border-radius: 15px 15px 4px 15px; padding: 9px 13px; font-size: 13px; line-height: 1.45; font-weight: 500; }
.pc-a { align-self: flex-start; max-width: 90%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 15px 15px 15px 4px; padding: 9px 13px; font-size: 13px; line-height: 1.5; color: var(--tx); }
.pc-a b { color: #fff; font-weight: 600; }
.pc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 9px 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 15px 15px 15px 4px; }
.pc-typing span { width: 5px; height: 5px; border-radius: 999px; background: var(--tx-3); animation: tdot 1.2s ease-in-out infinite; }
.pc-typing span:nth-child(2){ animation-delay:.15s; } .pc-typing span:nth-child(3){ animation-delay:.3s; }

/* in-chat offer card with the one-tap Pay button */
.pc-offer { align-self: stretch; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pc-offer .po-item { display: flex; align-items: center; gap: 11px; padding: 12px 13px; }
.pc-offer .po-item .cpn { font-size: 13px; font-weight: 500; color: var(--tx); }
.pc-offer .po-item .cpv { font-size: 11px; color: var(--tx-3); font-family: var(--font-mono); margin-top: 2px; }
.pc-offer .po-disc { margin-left: auto; font-size: 10.5px; font-weight: 500; color: #45D483; background: rgba(69,212,131,0.12); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pc-offer .po-pay { padding: 0 11px 12px; }
.pc-pay-btn { width: 100%; justify-content: center; }
.pc-pay-btn.paying { opacity: 0.85; pointer-events: none; }
.pc-offer .po-note { font-size: 10px; color: var(--tx-3); text-align: center; padding: 0 11px 11px; line-height: 1.45; }

/* delivered gift card — proper credit-card proportions (1.586:1) */
.pc-gift { align-self: stretch; height: 162px; min-height: 162px; border-radius: 16px; padding: 16px 17px; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation: paid-pop .5s var(--molt-ease) both; }
.pc-gift::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 88% -10%, rgba(255,255,255,0.28), transparent 58%); pointer-events: none; }
.pc-gift .pg-top { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: 0.9; }
.pc-gift .pg-check { width: 15px; height: 15px; flex: none; }
.pc-gift .pg-brand { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: auto; }
.pc-gift .pg-val { font-family: var(--font-mono); font-size: 12px; opacity: 0.92; margin-top: 4px; }
.pc-gift .pg-code { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 8px 11px; background: rgba(0,0,0,0.32); border-radius: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; }
.pc-gift .pg-code span { opacity: 0.7; font-size: 9.5px; letter-spacing: .05em; }

/* =========================================================
   How it works — flow
   ========================================================= */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.flow-step { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; position: relative; transition: border-color var(--molt-dur-2); }
.flow-step:hover { border-color: var(--border-2); }
.flow-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 500; }
.flow-step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 14px 0 9px; letter-spacing: -0.02em; color: #fff; }
.flow-step p { font-size: 14px; color: var(--tx-2); line-height: 1.55; margin: 0; font-weight: 300; }
.flow-step .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.flow-step .ico svg { width: 21px; height: 21px; }

/* routing diagram */
.routing { margin-top: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px 32px; }
.routing-head { font-size: 14px; color: var(--tx-2); margin-bottom: 24px; font-weight: 300; }
.routing-head code { font-family: var(--font-mono); font-size: 12px; background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 6px; color: var(--accent-ink); }
.routing-grid { display: grid; grid-template-columns: 210px 1fr; gap: 0 30px; align-items: stretch; }
.routing-src { display: flex; align-items: center; justify-content: center; }
.route-node { background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); border-radius: 14px; padding: 16px 18px; text-align: center; }
.route-node .rn-t { font-size: 14px; font-weight: 500; color: #fff; } .route-node .rn-s { font-size: 11px; color: var(--tx-3); font-family: var(--font-mono); margin-top: 3px; }
.routing-branches { display: flex; flex-direction: column; gap: 12px; }
.branch { display: flex; align-items: center; gap: 16px; }
.branch .cond { font-family: var(--font-mono); font-size: 11.5px; color: var(--tx-3); width: 152px; flex: none; }
.branch .cond b { color: var(--accent-ink); font-weight: 500; }
.branch .target { flex: 1; display: flex; align-items: center; gap: 11px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; padding: 12px 15px; }
.branch .target .bt { font-size: 13.5px; font-weight: 500; color: var(--tx); } .branch .target .bs { font-size: 12.5px; color: var(--tx-2); margin-left: 2px; font-weight: 300; }
.branch .target .badge-mini { margin-left: auto; font-size: 10.5px; font-family: var(--font-mono); color: var(--tx-3); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }

/* =========================================================
   Brand wall
   ========================================================= */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; margin-top: 44px; }
.wall .gcard { padding: 12px 13px; background: rgba(0,0,0,0.22); }
.wall .gtile { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.wall-note { font-size: 13px; color: var(--tx-3); margin-top: 20px; text-align: center; font-family: var(--font-mono); }

/* =========================================================
   Partners before/after
   ========================================================= */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.ba-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.ba-card.after { border-color: color-mix(in srgb, var(--accent) 42%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 8%, transparent); }
.ba-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.ba-tag.before { background: rgba(255,255,255,0.05); color: var(--tx-3); }
.ba-tag.after { background: var(--accent-tint); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.ba-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin: 0 0 7px; color: #fff; }
.ba-card p { font-size: 14px; color: var(--tx-2); line-height: 1.55; margin: 0 0 18px; font-weight: 300; }
.ba-card p em { color: var(--accent-ink); font-style: normal; }
.ba-chat { display: flex; flex-direction: column; gap: 10px; }
.mini-u { align-self: flex-end; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; font-size: 13px; max-width: 85%; color: var(--tx); }
.mini-a { align-self: flex-start; font-size: 13px; color: var(--tx); line-height: 1.5; max-width: 94%; font-weight: 300; }
.mini-a.dim { color: var(--tx-3); }
.mini-a .mini-cart { margin-top: 9px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-ink); }

/* benefit bullets */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.benefit { padding: 2px; }
.benefit .bt { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: #fff; }
.benefit .bt svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.benefit p { font-size: 13.5px; color: var(--tx-2); line-height: 1.5; margin: 9px 0 0; font-weight: 300; }

/* config code block */
.codeblock { margin-top: 28px; background: #0A0A0A; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.codeblock .cb-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.codeblock .cb-bar .fname { font-family: var(--font-mono); font-size: 12px; color: var(--tx-2); }
.codeblock .cb-bar .copy-btn { margin-left: auto; }
.codeblock pre { margin: 0; padding: 20px; overflow-x: auto; }
.codeblock code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--tx); }
.codeblock .c-key { color: var(--accent-2); } .codeblock .c-str { color: #9BCB8A; } .codeblock .c-punc { color: var(--tx-3); } .codeblock .c-com { color: var(--tx-4); }

/* =========================================================
   Tools table
   ========================================================= */
.tools-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-top: 44px; }
.tools-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); font-weight: 500; padding: 15px 20px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.tools-table td { padding: 17px 20px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
.tools-table tr:last-child td { border-bottom: none; }
.tools-table tbody tr { transition: background var(--molt-dur-1); }
.tools-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.tools-table .tname { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); font-weight: 500; white-space: nowrap; }
.tools-table .tparams { font-family: var(--font-mono); font-size: 12px; color: var(--tx-3); }
.tools-table .tdesc { color: var(--tx-2); line-height: 1.5; font-weight: 300; }
.tools-table .tdesc code { font-family: var(--font-mono); font-size: 12px; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px; color: var(--accent-ink); }

/* =========================================================
   Install / ecosystem grid
   ========================================================= */
/* auto-fit so cards reflow to as many columns as fit instead of a fixed 3 — the
   grid drops to 2 then 1 column naturally as the viewport narrows. minmax(0,…)
   keeps every track shrinkable so nowrap mono content can't stretch a card past
   its track width. */
.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 44px; }
.eco-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 13px; min-width: 0; transition: border-color var(--molt-dur-2), transform var(--molt-dur-2), background var(--molt-dur-2); }
.eco-card:hover { border-color: var(--border-2); transform: translateY(-3px); background: var(--card-2); }
.eco-card .eco-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.eco-card .eco-ico { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--tx); flex: none; }
.eco-card .eco-ico svg { width: 19px; height: 19px; }
.eco-card .eco-ico .spark { width: 19px; height: 19px; }
/* let the title shrink/wrap instead of forcing the top row wider than the card */
.eco-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin: 0; color: #fff; min-width: 0; overflow-wrap: break-word; }
.eco-card .status-tag { margin-left: auto; font-size: 10.5px; font-family: var(--font-mono); padding: 4px 9px; border-radius: 999px; flex: none; white-space: nowrap; }
.status-tag.ready { background: rgba(69,212,131,0.12); color: #45D483; }
.status-tag.soon { background: rgba(255,255,255,0.06); color: var(--tx-3); }
.eco-card p { font-size: 13.5px; color: var(--tx-2); line-height: 1.5; margin: 0; font-weight: 300; }
.eco-card .eco-cmd { font-family: var(--font-mono); font-size: 12px; color: var(--tx); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.eco-card .eco-cmd .prompt { color: var(--accent); flex: none; }
/* min-width:0 lets the nowrap command scroll inside the pill instead of pushing
   the card wider than its grid track */
.eco-card .eco-cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }

/* =========================================================
   Closing + footer
   ========================================================= */
.closing { text-align: center; padding: var(--pad-section) 0; }
.closing > .eyebrow { margin-top: 24px; display: inline-flex; }
#cart .eyebrow,
#how .eyebrow,
#install .eyebrow { margin-top: 4px; }
.closing h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 60px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.04; margin: 20px auto 0; max-width: 800px; text-wrap: balance; color: #fff; }
.closing h2 .accent { color: var(--accent); }
.closing p { font-size: 18px; color: var(--tx-2); margin: 20px auto 0; max-width: 540px; font-weight: 300; }
.closing .hero-cta { justify-content: center; }

footer { border-top: 1px solid var(--border); padding: 44px 0 60px; }
.foot-grid { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; color: #fff; }
.foot-brand .hmark { width: 22px; height: 22px; }
.foot-end { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-link { font-size: 13.5px; color: var(--tx-2); } .foot-link:hover { color: var(--tx); }
.foot-note { font-size: 12px; color: var(--tx-3); margin-top: 26px; font-family: var(--font-mono); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--molt-ease), transform .8s var(--molt-ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Responsive
   ========================================================= */

/* tablet / small laptop */
@media (max-width: 980px) {
  :root { --pad-section: 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-steps { min-height: 0; }
  .demo-side { border-left: none; border-top: 1px solid var(--border); }
  .flow, .benefits { grid-template-columns: repeat(2, 1fr); }
  .eco { grid-template-columns: repeat(2, 1fr); }
  .ba { grid-template-columns: 1fr; }
  .routing-grid { grid-template-columns: 1fr; gap: 16px; }
  .nav-links { display: none; }
}

/* phones */
@media (max-width: 680px) {
  :root { --pad-section: 64px; }
  .wrap { padding: 0 20px; }

  /* nav: brand + CTA only; endpoint pill is redundant on small screens */
  .nav-in { padding: 12px 20px; gap: 12px; }
  .nav-endpoint { display: none; }
  .nav .btn-primary { margin-left: auto; }
  .brand { font-size: 17px; }

  /* hero */
  .hero { padding-top: 36px; padding-bottom: 56px; }
  /* teaser chat result tiles must shrink with their grid track */
  .results > *, .results .gcard > div { min-width: 0; }
  .gcard .gname { min-width: 0; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 50px); overflow-wrap: break-word; }
  .hero h1 br { display: none; }
  .hero .lede { font-size: 17px; margin-top: 20px; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
  .install { max-width: none; }
  .install-row { min-width: 0; }
  .install-row code { min-width: 0; }
  .hero-cta { gap: 10px; }
  /* row layout: let buttons share width but never grow on the (vertical) axis */
  .hero-cta .btn { flex: 1 1 auto; min-width: 160px; justify-content: center; }

  /* let flex children with nowrap mono content scroll instead of stretching
     their card past the viewport */
  .eco-cmd { min-width: 0; }
  .eco-cmd code { min-width: 0; overflow-x: auto; }

  /* section heads */
  .section-head p { font-size: 16px; }

  /* eyebrow pills: center them and add breathing room above on small screens.
     Only the pill is centered — the heading and copy below stay left-aligned.
     The eyebrow is the first child of the hero text column / each .section-head,
     so a flex chip with auto side margins centers it within its column. */
  .hero .eyebrow,
  .section-head .eyebrow {
    display: flex; width: max-content; max-width: 100%;
    margin-left: auto; margin-right: auto; margin-top: 16px;
  }

  /* grids collapse to a single column; items must shrink below their
     intrinsic content width so a nowrap mono row can't stretch the card */
  .flow, .benefits, .eco { grid-template-columns: 1fr; }
  .flow > *, .benefits > *, .eco > *, .ba > *, .wall > * { min-width: 0; }
  .flow { margin-top: 32px; }
  .benefits { margin-top: 24px; }
  .eco { margin-top: 32px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 32px; }
  .ba { margin-top: 32px; }

  /* demo: phone scales to viewport, steps tighten */
  .demo-shell { margin-top: 28px; border-radius: 18px; }
  .demo-steps { padding: 20px; }
  .demo-side { padding: 22px 16px; }
  .phone { width: min(286px, 86vw); }
  .phone-screen { height: auto; min-height: 480px; }

  /* routing diagram stacks the label above its target */
  .routing { padding: 22px 18px; }
  .branch { flex-direction: column; align-items: stretch; gap: 8px; }
  .branch .cond { width: auto; }
  .branch .target { flex-wrap: wrap; gap: 8px 11px; min-width: 0; }
  .branch .target .badge-mini { margin-left: 0; }
  .routing-src, .routing-branches, .branch { min-width: 0; }

  /* tools table reflows into stacked cards */
  .tools-table, .tools-table thead, .tools-table tbody,
  .tools-table tr, .tools-table th, .tools-table td { display: block; width: auto; }
  .tools-table { margin-top: 28px; }
  .tools-table thead { display: none; }
  .tools-table tr { border-bottom: 1px solid var(--border); padding: 6px 4px; }
  .tools-table tr:last-child { border-bottom: none; }
  .tools-table td { border: none; padding: 6px 16px; }
  .tools-table .tname { padding-top: 14px; font-size: 14px; }
  .tools-table .tparams::before { content: 'params · '; color: var(--tx-4); }
  .tools-table .tdesc { padding-bottom: 14px; }

  /* code block scrolls rather than overflowing the viewport */
  .codeblock pre { padding: 16px; }
  .codeblock code { font-size: 12px; }

  /* footer stacks */
  .foot-grid { flex-direction: column; gap: 18px; }
  .foot-end { margin-left: 0; gap: 14px; }
}

/* narrow phones */
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .nav-in { padding: 11px 16px; gap: 10px; }
  .hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .results { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  /* column layout: main axis is vertical, so flex-grow must be 0 or the pills
     stretch to fill the column height into giant buttons */
  .hero-cta .btn { flex: 0 0 auto; width: 100%; min-width: 0; }
  /* tighten padding (not the icon gap) so buttons survive 320px-wide devices */
  .nav .btn-primary { padding: 9px 14px; }
  .eyebrow { white-space: normal; }
  .routing { padding: 20px 14px; }
}
