/* ==========================================================================
   BeepBite site — the product's own design system, ported

   This is not a separate "marketing look". Every token below is lifted from
   the running app — src/index.css and tailwind.config.js — so the page a
   reader lands on and the till they end up using are recognisably the same
   product: Archivo at the condensed-heavy end for headings, JetBrains Mono
   for numerals, the kitchen-orange primary, the card/hover/raised/glow
   shadow ramp, and the blob/float/gradient-shift animations from the app's
   own landing page.

   One rule holds throughout, learned the hard way (see dfcf3ec): grid and
   flex items default to `min-width:auto`, so any child holding a table, a
   code block or a wide mock will set its track to min-content width and push
   the page sideways instead of scrolling inside itself. Every grid track here
   is `minmax(0,1fr)` and every flex child that can hold wide content gets
   `min-width:0`. Verified at 320 / 390 / 768 / 1440.

   Fonts are vendored into assets/fonts/ (SIL OFL, licences alongside them).
   No build step, no CDN, no analytics, nothing fetched from anywhere.
   ========================================================================== */

/* ---- Archivo Variable: one download, body copy through ticket numerals,
        via the width axis. Latin subset only. ---- */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("./fonts/archivo-latin-wdth-normal.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("./fonts/archivo-latin-wdth-italic.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("./fonts/jetbrains-mono-latin-wght-normal.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* ---- Light: the app's "warm paper, not clinical white" ---- */
  --bg:          hsl(32 28% 97%);
  --card:        hsl(0 0% 100%);
  --card-2:      hsl(32 24% 98.5%);
  --fg:          hsl(20 16% 11%);
  --fg-muted:    hsl(20 9% 38%);
  /* Was 52% lightness, which measured about 3.6:1 on the warm paper — under
     AA for the 12–14px captions, chrome paths and notes that use it. 45%
     clears 4.5:1 while still reading a step quieter than --fg-muted. */
  --fg-faint:    hsl(20 9% 45%);
  --border:      hsl(26 16% 87%);
  --border-2:    hsl(26 16% 80%);

  --primary:      hsl(18 88% 40%);
  --primary-ink:  hsl(18 88% 34%);
  --primary-soft: hsl(30 90% 95%);

  /* The mark's own orange, from brand/logo.svg. Used where the logo's colour
     is the correct one — on dark surfaces, and for the mark itself. It is
     deliberately NOT used for text on light backgrounds: #FF6B3D on warm
     paper is about 2.6:1, nowhere near readable. --primary is the text
     orange, this is the object orange. */
  --brand:      #FF6B3D;
  --brand-tile: #231207;

  --grad-a: #f97316;   /* orange-500 */
  --grad-b: #f43f5e;   /* rose-500   */
  --grad-c: #f59e0b;   /* amber-500  */

  /* The ramp above is the app landing page's, and it is correct for large
     display text and for glows. It is NOT safe to put white body text on:
     white on orange-500 measures about 2.5:1, well under AA. Anything that
     carries white text — primary buttons, the selected tour tab, the CTA
     band, the skip link — uses this deeper ramp instead, which holds ≥4.7:1
     across its whole length. --grad-a-deep is the app's own --primary. */
  --grad-a-deep: #C0420C;   /* white on this: 5.06:1 */
  --grad-b-deep: #C0392B;   /* 5.28:1 — a warm brick, not rose-700; next to
                               the orange, a pink second stop read as magenta */
  --grad-c-deep: #B45309;   /* 5.02:1 */

  --ok:        hsl(152 62% 30%);
  --ok-soft:   hsl(152 55% 94%);
  --warn:      hsl(32 90% 34%);
  --warn-soft: hsl(38 92% 93%);

  --code-bg: hsl(222 24% 10%);
  --code-fg: hsl(30 25% 90%);

  /* Shadow ramp, straight from tailwind.config.js */
  --sh-card:   0 1px 2px 0 rgb(16 24 40 / .04), 0 1px 3px 0 rgb(16 24 40 / .06);
  --sh-hover:  0 8px 24px -6px rgb(16 24 40 / .12), 0 2px 6px -2px rgb(16 24 40 / .08);
  --sh-raised: 0 12px 32px -8px rgb(16 24 40 / .14), 0 4px 10px -4px rgb(16 24 40 / .08);
  --sh-glow:   0 0 0 1px rgb(249 115 22 / .12), 0 8px 28px -6px rgb(249 115 22 / .28);

  --max: 1200px;
  --measure: 72ch;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 64px;

  --font-sans: 'Archivo Variable', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

/* ---- Dark: the app's dark theme — cool ink, warmer orange ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:       hsl(222 22% 8%);
    --card:     hsl(222 20% 11%);
    --card-2:   hsl(222 20% 13%);
    --fg:       hsl(210 20% 96%);
    --fg-muted: hsl(216 12% 65%);
    --fg-faint: hsl(216 12% 62%);
    --border:   hsl(217 15% 22%);
    --border-2: hsl(217 15% 30%);

    --primary:      hsl(22 92% 56%);
    --primary-ink:  hsl(24 95% 65%);
    --primary-soft: hsl(22 60% 16%);

    --ok:        hsl(152 55% 55%);
    --ok-soft:   hsl(152 40% 14%);
    --warn:      hsl(38 92% 60%);
    --warn-soft: hsl(36 50% 15%);

    --code-bg: hsl(222 26% 6%);
    --code-fg: hsl(30 20% 88%);

    --sh-card:   0 1px 2px 0 rgb(0 0 0 / .4), 0 1px 3px 0 rgb(0 0 0 / .3);
    --sh-hover:  0 8px 24px -6px rgb(0 0 0 / .6), 0 2px 6px -2px rgb(0 0 0 / .4);
    --sh-raised: 0 12px 32px -8px rgb(0 0 0 / .7), 0 4px 10px -4px rgb(0 0 0 / .5);
    --sh-glow:   0 0 0 1px rgb(249 115 22 / .2), 0 8px 28px -6px rgb(249 115 22 / .35);

    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:       hsl(222 22% 8%);
  --card:     hsl(222 20% 11%);
  --card-2:   hsl(222 20% 13%);
  --fg:       hsl(210 20% 96%);
  --fg-muted: hsl(216 12% 65%);
  --fg-faint: hsl(216 10% 52%);
  --border:   hsl(217 15% 22%);
  --border-2: hsl(217 15% 30%);

  --primary:      hsl(22 92% 56%);
  --primary-ink:  hsl(24 95% 65%);
  --primary-soft: hsl(22 60% 16%);

  --ok:        hsl(152 55% 55%);
  --ok-soft:   hsl(152 40% 14%);
  --warn:      hsl(38 92% 60%);
  --warn-soft: hsl(36 50% 15%);

  --code-bg: hsl(222 26% 6%);
  --code-fg: hsl(30 20% 88%);

  --sh-card:   0 1px 2px 0 rgb(0 0 0 / .4), 0 1px 3px 0 rgb(0 0 0 / .3);
  --sh-hover:  0 8px 24px -6px rgb(0 0 0 / .6), 0 2px 6px -2px rgb(0 0 0 / .4);
  --sh-raised: 0 12px 32px -8px rgb(0 0 0 / .7), 0 4px 10px -4px rgb(0 0 0 / .5);
  --sh-glow:   0 0 0 1px rgb(249 115 22 / .2), 0 8px 28px -6px rgb(249 115 22 / .35);

  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Headings: Archivo at the condensed-heavy end, exactly as the app sets it. */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -.015em;
  font-variation-settings: 'wdth' 92;
  margin: 0;
}
h1 { line-height: 1.03; }
h2 { line-height: 1.1; }
h3 { line-height: 1.2; }

.grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  /* Fixed rather than themed: dark mode's --primary is a bright orange that
     puts this white label at about 2.8:1. */
  background: var(--grad-a-deep); color: #fff;
  padding: 10px 16px; border-radius: 10px; font: 600 14px/1 var(--font-sans);
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px;
}
::selection { background: var(--primary); color: #fff; }

/* ---- Animation utilities, same names and timings as the app ---- */
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-50px) scale(1.1); }
  66% { transform: translate(-20px,20px) scale(.9); }
}
@keyframes float-slow { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes float-med  { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes pulse-ring { 0% { transform: scale(.8); opacity: .8; } 80%,100% { transform: scale(2.4); opacity: 0; } }
@keyframes fade-up    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes msg-in     { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes typing-dot { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes wire-pulse { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }

.blob { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.grid-bg {
  background-image:
    linear-gradient(to right, rgb(192 66 12 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(192 66 12 / .07) 1px, transparent 1px);
  background-size: 48px 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grid-bg {
    background-image:
      linear-gradient(to right, rgb(249 115 22 / .1) 1px, transparent 1px),
      linear-gradient(to bottom, rgb(249 115 22 / .1) 1px, transparent 1px);
  }
}
:root[data-theme="dark"] .grid-bg {
  background-image:
    linear-gradient(to right, rgb(249 115 22 / .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(249 115 22 / .1) 1px, transparent 1px);
}

@media (prefers-reduced-motion: no-preference) {
  .blob { animation: blob 14s ease-in-out infinite; }
  .d2 { animation-delay: 2s; }
  .d4 { animation-delay: 4s; }
  .grad { animation: gradient-shift 8s ease infinite; }
  /* Reveal is gated on `.js` — with scripting off nothing adds `.seen`, so
     the content must never start hidden. */
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.seen { opacity: 1; transform: none; }
  .js .reveal.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .js .reveal.stagger.seen > * { opacity: 1; transform: none; }
  .js .reveal.stagger.seen > *:nth-child(1) { transition-delay: .00s; }
  .js .reveal.stagger.seen > *:nth-child(2) { transition-delay: .06s; }
  .js .reveal.stagger.seen > *:nth-child(3) { transition-delay: .12s; }
  .js .reveal.stagger.seen > *:nth-child(4) { transition-delay: .18s; }
  .js .reveal.stagger.seen > *:nth-child(5) { transition-delay: .24s; }
  .js .reveal.stagger.seen > *:nth-child(6) { transition-delay: .30s; }
  .js .reveal.stagger.seen > *:nth-child(7) { transition-delay: .36s; }
  .js .reveal.stagger.seen > *:nth-child(8) { transition-delay: .42s; }
  .fade-up { animation: fade-up .55s var(--ease) both; }
}

/* ==========================================================================
   Top bar

   Deliberately spare. The mark is drawn bare — brand/logo.svg already carries
   its own rounded tile and its own orange, so wrapping it in a second card +
   border + shadow produced a tile inside a tile. The wordmark is one ink
   colour: the mark's #FF6B3D and the UI's --primary (#C0420C) are two
   different oranges, and setting "Bite" in the second one right next to the
   first read as a mistake. Colour lives in the mark; the word stays quiet.

   Four links, not six. Everything else moved to the footer.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 10px; height: var(--nav-h); }

.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  font-weight: 800; font-size: 20px; letter-spacing: -.025em;
  font-variation-settings: 'wdth' 90;
  color: var(--fg);
}
/* The mark is painted, not embedded: logo-glyph.svg is used as a mask so the
   theme's own orange comes through. The shipped brand/logo.svg carries a dark
   #231207 tile — right for a launcher icon, wrong here, where it read as a
   brown block sitting on the warm paper. */
.brand .mark {
  width: 30px; height: 30px; flex: none; display: block;
  background: var(--primary);
  -webkit-mask: url("./brand/logo-glyph.svg") center / contain no-repeat;
          mask: url("./brand/logo-glyph.svg") center / contain no-repeat;
}
.brand span { line-height: 1; }

.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-links a {
  color: var(--fg-muted); font-size: 15px; font-weight: 500;
  padding: 8px 13px; border-radius: 9px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.nav-links a.here { color: var(--fg); font-weight: 650; background: color-mix(in srgb, var(--fg) 6%, transparent); }

.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  color: var(--fg-muted); cursor: pointer; padding: 0;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn svg { width: 17px; height: 17px; display: block; }
.icon-btn .i-sun { display: none; } .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}
:root[data-theme="dark"]  .icon-btn .i-sun { display: block; }
:root[data-theme="dark"]  .icon-btn .i-moon { display: none; }
:root[data-theme="light"] .icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-moon { display: block; }

.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
}
/* The CTA is worth keeping at almost every width, so it shrinks rather than
   disappearing — but below ~420px the logo, theme toggle and hamburger have
   already used the row up, and keeping it pushes the page sideways.
   Scoped under .nav-tools deliberately: `.btn` is declared after this block,
   so a bare `.nav-cta` rule would lose the cascade to it at equal
   specificity and the button would never actually hide. */
.nav-cta { padding: 9px 16px; font-size: 14.5px; }
@media (max-width: 420px) { .nav-tools .nav-cta { display: none; } }

.mobile-nav {
  display: none; position: sticky; top: var(--nav-h); z-index: 55;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 14px; }
.mobile-nav a {
  font-size: 16px; font-weight: 500; color: var(--fg-muted);
  padding: 14px 4px; border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ==========================================================================
   Buttons & small parts
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 13px; border: 1px solid transparent;
  font: 700 16px/1 var(--font-sans); font-variation-settings: 'wdth' 96;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .15s, background .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--grad-a-deep), var(--grad-b-deep)); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgb(249 115 22 / .2), 0 14px 34px -8px rgb(249 115 22 / .42); }
.btn-ghost { border-color: var(--border-2); box-shadow: var(--sh-card); background: var(--card); color: var(--fg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: hsl(18 88% 40%); box-shadow: 0 12px 32px -10px rgb(0 0 0 / .3); }
.btn-outline-white { border-color: rgb(255 255 255 / .5); color: #fff; }
.btn-outline-white:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--fg-muted); }
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  /* The legend and the flow key use <i> for these so the status word stays a
     semantic run of text rather than a bare span. Without this reset they
     inherit italic and no longer match the identical chips on the cards. */
  font-style: normal;
}
/* Three states, three meanings, and nothing decorative: green is finished,
   amber is finished-with-a-caveat, neutral is not finished. Experimental is
   the same neutral with an outline rather than a fourth hue. */
.chip-built   { background: var(--ok-soft);   color: var(--ok); }
.chip-partial { background: var(--warn-soft); color: var(--warn); }
.chip-planned { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-muted); }
.chip-exp     { background: transparent; color: var(--fg-muted); box-shadow: inset 0 0 0 1px var(--border-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 13.5px; font-weight: 600; color: var(--fg-muted);
  box-shadow: var(--sh-card); margin-bottom: 22px;
}
.eyebrow b { color: var(--fg); font-weight: 800; }
.eyebrow .dot {
  width: 22px; height: 22px; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff;
}
.eyebrow .dot svg { width: 12px; height: 12px; }

.kicker {
  display: block; font-size: 12.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .grid-bg { position: absolute; inset: 0; opacity: .6; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); }
.hero-bg .b1 { width: 460px; height: 460px; top: -160px; left: -120px; background: rgb(249 115 22 / .18); }
.hero-bg .b2 { width: 420px; height: 420px; top: -60px; right: -140px; background: rgb(244 63 94 / .14); }
.hero-bg .b3 { width: 380px; height: 380px; bottom: -180px; left: 38%; background: rgb(245 158 11 / .13); }

.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0,1fr); gap: 56px; } }

