/* ==========================================================================
   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.

   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%);
  --fg-faint:    hsl(20 8% 52%);
  --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%);

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

  --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);

  --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 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;
  }
}
: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;
}

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; }

/* 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; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); 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 {
  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; } }

.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; }
  .fade-up { animation: fade-up .55s var(--ease) both; }
  .fade-up:nth-child(1) { animation-delay: .02s; }
  .fade-up:nth-child(2) { animation-delay: .09s; }
  .fade-up:nth-child(3) { animation-delay: .16s; }
  .fade-up:nth-child(4) { animation-delay: .23s; }
  .fade-up:nth-child(5) { animation-delay: .30s; }
  .fade-up:nth-child(6) { animation-delay: .37s; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.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: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; font-variation-settings: 'wdth' 92; flex: none; }
.brand .tile { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); box-shadow: var(--sh-card); }
.brand .tile img { width: 26px; height: 26px; display: block; }
.brand .bite { color: var(--primary); }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: var(--fg-muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.nav-links a.here { color: var(--primary); font-weight: 600; }
.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: 1000px) { .nav-links { display: none; } .menu-btn { display: inline-grid; } }

.mobile-nav { display: none; position: sticky; top: 66px; z-index: 55; background: color-mix(in srgb, var(--bg) 94%, 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: 13px 4px; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }

/* ==========================================================================
   Buttons — gradient fill and soft pill, as the app draws them
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 16px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 16px; font-weight: 700; letter-spacing: -.005em;
  cursor: pointer; background: var(--card); color: var(--fg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, background .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .2s var(--ease); }
.btn-primary { background: linear-gradient(100deg, var(--grad-a), var(--grad-b)); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(249 115 22 / .18), 0 14px 34px -8px rgb(249 115 22 / .45); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border-color: var(--border-2); box-shadow: var(--sh-card); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--sh-hover); }
.btn-white { background: #fff; color: hsl(18 88% 40%); box-shadow: 0 12px 32px -10px rgb(0 0 0 / .3); }
.btn-white:hover { transform: translateY(-2px); }
.btn-onGrad { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .42); backdrop-filter: blur(4px); }
.btn-onGrad:hover { background: #fff; color: hsl(18 88% 40%); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

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

/* Trust row — green ticks, as the original */
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--fg-muted); }
.trust li svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(52px, 8vw, 100px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg .b1 { width: 430px; height: 430px; top: -180px; left: -140px; background: rgb(249 115 22 / .3); }
.hero-bg .b2 { width: 470px; height: 470px; top: -60px; right: -180px; background: rgb(244 63 94 / .24); }
.hero-bg .b3 { width: 360px; height: 360px; top: 52%; left: 30%; background: rgb(245 158 11 / .2); }
/* The colour sits *behind* a veil of page background rather than on top of
   the page as a tint — the same "from-orange-50 via-white to-white" move the
   app's own hero makes. Without it the blobs stain the whole section peach
   instead of just catching the corners. */
.hero-bg .sheet { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 42%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, var(--bg) 78%); }
.hero-bg .grid-bg { position: absolute; inset: 0; opacity: .5; -webkit-mask-image: radial-gradient(ellipse at top, #000 22%, transparent 68%); mask-image: radial-gradient(ellipse at top, #000 22%, transparent 68%); }

.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: 1fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  color: var(--primary-ink); font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-card);
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }

