/* =========================================================================
   chartTrigger — public site
   Same instrument-panel language as the app, in two themes. Every colour is
   a token defined once for dark and once for light; nothing below hard-codes
   a colour except the two brand gradients.
   ========================================================================= */

:root {
  /* One accent family, three hues: ink (blue), mint (green), iris (violet).
     Everything in the palette is derived from these, so a theme swap only
     redefines the surfaces underneath them. */
  --ink: #5b8cff;
  --ink-2: #7ba3ff;
  --mint: #3fd3c0;
  --green: #2fd39a;
  --iris: #a78bfa;
  --amber: #f5b53f;
  --red: #ff6b6b;
  --violet: #a78bfa;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --nav-h: 64px;

  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* The brand gradient, used for headlines, rules and glowing edges. */
  --grad-brand: linear-gradient(100deg, var(--ink-2) 0%, var(--mint) 55%, var(--iris) 100%);
}

/* ---- dark (default): midnight navy, lit from two corners ---- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-1: #0d1220;
  --bg-2: #131a2b;
  --bg-3: #1b2437;
  --border: #212c44;
  --border-strong: #2e3a58;
  --text: #eaf0fb;
  --text-2: #a8b5cf;
  --text-3: #6f7d9b;

  --ink-soft: rgba(91, 140, 255, 0.16);
  --mint-soft: rgba(63, 211, 192, 0.14);
  --iris-soft: rgba(167, 139, 250, 0.16);
  --green-soft: rgba(47, 211, 154, 0.15);
  --amber-soft: rgba(245, 181, 63, 0.15);
  --red-soft: rgba(255, 107, 107, 0.15);

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.38);
  --glow-ink: 0 0 40px -8px rgba(91, 140, 255, 0.55);

  /* Atmosphere: three drifting washes and a dot grid over the base. */
  --aurora-1: rgba(91, 140, 255, 0.42);
  --aurora-2: rgba(63, 211, 192, 0.30);
  --aurora-3: rgba(167, 139, 250, 0.36);
  --dot: rgba(255, 255, 255, 0.05);
  --grain: 0.030;

  --glass: rgba(19, 26, 43, 0.62);
  --glass-line: rgba(255, 255, 255, 0.07);
  --nav-bg: rgba(7, 10, 18, 0.72);
  --grid-line: rgba(255, 255, 255, 0.05);
}

/* ---- light: tinted daylight, never flat white ---- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f5fc;
  --bg-1: #ffffff;
  --bg-2: #eef2fb;
  --bg-3: #e3eaf7;
  --border: #dae2f2;
  --border-strong: #c2cee6;
  --text: #0c1425;
  --text-2: #46536e;
  --text-3: #71809e;

  --ink: #2f63e8;
  --ink-2: #1d4fd4;
  --mint: #0f9f8c;
  --green: #0f9f72;
  --iris: #7c53e8;
  --amber: #b57a05;
  --red: #d64545;

  --ink-soft: rgba(47, 99, 232, 0.10);
  --mint-soft: rgba(15, 159, 140, 0.12);
  --iris-soft: rgba(124, 83, 232, 0.10);
  --green-soft: rgba(15, 159, 114, 0.12);
  --amber-soft: rgba(181, 122, 5, 0.12);
  --red-soft: rgba(214, 69, 69, 0.10);

  --shadow: 0 22px 50px rgba(18, 30, 60, 0.12);
  --shadow-sm: 0 6px 20px rgba(18, 30, 60, 0.08);
  --glow-ink: 0 0 36px -10px rgba(47, 99, 232, 0.45);

  --aurora-1: rgba(47, 99, 232, 0.26);
  --aurora-2: rgba(15, 159, 140, 0.20);
  --aurora-3: rgba(124, 83, 232, 0.22);
  --dot: rgba(12, 20, 37, 0.07);
  --grain: 0.018;

  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.9);
  --nav-bg: rgba(242, 245, 252, 0.78);
  --grid-line: rgba(16, 24, 42, 0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 650; }
h3 { font-size: 1.06rem; font-weight: 620; letter-spacing: -0.01em; }
h4 { font-size: 0.78rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
p { margin: 0 0 1rem; color: var(--text-2); }
a { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ink); }
b, strong { color: var(--text); font-weight: 620; }
.mono, code, kbd { font-family: var(--mono); font-size: 0.86em; }
kbd {
  background: var(--bg-3); border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; font-size: 0.78em; color: var(--text-2);
}
.muted { color: var(--text-3); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); transition: top 0.2s;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 40px); max-width: var(--wrap); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }

/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
/* The real mark, as SVG: one definition here re-skins every page that uses
   .brand-mark — the landing page, the blog and the legal documents. */
.brand-mark {
  width: 28px; height: 28px; flex: none;
  background: url("/assets/logo.svg") center / contain no-repeat;
}
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-name b { color: var(--ink-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 9px 16px; font: inherit; font-size: 0.92rem; font-weight: 550;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s, color 0.15s;
}
.btn:hover { border-color: var(--ink); background: var(--bg-3); color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  border-color: transparent; color: #fff;
  box-shadow: var(--glow-ink), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; box-shadow: 0 10px 24px -8px var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: transparent; }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 11px; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--text-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); border-color: var(--border); }

.linkish {
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.82rem;
  color: var(--text-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--text-2); }

