/* ═══════════════════════════════════════════════════════════════════════════
   rackline.css — Rackline design system for every Blackrack page.

   Load order: inline page CSS → theme.css → premium.css → rk.css → THIS SHEET.
   rk.css re-pins legacy tokens (--bg, --ink, --accent, --rk-*) with
   !important, so Rackline tokens use the --rl-* prefix and section 2 maps the
   legacy tokens onto them. Shared rules that read those tokens follow the
   active palette without more overrides.

   Motion animates only transform, opacity and colors. All keyframes live in
   (prefers-reduced-motion: no-preference) blocks. Content is hidden for a
   reveal only when palette.js adds html.rl-js (see section 12).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 0. Fonts: IBM Plex (OFL) ──────────────────────────────────────────── */
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/plex/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plex/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plex/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url(fonts/plex/ibm-plex-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ─── 1. Palettes (values from palettes.json) ───────────────────────────── */
/* The console stays dark: dark palettes use their sunken token, light
   palettes use a hue-matched near-black (contrast checked, all >= 4.5:1). */
:root, html[data-palette="rackline"] {
  --rl-bg: #0a0f0f; --rl-surface: #111817; --rl-sunken: #060a0a;
  --rl-line: #1f2a28; --rl-line-strong: #5a6864;
  --rl-ink: #e8eeec; --rl-ink-muted: #a3b0ac; --rl-ink-faint: #808d89;
  --rl-accent: #d99a3d; --rl-accent-fill: #d99a3d; --rl-on-accent: #1a1206;
  --rl-ok: #78f2ad; --rl-warn: #ffc15a; --rl-fault: #ff6f78;
}
html[data-palette="navy"] {
  --rl-bg: #050b12; --rl-surface: #0b1520; --rl-sunken: #03070c;
  --rl-line: #172433; --rl-line-strong: #556a80;
  --rl-ink: #f2efeb; --rl-ink-muted: #aeb6bf; --rl-ink-faint: #8592a0;
  --rl-accent: #e0a54a; --rl-accent-fill: #e0a54a; --rl-on-accent: #1a1206;
  --rl-ok: #78f2ad; --rl-warn: #ffc15a; --rl-fault: #ff6f78;
}
html[data-palette="graphite"] {
  --rl-bg: #0d0d0d; --rl-surface: #151515; --rl-sunken: #080808;
  --rl-line: #262626; --rl-line-strong: #666666;
  --rl-ink: #ededed; --rl-ink-muted: #a3a3a3; --rl-ink-faint: #858585;
  --rl-accent: #ff6b2c; --rl-accent-fill: #ff6b2c; --rl-on-accent: #1a0a02;
  --rl-ok: #78f2ad; --rl-warn: #ffc15a; --rl-fault: #ff6f78;
}
html[data-palette="cobalt"] {
  --rl-bg: #0a0c12; --rl-surface: #11141c; --rl-sunken: #06080c;
  --rl-line: #1f2430; --rl-line-strong: #5e6880;
  --rl-ink: #e7e9ee; --rl-ink-muted: #a4aab8; --rl-ink-faint: #828a9b;
  --rl-accent: #8aa4ff; --rl-accent-fill: #8aa4ff; --rl-on-accent: #0a1030;
  --rl-ok: #78f2ad; --rl-warn: #ffc15a; --rl-fault: #ff6f78;
}
html[data-palette="paper"] {
  --rl-bg: #f2efe8; --rl-surface: #faf8f3; --rl-sunken: #e8e4da;
  --rl-line: #d9d3c6; --rl-line-strong: #8a8273;
  --rl-ink: #1b1915; --rl-ink-muted: #57524a; --rl-ink-faint: #6b655b;
  --rl-accent: #a63f17; --rl-accent-fill: #a63f17; --rl-on-accent: #fff8f2;
  --rl-ok: #067a52; --rl-warn: #946000; --rl-fault: #b4234d;
  --rl-console-bg: #16140f; --rl-console-line: #2e2a22; --rl-console-ink: #f2efe8; --rl-console-muted: #b3ab9c; --rl-console-accent: #e8865a;
  --rl-console-ok: #78f2ad; --rl-console-warn: #ffc15a; --rl-console-fault: #ff6f78;
}
html[data-palette="bone"] {
  --rl-bg: #ecece6; --rl-surface: #f8f8f4; --rl-sunken: #e1e1d9;
  --rl-line: #d3d3ca; --rl-line-strong: #85857a;
  --rl-ink: #121210; --rl-ink-muted: #4f4f48; --rl-ink-faint: #62625a;
  --rl-accent: #4a6a00; --rl-accent-fill: #c8f04a; --rl-on-accent: #1a2300;
  --rl-ok: #067a52; --rl-warn: #946000; --rl-fault: #b4234d;
  --rl-console-bg: #121210; --rl-console-line: #2a2a25; --rl-console-ink: #ecece6; --rl-console-muted: #a9a99e; --rl-console-accent: #c8f04a;
  --rl-console-ok: #78f2ad; --rl-console-warn: #ffc15a; --rl-console-fault: #ff6f78;
}
html[data-palette="paper"], html[data-palette="bone"] { color-scheme: light !important; }

:root {
  --rl-console-bg: var(--rl-sunken); --rl-console-line: var(--rl-line);
  --rl-console-ink: var(--rl-ink); --rl-console-muted: var(--rl-ink-muted); --rl-console-accent: var(--rl-accent);
  --rl-console-ok: var(--rl-ok); --rl-console-warn: var(--rl-warn); --rl-console-fault: var(--rl-fault);
  --rl-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rl-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rl-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --rl-ease: cubic-bezier(.2, 0, 0, 1);
  --rl-ease-out: cubic-bezier(.16, 1, .3, 1);
  --rl-gutter: 48px;
}

/* ─── 2. Legacy token bridge (beats rk.css: same specificity, loaded later) */
html[data-theme], html {
  --rk-night: var(--rl-bg) !important; --rk-surf1: var(--rl-surface) !important;
  --rk-surf2: var(--rl-surface) !important; --rk-surf3: var(--rl-sunken) !important;
  --rk-ink: var(--rl-ink) !important; --rk-ink-80: var(--rl-ink) !important;
  --rk-ink-60: var(--rl-ink-muted) !important; --rk-ink-40: var(--rl-ink-faint) !important;
  --rk-ink-18: var(--rl-line-strong) !important; --rk-ink-10: var(--rl-line) !important;
  --rk-amber: var(--rl-accent) !important; --rk-amber-ink: var(--rl-accent) !important;
  --rk-amber-dim: var(--rl-accent) !important; --rk-amber-14: transparent !important;
  --rk-edge: var(--rl-line) !important; --rk-edge-hi: var(--rl-line-strong) !important;
  --rk-mono: var(--rl-mono) !important; --rk-sans: var(--rl-sans) !important; --rk-display: var(--rl-sans) !important;
  --bg: var(--rl-bg) !important; --bg2: var(--rl-bg) !important; --card: var(--rl-surface) !important;
  --surface: var(--rl-surface) !important; --ink: var(--rl-ink) !important; --text: var(--rl-ink) !important;
  --text-muted: var(--rl-ink-muted) !important; --muted: var(--rl-ink-muted) !important; --dim: var(--rl-ink-faint) !important;
  --border: var(--rl-line) !important; --bhi: var(--rl-line-strong) !important; --border-hi: var(--rl-line-strong) !important;
  --accent: var(--rl-accent) !important; --accent2: var(--rl-accent) !important;
  --ok: var(--rl-ok) !important; --warn: var(--rl-warn) !important;
  --mono: var(--rl-mono) !important; --sans: var(--rl-sans) !important;
  --shadow: none !important;
  --br-control-border: var(--rl-line-strong) !important; --br-control-border-hover: var(--rl-ink) !important;
  --br-control-bg: transparent !important; --br-control-bg-hover: transparent !important; --br-control-bg-active: transparent !important;
  --br-control-text: var(--rl-ink-muted) !important; --br-control-text-strong: var(--rl-ink) !important;
}

/* ─── 3. Base: flat surface, no gradients, glows, grain or shadows ──────── */
html { background: var(--rl-bg) !important; }
html body { background: var(--rl-bg) !important; color: var(--rl-ink) !important; font-family: var(--rl-sans) !important; font-size: 16px; line-height: 26px; }
html body::after, html .shell::before, html .shell::after, html .spotlight::after { content: none !important; display: none !important; }
html .shell { background: var(--rl-bg) !important; }
html :focus-visible { outline: 2px solid var(--rl-ink) !important; outline-offset: 2px; }
::selection { background: var(--rl-accent-fill); color: var(--rl-on-accent); }
html .wrap, html .wrap--mid { width: min(1200px, calc(100% - 2 * var(--rl-gutter))); }
/* Only the active language renders, even where a shared display rule targets the same element. */
html[lang="en"] [data-lang="es"], html[lang="es"] [data-lang="en"] { display: none !important; }
html .grad { background: none !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; }

/* Label type: mono, uppercase, tracked (eyebrows, nav, keys, meta). */
html .page-header .eyebrow, html .kicker, html .plan-badge, html .plan-label, html .plan-section-title,
html .cost-label, html .rl-console th, html .rl-console td:first-child, html .cta-meta, html .footer-a, html .nav-a {
  font-family: var(--rl-mono) !important; font-size: 12px !important; line-height: 16px !important;
  font-weight: 500 !important; letter-spacing: .12em !important; text-transform: uppercase !important;
}

/* ─── 4. Header ─────────────────────────────────────────────────────────── */
html .nav { background: var(--rl-bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-bottom: 1px solid var(--rl-line) !important; box-shadow: none !important; }
html .nav-inner { width: min(1200px, calc(100% - 2 * var(--rl-gutter))) !important; padding: 0 !important; height: 64px !important; }
html .brand { width: 126px !important; height: 40px !important; }
html .nav-a { height: 64px !important; color: var(--rl-ink-faint) !important; transition: color 120ms var(--rl-ease) !important; }
html .nav-a:hover, html .nav-a:focus-visible, html .nav-a.active { color: var(--rl-ink) !important; }
html .nav-a::after { background: var(--rl-accent) !important; height: 1px !important; transition: transform 320ms var(--rl-ease-out) !important; }
html .lang-btn, html .drawer-chip, html .br-region-langs button {
  font-family: var(--rl-mono) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .12em !important;
  min-height: 32px; min-width: 32px; padding: 0 8px !important; border: 1px solid var(--rl-line-strong) !important; border-radius: 2px !important;
  background: transparent !important; color: var(--rl-ink-muted) !important; box-shadow: none !important;
  transition: color 120ms var(--rl-ease), border-color 120ms var(--rl-ease), transform 200ms var(--rl-ease-out) !important;
}
html .lang-btn:hover, html .drawer-chip:hover, html .br-region-langs button:hover { color: var(--rl-ink) !important; border-color: var(--rl-ink) !important; }
html .lang-btn.active, html[lang="en"] #btnEN, html[lang="es"] #btnES, html .br-region-langs button.active,
html[lang="en"] .drawer-chip[data-set-lang="en"], html[lang="es"] .drawer-chip[data-set-lang="es"] { color: var(--rl-ink) !important; border-color: var(--rl-accent) !important; background: transparent !important; }
html .nav-burger {
  border: 1px solid var(--rl-line-strong) !important;
  border-radius: 2px !important;
  background: transparent !important;
  transition: border-color 120ms var(--rl-ease), transform 200ms var(--rl-ease-out) !important;
}
html .nav-burger:hover, html .nav-burger:focus-visible { border-color: var(--rl-ink) !important; }
html .nav-burger.open { border-color: var(--rl-accent) !important; }
html .nav-burger span { background: var(--rl-ink) !important; }
html .nav-cta .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 2px !important;
  font-family: var(--rl-mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  background: var(--rl-accent-fill) !important;
  color: var(--rl-on-accent) !important;
  border: 1px solid var(--rl-accent-fill) !important;
  text-decoration: none !important;
  transition: background-color 120ms var(--rl-ease), border-color 120ms var(--rl-ease), transform 200ms var(--rl-ease-out) !important;
}
html .nav-cta .btn:hover, html .nav-cta .btn:focus-visible {
  background: color-mix(in srgb, var(--rl-accent-fill) 86%, var(--rl-ink)) !important;
  border-color: color-mix(in srgb, var(--rl-accent-fill) 86%, var(--rl-ink)) !important;
  transform: translateY(-1px);
}
html .nav-a[data-nav-slug="portal"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html .nav-a[data-nav-slug="portal"]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rl-accent);
  opacity: .7;
  transition: opacity 120ms var(--rl-ease), transform 120ms var(--rl-ease);
}
html .nav-a[data-nav-slug="portal"]:hover::before,
html .nav-a[data-nav-slug="portal"]:focus-visible::before {
  opacity: 1;
  transform: scale(1.3);
}
html .nav-drawer { top: 64px !important; background: var(--rl-bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 0 !important; border-top: 1px solid var(--rl-line) !important; box-shadow: none !important; border-radius: 0 !important; }
html .drawer-a {
  font-family: var(--rl-mono) !important; font-size: 14px !important; letter-spacing: .12em !important;
  color: var(--rl-ink-muted) !important; border: 0 !important; border-bottom: 1px solid var(--rl-line) !important;
  border-radius: 0 !important; background: transparent !important; padding: 16px 0 !important;
  transition: color 120ms var(--rl-ease), border-color 120ms var(--rl-ease) !important;
}
html .drawer-a:hover, html .drawer-a:focus-visible { color: var(--rl-ink) !important; border-bottom-color: var(--rl-line-strong) !important; }
html .drawer-a.active { color: var(--rl-ink) !important; border-bottom-color: var(--rl-accent) !important; }
html .drawer-a.active::after { opacity: 1 !important; border-color: var(--rl-accent) !important; }
html .drawer-a[data-nav-slug="portal"] { display: grid !important; grid-template-columns: auto minmax(0, 1fr) 1.15rem; align-items: center; gap: 8px; }
html .drawer-a[data-nav-slug="portal"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rl-accent); opacity: .8; }
html .drawer-tools { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html[data-palette="paper"] .brand-lockup--dark, html[data-palette="bone"] .brand-lockup--dark { opacity: 0 !important; }
html[data-palette="paper"] .brand-lockup--light, html[data-palette="bone"] .brand-lockup--light { opacity: 1 !important; }

/* ─── 5. Hero: heading block with one accent word ───────────────────────── */
html .page-header { padding: 96px 0 0; text-align: left; }
html .page-header .wrap--mid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
html .page-header .wrap--mid::after { content: ""; grid-column: 1 / -1; height: 1px; margin-top: 64px; background: var(--rl-line); transform-origin: left; }
html .page-header .eyebrow { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 0; border: 0; background: none; color: var(--rl-ink-faint) !important; animation: none; }
html .page-header .eyebrow::before { content: ""; width: 24px; height: 1px; border-radius: 0; background: var(--rl-accent); box-shadow: none; animation: none; transform-origin: left; }
html .page-h1 {
  font-family: var(--rl-sans) !important; font-weight: 600 !important; font-size: 64px; line-height: 64px !important;
  letter-spacing: -.025em !important; color: var(--rl-ink) !important; margin: 0; text-wrap: balance; animation: none;
}
html .page-h1 .grad { display: inline-block; color: var(--rl-ink-muted) !important; }
.rl-accent-word { display: inline-block; font-family: var(--rl-serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--rl-accent); padding-right: .04em; }
html .page-lead { font-size: 18px; line-height: 30px; color: var(--rl-ink-muted); max-width: 44ch; margin: 0; padding-bottom: 6px; animation: none; }

/* ─── 6. The lab: hairline columns instead of boxed cards ───────────────── */
html .plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 64px; }
.rl-col { position: relative; display: flex; flex-direction: column; padding: 48px 32px 32px 0; }
.rl-col + .rl-col { padding-left: 32px; border-left: 1px solid var(--rl-line); }
.rl-col::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--rl-accent); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--rl-ease-out); }
.rl-col:hover::before, .rl-col--hi::before { transform: scaleX(1); }
html .plan-badge { display: block; width: auto; margin: 0 0 8px; padding: 0; border-radius: 0 !important; background: none !important; color: var(--rl-accent) !important; }
html .plan-label { color: var(--rl-ink-faint) !important; margin-bottom: 16px; }
html .plan-name { font-family: var(--rl-sans); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.015em; color: var(--rl-ink); margin-bottom: 12px; transition: color 200ms var(--rl-ease); }
.rl-col:hover .plan-name { color: var(--rl-accent); }
html .plan-tagline { font-size: 14px; line-height: 22px; color: var(--rl-ink-muted); margin-bottom: 32px; max-width: 46ch; }
html .plan-section, html .plan-section:last-of-type { margin-bottom: 0; }
html .plan-section-title { color: var(--rl-ink-faint) !important; margin-bottom: 0; padding-bottom: 12px; }
html .feat-list { gap: 0; border-top: 1px solid var(--rl-line); }
html .feat-item { gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rl-line); font-size: 14px; line-height: 22px; color: var(--rl-ink); transition: color 120ms var(--rl-ease), transform 200ms var(--rl-ease-out); }
html .feat-item:hover { transform: translateX(6px); color: var(--rl-accent); }
html .feat-check { font-family: var(--rl-mono); font-size: 12px; line-height: 22px; margin: 0; color: var(--rl-accent); }