.hero h1 { font-size: clamp(38px, 6.2vw, 66px); letter-spacing: -.035em; font-variation-settings: 'wdth' 86; }
.hero .lead { margin: 24px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--fg-muted); line-height: 1.6; max-width: 56ch; }
.hero .cta-row { margin-top: 34px; }
.hero .trust { margin-top: 30px; }

/* ---- Hero mock: the app's own floating POS card ---- */
.mock { position: relative; width: min(500px, 100%); margin: 0 auto; }
.mock-glow { position: absolute; inset: -30px; border-radius: 52px; background: linear-gradient(120deg, rgb(249 115 22 / .3), rgb(245 158 11 / .22), rgb(244 63 94 / .3)); filter: blur(46px); z-index: -1; }
.mock-card { background: var(--card); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--sh-raised); overflow: hidden; transform: rotate(-1.4deg); }
@media (prefers-reduced-motion: reduce) { .mock-card { transform: none; } }
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--card), color-mix(in srgb, var(--grad-a) 7%, var(--card))); }
.mock-dots { display: flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 999px; background: var(--border-2); }
.mock-live { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg-faint); }
.mock-live .pip { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: none; }
.mock-live .pip::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) { .mock-live .pip::after { animation: pulse-ring 2s ease-out infinite; } }
.mock-body { padding: 20px; display: grid; gap: 16px; }
.mock-order { border: 1px solid; border-radius: 20px; padding: 18px; transition: background .45s var(--ease), border-color .45s var(--ease); }
.mock-order[data-state="new"]   { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.mock-order[data-state="fired"] { background: color-mix(in srgb, var(--grad-a) 10%, transparent); border-color: color-mix(in srgb, var(--grad-a) 34%, transparent); }
.mock-order[data-state="ready"] { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.mock-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
/* Sits on the tinted order card rather than the plain card, which costs it
   enough contrast that --fg-faint no longer clears AA here. */
.mock-row .t { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.mock-row .n { font-size: 25px; font-weight: 800; margin-top: 5px; font-variation-settings: 'wdth' 84; }
.mock-chip { font-size: 12.5px; font-weight: 700; color: #fff; padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: var(--sh-card); }
/* These carry white text, so they follow the deep ramp's rule rather than the
   display ramp's — the state colours still read as amber / orange / green. */
.mock-chip[data-state="new"]   { background: hsl(32 92% 31%); }
.mock-chip[data-state="fired"] { background: var(--grad-a-deep); }
.mock-chip[data-state="ready"] { background: hsl(152 64% 26%); }
.mock-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.mock-av { width: 38px; height: 38px; border-radius: 999px; flex: none; display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 800; background: linear-gradient(135deg, var(--grad-a-deep), var(--grad-b-deep)); }
.mock-who .who { min-width: 0; }
.mock-who .who b { display: block; font-size: 15px; }
.mock-who .who small { display: block; font-size: 13px; color: var(--fg-muted); }
.mock-chan { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.mock-chan div { border: 1px solid var(--border); border-radius: 13px; padding: 11px 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--fg-muted); background: var(--card-2); }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.mock-stats div { border: 1px solid var(--border); border-radius: 15px; padding: 13px 11px; background: var(--card-2); min-width: 0; }
.mock-stats .k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); }
.mock-stats .v { font-size: 18px; font-weight: 800; margin-top: 4px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mock-float { position: absolute; background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--sh-raised); padding: 14px 16px; }
.mock-float.note { right: -14px; bottom: -34px; width: min(260px, 62%); transform: rotate(3deg); }
.mock-float.live { left: -20px; top: -26px; transform: rotate(-3deg); display: flex; align-items: center; gap: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .mock-float.note { animation: float-slow 6s ease-in-out infinite; }
  .mock-float.live { animation: float-med 4.5s ease-in-out infinite; }
}
@media (max-width: 520px) {
  .mock-float.note { right: -6px; bottom: -26px; width: 70%; padding: 11px 13px; }
  .mock-float.live { left: -8px; top: -18px; padding: 10px 12px; }
}
.mock-head { display: flex; align-items: center; gap: 11px; }
.mock-msg { margin-top: 12px; border-radius: 14px; padding: 12px 14px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); font-size: 13px; line-height: 1.45; }
.mock-msg b { display: block; margin-bottom: 3px; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 34px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; } }
.stat .n { font-size: clamp(34px, 5vw, 48px); font-weight: 800; font-variation-settings: 'wdth' 80; line-height: 1; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 10px; font-size: 15px; color: var(--fg-muted); line-height: 1.45; }
.stats-note { margin: 36px 0 0; font-size: 14px; color: var(--fg-faint); max-width: 92ch; line-height: 1.6; }