/* theme icons swap with the theme */
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: none; }

/* =========================================================================
   nav
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 12px; height: var(--nav-h); }
.nav-links { display: flex; align-items: center; gap: 0; margin-left: 6px; flex: 1; min-width: 0; }
.nav-links a {
  color: var(--text-2); font-size: 0.86rem; font-weight: 500; padding: 7px 8px; border-radius: 8px;
  /* A link that runs out of room must never break onto a second line: it
     grows the row's height and drags the whole bar out of shape. Running out
     of room is handled by tightening, then by collapsing to the menu below. */
  white-space: nowrap; flex: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }

.mobile-menu {
  display: flex; flex-direction: column; padding: 8px 20px 16px; gap: 2px;
  border-top: 1px solid var(--border); background: var(--bg-1);
}
/* A class with `display` outranks the user-agent rule for [hidden], so say it
   here or the menu stands open on every desktop. */
[hidden] { display: none !important; }
.mobile-menu a { padding: 11px 6px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

/* =========================================================================
   hero
   ========================================================================= */
.hero { position: relative; padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 720px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 460px at 16% 6%, var(--aurora-1), transparent 68%),
    radial-gradient(820px 440px at 88% 26%, var(--aurora-3), transparent 70%),
    radial-gradient(700px 380px at 60% 96%, var(--aurora-2), transparent 72%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-2); margin: 0 0 14px;
  padding: 4px 11px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--ink-soft);
}
.grad {
  background: linear-gradient(100deg, var(--ink-2), #3fd3c0 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 56ch; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.center-cta { justify-content: center; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-3); }
.tick {
  width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative;
  background: var(--green-soft); border: 1px solid var(--green);
}
.tick::after {
  content: ""; position: absolute; left: 4px; top: 3.5px; width: 5px; height: 8px;
  border: solid var(--green); border-width: 0 1.8px 1.8px 0; transform: rotate(42deg);
}

/* ---- panels (used by hero + demo) ---- */
.panel {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.panel-title { margin-left: 8px; font-size: 0.78rem; color: var(--text-3); font-family: var(--mono); }
.chip {
  margin-left: auto; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 999px;
}
.chip-armed { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }

.hero-chart { margin: 0; }
.hero-svg { display: block; width: 100%; height: auto; background: var(--bg-1); }
.fig-cap { font-size: 0.74rem; color: var(--text-3); margin-top: 10px; text-align: center; }

.hero-svg .grid line { stroke: var(--grid-line); stroke-width: 1; }
.hero-svg .cdl line { stroke-width: 1.4; }
.hero-svg .cdl.up line, .hero-svg .cdl.up rect { stroke: var(--green); fill: var(--green); }
.hero-svg .cdl.dn line, .hero-svg .cdl.dn rect { stroke: var(--red); fill: var(--red); }
.hero-svg .cdl { opacity: 0; animation: cdlIn 0.4s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes cdlIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 0.92; transform: none; } }

.hero-svg .level-line {
  stroke: var(--ink); stroke-width: 2; stroke-dasharray: 660; stroke-dashoffset: 660;
  animation: drawLevel 1s var(--ease) 1.5s forwards;
}
@keyframes drawLevel { to { stroke-dashoffset: 0; } }
.hero-svg .level-tag rect { fill: var(--ink); }
.hero-svg .level-tag text { fill: #fff; font-family: var(--mono); font-size: 10px; font-weight: 600; }
.hero-svg .level-tag, .hero-svg .level-grip { opacity: 0; animation: fadeIn 0.45s ease 2.3s forwards; }
.hero-svg .level-grip { fill: var(--ink); stroke: var(--bg-1); stroke-width: 2; }
@keyframes fadeIn { to { opacity: 1; } }

.hero-svg .fire { opacity: 0; animation: fadeIn 0.3s ease 3.5s forwards; }
.hero-svg .fire-dot { fill: var(--green); }
.hero-svg .fire-ring {
  fill: none; stroke: var(--green); stroke-width: 2; transform-origin: center;
  animation: ping 1.8s ease-out 3.5s infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.hero-svg .fire-tag rect { fill: var(--green); }
.hero-svg .fire-tag text { fill: #04140e; font-family: var(--mono); font-size: 10.5px; font-weight: 700; }

.hero-accounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.acct {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: var(--bg-1);
  font-size: 0.76rem; color: var(--text-3); opacity: 0;
  animation: fadeIn 0.45s ease forwards; animation-delay: calc(3.9s + var(--d));
}
.acct-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 8px var(--green); }
.acct-name { color: var(--text-2); font-weight: 560; }
.acct-state { margin-left: auto; font-family: var(--mono); color: var(--green); }

/* ---- trust strip ---- */
.trust {
  list-style: none; margin: clamp(34px, 5vw, 60px) 0 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  border-top: 1px solid var(--border);
}
.trust li { font-size: 0.9rem; color: var(--text-3); }

/* =========================================================================
   sections
   ========================================================================= */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-1); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center, .center .section-head { margin-inline: auto; }
.section-sub { font-size: 1.03rem; margin-top: 14px; }

/* ---- flow ---- */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 2px;
  background: linear-gradient(90deg, var(--ink), var(--green)); opacity: 0.28; border-radius: 2px;
}
.flow-step {
  position: relative; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.section-alt .flow-step { background: var(--bg); }
.flow-step:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.flow-num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg); position: relative; z-index: 1; margin-bottom: 14px;
}
.flow-icon { width: 26px; height: 26px; color: var(--ink-2); margin-bottom: 10px; }
.flow-icon svg { width: 100%; height: 100%; }
.flow-step h3 { margin-bottom: 7px; }
.flow-step p { font-size: 0.86rem; margin: 0; color: var(--text-3); }
.flow-note { margin-top: 26px; font-size: 0.9rem; color: var(--text-3); max-width: 70ch; }

/* =========================================================================
   demo
   ========================================================================= */
.demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.demo-rail { display: flex; flex-direction: column; gap: 6px; }
.demo-tab {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 13px; cursor: pointer; font: inherit; color: var(--text-2);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.demo-tab:hover { background: var(--bg-2); color: var(--text); }
.demo-tab.is-active { background: var(--ink-soft); border-color: var(--ink); color: var(--text); }
.demo-tab-n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg-3); color: var(--text-3); font-size: 0.72rem; font-weight: 700; margin-top: 1px;
}
.demo-tab.is-active .demo-tab-n { background: var(--ink); color: #fff; }
.demo-tab b { display: block; font-size: 0.9rem; font-weight: 600; }
.demo-tab small { display: block; font-size: 0.76rem; color: var(--text-3); margin-top: 1px; }

.demo-panel { min-height: 430px; }
.demo-screens { position: relative; padding: 20px; }
.screen { display: none; animation: screenIn 0.4s var(--ease); }
.screen.is-active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen-note { font-size: 0.84rem; color: var(--text-3); margin: 16px 0 0; }

.demo-controls { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.demo-progress { flex: 1; height: 3px; background: var(--bg-3); border-radius: 3px; overflow: hidden; margin-left: 6px; }
.demo-progress i { display: block; height: 100%; width: 16.6%; background: var(--ink); border-radius: 3px; transition: width 0.4s var(--ease); }

/* mock UI bits */
.mock-rows { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.mock-row {
  display: grid; grid-template-columns: 1.4fr 1.2fr 0.9fr 0.8fr; gap: 10px;
  padding: 11px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--border); align-items: center;
}
.mock-row:last-child { border-bottom: 0; }
.mock-head { background: var(--bg-2); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 650; }
.pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 650; background: var(--bg-3); color: var(--text-2); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }

.mock-chart { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); padding: 10px; }
.mock-chart svg { display: block; width: 100%; height: 210px; }
.mock-price { fill: none; stroke: var(--ink-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mock-level {
  stroke: var(--ink); stroke-width: 2; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke;
  animation: nudge 3.4s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.mock-tooltip {
  position: absolute; top: 18px; left: 18px; background: var(--ink); color: #fff;
  font-size: 0.72rem; font-family: var(--mono); padding: 4px 9px; border-radius: 6px;
}
.mock-toolbar { display: flex; align-items: center; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.tool { font-size: 0.78rem; padding: 5px 12px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--text-2); }
.tool.is-on { background: var(--ink-soft); border-color: var(--ink); color: var(--ink-2); }
.tool-hint { font-size: 0.78rem; color: var(--text-3); margin-left: auto; }

.wb { display: flex; flex-direction: column; gap: 7px; }
.wb-line {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem;
}
.wb-key {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  color: var(--text-3); width: 40px; flex: none;
}
.wb-val { color: var(--text-2); }
.wb-do { border-color: var(--ink); background: var(--ink-soft); }
.wb-do .wb-key { color: var(--ink-2); }

.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.stat-v { display: block; font-size: 1.45rem; font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-k { display: block; font-size: 0.74rem; color: var(--text-3); margin-top: 3px; }
.mock-assume {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 14px; padding: 11px 14px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--text-3);
}

.bench { display: flex; flex-direction: column; gap: 7px; }
.bench-row {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; font-size: 0.87rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2);
}
.bench-row .mono { margin-left: auto; color: var(--text-3); }
.bench-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bench-row.ok { border-color: var(--green); }
.bench-row.ok .bench-dot { background: var(--green); box-shadow: 0 0 9px var(--green); }
.bench-row.no { border-color: var(--amber); }
.bench-row.no .bench-dot { background: var(--amber); }
.bench-row.no .mono { color: var(--amber); }

.prov { display: flex; flex-direction: column; gap: 14px; }
.prov-head { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--text-3); }
.prov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.prov-grid > div { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.prov-grid .k { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 650; }
.prov-grid .v { display: block; font-size: 0.92rem; font-weight: 600; margin-top: 4px; }
.prov-feed { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--text-2); }
.prov-feed > div { padding: 10px 13px; background: var(--bg-2); border-left: 2px solid var(--green); border-radius: 0 7px 7px 0; }
.ok-t { color: var(--green); font-weight: 600; }
.dim-t { color: var(--text-3); }
.demo-foot { margin-top: 22px; font-size: 0.8rem; color: var(--text-3); }

/* =========================================================================
   features
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.section-alt .card { background: var(--bg); }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 13px;
  background: var(--ink-soft); color: var(--ink-2); border: 1px solid var(--border);
}
.card-ico svg { width: 19px; height: 19px; }
.i-pg, .i-ghost { background: var(--green-soft); color: var(--green); }
.i-brake { background: var(--red-soft); color: var(--red); }
.i-alert, .i-fr { background: var(--amber-soft); color: var(--amber); }
.card h3 { margin-bottom: 7px; }
.card p { font-size: 0.87rem; margin: 0; color: var(--text-3); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
.split-copy {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.section-alt .split-copy { background: var(--bg); }
.split-copy h3 { margin-bottom: 10px; font-size: 1.15rem; }
.split-copy p { font-size: 0.92rem; }
.split-copy p:last-child { margin-bottom: 0; }

/* =========================================================================
   pricing
   ========================================================================= */
.billing-toggle {
  display: inline-flex; gap: 3px; padding: 3px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 999px; margin-bottom: 26px;
}
.bt {
  border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 0.86rem; font-weight: 560;
  padding: 7px 18px; border-radius: 999px; cursor: pointer; transition: background 0.16s, color 0.16s;
}
.bt.is-on { background: var(--ink); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plans-loading { color: var(--text-3); padding: 28px; grid-column: 1 / -1; text-align: center; }
.plan {
  display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.section-alt .plan { background: var(--bg); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.plan.is-featured { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.plan-flag {
  position: absolute; top: -11px; left: 24px; background: var(--ink); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan-name { font-size: 1.1rem; font-weight: 650; }
.plan-desc { font-size: 0.86rem; color: var(--text-3); margin: 6px 0 16px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 0.84rem; color: var(--text-3); }
.plan-alt { font-size: 0.78rem; color: var(--text-3); min-height: 1.4em; margin-bottom: 18px; }
.plan-limits { list-style: none; margin: 0 0 16px; padding: 16px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.plan-limits li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.87rem; color: var(--text-2); }
.plan-limits .tick { margin-top: 3px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-trial { font-size: 0.76rem; color: var(--green); margin-top: 10px; text-align: center; }
.trial-note {
  max-width: 620px; margin: 0 auto 18px; text-align: center; font-size: 0.86rem; line-height: 1.5;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(47, 211, 154, 0.3);
  background: rgba(47, 211, 154, 0.08); color: var(--text-2);
}
.trial-note b { color: var(--green); }

.broker-route {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 26px;
  padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); align-items: center;
}
.broker-copy h3 { margin-bottom: 8px; }
.broker-copy p { font-size: 0.9rem; margin: 0; }
.broker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.broker-list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px; font-size: 0.88rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.broker-list .bl-name { font-weight: 600; }
.broker-list .bl-dep { color: var(--text-3); font-family: var(--mono); font-size: 0.8rem; }
.broker-list .btn { margin-left: auto; }
.pricing-foot { margin-top: 22px; font-size: 0.82rem; color: var(--text-3); }

/* =========================================================================
   faq
   ========================================================================= */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 18px; transition: border-color 0.2s;
}
.section-alt .faq details { background: var(--bg); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 580; font-size: 0.97rem;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px); transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 16px; margin: 0; font-size: 0.91rem; }

/* =========================================================================
   contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.contact-list .tick { margin-top: 3px; }
.contact-email { margin-top: 20px; font-size: 0.88rem; }

.contact-form {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label, .exit-row label {
  display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 560; color: var(--text-2);
}
.opt { font-weight: 400; color: var(--text-3); }
/* Label text and its "optional" note share one line; the column flex on
   the label would otherwise stack them. */
.lbl { display: block; }
input, select, textarea {
  background: var(--bg-1); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; font-size: 0.92rem; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
textarea { resize: vertical; min-height: 110px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.f-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-msg { font-size: 0.85rem; color: var(--text-3); }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.form-fine { font-size: 0.76rem; color: var(--text-3); margin: 0; }

/* =========================================================================
   closing band + footer
   ========================================================================= */
.cta-band { background: linear-gradient(180deg, transparent, var(--ink-soft)); }

.footer { border-top: 1px solid var(--border); padding: clamp(40px, 5vw, 60px) 0 30px; background: var(--bg-1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; margin-bottom: 34px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-grid a { font-size: 0.88rem; color: var(--text-3); }
.footer-grid a:hover { color: var(--ink-2); }
.footer-grid .brand { margin-bottom: 4px; }
.footer-tag { font-size: 0.86rem; color: var(--text-3); max-width: 34ch; margin: 0; }

/* Populated by app.js from the operator's social_links config; stays empty
   (and collapses — see [hidden] in the reset) when none are enabled, so a
   fresh install with nothing configured shows no empty row. */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.footer-social a:hover { background: var(--bg-3); color: var(--ink-2); border-color: var(--border-strong); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.risk {
  font-size: 0.76rem; line-height: 1.65; color: var(--text-3); padding: 18px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0;
}
.risk strong { color: var(--text-2); }
.copyright { font-size: 0.78rem; color: var(--text-3); margin: 18px 0 0; }

/* =========================================================================
   exit-intent modal
   ========================================================================= */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.62); backdrop-filter: blur(3px); animation: fadeIn 0.22s ease; }
.modal-card {
  position: relative; width: min(520px, 100%); background: var(--bg-1); border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 30px; box-shadow: var(--shadow); animation: popIn 0.3s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; background: transparent; border: 0; color: var(--text-3); cursor: pointer; }
.modal-x:hover { background: var(--bg-2); color: var(--text); }
.modal-eyebrow {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 10px;
}
.modal-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.modal-card > p { font-size: 0.92rem; }
.exit-row { display: flex; gap: 9px; margin-top: 6px; }
.exit-row input { flex: 1; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.modal-alt { font-size: 0.85rem; }

/* =========================================================================
   reveal on scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .demo { grid-template-columns: 1fr; }
  .demo-rail { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .demo-tab { flex: 0 0 210px; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow::before { display: none; }
}
/* The home page's nav carries ten links, and the content column is capped at
   1180px, so it runs out of room long before the page's two-column layouts
   do: it collapses to the menu button while the rest of the page is still
   wide. Scoped to `.nav-dense` because the blog and legal pages carry six
   links and fit comfortably down to 900px like they always did. */
@media (max-width: 1200px) {
  .nav-dense .nav-links { display: none; }
  .nav-dense .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-chart { order: -1; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .split, .contact-grid, .broker-route { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock-stats, .prov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .wrap { width: min(100% - 28px); }
  .flow { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .hero-accounts { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1.2fr 1fr; }
  .mock-row span:nth-child(4) { display: none; }
  .mock-head span:nth-child(4) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .exit-row { flex-direction: column; }
  .demo-panel { min-height: 0; }
}

/* Anyone who has asked for less motion gets the finished state, not the journey. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-svg .cdl, .hero-svg .level-tag, .hero-svg .level-grip, .hero-svg .fire, .acct { opacity: 1; }
  .hero-svg .level-line { stroke-dashoffset: 0; }
}

@media print {
  .nav, .modal, .demo-controls, .hero-glow { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =========================================================================
   legal documents (Terms, Privacy, Refund Policy, Risk Disclosure, Cookies)
   Same design system as the rest of the site, tuned for long-form reading.
   ========================================================================= */
.legal-nav { border-bottom: 1px solid var(--border); }
.legal-nav .nav-inner { justify-content: space-between; }

.legal-page { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.legal-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.legal-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.legal-meta { font-size: 0.84rem; color: var(--text-3); }
.legal-meta b { color: var(--text-2); }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  font-size: 0.85rem; color: var(--text-3); padding: 7px 10px; border-radius: 8px;
  border-left: 2px solid transparent; transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.legal-toc a:hover { color: var(--text); background: var(--bg-2); }
.legal-toc a.is-current { color: var(--ink-2); border-left-color: var(--ink); background: var(--ink-soft); }

.legal-doc { max-width: 74ch; color: var(--text-2); font-size: 0.96rem; }
.legal-doc h2 { font-size: 1.25rem; margin: 2.2em 0 0.6em; padding-top: 0.2em; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1rem; margin: 1.6em 0 0.5em; color: var(--text); }
.legal-doc p, .legal-doc li { color: var(--text-2); }
.legal-doc ul, .legal-doc ol { padding-left: 1.3em; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 6px; }
.legal-doc strong { color: var(--text); }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.legal-callout {
  background: var(--ink-soft); border: 1px solid var(--border-strong); border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; margin: 1.2em 0; font-size: 0.9rem;
}
.legal-callout.warn { background: var(--red-soft); border-left-color: var(--red); }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.88rem; }
.legal-doc th, .legal-doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-doc th { color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.legal-doc hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

.legal-crosslinks {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 2.4em 0 0; padding-top: 20px; border-top: 1px solid var(--border);
}
.legal-crosslinks a {
  font-size: 0.82rem; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2);
}
.legal-crosslinks a:hover { border-color: var(--ink); color: var(--ink-2); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
  .legal-toc a { border-left: none; border-bottom: 2px solid transparent; }
  .legal-toc a.is-current { border-left-color: transparent; border-bottom-color: var(--ink); }
}

/* =========================================================================
   ATMOSPHERE
   A lit room rather than a flat sheet: three slow aurora washes, a dot grid
   that fades toward the edges, and a whisper of grain so large dark areas do
   not band on cheap panels. All decorative, behind everything, no pointer
   events.
   ========================================================================= */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

/* The washes. Each blob drifts on its own cycle so the pattern never
   visibly repeats. */
body::before {
  background:
    radial-gradient(58vw 48vw at 12% -8%, var(--aurora-1), transparent 62%),
    radial-gradient(52vw 44vw at 92% 6%, var(--aurora-3), transparent 60%),
    radial-gradient(60vw 50vw at 68% 96%, var(--aurora-2), transparent 64%);
  animation: drift 34s ease-in-out infinite alternate;
}

/* The grid, masked so it fades out rather than stopping at an edge. */
body::after {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0.85;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.02); }
}

/* Grain, applied once to the page rather than to every surface. */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* =========================================================================
   SURFACES
   ========================================================================= */
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-line);
}

/* A 1px gradient border, drawn with a mask so it works on any background. */
.edge-lit { position: relative; }
.edge-lit::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); opacity: 0.36;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; transition: opacity 0.25s;
}
.edge-lit:hover::before { opacity: 0.75; }

/* Cursor spotlight. --mx/--my are set in app.js. */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--ink-soft), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.spot:hover::after { opacity: 1; }

/* =========================================================================
   HERO EXTRAS
   ========================================================================= */
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 560;
  color: var(--text-2); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green);
  animation: ping-out 2s ease-out infinite;
}
@keyframes ping-out {
  0% { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}
.live-pill b { color: var(--text); font-weight: 620; }

/* The headline gradient, animated so the light travels across it. */
.grad {
  background: linear-gradient(100deg, var(--ink-2), var(--mint) 42%, var(--iris) 72%, var(--ink-2));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* The symbol strip: what the engine is watching, never what it is worth. */
.ticker {
  margin-top: 26px; padding: 10px 0; overflow: hidden; position: relative;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 10px; width: max-content; animation: slide 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tick-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border); font-size: 0.78rem; color: var(--text-2);
  white-space: nowrap;
}
.tick-item .mono { color: var(--text-3); }
.tick-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; animation: blink 2.4s ease-in-out infinite; }
.tick-item:nth-child(3n) .tick-dot { animation-delay: 0.6s; background: var(--ink); }
.tick-item:nth-child(3n+1) .tick-dot { animation-delay: 1.2s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* =========================================================================
   HOSTED / NO-VPS SECTION
   ========================================================================= */
.hosted-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px); align-items: center;
}
.hosted-fig { margin: 0; }
/* Stacked, the panel goes first: "you don't need a VPS" lands harder when
   the running terminals are the next thing you see, with the detail after. */
@media (max-width: 900px) { .hosted-fig { order: -1; } }
.hosted-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hosted-points li { display: flex; gap: 13px; align-items: flex-start; }
.hosted-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--ink-soft); color: var(--ink-2); border: 1px solid var(--border);
}
.hosted-ico svg { width: 17px; height: 17px; }
.hosted-points b { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.hosted-points span { font-size: 0.87rem; color: var(--text-3); }

/* The "without / with" comparison. */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.vs-card { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border); background: var(--bg-1); }
.section-alt .vs-card { background: var(--bg); }
.vs-card h4 { margin-bottom: 12px; }
.vs-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.vs-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); }
.vs-old { opacity: 0.85; }
.vs-old h4 { color: var(--red); }
.vs-new { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-soft); }
.vs-new h4 { color: var(--mint); }
.vs-mark { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.vs-old .vs-mark { color: var(--red); }
.vs-new .vs-mark { color: var(--mint); }

/* The rack: one row per berth, each with its own heartbeat. */
.rack { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.rack-head { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-3); }
.rack-head .mono { margin-left: auto; }
.rack-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.rack-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--mint); opacity: 0.85;
}
.rack-row.is-restarting::before { background: var(--amber); }
.rack-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--bg-3); color: var(--text-3); }
.rack-ico svg { width: 14px; height: 14px; }
.rack-name { font-size: 0.86rem; font-weight: 560; }
.rack-sub { font-size: 0.74rem; color: var(--text-3); font-family: var(--mono); }
.rack-state { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-family: var(--mono); color: var(--mint); }
.rack-row.is-restarting .rack-state { color: var(--amber); }