html .costs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rl-line); border-bottom: 1px solid var(--rl-line); }
html .cost-card { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 24px 24px 24px 0; }
html .cost-card + .cost-card { padding-left: 24px; border-left: 1px solid var(--rl-line) !important; }
html .cost-label { color: var(--rl-accent) !important; margin-bottom: 8px; }
html .cost-copy { font-size: 14px; line-height: 22px; color: var(--rl-ink-muted); }
html .cost-copy a { text-underline-offset: 3px; transition: color 120ms var(--rl-ease); }
html .cost-copy a:hover { color: var(--rl-ink) !important; }

/* ─── 7. Section headings ───────────────────────────────────────────────── */
html .compare-section, html .faq-section { padding: 96px 0; background: transparent !important; border-top: 1px solid var(--rl-line); }
html .compare-section > .wrap, html .faq-section > .wrap--mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
html .kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--rl-ink-faint) !important; }
html .kicker::before { width: 24px; height: 1px; border-radius: 0; background: var(--rl-accent); box-shadow: none; animation: none; transform-origin: left; }
html .compare-title, html .cta-h2 {
  font-family: var(--rl-sans) !important; font-weight: 600 !important; font-size: 40px; line-height: 44px;
  letter-spacing: -.02em !important; color: var(--rl-ink) !important; margin-bottom: 16px; text-wrap: balance;
}
html .compare-lead { font-size: 18px; line-height: 30px; color: var(--rl-ink-muted); margin-bottom: 0; max-width: 40ch; }