/* ==========================================================================
   Sections, heads, cards
   ========================================================================== */
/* The header is sticky, so an anchor jump would otherwise park the section
   heading underneath it. */
.section, .hero, [id] { scroll-margin-top: calc(var(--nav-h) + 18px); }
.section { padding: clamp(58px, 8vw, 102px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.head h2 { font-size: clamp(30px, 4.4vw, 45px); letter-spacing: -.03em; font-variation-settings: 'wdth' 88; }
.head p { margin: 20px 0 0; font-size: clamp(16px, 1.8vw, 19px); color: var(--fg-muted); line-height: 1.6; }
.head.left { margin-left: 0; text-align: left; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cards.two  { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .cards, .cards.four, .cards.two { grid-template-columns: minmax(0,1fr); } }

.card {
  position: relative; min-width: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 26px;
  box-shadow: var(--sh-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); border-color: var(--border-2); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 11px 0 0; font-size: 15px; color: var(--fg-muted); line-height: 1.6; }
.card p code { font-family: var(--font-mono); font-size: .88em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---- Icon tints -----------------------------------------------------------
   One warm family only: the brand's own orange → rose → amber ramp, plus a
   warm clay neutral. There is deliberately no violet, sky or emerald tile.
   Decoration stays inside the brand; colour that means something (green for
   built, amber for partial) is reserved for the status chips, so a coloured
   dot on this page always carries information rather than variety. */
.t-orange { background: hsl(28 92% 93%);  color: hsl(21 90% 36%); }
.t-amber  { background: hsl(40 94% 91%);  color: hsl(32 92% 32%); }
.t-rose   { background: hsl(350 90% 95%); color: hsl(347 78% 40%); }
.t-clay   { background: hsl(26 30% 92%);  color: hsl(22 22% 34%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-orange { background: hsl(22 55% 15%); color: hsl(28 92% 66%); }
  :root:not([data-theme="light"]) .t-amber  { background: hsl(36 50% 15%); color: hsl(40 92% 64%); }
  :root:not([data-theme="light"]) .t-rose   { background: hsl(347 45% 17%); color: hsl(350 85% 74%); }
  :root:not([data-theme="light"]) .t-clay   { background: hsl(24 12% 18%); color: hsl(26 20% 74%); }
}
:root[data-theme="dark"] .t-orange { background: hsl(22 55% 15%); color: hsl(28 92% 66%); }
:root[data-theme="dark"] .t-amber  { background: hsl(36 50% 15%); color: hsl(40 92% 64%); }
:root[data-theme="dark"] .t-rose   { background: hsl(347 45% 17%); color: hsl(350 85% 74%); }
:root[data-theme="dark"] .t-clay   { background: hsl(24 12% 18%); color: hsl(26 20% 74%); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 0 0 38px; font-size: 14.5px; color: var(--fg-muted); }
.legend span { display: inline-flex; align-items: center; gap: 9px; }
.grid-note { margin: 34px auto 0; max-width: 80ch; text-align: center; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; }
.grid-note code { font-family: var(--font-mono); font-size: .88em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ==========================================================================
   Product tour — tabbed screenshots

   Tabs, not a stack of eleven full-bleed images. On a phone the tab strip
   becomes a scroll-snapping chip row rather than wrapping into four lines,
   and the panel is a plain block — no transform scaling, so the layout box
   and the painted box stay the same size.
   ========================================================================== */
.tour { min-width: 0; }
.tour-tabs {
  display: flex; gap: 8px; margin: 0 0 26px; padding: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--sh-card);
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab {
  flex: 1 1 auto; min-width: max-content; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 16px; border-radius: 12px; border: none; background: transparent;
  font: 650 14.5px/1.2 var(--font-sans); color: var(--fg-muted);
  cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s;
}
.tour-tab svg { width: 16px; height: 16px; flex: none; }
.tour-tab:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.tour-tab[aria-selected="true"] {
  background: linear-gradient(100deg, var(--grad-a-deep), var(--grad-b-deep));
  color: #fff; box-shadow: var(--sh-glow);
}
@media (max-width: 700px) {
  .tour-tabs { border-radius: 14px; }
  .tour-tab { flex: 0 0 auto; padding: 10px 14px; font-size: 14px; }
  .tour-tab .lbl { display: inline; }
}

.tour-stage { min-width: 0; }
.tour-panel { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: clamp(24px, 3.5vw, 44px); align-items: center; }
.tour-panel[hidden] { display: none; }
@media (max-width: 940px) { .tour-panel { grid-template-columns: minmax(0,1fr); gap: 28px; } }
@media (prefers-reduced-motion: no-preference) {
  .tour-panel:not([hidden]) { animation: fade-up .45s var(--ease) both; }
}
.tour-copy { min-width: 0; }
.tour-copy h3 { font-size: clamp(22px, 2.6vw, 29px); letter-spacing: -.02em; }
.tour-copy p { margin: 16px 0 0; font-size: 16.5px; color: var(--fg-muted); line-height: 1.65; }
.tour-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tour-list li { display: flex; gap: 11px; font-size: 15.5px; color: var(--fg-muted); line-height: 1.5; }
.tour-list svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--ok); }
.tour-list b { color: var(--fg); font-weight: 700; }

/* ---- Screenshot frame, shared by the tour ---- */
.shot-frame { position: relative; min-width: 0; }
.shot-frame .chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px 16px 0 0;
  background: var(--card-2); border: 1px solid var(--border); border-bottom: none;
}
.shot-frame .chrome i { width: 9px; height: 9px; border-radius: 999px; background: var(--border-2); flex: none; }
.shot-frame .chrome .path {
  margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.shot-frame img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 0 0 16px 16px;
  box-shadow: var(--sh-raised); background: var(--card);
  cursor: zoom-in;
}
.shot-cap { margin: 14px 2px 0; font-size: 13.5px; color: var(--fg-faint); line-height: 1.5; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 28px; background: rgb(8 10 14 / .9); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); }
.lightbox .close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .close svg { width: 19px; height: 19px; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0,1fr); } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 26px; box-shadow: var(--sh-card); min-width: 0; }
.step .num {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font: 800 17px/1 var(--font-mono); color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
.step h3 { font-size: 19px; }
.step p { margin: 11px 0 0; font-size: 15.5px; color: var(--fg-muted); line-height: 1.6; }

/* ==========================================================================
   Channel flow diagram — hand-built, not a diagram library

   A renderer (Mermaid) drew this once at 1178px tall and dominated the
   section; its output size is not controllable the way CSS layout is. These
   are ordinary boxes, so they re-ink on theme change instead of re-rendering,
   stack top-to-bottom on a phone, and cost nothing to load.
   ========================================================================== */
.diagram { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--sh-card); }
.flow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1.05fr) auto minmax(0,.85fr); gap: 0 clamp(12px, 1.8vw, 22px); align-items: center; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0,1fr); gap: 16px 0; } }
.flow-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow-lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; line-height: 1.5; }
.flow-grp { border: 1px dashed var(--border-2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--grad-a) 4%, transparent); min-width: 0; }
.flow-node { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 13px 15px; font-size: 15px; font-weight: 700; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; box-shadow: var(--sh-card); min-width: 0; }
.flow-node small { font-size: 12.5px; font-weight: 500; color: var(--fg-faint); }
.flow-node.off { opacity: .55; border-style: dashed; box-shadow: none; }
.flow-arrow { position: relative; width: clamp(22px, 3vw, 44px); height: 2px; background: var(--border-2); align-self: center; }
.flow-arrow::after { content: ''; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--border-2); border-right: 2px solid var(--border-2); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 900px) {
  .flow-arrow { width: 2px; height: 30px; justify-self: center; }
  .flow-arrow::after { right: 50%; top: auto; bottom: -1px; transform: translateX(50%) rotate(135deg); }
}
.flow-key { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 0; font-size: 13.5px; color: var(--fg-faint); }
.flow-key span { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Multi-branch illustration

   Labelled honestly: the ownership model and the local operation log are
   built, the replication round is not. The animation shows the shape of the
   design, not a working feature, and the badge says so.
   ========================================================================== */
.branches { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 2vw, 22px); align-items: stretch; }
@media (max-width: 820px) { .branches { grid-template-columns: minmax(0,1fr); } }
.branch {
  position: relative; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; box-shadow: var(--sh-card);
}
.branch .bh { display: flex; align-items: center; gap: 11px; }
.branch .bh .pin { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--grad-a) 12%, transparent); color: var(--primary); }
.branch .bh .pin svg { width: 16px; height: 16px; }
.branch .bh b { font-size: 16px; }
.branch .bh small { display: block; font-size: 12.5px; color: var(--fg-faint); font-family: var(--font-mono); }
.branch ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.branch li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--fg-muted); padding: 7px 10px; border-radius: 10px; background: var(--card-2); min-width: 0; }
.branch li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch li em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); flex: none; }