/* A heartbeat line that sweeps, so the panel reads as alive. */
.beat { width: 46px; height: 16px; overflow: hidden; }
.beat svg { width: 100%; height: 100%; }
.beat path {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-dasharray: 46 46; animation: beat 2.6s linear infinite;
}
@keyframes beat { from { stroke-dashoffset: 46; } to { stroke-dashoffset: -46; } }

.rack-foot {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 4px;
  border-radius: var(--radius-sm); background: var(--mint-soft); border: 1px solid var(--mint);
  font-size: 0.8rem; color: var(--text-2);
}
.rack-foot b { color: var(--text); }
.rack-foot svg { width: 16px; height: 16px; flex: none; color: var(--mint); }

/* =========================================================================
   PLATFORM ANNOUNCEMENT (cTrader launch)
   A self-contained banner, not a card in the feature grid: it earns a
   different visual weight because it is new information, not a permanent
   feature description.
   ========================================================================= */
.nav-new {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 650; color: var(--iris);
  background: var(--iris-soft); border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.nav-new:hover { transform: translateY(-1px); border-color: var(--iris); }
.nav-new .new-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--iris); flex: none; }

.announce {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg, var(--radius));
  padding: 28px 28px 26px; margin: 0 0 8px;
  background:
    radial-gradient(520px circle at 14% -10%, var(--iris-soft), transparent 60%),
    radial-gradient(420px circle at 100% 110%, var(--mint-soft), transparent 55%),
    var(--bg-1);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
}
.announce-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: #1a1030; background: var(--iris);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex: none;
}
.announce-badge svg { width: 12px; height: 12px; }
.announce-body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.announce-body p { margin: 0; color: var(--text-3); font-size: 0.9rem; max-width: 62ch; }
.announce-platforms {
  display: flex; align-items: center; gap: 10px; flex: none;
}
.announce-plat {
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.66rem;
  font-weight: 650; color: var(--text-2); text-align: center;
}
.announce-plat span.mark {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border);
}
.announce-plat.is-new span.mark { border-color: var(--iris); box-shadow: 0 0 0 3px var(--iris-soft); }
.announce-plus { color: var(--text-3); font-weight: 700; }
.announce-cta { flex: none; }
@media (max-width: 860px) {
  .announce { grid-template-columns: 1fr; text-align: left; }
  .announce-platforms { order: 2; }
  .announce-cta { order: 3; }
}