.hero h1 { font-size: clamp(42px, 6vw, 74px); font-variation-settings: 'wdth' 88; letter-spacing: -.032em; margin: 26px 0 0; }
.hero h1 .u { position: relative; display: inline-block; }
.hero h1 .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .1em;
  background: var(--grad-c); opacity: .75;
  -webkit-mask: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 6 Q50 1 100 4 T198 5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
  mask: no-repeat center/100% 100% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 6 Q50 1 100 4 T198 5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/></svg>");
}
.hero .lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--fg-muted); margin: 28px 0 0; max-width: 31em; line-height: 1.55; }
.hero .sub { font-size: 16px; color: var(--fg-faint); margin: 18px 0 0; max-width: 36em; line-height: 1.6; }
.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: 10px; height: 10px; border-radius: 999px; display: block; }
.mock-dots i:nth-child(1) { background: #fb7185; }
.mock-dots i:nth-child(2) { background: #fbbf24; }
.mock-dots i:nth-child(3) { background: #34d399; }
.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: #10b981; flex: none; }
.mock-live .pip::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #10b981; }
@media (prefers-reduced-motion: no-preference) { .mock-live .pip::after { animation: pulse-ring 2s cubic-bezier(.215,.61,.355,1) 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"]   { border-color: color-mix(in srgb, #f59e0b 40%, transparent); background: color-mix(in srgb, #f59e0b 9%, var(--card)); }
.mock-order[data-state="fired"] { border-color: color-mix(in srgb, #f97316 45%, transparent); background: color-mix(in srgb, #f97316 9%, var(--card)); }
.mock-order[data-state="ready"] { border-color: color-mix(in srgb, #10b981 42%, transparent); background: color-mix(in srgb, #10b981 9%, var(--card)); }
.mock-order .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mock-order .k { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-faint); }
.mock-order .no { font-size: 21px; font-weight: 800; font-variation-settings: 'wdth' 86; margin-top: 3px; }
.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); }
.mock-chip[data-state="new"]   { background: #f59e0b; }
.mock-chip[data-state="fired"] { background: #f97316; }
.mock-chip[data-state="ready"] { background: #10b981; }
.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), var(--grad-b)); }
.mock-who .nm { font-size: 15px; font-weight: 700; }
.mock-who .it { font-size: 13px; color: var(--fg-muted); }
.mock-who .amt { margin-left: auto; font-size: 16px; font-weight: 700; font-family: var(--font-mono); }

.mock-chan { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.mock-chan span { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border); color: var(--fg-faint); }
.mock-chan span svg { width: 14px; height: 14px; flex: none; }
.mock-chan span.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }

.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.mock-stats div { border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; background: var(--card-2); box-shadow: var(--sh-card); }
.mock-stats .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.mock-stats .v { font-size: 15px; font-weight: 700; font-family: var(--font-mono); margin-top: 3px; }

.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: -22px; bottom: -60px; width: min(268px, 74%); transform: rotate(3deg); }
.mock-float.live { left: -20px; top: -28px; transform: rotate(-3deg); display: flex; align-items: center; gap: 12px; }
@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; }
}
.mock-float .k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); }
.mock-float .v { font-size: 14.5px; font-weight: 700; margin-top: 3px; }
.mock-float .wa { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg,#10b981,#059669); color: #fff; flex: none; }
.mock-float .wa svg { width: 17px; height: 17px; }
.mock-float .bell { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.mock-float .bell svg { width: 17px; height: 17px; }
.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; color: var(--ok); margin-bottom: 3px; }
@media (max-width: 520px) {
  .mock-float.note { right: -6px; bottom: -30px; width: 70%; padding: 11px 13px; }
  .mock-float.live { left: -6px; top: -20px; padding: 11px 13px; }
}

/* ==========================================================================
   Stat bar
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2,1fr); gap: 30px; } }
.stat .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.stat .ico svg { width: 21px; height: 21px; }
.stat .n { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; font-variation-settings: 'wdth' 82; letter-spacing: -.03em; line-height: 1; }
.stat .l { font-size: 15px; color: var(--fg-muted); margin-top: 10px; line-height: 1.45; }
.stats-note { margin: 36px 0 0; font-size: 14px; color: var(--fg-faint); max-width: 92ch; line-height: 1.6; }
.stats-note code { font-family: var(--font-mono); font-size: .88em; background: color-mix(in srgb, var(--fg) 6%, transparent); padding: 2px 6px; border-radius: 6px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(60px, 8vw, 106px) 0; position: relative; }
.head { max-width: 780px; margin: 0 auto clamp(44px, 5vw, 66px); text-align: center; }
.head.left { margin-left: 0; margin-right: 0; text-align: left; }
.kicker {
  display: inline-block; padding: 6px 15px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 22px;
}
.head h2 { font-size: clamp(32px, 4.6vw, 54px); font-variation-settings: 'wdth' 88; letter-spacing: -.03em; }
.head .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-muted); margin: 24px auto 0; max-width: 62ch; line-height: 1.6; }
.head.left .lead { margin-left: 0; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .cards, .cards.four { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 28px; box-shadow: var(--sh-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; }
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card p { margin: 11px 0 0; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; }
.card p a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.card.center { text-align: center; }
.card.center .ico { margin-left: auto; margin-right: auto; }
.card.center h3 { justify-content: center; }

/* Tinted icon tiles — the six accent hues the app uses */
.t-emerald { background: hsl(152 60% 94%); color: hsl(158 64% 30%); }
.t-orange  { background: hsl(33 100% 94%); color: hsl(21 90% 42%); }
.t-violet  { background: hsl(255 85% 95%); color: hsl(258 60% 50%); }
.t-sky     { background: hsl(204 94% 94%); color: hsl(202 80% 38%); }
.t-rose    { background: hsl(350 100% 95%); color: hsl(347 77% 46%); }
.t-amber   { background: hsl(48 96% 91%); color: hsl(32 90% 38%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-emerald { background: hsl(158 45% 14%); color: hsl(152 60% 62%); }
  :root:not([data-theme="light"]) .t-orange  { background: hsl(21 55% 15%); color: hsl(28 95% 62%); }
  :root:not([data-theme="light"]) .t-violet  { background: hsl(258 40% 18%); color: hsl(255 85% 76%); }
  :root:not([data-theme="light"]) .t-sky     { background: hsl(202 50% 15%); color: hsl(204 90% 68%); }
  :root:not([data-theme="light"]) .t-rose    { background: hsl(347 45% 17%); color: hsl(350 90% 70%); }
  :root:not([data-theme="light"]) .t-amber   { background: hsl(32 50% 15%); color: hsl(43 95% 62%); }
}
:root[data-theme="dark"] .t-emerald { background: hsl(158 45% 14%); color: hsl(152 60% 62%); }
:root[data-theme="dark"] .t-orange  { background: hsl(21 55% 15%); color: hsl(28 95% 62%); }
:root[data-theme="dark"] .t-violet  { background: hsl(258 40% 18%); color: hsl(255 85% 76%); }
:root[data-theme="dark"] .t-sky     { background: hsl(202 50% 15%); color: hsl(204 90% 68%); }
:root[data-theme="dark"] .t-rose    { background: hsl(347 45% 17%); color: hsl(350 90% 70%); }
:root[data-theme="dark"] .t-amber   { background: hsl(32 50% 15%); color: hsl(43 95% 62%); }

/* Build-state chips */
/* Honesty vocabulary — three tiers, used per item rather than as a
   page-level disclaimer, the same way Aql labels its device kinds. */
.chip { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip-built   { background: var(--ok-soft); color: var(--ok); }
.chip-planned { background: var(--warn-soft); color: var(--warn); }
.chip-exp     { background: color-mix(in srgb, #8b5cf6 12%, transparent); color: hsl(258 60% 50%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-exp { background: hsl(258 40% 20%); color: hsl(255 85% 78%); } }
:root[data-theme="dark"] .chip-exp { background: hsl(258 40% 20%); color: hsl(255 85% 78%); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 0 0 40px; 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 a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Screenshot showcase
   ========================================================================== */
.shots { display: grid; gap: clamp(56px, 8vw, 100px); }
.shot { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(28px, 4.5vw, 58px); align-items: center; }
/* Flipping has to move the column track too, or the screenshot lands in the
   narrow copy column and shrinks to a thumbnail. */
.shot.flip { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
.shot.flip > .shot-copy { order: 2; }
.shot.pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 940px) {
  .shot, .shot.flip, .shot.pair { grid-template-columns: 1fr; }
  .shot.flip > .shot-copy { order: 0; }
}
.shot-tag { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.shot-tag i { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.shot-tag i svg { width: 16px; height: 16px; }
.shot-copy h3 { font-size: clamp(25px, 3vw, 34px); font-variation-settings: 'wdth' 90; letter-spacing: -.026em; margin: 20px 0 0; }
.shot-copy > p { color: var(--fg-muted); font-size: 17px; margin: 16px 0 0; line-height: 1.6; }
.shot-copy ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 13px; }
.shot-copy li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.shot-copy li svg { width: 19px; height: 19px; color: var(--ok); flex: none; margin-top: 2px; }

.shot-frame { position: relative; }
.shot-frame .glow { position: absolute; inset: -22px; border-radius: 44px; background: linear-gradient(120deg, rgb(249 115 22 / .26), rgb(245 158 11 / .18), rgb(244 63 94 / .24)); filter: blur(38px); z-index: -1; }
.shot-frame .win { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--sh-raised); }
.shot-frame .chrome { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--card-2); }
.shot-frame .chrome i { width: 9px; height: 9px; border-radius: 999px; background: var(--border-2); display: block; }
.shot-frame .chrome span { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-faint); }
.shot-frame img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot-cap { margin: 16px 4px 0; font-size: 14px; color: var(--fg-faint); }

.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: 16px; box-shadow: 0 40px 90px -20px #000; }
.lightbox .close { position: absolute; top: 20px; right: 22px; background: #fff; color: #111; border: none; border-radius: 999px; padding: 11px 18px; font: 700 14px/1 var(--font-sans); cursor: pointer; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 34px 28px; text-align: center; box-shadow: var(--sh-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); }
@media (prefers-reduced-motion: reduce) { .step:hover { transform: none; } }
.step .badge { position: relative; width: 60px; height: 60px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: var(--sh-glow); }
.step .badge svg { width: 24px; height: 24px; }
.step .badge b { position: absolute; top: -9px; right: -9px; width: 27px; height: 27px; border-radius: 999px; display: grid; place-items: center; background: var(--card); color: var(--fg); border: 1px solid var(--border); font-size: 11px; font-weight: 800; box-shadow: var(--sh-card); }
.step h3 { margin-top: 24px; font-size: 20px; }
.step p { margin: 12px 0 0; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; }

/* ==========================================================================
   Flow diagram — hand-built, replacing 3.5 MB of vendored Mermaid
   ========================================================================== */
.diagram { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-card); }
.flow { display: grid; grid-template-columns: 1fr auto 1.05fr auto .82fr; gap: 0 clamp(12px, 1.8vw, 22px); align-items: center; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.flow-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow-lbl { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); 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); }
.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); }
.flow-node small { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-faint); }
.flow-node.built small { color: var(--ok); }
.flow-node.planned { border-style: dashed; box-shadow: none; opacity: .82; }
.flow-node.planned small { color: var(--warn); }
.flow-node.key { border-color: color-mix(in srgb, var(--primary) 45%, transparent); background: var(--primary-soft); }
.flow-node.key small { color: var(--primary-ink); }
.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%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; border-top: 2px solid var(--border-2); border-right: 2px solid var(--border-2); }
@media (max-width: 900px) {
  .flow-arrow { width: 2px; height: 30px; margin: 6px auto; }
  .flow-arrow::after { right: auto; left: 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: 10px; }
.flow-key i { width: 24px; height: 15px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); flex: none; }
.flow-key i.d { border: 1px dashed var(--border-2); }