.wire { display: block; width: 100%; height: 56px; margin: 6px 0; overflow: visible; }
.wire path { fill: none; stroke: var(--border-2); stroke-width: 2; }
.wire .live { stroke: var(--grad-a); stroke-dasharray: 6 38; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .wire .live { animation: wire-pulse 2.4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .wire .live { display: none; } }

.branch-note {
  margin: 28px 0 0; padding: 20px 22px; border-radius: 16px;
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  font-size: 15.5px; line-height: 1.6; color: var(--fg-muted);
}
.branch-note b { color: var(--fg); }
.branch-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   WhatsApp / messaging demo

   The React version put a fixed 320px phone frame beside an info panel in a
   flex row that could not wrap; below about 400px the panel walked off the
   side of the page. Here the frame is fluid and the pair is a grid that
   collapses.
   ========================================================================== */
.chat-demo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .chat-demo { grid-template-columns: minmax(0,1fr); } }

.phone {
  width: 100%; max-width: 340px; margin: 0 auto; min-width: 0;
  border: 1px solid var(--border); border-radius: 30px; overflow: hidden;
  background: var(--card); box-shadow: var(--sh-raised);
}
.phone-bar { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: hsl(158 64% 22%); color: #fff; }
.phone-bar .av { width: 34px; height: 34px; border-radius: 999px; background: rgb(255 255 255 / .2); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; }
.phone-bar b { font-size: 14.5px; display: block; }
.phone-bar small { font-size: 11.5px; opacity: .8; }
.phone-body {
  min-height: 340px; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px;
  background: color-mix(in srgb, var(--grad-c) 5%, var(--card-2));
}
.bub { max-width: 82%; padding: 10px 13px; border-radius: 15px; font-size: 14px; line-height: 1.45; box-shadow: var(--sh-card); }
.bub.them { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bub.us { align-self: flex-end; background: hsl(152 55% 88%); color: hsl(160 40% 14%); border-bottom-right-radius: 5px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bub.us { background: hsl(158 40% 22%); color: hsl(152 40% 92%); }
}
:root[data-theme="dark"] .bub.us { background: hsl(158 40% 22%); color: hsl(152 40% 92%); }
.bub .tm { display: block; margin-top: 5px; font-size: 10.5px; opacity: .6; text-align: right; font-family: var(--font-mono); }
@media (prefers-reduced-motion: no-preference) { .bub { animation: msg-in .35s var(--ease) both; } }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 15px; border-bottom-left-radius: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--fg-faint); }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: typing-dot 1.2s ease-in-out infinite; }
  .typing i:nth-child(2) { animation-delay: .18s; }
  .typing i:nth-child(3) { animation-delay: .36s; }
}
.phone-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--card); font-size: 13.5px; color: var(--fg-faint); }