/* =========================================================================
   BENTO FEATURE GRID
   Uneven cells, so the eye has somewhere to land instead of twelve
   identical boxes.
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 3; }
.bento-card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.section-alt .bento-card { background: var(--bg); }
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.bento-card h3 { margin-bottom: 7px; }
.bento-card p { font-size: 0.87rem; margin: 0; color: var(--text-3); }
.bento-tag {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); background: var(--ink-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 11px;
}
.bento-tag.t-mint { color: var(--mint); background: var(--mint-soft); }
.bento-tag.t-iris { color: var(--iris); background: var(--iris-soft); }
.bento-tag.t-amber { color: var(--amber); background: var(--amber-soft); }

/* =========================================================================
   SECTION FURNITURE
   ========================================================================= */
.eyebrow { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(8px); }
.section-alt {
  background: color-mix(in srgb, var(--bg-1) 76%, transparent);
  backdrop-filter: blur(6px);
  position: relative;
}
/* A lit hairline at the top edge of each alternating band. */
.section-alt::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink), var(--mint), transparent);
  opacity: 0.45;
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .b-wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hosted-grid { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .b-wide { grid-column: span 2; }
  body::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .grad, .ticker-track, .beat path, .live-dot::after, .tick-dot { animation: none !important; }
  .grad { background-position: 0 50%; }
}