/* ==========================================================================
   Panels — status, self-hosting, principle, VulOS
   ========================================================================== */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: clamp(28px, 4vw, 46px); box-shadow: var(--sh-card); }
.panel h3 { font-size: clamp(23px, 2.8vw, 30px); }
.panel > p { color: var(--fg-muted); font-size: 16.5px; line-height: 1.65; }
.panel a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cols3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 34px; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; gap: 26px; } }
.cols3 h4 { font-size: 17px; }
.cols3 p { margin: 9px 0 0; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; }

.status {
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  background: var(--warn-soft); border-radius: 22px; padding: 26px 30px;
  display: flex; gap: 18px; align-items: flex-start;
}
.status .ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.status .ico svg { width: 20px; height: 20px; }
.status b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.status p { margin: 0; font-size: 15.5px; color: var(--fg-muted); line-height: 1.6; }
.status a { color: var(--fg); 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: 32px; }
.code .bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.code .bar i { width: 10px; height: 10px; border-radius: 999px; background: rgb(255 255 255 / .18); display: block; }
.code .bar span { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: rgb(255 255 255 / .45); }
.code pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--code-fg); }
.code .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: var(--grad-a); }
.copy-btn.done { color: #34d399; border-color: rgb(52 211 153 / .5); }
.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; }