/* ─── 8. Console panel: dark in every palette, spec rows ────────────────── */
html .rl-console { position: relative; overflow: hidden; padding: 24px; background: var(--rl-console-bg); color: var(--rl-console-ink); border: 1px solid var(--rl-console-line); border-radius: 6px; }
html .rl-console::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; border-top: 1px solid var(--rl-console-accent); opacity: 0; transform: translateY(-1px); pointer-events: none; }
html .rl-console table { counter-reset: rl-row; }
html .rl-console thead tr { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rl-console-line); }
html .rl-console th { padding: 0; border: 0; text-align: left; color: var(--rl-console-muted) !important; }
html .rl-console tbody tr { display: grid; grid-template-columns: 40px minmax(0, 11rem) minmax(0, 1fr); align-items: baseline; column-gap: 16px; border-bottom: 1px solid var(--rl-console-line); counter-increment: rl-row; transition: background-color 120ms var(--rl-ease); }
html .rl-console tbody tr:last-child { border-bottom: 0; }
html .rl-console tbody tr::before { content: counter(rl-row, decimal-leading-zero); padding: 14px 0; font: 400 12px/20px var(--rl-mono); color: var(--rl-console-muted); transition: color 120ms var(--rl-ease); }
html .rl-console td { padding: 14px 0 !important; text-align: left !important; }
html .rl-console td:first-child { color: var(--rl-console-muted) !important; transition: color 120ms var(--rl-ease); }
html .rl-console td.t-val { font: 400 14px/20px var(--rl-mono); letter-spacing: 0; color: var(--rl-console-ink); transition: transform 200ms var(--rl-ease-out); }
html .rl-console tbody tr:hover { background: color-mix(in srgb, var(--rl-console-ink) 5%, transparent); }
html .rl-console tbody tr:hover::before, html .rl-console tbody tr:hover td:first-child { color: var(--rl-console-accent) !important; }
html .rl-console tbody tr:hover td.t-val { transform: translateX(6px); }
html .rl-console tbody tr:last-child td.t-val::after { content: ""; display: inline-block; width: 8px; height: 14px; margin-left: 8px; vertical-align: -2px; background: var(--rl-console-accent); }