/* =========================================================================
   The free route
   It has to look like the best deal on the page without looking like a
   trick, so: one warm accent, real numbers, and the honest sentence about
   who pays whom sitting right next to the button.
   ========================================================================= */

.nav-free {
  color: var(--green) !important;
  position: relative;
}
.nav-free::after {
  content: ""; position: absolute; top: 2px; right: -7px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 211, 154, 0.6);
  animation: freePulse 2.4s ease-out infinite;
}
@keyframes freePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 211, 154, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(47, 211, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 211, 154, 0); }
}

/* ---- hero line ---- */
.hero-free {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 9px 14px 9px 10px; border-radius: 999px;
  border: 1px solid rgba(47, 211, 154, 0.32); background: rgba(47, 211, 154, 0.07);
  font-size: 0.88rem; color: var(--text-2);
}
.hf-tag {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--green); color: #04241a;
}
.hero-free a { font-weight: 600; white-space: nowrap; }

/* ---- the section ---- */
.section-free { position: relative; overflow: hidden; }
.section-free::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(47, 211, 154, 0.13), transparent 62%);
  pointer-events: none;
}
.section-free > .wrap { position: relative; }
.eyebrow-free { color: var(--green) !important; display: inline-flex; align-items: center; gap: 7px; }
.free-spark {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px rgba(47, 211, 154, 0.9);
}
.grad-free {
  background: linear-gradient(100deg, var(--green), #7ef0c6 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.free-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 30px; align-items: start; }

/* ---- the three steps ---- */
.steps-free { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.steps-free li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 0; position: relative; }
.steps-free li + li { border-top: 1px solid var(--border); }
.sf-num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 700; color: var(--green);
  background: rgba(47, 211, 154, 0.12); border: 1px solid rgba(47, 211, 154, 0.35);
}
.steps-free h3 { margin: 0 0 4px; font-size: 0.98rem; }
.steps-free p { margin: 0; font-size: 0.88rem; line-height: 1.55; }

.free-why {
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg);
}
.free-why h3 { margin: 0 0 6px; font-size: 0.92rem; }
.free-why p { margin: 0; font-size: 0.86rem; line-height: 1.6; }

