/* ==========================================================================
   Vrot Trading Bot: website styles
   Design system: tokens, base, layout, components, illustrations, pages, motion
   ========================================================================== */

/* ---------- Fonts (SIL Open Font License, self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Ink and paper */
  --ink: #0b1530;
  --ink-2: #2f3b57;
  --ink-3: #56627d;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --paper-3: #e9edf3;
  --line: #dfe4ec;
  --line-2: #c8d0dc;

  /* Brand blue, taken from the Vrot mark */
  --blue: #0b5ce5;
  --blue-600: #0a50cb;
  --blue-700: #0841a6;
  --sky: #1e9bf7;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;

  /* Amber accent: signals, cautions and the "Illustration" label only */
  --amber: #e8930c;
  --amber-soft: #fff3df;
  --amber-ink: #8a5300;

  /* Night sections */
  --night: #070e1f;
  --night-2: #0c1730;
  --night-3: #142241;
  --night-line: rgba(196, 214, 255, 0.12);
  --on-night: #e9eef8;
  --on-night-2: #a9b6cc;

  --ok: #0f7a55;
  --err: #b42318;
  --err-soft: #fdecea;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.6rem + 2.9vw, 4.1rem);
  --fs-h1: clamp(2.3rem, 1.5rem + 2.9vw, 3.9rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 1.9vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(80px, 5rem + 4vw, 144px);
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1240px;

  /* Shape and depth */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(11, 21, 48, 0.06), 0 1px 1px rgba(11, 21, 48, 0.04);
  --shadow-2: 0 2px 4px rgba(11, 21, 48, 0.05), 0 8px 24px -6px rgba(11, 21, 48, 0.12);
  --shadow-3: 0 4px 8px rgba(11, 21, 48, 0.05), 0 24px 56px -16px rgba(11, 21, 48, 0.24);
  --ring: 0 0 0 3px rgba(30, 155, 247, 0.55);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
strong, b { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--blue-100); color: var(--ink); }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }
code { font-family: var(--font-mono); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow, .narrow-block { max-width: calc(880px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }
.section--paper { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section--night {
  background: var(--night);
  color: var(--on-night-2);
  --ink: #f4f7fc;
  --ink-2: #c9d3e3;
  --ink-3: #a9b6cc;
  --line: var(--night-line);
}
.section--night a:not(.btn) { color: #8cc8ff; }
.section-foot { margin-top: 36px; }
.fine-print { margin-top: 18px; font-size: var(--fs-xs); color: var(--ink-3); }
.muted { color: var(--ink-3); }

.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 21, 48, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 21, 48, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}
.section--night .grid-bg, .hero .grid-bg {
  background-image:
    linear-gradient(to right, rgba(140, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 180, 255, 0.07) 1px, transparent 1px);
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--tight { margin-top: clamp(40px, 5vw, 64px); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Typographic components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section--night .eyebrow, .hero .eyebrow { color: #7cc0ff; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-title { font-size: var(--fs-h2); }
.section-title--sm { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: 8px; }
.section-lead { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-3); max-width: 66ch; }
.section-head--center .section-lead { margin-inline: auto; }
.lead { font-size: var(--fs-lead); color: var(--ink-3); line-height: 1.55; }
.mono { font-family: var(--font-mono); font-size: 0.9em; }
.mini-title { font-size: 1.15rem; margin-bottom: 10px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink-2);
}
.status-chip--dark { background: rgba(7, 14, 31, 0.5); border-color: rgba(255, 255, 255, 0.22); color: #e3eaf6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.status-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); flex: none;
  box-shadow: 0 0 0 3px rgba(232, 147, 12, 0.18);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6; white-space: nowrap;
}
.tag:empty { display: none; }
.tag--concept { color: var(--amber-ink); background: var(--amber-soft); border: 1px solid #f3d29c; }
.tag--core { color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); }
.tag--planned { color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--line-2); }
.tag--draft { color: var(--err); background: var(--err-soft); border: 1px solid #f5c2bc; }
.section--night .tag--planned { color: var(--on-night-2); background: transparent; border-color: var(--night-line); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 20px; border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; line-height: 1.1;
  letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(1px); }
.btn--sm { --btn-h: 38px; padding: 0 14px; font-size: 0.92rem; border-radius: 7px; }
.btn--lg { --btn-h: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(11, 60, 160, 0.3), 0 4px 12px -4px rgba(11, 92, 229, 0.5);
}
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--primary:focus-visible { box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.btn--secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: #e7eefc; color: var(--night); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.32); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--blue);
}
.section--night .link-arrow { color: #8cc8ff; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.text-btn { border: 0; background: none; padding: 6px 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: var(--fs-small); }
.text-btn:hover { color: var(--blue-700); text-decoration: underline; }
.text-btn--inline { display: inline; padding: 0; margin-left: 4px; font-size: inherit; color: inherit; text-decoration: underline; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* The header's backgrounds are layers that fade, so it changes colour smoothly (over the home
   hero, when scrolled, with the menu open). The frosted layer also keeps backdrop-filter off
   the header itself, which would otherwise trap the fixed mobile menu inside it. */
.site-header::before, .site-header::after {
  content: ""; position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none;
  transition: opacity 0.35s var(--ease), background-color 0.35s var(--ease);
}
.site-header::before {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.site-header::after { opacity: 0; background: linear-gradient(180deg, rgba(5, 10, 24, 0.55), rgba(5, 10, 24, 0)); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 21, 48, 0.4); }
.brand__word, .brand__ai, .nav__trigger, .nav__link { transition: color 0.3s var(--ease), background-color 0.18s; }
.menu-toggle, .menu-toggle__bars span { transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.22s var(--ease); }
.site-header__bar { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 34px; height: auto; }
.brand__word {
  font-family: var(--font-display); font-weight: 680; font-stretch: 104%;
  font-size: 1.32rem; letter-spacing: -0.015em; color: var(--ink); line-height: 1;
}
.brand__ai { color: var(--blue); }
.brand:hover { color: var(--ink); }
.brand--on-dark .brand__word { color: #fff; }
.brand--on-dark .brand__ai { color: #5eb6ff; }

.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__trigger, .nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 12px; border-radius: 7px;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.97rem; font-weight: 550; color: var(--ink-2);
  text-decoration: none; transition: background-color 0.15s, color 0.15s;
}
.nav__trigger:hover, .nav__link:hover, .nav__trigger[aria-expanded="true"] { background: var(--paper-2); color: var(--ink); }
.nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--ink); }
.nav__link[aria-current="page"]::after, .nav__trigger.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav__chevron { width: 16px; height: 16px; transition: transform 0.2s var(--ease); opacity: 0.7; }
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.nav__panel {
  position: absolute; top: calc(100% + 12px); left: -12px; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  width: max-content; max-width: min(680px, calc(100vw - 48px));
  padding: 10px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: 24px 0;
  transition: opacity 0.22s var(--ease), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__panel.is-open { opacity: 1; transform: none; }
.nav__panel[hidden] { display: none; }
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega { list-style: none; display: grid; gap: 2px; width: 340px; }
.mega__link {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 9px; text-decoration: none;
  transition: background-color 0.15s;
}
.mega__link:hover, .mega__link:focus-visible { background: var(--paper-2); }
.mega__link[aria-current="page"] { background: var(--blue-50); }
.mega__title { font-weight: 620; color: var(--ink); font-size: 0.98rem; }
.mega__desc { font-size: 0.875rem; line-height: 1.45; color: var(--ink-3); }
.mega__note {
  align-self: end; width: 220px; padding: 16px; border-radius: 10px;
  background: var(--paper-2); font-size: 0.875rem; color: var(--ink-3); line-height: 1.5;
}
.mega__feature {
  display: grid; align-content: start; gap: 8px; width: 260px; padding: 12px; border-radius: 10px;
  background: var(--paper-2); text-decoration: none; color: var(--ink-2);
  transition: background-color 0.15s;
}
.mega__feature:hover { background: var(--paper-3); }
.mega__feature-media {
  display: grid; place-items: center; padding: 12px 10px; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3;
  background-color: #fff;
  background-image: linear-gradient(to right, rgba(11, 92, 229, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 92, 229, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.mega__feature-media .ch-signal__text, .mega__feature-media .ch-end, .mega__feature-media .ch-axis { display: none; }
.mega__feature-title { font-weight: 620; color: var(--ink); }
.mega__feature-link { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.mega__feature-link .icon { width: 16px; height: 16px; }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle__bars { display: grid; gap: 6px; width: 18px; }
.menu-toggle__bars span { display: block; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 0.22s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(3.8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.28s var(--ease), transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__group, .mobile-menu__foot { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s var(--ease), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.mobile-menu.is-open .mobile-menu__group, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__group:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mobile-menu__group:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__group:nth-child(n+4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__foot { transition-delay: 0.16s; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { list-style: none; }
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__trigger, .mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 60px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-stretch: 106%; font-size: 1.22rem; font-weight: 620;
  color: var(--ink); text-decoration: none; text-align: left;
}
.mobile-menu__chevron { width: 20px; height: 20px; transition: transform 0.2s var(--ease); color: var(--ink-3); }
.mobile-menu__trigger[aria-expanded="true"] .mobile-menu__chevron { transform: rotate(180deg); }
.mobile-menu__sub { list-style: none; padding: 0 0 14px; display: grid; gap: 2px; }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__sub a {
  display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 520;
}
.mobile-menu__sub a:hover, .mobile-menu__sub a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.mobile-menu__link[aria-current="page"] { color: var(--blue); }
.mobile-menu__foot { display: grid; gap: 14px; }
.mobile-menu__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu__status { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--ink-3); }
@media (max-width: 400px) { .mobile-menu__buttons { grid-template-columns: 1fr; } }

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .site-header__login { display: none; }
}
@media (max-width: 480px) {
  .site-header__cta { display: none; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
/* with the mobile menu open the header is solid, to match the menu */
body.menu-open .site-header::before { background-color: var(--paper); }

/* ---------- Home hero (night, with the app window) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #dfe7f4;
  background: radial-gradient(90% 80% at 78% 28%, #13254d 0%, rgba(19, 37, 77, 0) 62%), var(--night); }
.hero .grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 78%); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(140px, 13vw, 176px);
}
.hero__copy { max-width: 600px; }
.hero__title { margin-top: var(--s-6); color: #fff; font-size: var(--fs-display); font-weight: 680; font-stretch: 104%; line-height: 1.02; letter-spacing: -0.028em; }
.hero__title span { display: block; color: #6fbcff; }
.hero__lead { margin-top: var(--s-6); font-size: var(--fs-lead); line-height: 1.55; color: #cfd9ea; max-width: 34rem; }
.hero .btn-row { margin-top: var(--s-6); }
.hero__note { margin-top: var(--s-4); font-size: var(--fs-small); color: #aebbd2; }
.hero__media { min-width: 0; }
.hero__media .illus__cap { color: #aebbd2; }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, rgba(5, 10, 24, 0.15), rgba(5, 10, 24, 0.55)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-values { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-values li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 22px 28px 24px 0; color: #c9d5e8; font-size: var(--fs-small); }
.hero-values li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.hero-values__num { grid-row: span 2; font-family: var(--font-mono); font-size: 0.74rem; color: #7cc0ff; padding-top: 3px; }
.hero-values b { color: #fff; font-family: var(--font-display); font-stretch: 104%; font-size: 1.05rem; font-weight: 620; }
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .hero__media { max-width: 640px; }
}
@media (max-width: 860px) {
  .hero__inner { padding-top: calc(var(--header-h) + 36px); }
  .hero__bar { position: static; background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-values { grid-template-columns: 1fr; }
  .hero-values li, .hero-values li + li { padding: 16px 0; border-left: 0; }
  .hero-values li + li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* the header floats over the dark hero on the home page until you scroll */
.page-home .site-header { position: fixed; left: 0; right: 0; top: 0; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) { border-bottom-color: transparent; box-shadow: none; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled)::before { opacity: 0; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled)::after { opacity: 1; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .brand__word { color: #fff; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .brand__ai { color: #7cc0ff; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .nav__trigger,
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .nav__link { color: rgba(255, 255, 255, 0.92); }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .nav__trigger:hover,
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .nav__link:hover,
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .nav__trigger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .menu-toggle { background: rgba(7, 14, 31, 0.35); border-color: rgba(255, 255, 255, 0.35); }
.page-home:not(.menu-open) .site-header:not(.is-scrolled) .menu-toggle__bars span { background: #fff; }

/* ---------- Spec strip ---------- */
.spec-strip { border-block: 1px solid var(--line); background: var(--paper); }
.spec-strip dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-strip dl > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.spec-strip dl > div:first-child { border-left: 0; padding-left: 0; }
.spec-strip dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.spec-strip dd { margin-top: 6px; font-weight: 600; color: var(--ink); font-size: 1rem; }
@media (max-width: 860px) {
  .spec-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec-strip dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Illustration frame (grid paper) and its caption ---------- */
.illus {
  position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: clamp(16px, 3vw, 28px); border-radius: 16px; border: 1px solid var(--line);
  background-color: #fff;
  background-image: linear-gradient(to right, rgba(11, 92, 229, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 92, 229, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.illus__cap { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.illus__cap .tag { margin-top: 1px; }
.illus__key { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-2); }
.illus__key li { display: inline-flex; align-items: center; gap: 8px; }
.key-swatch { display: inline-block; width: 16px; height: 6px; border-radius: 3px; background: var(--blue); }
.key-swatch--open { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
@media (max-width: 700px) { .illus__cap { flex-direction: column; gap: 6px; } }

/* crossover chart */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ch-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .ch-line { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .ch-price { stroke: #a3aec2; stroke-width: 1.4; }
.chart .ch-slow { stroke: var(--ink); stroke-width: 2; }
.chart .ch-fast { stroke: var(--blue); stroke-width: 2.6; }
.chart .ch-signal circle { fill: var(--amber); stroke: #fff; stroke-width: 2.5; }
.chart .ch-signal__stem { stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 2 3; }
.chart .ch-signal__pill { fill: #fff; stroke: #f3d29c; stroke-width: 1; }
.chart .ch-signal__text { font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--amber-ink); text-anchor: middle; }
.chart .ch-end { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; }
.chart .ch-end--fast { fill: var(--blue-700); }
.chart .ch-end--slow { fill: var(--ink); }
.chart .ch-axis { font-family: var(--font-mono); font-size: 10px; font-weight: 500; fill: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.chart .ch-axis--end { text-anchor: end; }

/* 24-hour ring */
.ring { display: block; width: 100%; max-width: 300px; height: auto; margin-inline: auto; overflow: visible; }
.ring__track { fill: none; stroke: var(--paper-3); stroke-width: 14; }
.ring__crypto { fill: none; stroke: var(--blue); stroke-width: 14; }
.ring__tick { stroke: var(--line-2); stroke-width: 1.5; }
.ring__tick--major { stroke: var(--ink-3); stroke-width: 2; }
.ring__hour { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--ink-3); text-anchor: middle; }
.ring__big { font-family: var(--font-display); font-size: 46px; font-weight: 680; font-stretch: 104%; letter-spacing: -0.02em; fill: var(--ink); text-anchor: middle; }
.ring__small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-3); text-anchor: middle; }
.ring__open circle { fill: var(--amber); stroke: #fff; stroke-width: 3; }
.ring__sweep { display: none; }
.ring__sweep circle { fill: #fff; stroke: var(--sky); stroke-width: 2.5; }

/* the app window: a made-up dashboard, drawn in HTML so it stays sharp */
.app-window { margin: 0; }
.app-window__frame {
  border-radius: 14px; overflow: hidden; background: #091224; color: #c9d3e3;
  border: 1px solid rgba(196, 214, 255, 0.16);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.25);
  font-family: var(--font-body); line-height: 1.35;
}
.app-window__bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding-left: 14px; background: #0f1b36; border-bottom: 1px solid var(--night-line); }
.app-window__title { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: #e9eef8; }
.app-window__mark { width: 16px; height: auto; }
.app-window__badge { padding: 1px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8cc8ff; background: rgba(30, 155, 247, 0.12); border: 1px solid rgba(30, 155, 247, 0.32); }
.app-window__controls { display: flex; height: 100%; }
.app-window__controls i { position: relative; width: 42px; height: 100%; }
.app-window__controls i::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.app-window__controls i:nth-child(1)::before { width: 10px; height: 1px; background: #8592ad; }
.app-window__controls i:nth-child(2)::before { width: 9px; height: 9px; border: 1px solid #8592ad; }
.app-window__controls i:nth-child(3)::before {
  width: 10px; height: 10px;
  background: linear-gradient(45deg, transparent 46%, #8592ad 46%, #8592ad 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #8592ad 46%, #8592ad 54%, transparent 54%);
}
.app-window__body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; padding: 12px; }
.aw-tile { position: relative; min-width: 0; padding: 12px; border-radius: 10px; background: #0e1a33; border: 1px solid var(--night-line); }
.aw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aw-label { display: block; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #8592ad; }
.aw-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 0.62rem; color: #7fd4ad; }
.aw-ok i { width: 6px; height: 6px; border-radius: 50%; background: #2fbf7f; }
.aw-skel { display: block; height: 8px; border-radius: 4px; background: rgba(169, 182, 204, 0.2); }
.aw-skel--big { width: 46%; height: 16px; margin: 10px 0 8px; background: rgba(233, 238, 248, 0.3); }
.aw-skel--tick { width: 34px; }
.aw-skel--val { width: 30px; justify-self: end; }
.aw-skel--line { width: 100%; }
.aw-skel--short { width: 62%; }
.aw-chart { display: block; width: 100%; height: 84px; overflow: visible; }
.aw-line { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.aw-bench { fill: none; stroke: #8592ad; stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.aw-area { stroke: none; }
.aw-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 0.62rem; color: #a9b6cc; }
.aw-key span { display: inline-flex; align-items: center; gap: 5px; }
.aw-key__line { display: inline-block; width: 14px; height: 2px; background: var(--sky); }
.aw-key__line--bench { background: repeating-linear-gradient(90deg, #8592ad 0 3px, transparent 3px 6px); }
.aw-part { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.aw-part b { display: block; font-size: 0.74rem; font-weight: 600; color: #e9eef8; }
.aw-part small { display: block; font-size: 0.64rem; color: #8592ad; }
.aw-toggle { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: var(--blue); }
.aw-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.aw-rows { list-style: none; display: grid; gap: 8px; margin-top: 10px; padding: 0; }
.aw-rows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 10px; align-items: center; min-height: 18px; }
.aw-rows--journal li { grid-template-columns: auto minmax(0, 1fr) auto; }
.aw-spark { display: block; width: 100%; height: 18px; overflow: visible; }
.aw-spark path { fill: none; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.aw-spark--up path { stroke: var(--sky); }
.aw-spark--down path { stroke: #f08b7e; }
.aw-spark--fund path { stroke: #a9b6cc; }
.aw-tick { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; color: #e9eef8; }
.aw-note { font-size: 0.62rem; color: #8592ad; text-align: right; white-space: nowrap; }
.aw-pill { padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.aw-pill--buy { color: #8cc8ff; background: rgba(30, 155, 247, 0.14); }
.aw-pill--sell { color: #f5b55c; background: rgba(232, 147, 12, 0.14); }
.aw-marker {
  position: absolute; top: -9px; right: -9px; z-index: 2; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #2b1800;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; box-shadow: 0 0 0 3px #091224;
}
.aw-marker--inline { position: static; display: inline-grid; width: 18px; height: 18px; margin-right: 8px; font-size: 0.62rem; box-shadow: none; }
@media (max-width: 520px) {
  .app-window__body { grid-template-columns: minmax(0, 1fr); }
  .aw-tile--journal { display: none; }
}

/* alerts, drawn as Windows-style notifications */
.toasts { margin: 0; }
.toasts__list { list-style: none; display: grid; gap: 10px; max-width: 440px; margin-left: auto; }
.toast {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 10px; background: #18233d; border: 1px solid rgba(196, 214, 255, 0.14);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7); font-size: 0.86rem; color: var(--on-night-2); line-height: 1.45;
}
.toast:nth-child(2) { margin-right: 18px; }
.toast:nth-child(3) { margin-right: 36px; }
.toast b { display: block; color: #fff; font-size: 0.93rem; font-weight: 620; }
.toast__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--night); }
.toast__mark { width: 20px; height: auto; }
.toasts .illus__cap { justify-content: flex-end; }
@media (max-width: 860px) { .toasts__list { margin-left: 0; } .toast:nth-child(n) { margin-right: 0; } .toasts .illus__cap { justify-content: flex-start; } }

/* the first-run Windows warning, as a sketch */
.smartscreen { margin: 0 0 36px; }
.smartscreen__box { border-radius: 12px; overflow: hidden; background: var(--blue-700); box-shadow: var(--shadow-2); }
.smartscreen__pane { display: grid; gap: 10px; padding: 22px 24px; color: #fff; }
.smartscreen__pane--2 { border-top: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.14); }
.smartscreen__title { font-family: var(--font-display); font-stretch: 104%; font-size: 1.2rem; font-weight: 620; color: #fff; }
.smartscreen .aw-skel { background: rgba(255, 255, 255, 0.28); }
.smartscreen__link { display: inline-flex; align-items: center; justify-self: start; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 0.2em; color: #fff; }
.smartscreen__buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.smartscreen__btn { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 3px; font-size: 0.84rem; color: #fff; }
.smartscreen__btn--go { background: rgba(255, 255, 255, 0.14); }

/* ---------- Cards (the two parts) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.25s var(--ease), transform 0.3s var(--ease-out); }
.card:hover { box-shadow: var(--shadow-2); }
.card__media.illus { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 320px; }
.card__media .ring { max-width: 250px; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }
.card__kicker { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.card__title { font-size: 1.4rem; }
.card__text { color: var(--ink-3); }
.card .checklist { margin-top: 6px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } .card__media.illus { min-height: 0; } }

.checklist { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.checklist .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.checklist .checklist__caution .icon { color: var(--amber-ink); }
.section--night .checklist .icon { color: #7cc0ff; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; }
.step__media {
  position: relative; aspect-ratio: 5 / 4; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #f7f9fb, #e6ebf1); border: 1px solid var(--line);
}
.step__media--icon {
  display: grid; place-items: center; color: var(--blue);
  background-color: #fff;
  background-image: linear-gradient(to right, rgba(11, 92, 229, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 92, 229, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.step__media--icon .icon { width: 30%; height: auto; stroke-width: 1.1; }
.step__media--time { display: grid; place-content: center; gap: 8px; text-align: center; background: var(--night); border-color: var(--night); }
.step__time { font-family: var(--font-display); font-stretch: 106%; font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3.1rem); font-weight: 660; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.step__zone { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7cc0ff; }
.step__rule { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.step__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); font-weight: 500; }
.step__rule::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
.step:last-child .step__rule::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.step__title { font-size: 1.2rem; }
.step__text { margin-top: 8px; color: var(--ink-3); font-size: var(--fs-small); line-height: 1.55; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 760px) { .steps, .steps--3 { grid-template-columns: 1fr; row-gap: 40px; } .step__media { aspect-ratio: 16 / 9; } }

/* ---------- Stories (copy beside an illustration) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 6vw, 96px); scroll-margin-top: calc(var(--header-h) + 64px); }
.story + .story { margin-top: clamp(80px, 10vw, 140px); }
.story--flip .story__copy { order: 2; }
.story__copy { max-width: 520px; }
.story__copy > .tag { margin-bottom: 16px; }
.story__title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.story__text { margin-top: 18px; color: var(--ink-3); font-size: 1.08rem; line-height: 1.6; }
.story__benefit {
  margin-top: 22px; padding: 14px 16px; border-left: 2px solid var(--blue); background: var(--blue-50);
  border-radius: 0 8px 8px 0; color: var(--ink); font-weight: 520; font-size: 0.98rem;
}
.story .notice { margin-top: 22px; }
.story__media { margin: 0; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story--flip .story__copy { order: 0; }
}

/* sticky in-page navigation */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 7px; white-space: nowrap; font-size: 0.92rem; font-weight: 560; color: var(--ink-2); text-decoration: none; }
.subnav a:hover { background: var(--paper-2); color: var(--ink); }

/* dashboard: the app window with a numbered legend */
.dash { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.legend { list-style: none; display: grid; gap: 24px; }
.legend__item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.legend__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #2b1800; font: 600 0.82rem var(--font-mono); }
.legend__title { font-size: 1.05rem; }
.legend__text { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
@media (max-width: 960px) { .dash { grid-template-columns: minmax(0, 1fr); } .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .legend { grid-template-columns: 1fr; } }

/* alerts beside the safety principles */
.alerts { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.alerts__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.alerts__text { margin-top: 12px; color: var(--ink-3); max-width: 34rem; }
@media (max-width: 860px) { .alerts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--night-line); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; font-size: 0.98rem; }
.compare th, .compare td { padding: 18px 22px; border-bottom: 1px solid var(--night-line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-stretch: 106%; font-weight: 620; color: #fff; font-size: 1.05rem; background: var(--night-2); }
.compare thead th:first-child { width: 30%; }
.compare tbody th { color: var(--on-night-2); font-weight: 520; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.compare td { color: var(--on-night-2); }
.compare .is-vrot { background: rgba(11, 92, 229, 0.12); color: #e9f1ff; }
.compare thead .is-vrot { background: #0f2a5e; }
.compare thead .is-vrot small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; font-weight: 500; color: #8cc8ff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare-note { margin-top: 16px; font-size: var(--fs-small); color: var(--on-night-2); }
/* narrow screens: one card per row instead of a table that scrolls sideways */
@media (max-width: 860px) {
  .compare-wrap { overflow: visible; border: 0; border-radius: 0; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare tbody { display: grid; gap: 14px; }
  .compare tbody tr { border: 1px solid var(--night-line); border-radius: 14px; background: var(--night-2); overflow: hidden; }
  .compare tbody tr th { padding: 14px 18px; border-bottom: 1px solid var(--night-line); color: #fff; }
  .compare td { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 14px; padding: 13px 18px; }
  .compare td::before { content: attr(data-label); color: #8592ad; font-size: 0.86rem; }
  .compare td.is-vrot { background: rgba(11, 92, 229, 0.18); color: #fff; font-weight: 520; }
  .compare td.is-vrot::before { color: #8cc8ff; font-weight: 600; }
  .compare tbody tr td:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .compare td { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Principles and values ---------- */
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 28px 28px 8px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); }
.section--night .principle__num { color: #7cc0ff; }
.principle__title { margin-top: 14px; font-size: 1.15rem; }
.principle__text { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.55; }
@media (max-width: 960px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding-left: 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
}

.values { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(2n) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.25rem; }
.value p { margin-top: 10px; color: var(--ink-3); }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(2n) { padding: 28px 0; border-left: 0; }
}

.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scope__col { padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.scope__col h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.scope__col h3 .icon { color: var(--blue); }
.scope__col ul { list-style: none; display: grid; gap: 10px; margin-top: 16px; color: var(--ink-3); }
.scope__col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.scope__col li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }
.scope__col--muted h3 .icon, .scope__col--muted li .icon { color: var(--ink-3); }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }

/* ---------- Results: stats, bars and table ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.stat__num { display: block; margin-top: 12px; font-family: var(--font-display); font-stretch: 106%; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 660; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 10px; font-size: var(--fs-small); color: var(--ink-3); }
.stats__note { margin-top: 24px; max-width: 70ch; color: var(--ink-3); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

.bars { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.bars__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.bars__title { font-size: 1.1rem; margin-bottom: 18px; }
.bars__list { list-style: none; display: grid; gap: 16px; }
.bars__row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; grid-template-areas: "name name" "track value"; gap: 6px 12px; align-items: center; }
.bars__name { grid-area: name; font-size: var(--fs-small); color: var(--ink-2); }
.bars__track { grid-area: track; height: 14px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.bars__fill { display: block; width: var(--w); height: 100%; border-radius: 0 4px 4px 0; transform-origin: 0 50%; }
.bars__fill--a { background: var(--blue); }
.bars__fill--b { background: #5d9cf5; }
.bars__fill--c { background: var(--ink-3); }
.bars__value { grid-area: value; font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.bars .illus__cap { margin-top: 24px; }
@media (max-width: 760px) { .bars__groups { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { margin-top: 24px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.data-table th, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table td { font-family: var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .data-table th, .data-table td { padding: 12px 10px; font-size: 0.86rem; } }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin-inline: auto; }
.tiers--compact { margin-inline: 0; }
.tier { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.5vw, 40px); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: box-shadow 0.25s var(--ease), transform 0.3s var(--ease-out); }
.tier--pro { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 92, 229, 0.08), var(--shadow-2); }
.tier__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.4rem; }
.tier__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink-3); font-size: var(--fs-small); }
.tier__price b { font-family: var(--font-display); font-stretch: 106%; font-size: clamp(2.3rem, 1.9rem + 1.4vw, 3.1rem); font-weight: 660; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.tier__text { color: var(--ink-3); }
.tier .checklist { margin: 4px 0 10px; }
.tier .btn { margin-top: auto; }
.tier .btn:not(.btn--block) { align-self: flex-start; }
.tier__fine { font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 760px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__inner { position: relative; padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 88px); max-width: calc(880px + 2 * var(--gutter)); margin-inline: 0; }
.page-hero .status-chip { margin-bottom: var(--s-6); }
.page-hero__title { font-size: var(--fs-h1); font-weight: 670; font-stretch: 110%; letter-spacing: -0.025em; }
.page-hero__lead { margin-top: var(--s-5); max-width: 42rem; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-3); }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero .notice { margin-top: 24px; max-width: 46rem; }
.page-hero .article-meta { margin-top: 18px; }
.page-hero__inner > .eyebrow { display: flex; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 10px;
  background: var(--amber-soft); border: 1px solid #f3d29c; color: #5c3a00; font-size: var(--fs-small); line-height: 1.55;
}
.notice > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--amber-ink); }
.notice strong { color: #3d2600; }
.notice--info { background: var(--blue-50); border-color: var(--blue-100); color: #10306b; }
.notice--info > .icon { color: var(--blue); }
.notice--info strong { color: #0a2150; }
.notice--ok { background: #e3f5ec; border-color: #b5e2cb; color: #0b4d36; }
.notice--ok > .icon { color: var(--ok); }
.notice--ok strong { color: #073826; }
.notice:focus { outline: none; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-stretch: 104%; font-weight: 620; font-size: 1.12rem; color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: 4px; }
.faq__icon { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: var(--ink); transition: transform 0.2s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 48px 24px 0; color: var(--ink-3); max-width: 72ch; }
.faq__a p + p { margin-top: 10px; }
.faq-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night-2); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(140, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band__art { position: absolute; right: -2%; top: 14%; bottom: 14%; z-index: -1; display: flex; align-items: center; opacity: 0.16; pointer-events: none; }
.cta-band__mark { width: auto; height: 100%; max-height: 440px; }
.cta-band__inner { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.cta-band__copy { max-width: 600px; }
.cta-band__title { color: #fff; font-size: var(--fs-h2); }
.cta-band__text { margin: 18px 0 32px; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.55; }
@media (max-width: 760px) { .cta-band__art { opacity: 0.08; right: -24%; } }

/* ---------- Contact, quotes, 404 ---------- */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.contact-card__title { font-size: 1.3rem; }
.contact-card p { color: var(--ink-3); margin-top: 6px; }
.big-quote { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; }
.not-found { padding-block: clamp(80px, 12vw, 160px); }
.not-found__code { font-family: var(--font-mono); color: var(--amber-ink); font-size: 0.9rem; }
.not-found__links { margin-top: 28px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 70ch; font-size: 1.075rem; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--ink-3); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.legal-prose h2 { font-size: 1.35rem; }

/* ---------- Forms ---------- */
.form-section { padding-top: clamp(48px, 6vw, 88px); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-layout--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .form-layout, .form-layout--even { grid-template-columns: 1fr; } }
.form-aside .status-chip { margin-bottom: 24px; }
.form-aside__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.form-aside .lead { margin-top: 18px; }
.form-aside__contact { margin-top: 32px; font-size: var(--fs-small); color: var(--ink-3); }
.next-steps { list-style: none; display: grid; gap: 22px; margin-top: 32px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; counter-increment: ns; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); font: 500 0.78rem var(--font-mono); color: var(--blue); background: var(--paper); }
.next-steps h2, .next-steps h3 { font-size: 1.05rem; }
.next-steps p { margin-top: 4px; font-size: var(--fs-small); color: var(--ink-3); }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; align-content: start; }
.field__label { font-weight: 620; color: var(--ink); font-size: 0.95rem; }
.field__hint { font-size: 0.86rem; color: var(--ink-3); }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 92, 229, 0.18); }
.input::placeholder { color: #8a94a8; }
.field.has-error .input { border-color: var(--err); }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 84px; }
.input-group__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  color: var(--blue); font-size: 0.9rem; font-weight: 600;
}
.input-group__btn:hover { background: var(--paper-2); }
.input-group__btn:focus-visible { outline: none; box-shadow: var(--ring); }
.field__error { display: none; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--err); font-weight: 520; }
.field__error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font-size: 0.7rem; font-weight: 700; flex: none; }
.field.has-error .field__error { display: flex; }
.form__privacy { font-size: 0.86rem; color: var(--ink-3); }
.form__link { margin-top: -8px; font-size: var(--fs-small); }
.form-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; line-height: 1.5; }
.form-alert[hidden] { display: none; }
.form-alert:focus { outline: none; }
.form-alert--error { background: var(--err-soft); border: 1px solid #f5c2bc; color: #6b1d14; }
.form-alert--error strong { color: #4a130d; }
.form-alert a { color: inherit; font-weight: 600; }
.form-success { text-align: left; }
.form-success__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #e3f5ec; color: var(--ok); }
.form-success__icon .icon { width: 26px; height: 26px; }
.form-success h2 { margin-top: 20px; font-size: 1.7rem; }
.form-success h2:focus { outline: none; }
.form-success p { margin-top: 12px; color: var(--ink-3); }
.form-success .btn-row { margin-top: 24px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; flex: none; }
.spinner--dark { border-color: rgba(11, 21, 48, 0.15); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Download page ---------- */
.download-side { min-width: 0; }
.req__title { font-size: 1.2rem; }
.side-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.side-list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); font-size: var(--fs-small); }
.side-list li span:first-child { color: var(--ink); font-weight: 600; }
.side-list li span:last-child { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); text-align: right; }

/* ---------- Account page ---------- */
.account-section { padding-top: clamp(40px, 5vw, 72px); min-height: 70vh; }
.account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.account__title { font-size: var(--fs-h2); }
.account__email { margin-top: 10px; font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink-3); word-break: break-all; }
.account__state { display: flex; align-items: center; gap: 12px; padding: 28px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-3); }
.account__body { display: grid; gap: 20px; }
.account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.acct-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.acct-card [data-plan-free], .acct-card [data-plan-pro] { display: flex; flex-direction: column; gap: 14px; }
.acct-card--computers { grid-column: 1 / -1; }
.acct-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-card__title { font-size: 1.25rem; }
.acct-card__text { color: var(--ink-3); }
.acct-card__fine { font-size: var(--fs-xs); color: var(--ink-3); }
.acct-card__count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); }
.acct-card .btn { align-self: flex-start; }
.key-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--paper-2); border: 1px dashed var(--line-2); }
.key-box__code { flex: 1; min-width: 0; max-height: 7.5em; overflow-y: auto; font-size: 0.88rem; font-weight: 500; line-height: 1.5; color: var(--ink); word-break: break-all; }
.key-box .btn { flex: none; }
.machines { list-style: none; display: grid; border-top: 1px solid var(--line); }
.machines:empty { display: none; }
.machine { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.machine__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-50); color: var(--blue); }
.machine__name { display: block; font-weight: 620; color: var(--ink); overflow-wrap: anywhere; }
.machine__meta { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.account__help { font-size: var(--fs-small); color: var(--ink-3); }
@media (max-width: 760px) {
  .account__grid { grid-template-columns: minmax(0, 1fr); }
  .machine { grid-template-columns: 40px minmax(0, 1fr); }
  .machine .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); font-size: var(--fs-small); }
.site-footer a { color: var(--on-night-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 64px; padding-block: 72px 56px; }
.site-footer__brand { display: grid; align-content: start; justify-items: start; gap: 18px; }
.site-footer__pitch { max-width: 34ch; line-height: 1.6; }
.site-footer__status { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__heading { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; font-stretch: 100%; margin-bottom: 16px; }
.site-footer__col ul { list-style: none; display: grid; gap: 11px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-block: 24px 40px; border-top: 1px solid var(--night-line); }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__fine { flex-basis: 100%; font-size: var(--fs-xs); color: #8391aa; max-width: 90ch; }
.site-footer .btn--light { color: var(--night); text-decoration: none; }
.site-footer .btn--light:hover { color: var(--night); text-decoration: none; }
@media (max-width: 960px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}

/* ---------- Scrollbars on anything that scrolls: thin and in the site's colours ---------- */
.table-wrap, .compare-wrap, .key-box__code { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.table-wrap::-webkit-scrollbar, .compare-wrap::-webkit-scrollbar, .key-box__code::-webkit-scrollbar { width: 6px; height: 6px; }
.table-wrap::-webkit-scrollbar-track, .compare-wrap::-webkit-scrollbar-track, .key-box__code::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb, .compare-wrap::-webkit-scrollbar-thumb, .key-box__code::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.section--night .compare-wrap { scrollbar-color: var(--night-line) transparent; }
.section--night .compare-wrap::-webkit-scrollbar-thumb { background: var(--night-line); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .skip-link, .subnav { display: none !important; }
  body { color: #000; }
}

/* ---------- Motion ---------- */
/* Everything here is extra. With reduced motion or without JavaScript the page is complete and still. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-reveal-delay="1"] { transition-delay: 0.08s; }
  .js [data-reveal-delay="2"] { transition-delay: 0.16s; }
  .js [data-reveal-delay="3"] { transition-delay: 0.24s; }

  /* page entrance: hero copy rises in, one line after another */
  .js .hero__copy > *, .js .page-hero__inner > *, .js .form-aside > *, .js .form-card, .js .account__head { animation: rise 0.9s var(--ease-out) both; }
  .js .hero__copy > :nth-child(2), .js .page-hero__inner > :nth-child(2), .js .form-aside > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero__copy > :nth-child(3), .js .page-hero__inner > :nth-child(3), .js .form-aside > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero__copy > :nth-child(4), .js .page-hero__inner > :nth-child(4), .js .form-aside > :nth-child(4) { animation-delay: 0.24s; }
  .js .hero__copy > :nth-child(n+5), .js .page-hero__inner > :nth-child(n+5), .js .form-aside > :nth-child(n+5) { animation-delay: 0.32s; }
  .js .form-card { animation-delay: 0.2s; }
  .js .hero__media { animation: rise 1.1s 0.25s var(--ease-out) both; }
  .js .hero-values li { animation: rise 0.9s var(--ease-out) both; }
  .js .hero-values li:nth-child(1) { animation-delay: 0.45s; }
  .js .hero-values li:nth-child(2) { animation-delay: 0.55s; }
  .js .hero-values li:nth-child(3) { animation-delay: 0.65s; }
  .js .hero__title span {
    background: linear-gradient(100deg, #6fbcff 0%, #6fbcff 40%, #e2f2ff 50%, #6fbcff 60%, #6fbcff 100%) 100% 0 / 260% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: sheen 2.4s 1s var(--ease) both;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

  /* the call-to-action mark drifts a little slower than the page (main.js moves it) */
  .has-parallax .cta-band__art { will-change: transform; }

  /* small rules draw themselves */
  .js [data-reveal] .eyebrow::before { width: 0; transition: width 0.7s 0.2s var(--ease-out); }
  .js [data-reveal].is-visible .eyebrow::before { width: 18px; }
  .js .step[data-reveal] .step__rule::after { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s 0.35s var(--ease-out); }
  .js .step[data-reveal].is-visible .step__rule::after { transform: none; }
  .js .step[data-reveal] .step__media--icon .icon { transform: rotate(-12deg) scale(0.85); opacity: 0; transition: transform 1.1s 0.25s var(--ease-spring), opacity 0.6s 0.25s var(--ease-out); }
  .js .step[data-reveal].is-visible .step__media--icon .icon { transform: none; opacity: 1; }

  /* lists arrive one item at a time */
  .js [data-reveal] .checklist li, .js [data-reveal] .toast, .js [data-reveal] .legend__item {
    opacity: 0; transform: translateX(-10px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .js [data-reveal].is-visible .checklist li, .js [data-reveal].is-visible .toast, .js [data-reveal].is-visible .legend__item { opacity: 1; transform: none; }
  .js [data-reveal].is-visible :is(.checklist li, .toast, .legend__item):nth-child(2) { transition-delay: 0.1s; }
  .js [data-reveal].is-visible :is(.checklist li, .toast, .legend__item):nth-child(3) { transition-delay: 0.2s; }
  .js [data-reveal].is-visible :is(.checklist li, .toast, .legend__item):nth-child(4) { transition-delay: 0.3s; }
  .js [data-reveal].is-visible :is(.checklist li, .toast, .legend__item):nth-child(n+5) { transition-delay: 0.4s; }

  /* result bars grow from zero */
  .js [data-reveal] .bars__fill { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
  .js [data-reveal].is-visible .bars__fill { transform: none; }
  .js [data-reveal].is-visible .bars__row:nth-child(2) .bars__fill { transition-delay: 0.12s; }
  .js [data-reveal].is-visible .bars__row:nth-child(3) .bars__fill { transition-delay: 0.24s; }

  /* illustrations draw in the first time they're on screen (main.js adds is-drawn) */
  .js [data-draw] .ch-line, .js [data-draw] .aw-line, .js [data-draw] .ring__crypto { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); }
  .js [data-draw].is-drawn .ch-line, .js [data-draw].is-drawn .aw-line, .js [data-draw].is-drawn .ring__crypto { stroke-dashoffset: 0; }
  .js [data-draw] .ch-slow { transition-delay: 0.15s; }
  .js [data-draw] .ch-fast { transition-delay: 0.3s; }
  .js [data-draw] .aw-area, .js [data-draw] .aw-bench { opacity: 0; transition: opacity 1s 0.9s var(--ease-out); }
  .js [data-draw].is-drawn .aw-area, .js [data-draw].is-drawn .aw-bench { opacity: 1; }
  .js [data-draw] .ch-signal, .js [data-draw] .ring__open { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s var(--ease-out), transform 0.55s var(--ease-spring); transition-delay: calc(1.3s + var(--i, 0) * 0.3s); }
  .js [data-draw].is-drawn .ch-signal, .js [data-draw].is-drawn .ring__open { opacity: 1; transform: none; }

  /* the 24/7 ring: a dot goes round it slowly, once a minute */
  .js .ring__sweep { display: block; animation: orbit 60s linear infinite; }
  @keyframes orbit { to { transform: rotate(360deg); } }

  /* the status dot breathes */
  .status-dot::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--amber);
    animation: ping 2.6s var(--ease-out) infinite;
  }
  @keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 70%, 100% { transform: scale(2.3); opacity: 0; } }

  /* buttons lift and catch the light */
  .btn--primary { position: relative; overflow: hidden; isolation: isolate; }
  .btn--primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%); transition: transform 0.75s var(--ease-out);
  }
  .btn--primary:hover::after { transform: translateX(120%); }
  .btn--primary:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 4px rgba(11, 60, 160, 0.3), 0 12px 24px -10px rgba(11, 92, 229, 0.65);
  }
  .btn--primary:active { transform: translateY(1px); }

  /* cards lift a little on hover */
  .card:hover, .tier:hover { transform: translateY(-3px); }

  /* answers slide open */
  .faq__item[open] .faq__a { animation: drop 0.4s var(--ease-out); }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Page changes: a short crossfade instead of a blank flash (Chrome, Edge, Safari) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: ease; }
}

/* What's new page */
.release { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.release:first-child { padding-top: 0; }
.release__title { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 var(--s-2); }
.release__date { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; margin-left: var(--s-2); }
.release ul { margin: 0; padding-left: 1.2em; }
.release li { margin: 4px 0; }

/* Comparison against other kinds of tools */
.versus { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.versus th, .versus td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.versus thead th { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.versus td.is-vrot, .versus th.is-vrot { background: var(--blue-50); font-weight: 600; }
@media (max-width: 720px) {
  .versus thead { display: none; }
  .versus tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .versus td, .versus th { display: block; border: 0; padding: 4px 0; }
  .versus td::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 500; }
}

.table-scroll { overflow-x: auto; }

/* Account: your bot and invites (1.7.0) */
.bot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 10px; }
.bot-stats dt { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.bot-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 650; }
.bot-stats dd.up { color: var(--ok); }
.bot-stats dd.down { color: var(--err); }
.bot-chart { width: 100%; height: 70px; display: block; margin: 4px 0 10px; }
.bot-positions { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; font-size: var(--fs-small); }
.bot-positions li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 4px 0; }
.bot-public { display: flex; gap: 8px; align-items: center; font-size: var(--fs-small); color: var(--ink-2); margin-top: 8px; }

/* Results: live record (1.7.0) */
.live-record { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); background: var(--paper); }
.live-record__chart { width: 100%; height: 220px; display: block; }
.live-record__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-4) 0 0; }
.live-record__stats dt { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.live-record__stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 650; }