/* ==========================================================================
   Currency / locale demo

   This is the one claim on the page that can be demonstrated rather than
   asserted: the app formats money through Intl/CLDR with no default locale
   and no hardcoded symbol table, so 0-decimal and 3-decimal currencies come
   out right. The select drives the same Intl call the app makes.
   ========================================================================== */
.fx { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (max-width: 900px) { .fx { grid-template-columns: minmax(0,1fr); } }
.fx-controls { display: grid; gap: 16px; margin-top: 26px; }
.fx-field { display: grid; gap: 7px; min-width: 0; }
.fx-field label { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.fx-field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  font: 600 15.5px/1.3 var(--font-sans); box-shadow: var(--sh-card); cursor: pointer;
}

.receipt {
  width: 100%; max-width: 360px; margin: 0 auto; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px; box-shadow: var(--sh-raised);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13.5px;
}
.receipt .rh { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--border-2); }
.receipt .rh b { font-family: var(--font-sans); font-size: 17px; font-variation-settings: 'wdth' 88; letter-spacing: .04em; text-transform: uppercase; }
.receipt .rh small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--fg-faint); }
.receipt .rl { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; min-width: 0; }
.receipt .rl span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .rl span:last-child { flex: none; }
.receipt .rows { padding: 14px 0; border-bottom: 1px dashed var(--border-2); }
.receipt .tot { padding-top: 14px; }
.receipt .tot .rl.big { font-size: 17px; font-weight: 700; color: var(--fg); }
.receipt .rl.dim { color: var(--fg-muted); }
.receipt .rf { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-2); text-align: center; font-size: 11px; color: var(--fg-faint); line-height: 1.6; }