/* ---- the offers ---- */
.free-offers-head {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 10px;
}
.free-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.free-card {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: 16px;
  border: 1px solid rgba(47, 211, 154, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 211, 154, 0.1), transparent 52%),
    var(--bg);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.free-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22); }
.fc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-name { font-size: 1.12rem; font-weight: 650; color: var(--text); }
.fc-badge {
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--green); color: #04241a;
}
.fc-grant { margin: 0; font-size: 0.94rem; font-weight: 600; color: var(--green); }
.fc-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 0; }
.fc-terms div { padding: 9px 11px; border-radius: 10px; background: rgba(127, 154, 196, 0.07); border: 1px solid var(--border); }
.fc-terms dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.fc-terms dd { margin: 0; font-size: 1rem; font-weight: 650; font-family: var(--mono); color: var(--text); }
.fc-zero { color: var(--green) !important; }
.fc-note { margin: 0; font-size: 0.82rem; }
.free-card .btn { width: 100%; margin-top: 2px; }

.free-back {
  margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; font-size: 0.86rem;
  background: rgba(127, 154, 196, 0.06); border: 1px dashed var(--border-strong);
}
.free-back a { font-weight: 600; }
.free-fine { margin: 0; font-size: 0.78rem; line-height: 1.6; color: var(--text-3); }