/* ─── 9. FAQ as rows ────────────────────────────────────────────────────── */
html .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; border-top: 1px solid var(--rl-line); }
.rl-faq { position: relative; padding: 24px 0; border-bottom: 1px solid var(--rl-line); }
.rl-faq::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rl-accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--rl-ease-out); }
.rl-faq:hover::after { transform: scaleX(1); }
html .faq-q { font-family: var(--rl-sans); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; color: var(--rl-ink); margin-bottom: 8px; transition: color 200ms var(--rl-ease), transform 300ms var(--rl-ease-out); }
html .faq-a { font-size: 16px; line-height: 26px; color: var(--rl-ink-muted); max-width: 62ch; transition: transform 300ms var(--rl-ease-out); }
.rl-faq:hover .faq-q { color: var(--rl-accent); transform: translateX(8px); }
.rl-faq:hover .faq-a { transform: translateX(8px); }

/* ─── 10. Closing CTA and buttons ───────────────────────────────────────── */
.rl-cta { padding: 96px 0 64px; border-top: 1px solid var(--rl-line); }
html .cta-h2 { font-size: 48px; line-height: 52px; max-width: 18ch; }
html .cta-h2 .grad { color: var(--rl-ink-muted) !important; }
html .cta-lead { font-size: 18px; line-height: 30px; color: var(--rl-ink-muted); max-width: 52ch; margin: 0 0 32px; }
html .cta-acts { justify-content: flex-start; gap: 16px; }
html .cta-meta { margin-top: 24px; color: var(--rl-ink-faint) !important; }
.rl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 2px; font-family: var(--rl-sans); font-size: 14px; font-weight: 500; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms var(--rl-ease), border-color 120ms var(--rl-ease), color 120ms var(--rl-ease), transform 200ms var(--rl-ease-out);
}
.rl-btn:hover { transform: translateY(-2px); }
.rl-btn:active { transform: translateY(0); }
.rl-btn--primary { background: var(--rl-accent-fill); color: var(--rl-on-accent); }
.rl-btn--primary:hover, .rl-btn--primary:focus-visible { background: color-mix(in srgb, var(--rl-accent-fill) 86%, var(--rl-ink)); }
.rl-btn--secondary { background: transparent; color: var(--rl-ink); border-color: var(--rl-line-strong); }
.rl-btn--secondary:hover, .rl-btn--secondary:focus-visible { border-color: var(--rl-ink); }

