/* site/chrome.css — the shared marketing chrome: dark tokens and the site nav.
 *
 * Loaded LAST in every marketing page's <head>, after that page's own <style>,
 * so plain `nav {}` rules here beat the per-page copies without needing extra
 * specificity. Every page already declares the same token names on :root, so a
 * single [data-theme="dark"] block below re-skins all of them.
 */

:root[data-theme="dark"] {
  --paper: #0C0D0F; --sunk: #101114; --ink: #ECECEE; --soft: #A0A2A8; --faint: #6B6D74;
  --rule: #1E2025; --firm: #2A2C31; --acc: #6E7BFF; --grid: #16181C; --shadow: rgba(0, 0, 0, 0.5);
  --red: #F07A66; --green: #4ECB94; --bl: #7C8798; --trace: #E5B45C;
  color-scheme: dark;
}
:root { color-scheme: light; }

/* ── nav ──────────────────────────────────────────────────────────────────────
   Sticky, translucent, and it only grows a rule once the page has moved — the
   same behaviour as the rest of the estate. `backdrop-filter` needs a partly
   transparent background to have anything to blur, so the paper colour is mixed
   down; browsers without color-mix fall back to the opaque declaration above it. */
html { scroll-padding-top: 84px; }
nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 26px;
  height: 68px; padding: 0 72px;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
nav.scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--rule);
}
nav .brandrow { display: flex; align-items: center; gap: 9px; font-size: 16.5px; flex: none; }
nav .links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
nav .links a { color: var(--soft); transition: color 0.15s; }
nav .links a:hover { color: var(--ink); }
nav .links a[aria-current="page"] { color: var(--ink); }
nav .spacer { flex: 1; }
nav .free { font: 400 11px/1 var(--mono); color: var(--faint); white-space: nowrap; }
/* the CTA carries its own fill here: the document pages only ever defined .btn,
   and the nav is now built by chrome.js, which always emits .btn-primary.
   Everything else about it comes from the house button spec at the foot of
   this file — this only tightens it to nav proportions. */
nav .btn-primary,
nav .btn { font-size: 13px; padding: 9px 16px; }

/* the light/dark switch — a square icon button, sized to the CTA beside it */
.theme-tog {
  flex: none; width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--firm); border-radius: var(--r-ctl);
  background: none; color: var(--ink); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.theme-tog:hover { border-color: var(--acc); background: var(--sunk); }
.theme-tog svg { width: 16px; height: 16px; display: block; }

.nav-burger {
  display: none; flex: none; width: 34px; height: 34px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--firm); border-radius: var(--r-ctl);
  background: none; color: var(--ink); cursor: pointer;
}
.nav-burger:hover { border-color: var(--acc); }
.nav-burger svg { width: 18px; height: 18px; display: block; }

@media (max-width: 1024px) { nav { padding-left: 28px; padding-right: 28px; gap: 18px; } }
@media (max-width: 900px) {
  nav { gap: 14px; }
  nav .free { display: none; }
  .nav-burger { display: inline-flex; }
  /* the links become a sheet under the bar rather than vanishing */
  nav .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px; font-size: 15px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 22px 44px -28px var(--shadow, rgba(0, 0, 0, 0.35));
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.26s ease, opacity 0.2s ease, visibility 0.26s;
  }
  nav.menu-open .links { max-height: 70vh; overflow: auto; opacity: 1; visibility: visible; }
  nav .links a { padding: 12px 14px; border-radius: var(--r-ctl); }
  nav .links a:hover { background: var(--sunk); }
}
@media (max-width: 560px) {
  nav { padding-left: 16px; padding-right: 16px; gap: 10px; }
  nav .btn-primary, nav .btn { padding-left: 13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  nav, nav .links, .theme-tog { transition: none; }
}

/* skip link — the nav is the first thing in the tab order on every page */
.skip-nav {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--acc); color: #FFFFFF; padding: 10px 16px;
  border-radius: var(--r-btn); font-weight: 700; transition: top 0.15s ease;
}
.skip-nav:focus { top: 12px; }

/* ── Vantis house style ───────────────────────────────────────────────────────
   The radius scale, button treatment and surface treatment shared with
   sketchdule.com, runmontecarlo.com and earnedcurve.com. All three sit on a
   12px button, weight 700, a coloured drop shadow under the primary and a 1px
   lift on hover; surfaces are 14px and chips are fully round. Aimavera was
   built on a 3–4px scale and read as a different family.

   This block lands last, after each page's own <style>, so it re-skins all
   thirteen pages from one place rather than through eighty-one edits. Only
   containers are listed — progress bars, meters and text marks keep their
   tight radii, because a 12px corner on a 12px-tall bar is a circle. */
:root {
  --r-btn: 12px;    /* buttons, on all four sites */
  --r-card: 14px;   /* cards, panels, plots, quoted blocks */
  --r-ctl: 10px;    /* icon buttons and other small controls */
  --r-pill: 999px;  /* chips and tags */
}

.btn-primary, .btn, .btn-ghost, .chat .send, .presets button, .pane .ask, #revealReplay {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: var(--r-btn);
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.btn-primary, .btn, .chat .send {
  background: var(--acc); color: #FFFFFF; border: 1px solid transparent;
  box-shadow: 0 14px 34px -14px var(--acc);
}
.btn-ghost, .presets button, .pane .ask, #revealReplay {
  background: var(--sunk); color: var(--ink); border: 1px solid var(--firm); box-shadow: none;
}
.btn-primary:hover, .btn:hover, .btn-ghost:hover,
.chat .send:hover, .presets button:hover, .pane .ask:hover, #revealReplay:hover {
  transform: translateY(-1px);
}
.btn-ghost:hover, .presets button:hover, .pane .ask:hover, #revealReplay:hover { border-color: var(--acc); }
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn, .btn-ghost, .chat .send, .presets button, .pane .ask, #revealReplay { transition: none; }
  .btn-primary:hover, .btn:hover, .btn-ghost:hover,
  .chat .send:hover, .presets button:hover, .pane .ask:hover, #revealReplay:hover { transform: none; }
}

/* chips and tags read as pills across the family */
.chip, .pill, .ftag, .ptag, .readout .tag { border-radius: var(--r-pill); }

/* surfaces */
.card, .checks, .demo, .diffcard, .ec, .fc, .feat, .gcard, .keybox, .pipe, .plan,
.plot, .proof, .prov, .rulecard, .sheet, .wf, .wfs, .xercard, .chat, .bubble,
.box, .window, address, .feat .say, .panel .quote, .route span, .chat .inputbox {
  border-radius: var(--r-card);
}
.pipe li::before, .swatch, .step, .stats div, .refuse code { border-radius: var(--r-ctl); }