/* ==========================================================================
   Pricing panel
   ========================================================================== */
.price-panel {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: clamp(32px, 5vw, 60px);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--sh-raised);
  text-align: center;
}
/* A single glyph samples only a sliver of a 200%-wide sweeping gradient, so
   the shared .grad lands on whichever colour happens to be under it — here
   that read as flat rose rather than the brand ramp. This one is sized to the
   glyph and held still, so the whole orange→rose→amber run is visible. */
.price-panel .amount {
  font-size: clamp(64px, 12vw, 118px); font-weight: 800;
  font-variation-settings: 'wdth' 76; line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b) 60%, var(--grad-c));
  background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: none;
}
.price-panel .per { margin: 14px 0 0; font-size: clamp(17px, 2.2vw, 21px); color: var(--fg-muted); }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 42px; text-align: left; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .price-grid { grid-template-columns: minmax(0,1fr); } }
.price-grid div { padding: 18px 20px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--border); min-width: 0; }
.price-grid b { display: block; font-size: 15.5px; }
.price-grid small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; }
.price-fine { margin: 34px auto 0; max-width: 70ch; font-size: 14.5px; color: var(--fg-faint); line-height: 1.65; }
.price-fine a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Panels, status, code, principle band
   ========================================================================== */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--sh-card); min-width: 0; }
.panel h3 { font-size: 21px; }
.panel > p { margin: 14px 0 0; color: var(--fg-muted); font-size: 15.5px; line-height: 1.65; }

.status {
  display: grid; gap: 16px; grid-template-columns: auto minmax(0,1fr); align-items: start;
  border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent);
  background: var(--warn-soft); border-radius: 20px; padding: 22px 24px;
}
.status .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); flex: none; }
.status .ico svg { width: 18px; height: 18px; }
.status b { font-size: 16px; }
.status p { margin: 8px 0 0; font-size: 15px; color: var(--fg-muted); line-height: 1.6; }
.status a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.code { border-radius: 20px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--border-2); margin-top: 30px; }
.code header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgb(255 255 255 / .09); font: 700 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 400 13.5px/1.9 var(--font-mono); color: var(--code-fg); }
.code pre .c { color: rgb(255 255 255 / .38); }
.copy-btn {
  margin-left: 12px; flex: none;
  font: 700 11px/1 var(--font-sans); letter-spacing: .05em; text-transform: uppercase;
  color: rgb(255 255 255 / .6); background: transparent;
  border: 1px solid rgb(255 255 255 / .2); border-radius: 8px; padding: 7px 11px;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: #fff; border-color: rgb(255 255 255 / .5); }
.copy-btn.done { color: hsl(152 60% 62%); border-color: hsl(152 60% 45%); }

.note { margin: 26px 0 0; font-size: 14.5px; color: var(--fg-faint); line-height: 1.6; }
.note code { font-family: var(--font-mono); font-size: .9em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.principle-band { background: linear-gradient(100deg, color-mix(in srgb, var(--grad-a) 10%, transparent), color-mix(in srgb, var(--grad-b) 8%, transparent), color-mix(in srgb, var(--grad-c) 10%, transparent)); }
.principle { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 34px; align-items: center; }
@media (max-width: 760px) { .principle { grid-template-columns: minmax(0,1fr); gap: 26px; } }
.principle .q { font-size: 76px; line-height: .8; font-weight: 800; color: var(--primary); opacity: .3; }
.principle blockquote { margin: 0; font-size: clamp(19px, 2.6vw, 27px); line-height: 1.45; font-weight: 700; letter-spacing: -.02em; font-variation-settings: 'wdth' 92; }
.principle cite { display: block; margin-top: 16px; font-style: normal; font-size: 14.5px; font-weight: 500; color: var(--fg-muted); }


/* ==========================================================================
   FAQ — <details>, so it works with scripting off and is keyboard-native
   ========================================================================== */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--sh-card); overflow: hidden; min-width: 0;
  transition: border-color .18s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--fg-faint); border-bottom: 2px solid var(--fg-faint);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.faq summary:hover { color: var(--primary); }