.lead-draft {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--rl-line-strong);
  background: var(--rl-surface);
  color: var(--rl-ink);
}
.lead-draft p { margin: 8px 0 16px; color: var(--rl-ink-muted); }
.lead-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-draft textarea {
  width: 100%;
  min-height: 8rem;
  margin-top: 16px;
  padding: 8px;
  border: 1px solid var(--rl-line-strong);
  background: var(--rl-surface);
  color: var(--rl-ink);
}

/* ─── 11. Footer and floating controls ──────────────────────────────────── */
html .footer { border-top: 1px solid var(--rl-line) !important; padding: 32px 0 152px; }
html .footer-card { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0 !important; }
html .footer-card + .footer-card { margin-top: 24px !important; justify-content: flex-start; }
html .footer-mark { font-family: var(--rl-mono) !important; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--rl-ink); }
html .footer-links { gap: 24px; }
html .footer-a { position: relative; min-height: 0; padding: 4px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--rl-ink-faint) !important; transition: color 120ms var(--rl-ease) !important; }
html .footer-a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rl-accent); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--rl-ease-out); }
html .footer-a:hover { color: var(--rl-ink) !important; }
html .footer-a:hover::after { transform: scaleX(1); }
html .br-region { color: var(--rl-ink-faint); }
html [data-cuelume-toggle-control] { border-radius: 2px !important; border-color: var(--rl-line-strong) !important; background: var(--rl-surface) !important; color: var(--rl-accent) !important; backdrop-filter: none !important; transition: color 120ms var(--rl-ease), border-color 120ms var(--rl-ease); }
html [data-cuelume-toggle-control].is-muted { color: var(--rl-ink-faint) !important; border-color: var(--rl-line) !important; background: var(--rl-bg) !important; }
html .br-consent { background: var(--rl-surface) !important; border: 1px solid var(--rl-line-strong) !important; border-radius: 6px !important; box-shadow: none !important; backdrop-filter: none !important; font-family: var(--rl-sans); }
html .br-consent-btn { border-radius: 2px !important; font-family: var(--rl-mono) !important; }
html[data-theme] .br-consent-btn.br-consent-btn--primary, html[data-theme] .br-consent-btn.br-consent-btn--primary:hover { background: var(--rl-accent-fill) !important; border-color: var(--rl-accent-fill) !important; color: var(--rl-on-accent) !important; }