/* Principle panel — sits on a warm band, in the app's testimonial slot */
.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 1fr; gap: 34px; align-items: center; }
@media (max-width: 760px) { .principle { grid-template-columns: 1fr; gap: 26px; } }
.principle .mark { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: var(--sh-glow); }
.principle .mark svg { width: 30px; height: 30px; }
.principle .k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); }
.principle q { display: block; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; margin-top: 16px; font-weight: 500; quotes: none; }
.principle .src { margin: 20px 0 0; font-size: 15px; font-weight: 700; }
.principle .src span { font-weight: 400; color: var(--fg-muted); }

.vulos { display: flex; gap: 28px; align-items: flex-start; }
@media (max-width: 700px) { .vulos { flex-direction: column; } }
.vulos > img { width: 60px; height: 60px; border-radius: 18px; flex: none; border: 1px solid var(--border); }
.vulos p { color: var(--fg-muted); font-size: 16px; margin: 0 0 14px; line-height: 1.65; }
.vulos ul { margin: 0 0 14px; padding-left: 22px; color: var(--fg-muted); font-size: 15.5px; }
.vulos li { margin: 5px 0; }
.vulos .more { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; }

/* ==========================================================================
   Dark support band + gradient CTA
   ========================================================================== */
.dark-band { background: hsl(222 24% 7%); color: hsl(210 20% 96%); position: relative; overflow: hidden; }
.dark-band .b1 { width: 400px; height: 400px; top: -120px; left: 6%; background: rgb(249 115 22 / .16); }
.dark-band .b2 { width: 400px; height: 400px; bottom: -160px; right: 6%; background: rgb(244 63 94 / .14); }
.dark-band .wrap { position: relative; }
.dark-band .kicker { background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .82); }
.dark-band h2 { color: #fff; }
.dark-band .head .lead { color: hsl(216 12% 68%); }
.dark-card { display: block; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .09); border-radius: 22px; padding: 28px; transition: background .2s, border-color .2s, transform .25s var(--ease); }
.dark-card:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .dark-card:hover { transform: none; } }
.dark-card .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 22px; }
.dark-card .ico svg { width: 21px; height: 21px; }
.g-violet  { background: linear-gradient(135deg,#8b5cf6,#6366f1); }
.g-orange  { background: linear-gradient(135deg,#f97316,#f43f5e); }
.g-emerald { background: linear-gradient(135deg,#10b981,#059669); }
.g-amber   { background: linear-gradient(135deg,#f59e0b,#f97316); }
.dark-card h3 { font-size: 18px; color: #fff; }
.dark-card p { margin: 10px 0 0; color: hsl(216 12% 65%); font-size: 15px; line-height: 1.55; }
.dark-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #fdba74; font-weight: 700; font-size: 15px; }
.dark-card .go svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.dark-card:hover .go svg { transform: translateX(3px); }

.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(72px, 10vw, 124px) 0; }
.cta-band .sheet { position: absolute; inset: 0; background: linear-gradient(120deg, var(--grad-a), var(--grad-b) 50%, var(--grad-c)); background-size: 200% 200%; }
@media (prefers-reduced-motion: no-preference) { .cta-band .sheet { animation: gradient-shift 8s ease infinite; } }
.cta-band .b1 { width: 380px; height: 380px; top: -120px; left: 8%; background: rgb(255 255 255 / .22); }
.cta-band .b2 { width: 380px; height: 380px; bottom: -140px; right: 8%; background: rgb(255 237 213 / .28); }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(36px, 5.4vw, 64px); font-variation-settings: 'wdth' 88; letter-spacing: -.03em; color: #fff; }
.cta-band p { font-size: clamp(17px, 1.8vw, 20px); color: rgb(255 255 255 / .9); max-width: 42ch; margin: 24px auto 0; line-height: 1.55; }
.cta-band .cta-row { justify-content: center; margin-top: 40px; }
.cta-band .fine { margin: 30px auto 0; max-width: none; font-size: 14.5px; color: rgb(255 255 255 / .78); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: clamp(46px, 6vw, 70px) 0 44px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
.foot-grid .about p { color: var(--fg-muted); font-size: 15px; margin: 18px 0 0; max-width: 36ch; line-height: 1.6; }
.foot-grid h4 { font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-grid li a { color: var(--fg-muted); font-size: 15px; }
.foot-grid li a:hover { color: var(--primary); }
.foot-base { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.foot-base p { margin: 0; font-size: 14px; color: var(--fg-faint); }
.foot-base a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.foot-base .vb { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--fg-muted); }
.foot-base .vb img { width: 20px; height: 20px; border-radius: 6px; }

/* Shared chrome hook used by the docs viewer's header. */
.vulos-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--fg-muted); background: var(--card); transition: border-color .15s, color .15s; }
.vulos-badge:hover { border-color: var(--primary); color: var(--fg); }
.vulos-badge img { width: 17px; height: 17px; border-radius: 5px; display: block; }
@media (max-width: 620px) { .vulos-badge { display: none; } }
@media (max-width: 700px) { .nav-tools > .btn { display: none; } }

/* ==========================================================================
   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: 236px minmax(0,1fr) 220px; gap: 40px; align-items: start; padding: 30px 0 84px; }
@media (max-width: 1180px) { .docs-shell { grid-template-columns: 220px minmax(0,1fr); } .docs-toc { display: none; } }
@media (max-width: 880px) { .docs-shell { grid-template-columns: 1fr; padding-top: 18px; } }

.docs-nav { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-nav .label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); padding: 6px 12px; }
.docs-nav .label + .label { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 18px; }
.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); }
  .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: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
@media (max-width: 620px) { .docs-pager { grid-template-columns: 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); }
.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: 90px; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-toc .label { font-size: 11.5px; 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; }
.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: #0284c7; background: color-mix(in srgb, #0284c7 8%, transparent); }
.markdown blockquote.cn .callout-label { color: #0284c7; }
.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 { display: none !important; }
  body { background: #fff; color: #000; }
  .docs-shell { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ledger — what is real and what isn't, side by side
   ========================================================================== */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .ledger { grid-template-columns: 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, 1fr); gap: 20px; }
@media (max-width: 940px) { .shapes { grid-template-columns: 1fr; } }
.shape { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--sh-card); }
.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: 1fr 1fr; }
@media (max-width: 1000px) { .seams { grid-template-columns: 1fr; } }
.seam-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.seam-list li { display: grid; grid-template-columns: 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; }
.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: 11px; 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; }