.broker-route .btn { align-self: center; }

@media (max-width: 860px) {
  .free-grid { grid-template-columns: 1fr; gap: 24px; }
  .fc-terms { grid-template-columns: 1fr; }
}

/* =========================================================================
   The Trigger Line — blog
   Reuses the legal-page prose rhythm (.legal-page/.legal-doc/.legal-toc) and
   adds only what a blog needs on top: the hub hero, the card grid, post
   meta and the in-article callouts.
   ========================================================================= */

.blog-hero { padding: clamp(40px, 7vw, 76px) 0 clamp(20px, 3vw, 30px); text-align: center; }
.blog-hero .eyebrow { justify-content: center; }
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin: 12px 0 14px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p { max-width: 62ch; margin: 0 auto; color: var(--text-2); font-size: clamp(0.98rem, 1.6vw, 1.08rem); }

.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 26px 0 8px; }
.blog-filters button {
  font: inherit; font-size: 0.82rem; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.blog-filters button:hover { color: var(--text); border-color: var(--border-strong); }
.blog-filters button.is-on { color: var(--ink-2); background: var(--ink-soft); border-color: var(--ink); }

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px; padding: 22px 0 clamp(56px, 8vw, 88px);
}
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px;
  border-radius: var(--radius); background: var(--bg-1); border: 1px solid var(--border);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.post-card.is-lead { grid-column: 1 / -1; }