.faq .a { padding: 0 24px 22px; font-size: 15.5px; color: var(--fg-muted); line-height: 1.7; }
.faq .a p { margin: 0 0 12px; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq .a code { font-family: var(--font-mono); font-size: .88em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ==========================================================================
   Dark band & CTA
   ========================================================================== */
.dark-band { background: hsl(222 24% 7%); color: hsl(210 20% 96%); position: relative; overflow: hidden; }
.dark-band .head h2 { color: #fff; }
.dark-band .head p { color: hsl(216 12% 70%); }
.dark-band .kicker { color: hsl(24 95% 65%); }
.dark-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 900px) { .dark-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .dark-cards { grid-template-columns: minmax(0,1fr); } }
.dark-card {
  display: block; min-width: 0;
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .09);
  border-radius: 22px; padding: 26px;
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.dark-card:hover { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .18); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .dark-card:hover { transform: none; } }
.dark-card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.dark-card .ico svg { width: 20px; height: 20px; }
.dark-card h3 { font-size: 17px; }
.dark-card p { margin: 10px 0 0; font-size: 14.5px; color: hsl(216 12% 68%); line-height: 1.6; }
/* The support cards sit on the dark band, where four unrelated hues read as
   confetti. One brand gradient across all four, differentiated by the icon
   rather than by inventing colours. */
.g-brand { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }

.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(66px, 10vw, 116px) 0; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, var(--grad-a-deep), var(--grad-b-deep) 55%, var(--grad-c-deep)); background-size: 200% 200%; z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .cta-band::before { animation: gradient-shift 9s ease infinite; } }
.cta-band h2 { font-size: clamp(32px, 5.4vw, 54px); letter-spacing: -.035em; font-variation-settings: 'wdth' 86; }
.cta-band p { margin: 20px auto 0; max-width: 60ch; font-size: clamp(16px, 2vw, 19px); color: rgb(255 255 255 / .92); line-height: 1.6; }
.cta-band .cta-row { justify-content: center; margin-top: 34px; }
.cta-band .fine { margin: 28px auto 0; max-width: 66ch; font-size: 14px; color: rgb(255 255 255 / .93); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: clamp(44px, 6vw, 68px) 0 42px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0,1fr)); gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; } }
.foot-brand { min-width: 0; }
.foot-brand p { margin: 16px 0 0; font-size: 14.5px; color: var(--fg-muted); line-height: 1.6; max-width: 40ch; }
.foot-col { min-width: 0; }
.foot-col h3 { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--fg-muted); transition: color .15s; }
.foot-col a:hover { color: var(--primary); }
.foot-base { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--fg-faint); }
.foot-base .vb { display: inline-flex; align-items: center; gap: 9px; }
.foot-base .vb img { width: 20px; height: 20px; border-radius: 6px; }
.foot-base a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Docs viewer
   ========================================================================== */
.docs-status {
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  background: var(--warn-soft); border-radius: 16px;
  padding: 15px 18px; margin: 24px 0 0; font-size: 14.5px; color: var(--fg-muted); line-height: 1.55;
}
.docs-status b { color: var(--fg); font-weight: 800; }
.docs-status a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.docs-shell { display: grid; grid-template-columns: 248px minmax(0,1fr) 220px; gap: 40px; align-items: start; padding: 30px 0 84px; }
@media (max-width: 1180px) { .docs-shell { grid-template-columns: 228px minmax(0,1fr); } .docs-toc { display: none; } }
@media (max-width: 880px) { .docs-shell { grid-template-columns: minmax(0,1fr); padding-top: 18px; } }

.docs-nav { position: sticky; top: calc(var(--nav-h) + 26px); max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-nav .label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); padding: 6px 12px; }
.docs-nav .label + .label { margin-top: 14px; }
.docs-nav .label.sep { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 20px; }
.docs-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--fg-muted); font-size: 15px; font-weight: 500; transition: .15s; }
.docs-nav a:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); color: var(--fg); }
.docs-nav a.active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; }
@media (max-width: 880px) {
  .docs-nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; max-height: none; gap: 8px; padding: 12px 0 16px; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav .label { display: none; }
  .docs-nav a { white-space: nowrap; border: 1px solid var(--border); flex: none; }
}

.docs-search { position: relative; margin-bottom: 18px; }
.docs-search input { width: 100%; padding: 11px 13px 11px 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font: 500 15px/1.3 var(--font-sans); box-shadow: var(--sh-card); }
.docs-search input::placeholder { color: var(--fg-faint); }
.docs-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--fg-faint); pointer-events: none; }
.docs-search kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--font-mono); color: var(--fg-faint); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; pointer-events: none; }
.docs-search input:not(:placeholder-shown) ~ kbd { display: none; }
@media (max-width: 880px) { .docs-search { display: none; } }

.search-results { margin: 0 0 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden auto; max-height: calc(100vh - 220px); background: var(--card); box-shadow: var(--sh-card); }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.search-results .t { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.search-results .s { display: block; font-size: 13.5px; color: var(--fg-muted); margin-top: 5px; line-height: 1.5; }
.search-results mark { background: var(--primary-soft); color: var(--fg); border-radius: 4px; padding: 0 3px; }
.search-empty { padding: 14px; font-size: 14px; color: var(--fg-faint); }

.docs-main { min-width: 0; }
.docs-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 14px; }

.docs-pager { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
@media (max-width: 620px) { .docs-pager { grid-template-columns: minmax(0,1fr); } }
.docs-pager a { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--sh-card); transition: border-color .15s, transform .2s var(--ease); min-width: 0; }
.docs-pager a:hover { border-color: var(--primary); transform: translateY(-2px); }
.docs-pager .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-faint); }
.docs-pager .t { display: block; margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--fg); }
.docs-pager .next { text-align: right; }
.docs-pager .none { visibility: hidden; }

.docs-toc { position: sticky; top: calc(var(--nav-h) + 26px); max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-toc .label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 12px; }
.docs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-toc li.lvl3 a { padding-left: 24px; font-size: 13px; }
.docs-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--fg-muted); font-size: 13.5px; line-height: 1.4; }
.docs-toc a:hover { color: var(--fg); }
.docs-toc a.active { border-left-color: var(--primary); color: var(--primary); font-weight: 600; }
.docs-toc:empty { display: none; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); z-index: 70; transition: width .1s linear; }

.markdown { font-size: 17px; max-width: var(--measure); line-height: 1.7; }
.markdown > *:first-child { margin-top: 0; }
.markdown h1 { font-size: clamp(32px, 4vw, 42px); font-variation-settings: 'wdth' 88; letter-spacing: -.03em; margin: .1em 0 .6em; }
.markdown h2 { font-size: 27px; margin: 1.9em 0 .65em; padding-bottom: .35em; border-bottom: 1px solid var(--border); scroll-margin-top: 92px; }
.markdown h3 { font-size: 21px; margin: 1.6em 0 .55em; scroll-margin-top: 92px; }
.markdown h4 { font-size: 17px; margin: 1.4em 0 .45em; }
.markdown p { margin: 1em 0; }
.markdown a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.markdown a:hover { text-decoration-thickness: 2px; }
.markdown ul, .markdown ol { padding-left: 1.4em; }
.markdown li { margin: .4em 0; }
.markdown code { font-family: var(--font-mono); font-size: .86em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 2px 7px; border-radius: 7px; }
/* Inline code is often a path longer than a phone is wide. Let it break
   rather than pushing the whole page sideways. */