/* ─── 12. Reveal states ─────────────────────────────────────────────────
   Mark an element with data-reveal; stagger it with style="--rl-i:N".
   palette.js adds html.rl-js (never under reduced motion) and rackline.js
   adds .is-in when the element enters the viewport (fallback 2500ms).
   Legacy .reveal elements stay visible: the old page scripts are not used. */
html .reveal { opacity: 1; transform: none; transition: none; }
html.rl-js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
html.rl-js .rl-col[data-reveal]:not(.is-in) .feat-item,
html.rl-js .rl-console[data-reveal]:not(.is-in) tbody tr { opacity: 0; }
html.rl-js .rl-col--hi[data-reveal]:not(.is-in)::before { transform: scaleX(0); }

/* ─── 13. Motion ────────────────────────────────────────────────────────── */
@keyframes rl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rl-slide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes rl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rl-accent { from { opacity: 0; transform: translateY(.4em) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes rl-scan { 0% { opacity: 0; transform: translateY(-1px); } 8% { opacity: .4; } 92% { opacity: .4; } 100% { opacity: 0; transform: translateY(100%); } }
@keyframes rl-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes rl-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rl-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance, staggered */
  html .page-header .eyebrow { animation: rl-rise 700ms var(--rl-ease-out) 60ms both; }
  html .page-header .eyebrow::before { animation: rl-draw 900ms var(--rl-ease-out) 200ms both; }
  html .page-h1 { animation: rl-rise 900ms var(--rl-ease-out) 160ms both; }
  html .page-h1 .grad { animation: rl-rise 900ms var(--rl-ease-out) 380ms both; }
  html .page-h1 .rl-accent-word { animation: rl-accent 1000ms var(--rl-ease-out) 620ms both; }
  html .page-lead { animation: rl-rise 900ms var(--rl-ease-out) 520ms both; }
  html .page-header .wrap--mid::after { animation: rl-draw 1400ms var(--rl-ease-out) 700ms both; }

  /* Scroll reveals: entrance keyframes with backwards fill, so hover
     transforms still work after the entrance ends. */
  html.rl-js [data-reveal].is-in { animation: rl-rise 800ms var(--rl-ease-out) calc(var(--rl-i, 0) * 90ms) backwards; }
  html.rl-js .rl-col.is-in:nth-child(2), html.rl-js .rl-faq.is-in:nth-child(2) { animation-delay: 90ms; }
  html.rl-js .rl-col.is-in:nth-child(3), html.rl-js .rl-faq.is-in:nth-child(3) { animation-delay: 180ms; }
  html.rl-js .rl-faq.is-in:nth-child(4) { animation-delay: 270ms; }
  html.rl-js .rl-col.is-in .feat-item { animation: rl-slide 500ms var(--rl-ease-out) backwards; }
  html.rl-js .rl-col.is-in .feat-item:nth-child(1) { animation-delay: 300ms; }
  html.rl-js .rl-col.is-in .feat-item:nth-child(2) { animation-delay: 360ms; }
  html.rl-js .rl-col.is-in .feat-item:nth-child(3) { animation-delay: 420ms; }
  html.rl-js .rl-col.is-in .feat-item:nth-child(4) { animation-delay: 480ms; }
  html.rl-js .rl-col.is-in .feat-item:nth-child(5) { animation-delay: 540ms; }
  html.rl-js .rl-col--hi.is-in::before { transition-delay: 400ms; }

  /* Console boot sequence, scan line and cursor */
  html.rl-js .rl-console.is-in tbody tr { animation: rl-slide 450ms var(--rl-ease-out) backwards; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(1) { animation-delay: 250ms; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(2) { animation-delay: 320ms; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(3) { animation-delay: 390ms; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(4) { animation-delay: 460ms; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(5) { animation-delay: 530ms; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(6) { animation-delay: 600ms; }
  html.rl-js .rl-console.is-in tbody tr:nth-child(7) { animation-delay: 670ms; }
  html .rl-console::after { animation: rl-scan 6s linear 1.4s infinite; }
  html .rl-console tbody tr:last-child td.t-val::after { animation: rl-blink 1.1s steps(1) infinite; }

  /* Scroll progress hairline under the header */
  @supports (animation-timeline: scroll()) {
    html .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rl-accent); transform-origin: left; animation: rl-progress linear both; animation-timeline: scroll(root); }
  }

  /* Palette change: colors cross-fade for 320ms while html.rl-swap is set */
  html.rl-swap, html.rl-swap *, html.rl-swap *::before, html.rl-swap *::after {
    transition: background-color 320ms var(--rl-ease), color 320ms var(--rl-ease), border-color 320ms var(--rl-ease),
      -webkit-text-fill-color 320ms var(--rl-ease), opacity 320ms var(--rl-ease) !important;
  }
  .rl-pal[open] .rl-pal__panel { animation: rl-pop 200ms var(--rl-ease-out); }
}

/* Reduced motion: everything visible and static */
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after { animation: none !important; transition: none !important; }
  html .rl-console::after { display: none; }
}

/* ─── 14. Responsive ────────────────────────────────────────────────────── */
/* theme.css has a (max-width: 960px) block with !important on widths,
   paddings and type sizes, so these rules carry !important too. */
@media (max-width: 960px) {
  html .wrap, html .wrap--mid { width: calc(100% - 2 * var(--rl-gutter)) !important; }
  html .compare-section > .wrap, html .faq-section > .wrap--mid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html .plans-grid, html .costs-grid, html .faq-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; margin-inline: 0 !important; }
  .rl-col, .rl-col + .rl-col { padding: 32px 0; border-left: 0; border-top: 1px solid var(--rl-line); }
  .rl-col:first-child { border-top: 0; }
  html .cost-card, html .cost-card + .cost-card { padding: 20px 0 !important; border-left: 0 !important; }
  html .cost-card + .cost-card { border-top: 1px solid var(--rl-line) !important; }
  html .rl-faq { padding: 24px 0 !important; }
  html .page-header { padding: 64px 0 0 !important; }
  html .page-header .eyebrow, html .page-header .page-h1, html .page-header .page-lead { margin-left: 0 !important; margin-right: 0 !important; }
  html .page-lead, html .cta-lead { font-size: 18px !important; line-height: 30px !important; }
  html .compare-section, html .faq-section { padding: 64px 0 !important; }
  html .compare-title, html .cta-h2 { font-size: 32px !important; line-height: 38px !important; letter-spacing: -.02em !important; }
  html .table-wrap.rl-console { margin-inline: 0; }
  html .rl-console table { min-width: 0 !important; }
  html .footer { padding: 32px 0 152px !important; }
  html .footer-card { flex-direction: column; align-items: flex-start !important; text-align: left; gap: 16px !important; padding: 0 !important; }
  html .footer-mark { width: auto; text-align: left; }
  html .footer-links, html .br-region { gap: 16px !important; }
}
@media (max-width: 800px) {
  html .page-header .wrap--mid { grid-template-columns: minmax(0, 1fr); }
  html .page-h1 { font-size: 40px !important; line-height: 44px !important; letter-spacing: -.025em !important; max-width: none !important; }
  html .page-lead { margin-top: 24px !important; }
  html .page-header .wrap--mid::after { margin-top: 48px; }
}
@media (max-width: 640px) {
  :root { --rl-gutter: 16px; }
  html .rl-console { padding: 16px; }
  html .rl-console tbody tr { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  html .rl-console td:first-child { padding-bottom: 4px !important; }
  html .rl-console td.t-val { grid-column: 2; padding-top: 0 !important; }
  html .rl-console tbody tr::before { grid-row: span 2; }
  .rl-cta { padding: 64px 0 48px; }
  html .cta-acts { display: flex !important; flex-direction: column; align-items: stretch !important; }
}
/* Phones: the consent banner covers the bottom; hide the switcher while it
   shows, like locale.css does for the WhatsApp and sound buttons. */
@media (max-width: 540px) {
  body:has(.br-consent.show) .rl-pal { opacity: 0; pointer-events: none; }
  html .footer-a { flex: 0 0 auto !important; }
}

/* ─── 15. Palette switcher (rackline.js renders it when SHOW_SWITCHER) ─── */
.rl-pal { position: fixed; right: 16px; bottom: 92px; z-index: 9997; font-family: var(--rl-mono); font-size: 12px; line-height: 16px; color: var(--rl-ink); }
.rl-pal summary {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; list-style: none; cursor: pointer;
  background: var(--rl-surface); border: 1px solid var(--rl-line-strong); border-radius: 2px;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: border-color 120ms var(--rl-ease), transform 200ms var(--rl-ease-out);
}
.rl-pal summary::-webkit-details-marker { display: none; }
.rl-pal summary:hover { border-color: var(--rl-ink); transform: translateY(-2px); }
.rl-pal[open] summary { border-color: var(--rl-accent); }
.rl-pal__panel { position: absolute; right: 0; bottom: calc(100% + 8px); width: 272px; max-width: calc(100vw - 32px); margin: 0; padding: 8px; background: var(--rl-surface); border: 1px solid var(--rl-line-strong); border-radius: 6px; }
.rl-pal__panel legend { float: left; width: 100%; padding: 4px 8px 8px; color: var(--rl-ink-faint); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.rl-pal__panel label { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 2px; cursor: pointer; color: var(--rl-ink-muted); transition: color 120ms var(--rl-ease), background-color 120ms var(--rl-ease); }
.rl-pal__panel label:hover { color: var(--rl-ink); background: var(--rl-sunken); }
.rl-pal__panel label:has(input:checked) { color: var(--rl-ink); background: var(--rl-sunken); }
.rl-pal__panel label:has(input:checked)::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 999px; background: var(--rl-accent); }
.rl-pal__panel label:has(input:focus-visible) { outline: 2px solid var(--rl-ink); outline-offset: -2px; }
.rl-pal__panel input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rl-pal__sw { display: inline-flex; flex: none; }
.rl-pal__sw i { width: 12px; height: 12px; border: 1px solid var(--rl-line-strong); }
.rl-pal__sw i + i { margin-left: -1px; }
.rl-pal summary .rl-pal__sw i:nth-child(1) { background: var(--rl-bg); }
.rl-pal summary .rl-pal__sw i:nth-child(2) { background: var(--rl-ink); }
.rl-pal summary .rl-pal__sw i:nth-child(3) { background: var(--rl-accent-fill); }