.post-card.is-lead h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.post-tag {
  align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  color: var(--ink-2); background: var(--ink-soft); border: 1px solid transparent;
}
.post-tag[data-tag="Automation"] { color: var(--mint); background: var(--mint-soft); }
.post-tag[data-tag="Alerts"] { color: var(--iris); background: var(--iris-soft); }
.post-tag[data-tag="Testing"] { color: var(--amber); background: var(--amber-soft); }

.post-card h2 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--ink-2); }
.post-card p { margin: 0; font-size: 0.9rem; color: var(--text-2); flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.76rem; color: var(--text-3); }
.post-meta span + span::before { content: "·"; margin-right: 8px; }

/* ---- a post ---- */
.post-crumbs { font-size: 0.8rem; color: var(--text-3); margin-bottom: 14px; }
.post-crumbs a { color: var(--text-3); }
.post-crumbs a:hover { color: var(--ink-2); }
.post-crumbs span { margin: 0 6px; }

.legal-head .post-meta { margin-top: 10px; }

.post-lede { font-size: 1.05rem; line-height: 1.65; color: var(--text) !important; margin-bottom: 1.2em; }

.legal-callout.key { background: var(--mint-soft); border-left-color: var(--mint); }
.legal-callout.key strong { color: var(--text); }
.legal-callout.key ul { margin: 8px 0 0; }

.post-cta {
  margin: 2.4em 0 1em; padding: 24px; border-radius: var(--radius);
  background: var(--bg-1); border: 1px solid var(--border-strong); text-align: center;
}
.post-cta h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--text); }
.post-cta p { margin: 0 auto 16px; max-width: 54ch; font-size: 0.92rem; }
.post-cta .btn { display: inline-flex; }

.post-next { margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--border); }
.post-next h3 { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.post-next ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.post-next a { font-weight: 600; text-decoration: none !important; }

.post-disclaimer {
  margin-top: 2.2em; padding: 14px 16px; border-radius: 12px; font-size: 0.8rem; line-height: 1.6;
  color: var(--text-3); background: rgba(127, 154, 196, 0.06); border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
}


/* ---- AI copilot section ------------------------------------------------ */
.section-ai { background:
  radial-gradient(900px 420px at 12% -10%, rgba(167,139,250,.13), transparent 60%),
  var(--bg-1); }

.ai-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start;
  margin: 26px 0 34px;
}
@media (max-width: 860px) { .ai-demo { grid-template-columns: 1fr; } }

.ai-side { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ai-label {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2);
}
.ai-prompt {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 3px solid var(--iris);
}
.ai-prompt p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }

.ai-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ai-points li { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.ai-points b { color: var(--text); font-weight: 600; }

.ai-code {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border);
  font: 400 13px/1.65 ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}
.ai-code .c { color: #7ba3ff; font-weight: 600; }
.ai-code .o { color: #a78bfa; }
.ai-code .i { color: #2fd39a; }
.ai-code .s { color: #2fd39a; }
.ai-cap { margin: 0; }

.ai-grid {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-card {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.ai-card h3 { margin: 0 0 8px; font-size: 16px; }
.ai-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

.ai-foot {
  margin: 0 0 22px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px dashed var(--border);
  font-size: 14px; line-height: 1.6; color: var(--text-2);
}
.ai-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* The AI line on a plan card. */
.plan-ai {
  display: flex; align-items: center; gap: 7px;
  margin: 2px 0 10px; padding: 7px 10px; border-radius: 9px;
  background: var(--iris-soft); border: 1px solid rgba(167, 139, 250, .3);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.plan-ai .spark { font-size: 13px; line-height: 1; }

/* ---- AI post: code samples and the AI tag ---- */
.legal-doc pre.post-code {
  margin: 1.1em 0 1.4em; padding: 16px 18px; overflow-x: auto; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border); font-size: 0.86rem; line-height: 1.7;
}
.legal-doc pre.post-code code { font-family: var(--mono); color: var(--text); white-space: pre; }
.legal-doc blockquote {
  margin: 1.1em 0 1.3em; padding: 4px 0 4px 16px; border-left: 3px solid var(--ink); color: var(--text);
}
.legal-doc blockquote p { margin: 0; font-style: italic; }
.post-tag[data-tag="AI"] { color: var(--green); background: var(--green-soft); }