.markdown :not(pre) > code, .markdown a { overflow-wrap: anywhere; }
.markdown pre { background: var(--code-bg); border: 1px solid var(--border-2); border-radius: 16px; padding: 20px 22px; overflow-x: auto; }
.markdown pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.8; color: var(--code-fg); }
.markdown .pre-wrap { position: relative; }
.markdown .pre-wrap .copy-btn { position: absolute; top: 12px; right: 12px; margin: 0; opacity: 0; transition: opacity .15s; }
.markdown .pre-wrap:hover .copy-btn, .markdown .pre-wrap .copy-btn:focus-visible { opacity: 1; }
/* A hover-only affordance is unreachable on a touch screen, so below the
   pointer breakpoint the button is simply always visible. */
@media (hover: none) { .markdown .pre-wrap .copy-btn { opacity: 1; } }
.markdown blockquote { margin: 1.3em 0; padding: 1em 1.3em; border-left: 4px solid var(--primary); background: color-mix(in srgb, var(--fg) 4%, transparent); border-radius: 0 14px 14px 0; }
.markdown blockquote p { margin: .4em 0; color: var(--fg-muted); }
.markdown blockquote.callout .callout-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5em; }
.markdown blockquote.callout p { color: var(--fg); }
.markdown blockquote.cw { border-left-color: var(--warn); background: var(--warn-soft); }
.markdown blockquote.cw .callout-label { color: var(--warn); }
.markdown blockquote.cc { border-left-color: #dc2626; background: color-mix(in srgb, #dc2626 8%, transparent); }
.markdown blockquote.cc .callout-label { color: #dc2626; }
.markdown blockquote.ci { border-left-color: var(--primary); background: var(--primary-soft); }
.markdown blockquote.ci .callout-label { color: var(--primary-ink); }
.markdown blockquote.cn { border-left-color: var(--fg-muted); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.markdown blockquote.cn .callout-label { color: var(--fg-muted); }
.markdown blockquote.ct { border-left-color: var(--ok); background: var(--ok-soft); }
.markdown blockquote.ct .callout-label { color: var(--ok); }
.markdown table { border-collapse: collapse; width: 100%; margin: 0; font-size: 15px; }
.markdown .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin: 1.5em 0; }
.markdown th, .markdown td { border-bottom: 1px solid var(--border); padding: 12px 15px; text-align: left; white-space: nowrap; }
.markdown th { background: var(--card-2); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.markdown tr:last-child td { border-bottom: none; }
.markdown img { border-radius: 14px; margin: 1.2em 0; border: 1px solid var(--border); }
.markdown hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.markdown .mermaid { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 1.5em 0; text-align: center; overflow-x: auto; }
.heading-anchor { opacity: 0; margin-left: .45em; color: var(--primary); font-size: .8em; text-decoration: none; }
.markdown h2:hover .heading-anchor, .markdown h3:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }

.docs-error { color: #b91c1c; background: color-mix(in srgb, #b91c1c 8%, transparent); border: 1px solid color-mix(in srgb, #b91c1c 25%, transparent); padding: 16px 18px; border-radius: 14px; font-size: 15px; }
.docs-loading { color: var(--fg-faint); font-size: 15px; }

@media print {
  .site-header, .mobile-nav, .docs-nav, .docs-toc, .progress, .lightbox, .cta-band, .mock-float, .blob, .tour-tabs { display: none !important; }
  body { background: #fff; color: #000; }
  .docs-shell { grid-template-columns: 1fr; }
  .tour-panel[hidden] { display: grid !important; }
}

/* ==========================================================================
   Ledger — what is real and what isn't, side by side
   ========================================================================== */
.ledger { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
@media (max-width: 860px) { .ledger { grid-template-columns: minmax(0,1fr); } }
.ledger .panel h3 { display: flex; align-items: center; gap: 11px; font-size: 20px; }
.ledger ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 15px; }
.ledger li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.55; color: var(--fg-muted); }
.ledger li b { color: var(--fg); font-weight: 700; }
.ledger li i { flex: none; margin-top: 8px; width: 8px; height: 8px; border-radius: 999px; font-style: normal; }
.ledger .yes i { background: var(--ok); }
.ledger .no  i { background: var(--warn); }
.ledger a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Deployment shapes */
.shapes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 940px) { .shapes { grid-template-columns: minmax(0,1fr); } }
.shape { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--sh-card); min-width: 0; }
.shape.now { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.shape .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px; }
.shape .ico svg { width: 21px; height: 21px; }
.shape h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shape p { margin: 12px 0 0; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; }
.shape p a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Seam tables — what needs reachability, what you bring yourself
   ========================================================================== */
.seams { display: grid; gap: 20px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 1000px) { .seams { grid-template-columns: minmax(0,1fr); } }
.seam-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.seam-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--border); }
.seam-list li:last-child { border-bottom: none; }
.seam-list .n { font-size: 15.5px; font-weight: 700; min-width: 0; }
.seam-list .n small { display: block; font-size: 14px; font-weight: 400; color: var(--fg-muted); margin-top: 5px; line-height: 1.5; }
.seam-list .n small code { font-family: var(--font-mono); font-size: .88em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 1px 6px; border-radius: 6px; }
.seam-list .v { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.seam-list .v-no  { background: var(--ok-soft); color: var(--ok); }
.seam-list .v-yes { background: var(--warn-soft); color: var(--warn); }
.seam-note { margin: 26px 0 0; padding: 20px 22px; border-radius: 16px; background: color-mix(in srgb, var(--fg) 4%, transparent); font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); }
.seam-note b { color: var(--fg); }
.seam-note code { font-family: var(--font-mono); font-size: .88em; background: var(--card); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
/* Env-var names are longer than a phone is wide; let them break rather than
   push the page sideways. */
.seam-list code, .seam-note code, .stats-note code, .head code { overflow-wrap: anywhere; }

/* ── Vulos suite chrome — identical on every product landing ───────────────
   Two elements, and only two: a logo-only home button in the top bar, and
   one line in the footer. Deliberately free of repo variables so the block
   is byte-identical across the suite and can be diffed as one thing. */
.vulos-home { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; opacity: .72; transition: opacity .15s ease, transform .15s ease; }
.vulos-home:hover, .vulos-home:focus-visible { opacity: 1; transform: translateY(-1px); }
.vulos-home img { display: block; width: 22px; height: 22px; border-radius: 6px; }
.vulos-foot { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; line-height: 1.45; text-decoration: none; color: inherit; opacity: .85; transition: opacity .15s ease; }
.vulos-foot:hover { opacity: 1; text-decoration: none; }
.vulos-foot img { display: block; width: 18px; height: 18px; border-radius: 5px; flex: 0 0 auto; }
