/* ============================================================
   Warro Intel — brand homepage (warrointel.com)
   REDESIGN v5 PREVIEW (2026-11-23, not yet deployed — under review): two-column hero with the mascot medallion,
   shorter headline ("Find the truth in the noise."), Google sign-in
   in the header, new Forum section, more air (120px sections).
   The v4 system above is unchanged — v5 builds on it.
   "Palantir meets Apple VisionOS". Ultra-premium dark glass:
   Deep Obsidian + Midnight Slate canvas, Electric Cyan /
   Deep Cobalt / Royal Violet accents, frosted glass
   surfaces, jelly spring physics on every interaction.

   THEME (prompt-defined, replaces the crimson palette):
     Canvas   #04060C / #0A0F1E
     Cyan     #00E5FF   Cobalt #2563EB   Violet #7C3AED
     Text     #F8FAFC   Muted  #94A3B8
     Glass    rgba(255,255,255,0.04–0.08), borders
              rgba(255,255,255,0.14), inner top highlight
              inset 0 1px 0 rgba(255,255,255,0.2)
   AURORA : green + purple + red moving
   orbs behind everything — the background accent only, not
   a palette change.

   PERFORMANCE (the page lagged while scrolling and during
   animations — profiled 2026-11-19 with CDP tracing + elimination):
   main-thread JS/layout/paint/raster are all small and no elimination
   config wins consistently, so the bottleneck is compositor/GPU-side —
   the FIXED nav pill's backdrop-filter re-sampling its backdrop every
   scroll frame, over the animated aurora. Fixed properly, with NO
   visual loss: (1) while scrolling, the nav pill switches to a
   near-opaque background + 8px blur (JS adds body.is-scrolling; the
   full glass returns ~120ms after scrolling stops — at rest the look
   is byte-identical, mid-scroll the difference is imperceptible);
   (2) aurora glow is baked into the gradients — no filter: blur pass
   at all, same green/purple/red look, cheaper layers; (3) the pulse
   dot's ring animates transform/opacity only (was box-shadow, a paint
   property, every frame). backdrop-filter remains only where the blur
   is actually visible against moving content — nav pill, drawer,
   eyebrow badge, final CTA banner. Everywhere else the glass look
   comes from translucent fills + borders + the top highlight.
   Below-fold sections use content-visibility so the browser skips
   rendering them until scrolled near.

   TYPE: Space Grotesk (display, self-hosted variable woff2)
   + Inter (body/UI, self-hosted). No CDN anywhere.

   JELLY: springy overshoot easing on every interaction —
   buttons squash on press and bounce back, the nav pill and
   tab glider stretch and glide, cards lift with a rubbery
   tilt and mouse-tracking spotlight. Transform/opacity only;
   prefers-reduced-motion disables it all.

   Static site. No build step. Vanilla CSS on purpose.
   Mobile-first: 360px is the design floor, desktop enhances.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Native controls (date pickers, scrollbars, form controls) render
     dark by default; the light block below flips this to light.
     (Site-wide theme) */
  color-scheme: dark;
  --bg: #04060c;
  --bg-2: #0a0f1e;
  --cyan: #00e5ff;
  --cobalt: #2563eb;
  --violet: #7c3aed;
  --text: #f8fafc;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.05);
  /* Spec background for the frosted cards (VisionOS pass,
     2026-11-23): rgba(255, 255, 255, 0.02). This variable was
     USED by nine panel rules but never defined — those panels
     were silently transparent until now. */
  --glass-1: rgba(255, 255, 255, 0.02);
  --glass-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.09);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.45);
  --ease-jelly: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.22, 1.4, 0.36, 1);
  /* Jelly Glassmorphism buttons (prompt 2, 2026-11-23): the elastic
     spring curve for the squash-and-stretch + crush cycle. */
  --ease-jelly-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(37, 99, 235, 0.18), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: #04060c;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.25s var(--ease-smooth);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(0, 229, 255, 0.35); color: #fff; }

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
/* LAG FIX (2026-11-23): when the tab is hidden, main.js adds
   .paused and every aurora animation freezes instead of burning
   CPU/GPU in the background. It resumes the moment the tab is
   visible again. */
.aurora.paused .orb,
.aurora.paused .wisp {
  animation-play-state: paused;
}
.orb {
  position: absolute;
  /* No filter: blur() — the soft glow is baked into the gradient
     below (long falloff to transparent). A blur filter forces a
     large offscreen surface + a blur pass per orb; the gradient
     renders the same look as a plain texture. Orbs are sized up
     ~100px vs the old blurred ones to keep the same glow radius.
     SMOKE FIX (2026-11-23): the orbs were perfect circles with
     circular gradients, so they read as glowing balls, not smoke.
     Each orb is now an irregular blob (its own organic radius),
     wider than tall, with an off-centre elliptical gradient and
     no dense core — the density fades from the start, like a
     puff of smoke. The drift squashes and turns them harder, so
     the shape visibly curls and reshapes as it moves. */
  opacity: 0.6;
  will-change: transform, opacity;
}
/* Rich palette (2026-11-24: the emerald + violet did not look
   rich or professional): brass + oxblood + deep crimson. Neon green
   and bright purple are gone (violet broke the no-purple rule); the
   hot scarlet crimson is deepened to the action red. Core alphas are
   set by the light-theme contrast audit — oxblood 0.40 keeps the
   muted ink at 4.67:1 over 0.65 glass (at 0.45 it measured 4.51:1,
   the same edge the old violet sat on). */
.orb-brass {
  width: 720px; height: 580px;
  top: -190px; left: -170px;
  border-radius: 58% 42% 62% 38% / 55% 48% 52% 45%;
  background: radial-gradient(ellipse at 42% 38%, rgba(166, 124, 61, 0.45) 0%, rgba(166, 124, 61, 0.20) 32%, rgba(166, 124, 61, 0.08) 58%, rgba(166, 124, 61, 0.02) 76%, transparent 90%);
  animation: drift-a 64s ease-in-out 3s infinite, intro-a 3s ease-out;
}
.orb-oxblood {
  width: 780px; height: 620px;
  top: 8%; right: -250px;
  border-radius: 44% 56% 41% 59% / 52% 44% 56% 48%;
  background: radial-gradient(ellipse at 58% 42%, rgba(127, 29, 29, 0.40) 0%, rgba(127, 29, 29, 0.18) 32%, rgba(127, 29, 29, 0.07) 58%, rgba(127, 29, 29, 0.02) 76%, transparent 90%);
  animation: drift-b 72s ease-in-out 3.35s infinite, intro-b 3s ease-out 0.35s backwards;
}
.orb-crimson {
  width: 680px; height: 540px;
  top: 54%; left: -210px;
  border-radius: 55% 45% 48% 52% / 42% 58% 46% 54%;
  background: radial-gradient(ellipse at 46% 58%, rgba(153, 27, 27, 0.45) 0%, rgba(153, 27, 27, 0.19) 32%, rgba(153, 27, 27, 0.07) 58%, rgba(153, 27, 27, 0.02) 76%, transparent 90%);
  animation: drift-c 60s ease-in-out 3.7s infinite, intro-c 3s ease-out 0.7s backwards;
}
/* Load-in: all three colours bloom out of the centre like puffs
   of smoke, one after another (brass, then oxblood, then crimson).
   Each orb grows past full size mid-flight, like smoke puffing
   out, then settles. The intro is listed last so it wins while
   it runs; `backwards` holds the gathered state during the
   stagger delay; the drift is delayed to match, and the intro's
   final state matches the drift's first state, so the handoff
   is seamless. */
@keyframes intro-a {
  0%   { transform: translate(calc(50vw - 160px), calc(50vh - 140px)) scale(0.45, 0.45) rotate(0deg); opacity: 0; }
  55%  { transform: translate(calc(25vw - 80px), calc(25vh - 70px)) scale(1.35, 1.02) rotate(14deg); opacity: 0.7; }
  100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
}
@keyframes intro-b {
  0%   { transform: translate(calc(110px - 50vw), calc(42vh - 360px)) scale(0.45, 0.45) rotate(0deg); opacity: 0; }
  55%  { transform: translate(calc(55px - 25vw), calc(21vh - 180px)) scale(1.32, 1.05) rotate(-14deg); opacity: 0.7; }
  100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
}
@keyframes intro-c {
  0%   { transform: translate(calc(50vw - 100px), calc(-4vh - 310px)) scale(0.45, 0.45) rotate(0deg); opacity: 0; }
  55%  { transform: translate(calc(25vw - 50px), calc(-2vh - 155px)) scale(1.36, 1.0) rotate(14deg); opacity: 0.7; }
  100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
}
/* Aurora flow: each orb WANDERS across the whole viewport on a
   multi-point loop — not a wobble around its own corner. The
   brass orb sweeps from the top-left across to the right and down
   to the lower half, the oxblood one mirrors it from the top-right,
   the crimson one roams the middle. Travel is in vw/vh so the
   journey scales with the screen. The orb squashes, stretches
   and slowly turns as it goes — like smoke curling, not a ball
   rolling. Transform + opacity only, so it stays
   compositor-cheap. The glow is baked into the gradients.
   The squash is deliberately strong (down to 0.8, up to ~1.5)
   so the blob's shape visibly changes as it drifts. Durations
   are very long (60-72s, slowed in the 2026-11-23 VisionOS pass
   per the prompt) so the long journeys stay slow and calm. */
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
  20%  { transform: translate(38vw, 12vh) scale(1.45, 0.85) rotate(18deg); opacity: 0.72; }
  40%  { transform: translate(28vw, 48vh) scale(0.85, 1.4) rotate(-12deg); opacity: 0.55; }
  60%  { transform: translate(-2vw, 30vh) scale(1.3, 1.1) rotate(9deg); opacity: 0.68; }
  80%  { transform: translate(12vw, 8vh) scale(0.9, 1.3) rotate(-8deg); opacity: 0.62; }
  100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
  20%  { transform: translate(-40vw, 14vh) scale(0.85, 1.42) rotate(-16deg); opacity: 0.7; }
  40%  { transform: translate(-30vw, 50vh) scale(1.42, 0.86) rotate(13deg); opacity: 0.54; }
  60%  { transform: translate(2vw, 32vh) scale(1.12, 1.28) rotate(-8deg); opacity: 0.66; }
  80%  { transform: translate(-12vw, 10vh) scale(1.28, 0.92) rotate(10deg); opacity: 0.62; }
  100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
  20%  { transform: translate(42vw, -18vh) scale(1.44, 0.84) rotate(16deg); opacity: 0.7; }
  40%  { transform: translate(30vw, 12vh) scale(0.84, 1.38) rotate(-13deg); opacity: 0.54; }
  60%  { transform: translate(4vw, -8vh) scale(1.26, 1.12) rotate(10deg); opacity: 0.67; }
  80%  { transform: translate(16vw, -28vh) scale(0.92, 1.3) rotate(-9deg); opacity: 0.62; }
  100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
}

/* ---------- Drifting smoke ---------- */
/* Soft grey wisps that wander across the screen and fade in and
   out, like smoke. Same technique as the orbs: glow baked into
   a radial gradient, transform + opacity only, no filter: blur. */
.smoke {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.wisp {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(198, 210, 228, 0.13) 0%, rgba(198, 210, 228, 0.06) 42%, transparent 70%);
  opacity: 0;
  /* No will-change: the wisps are the largest layers on the page
     (up to 900px wide) and forcing them into their own compositor
     layers costs memory on phones for a barely visible layer. The
     browser promotes them while they animate anyway. Two wisps
     only (wisp-1, wisp-3) — the aurora is 3 orbs + 2 wisps now;
     the halos and the other two wisps were removed in the
     2026-11-23 simplification (5 animated layers, not 10). */
}
.wisp-1 {
  width: 900px; height: 480px;
  top: 8%; left: -320px;
  animation: smoke-a 70s ease-in-out infinite;
}
.wisp-3 {
  width: 820px; height: 440px;
  top: 66%; left: -240px;
  animation: smoke-c 64s ease-in-out infinite;
}
@keyframes smoke-a {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0; }
  18%  { opacity: 0.85; }
  50%  { transform: translate(58vw, -70px) scale(1.28) rotate(9deg); opacity: 0.55; }
  82%  { opacity: 0.75; }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0; }
}
@keyframes smoke-c {
  0%   { transform: translate(0, 0) scale(0.95) rotate(0deg); opacity: 0; }
  16%  { opacity: 0.85; }
  50%  { transform: translate(46vw, -90px) scale(1.22) rotate(6deg); opacity: 0.55; }
  84%  { opacity: 0.7; }
  100% { transform: translate(0, 0) scale(0.95) rotate(0deg); opacity: 0; }
}

/* ---------- Glass icon chip (every icon sits in one) ---------- */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--highlight), 0 6px 18px rgba(0, 0, 0, 0.3);
  /* No backdrop-filter: on a 48px chip over a card the blur is
     invisible — the gradient + border + highlight carry the glass. */
  transition: transform 0.5s var(--ease-jelly), box-shadow 0.5s var(--ease-jelly), border-color 0.3s ease;
}
.icon-chip-sm {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
}
/* Image chips (real product logos): the image fills the chip. */
.icon-chip--img { overflow: hidden; }
.icon-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.icon-chip:hover,
a:hover .icon-chip,
.product-card:hover .icon-chip,
.service-card:hover .icon-chip,
.tier-card:hover .icon-chip {
  transform: translateY(-2px) scale(1.08);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: var(--highlight), 0 10px 24px rgba(0, 229, 255, 0.18);
}

/* ---------- Buttons (Jelly Glassmorphism, prompt 2, 2026-11-23) ----------
   Elite tactile spec: desaturated dark static state, ignite on hover,
   crush on press. Motion is shared (.btn): elastic spring curve,
   squash-and-stretch hover, compression press, liquid reflection
   sweep across the glossy surface (the in-button movement — it
   replaces the old continuous btn-flow, which fought the
   deliberately dark static state). Variants carry only colour. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.6s var(--ease-jelly-spring);
}
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.925rem; }
/* Liquid reflection: a soft white sheen that slides left to right
   across the button on hover. Clipped by overflow: hidden, so it
   never leaves the pill. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.8s ease-in-out;
  pointer-events: none;
}
/* Press crushes instantly (0.12s) and springs back on release. */
.btn:active { transform: translateY(1px) scaleX(0.94) scaleY(0.88); transition-duration: 0.12s; }

/* Primary ("Launch Portal" / "Launch TG Intel"): translucent
   Midnight Cobalt to Electric Cyan, fully desaturated and dark at
   rest — ultra-premium, never cheap neon. Frosted with 18px blur +
   140% saturation, a 1.5px specular top glint, interior depth and
   a diffuse outer shadow plus a faint cyan drop. Hover ignites the
   gradient to 40%/30% and the neon to 0.4; press deepens into a
   saturated cyber blue-teal. */
.btn-primary {
  color: #dffbff;
  text-shadow: 0 1px 10px rgba(0, 229, 255, 0.35);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(0, 229, 255, 0.1));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.15), 0 4px 30px rgba(0, 0, 0, 0.4);
}
.btn-primary:active {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.5), rgba(6, 182, 212, 0.4));
}

/* Moving border glow: a blue comet travels around the border of
   the MAIN CTA buttons only — the hero "Launch TG Intel" and the
   three product "Launch Portal" buttons (the
   flagship effect on the main buttons, a few, not every button).
   One bright cyan-to-cobalt segment on an otherwise dark ring,
   4s per lap. The ::before ring sits over the button's static
   border; the soft outer halo is box-shadow (overflow:hidden
   clips content, not shadows). @property makes --glow-angle
   animatable; without it the segment parks at the top — still a
   clean accent. */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes glow-spin {
  to { --glow-angle: 360deg; }
}
.btn-glow-border {
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.45), 0 0 48px rgba(37, 99, 235, 0.25), 0 4px 30px rgba(0, 0, 0, 0.4);
}
.btn-glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--glow-angle), transparent 0%, transparent 62%, rgba(0, 229, 255, 0.4) 72%, #00e5ff 82%, #2563eb 88%, #00e5ff 94%, rgba(0, 229, 255, 0.4) 97%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: glow-spin 4s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow-border::before { animation: none; }
}

/* Secondary (ghost: "Ask the Forum", "Book Consultation" and the
   small ghost buttons): smoked charcoal glass with a faint silver
   tint. Hover intensifies with a dark-rose to silver glow. Same
   frost, specular top edge, tactile shadows and spring motion as
   the primary; the neon drop is silver instead of cyan. */
.btn-ghost {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.08), 0 4px 30px rgba(0, 0, 0, 0.4);
}
/* Header sign-in: compact ghost pill, pushed right in the nav pill. */
.btn-signin {
  margin-left: auto;
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  white-space: nowrap;
}

/* Button hover states only exist where a real hover exists. On
   touch screens :hover sticks after a tap, so every tapped button
   sat in its glowing hover state — the "glow on all buttons" seen
   on a phone. The moving border glow itself was already only
   on the TG Intel button; this keeps every other button dark at
   rest on touch. :active press feedback above is untouched and
   still works on touch. */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px) scaleX(1.04) scaleY(0.96); }
  .btn:hover::after { transform: translateX(100%); }
  .btn-primary:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(0, 229, 255, 0.3));
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 10px 35px rgba(0, 0, 0, 0.5);
  }
  .btn-glow-border:hover {
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 0 32px rgba(0, 229, 255, 0.6), 0 0 60px rgba(37, 99, 235, 0.35), 0 10px 35px rgba(0, 0, 0, 0.5);
  }
  .btn-ghost:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(76, 5, 25, 0.2));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.14), inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 10px 35px rgba(0, 0, 0, 0.5);
  }
  .btn-signin:hover { border-color: rgba(0, 229, 255, 0.5); }
}

/* ---------- Floating glass navbar ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 16px 0;
}
.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1080px;
  min-height: 60px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.55);
  border: 1px solid var(--border);
  box-shadow: var(--highlight), var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
/* While scrolling, the fixed nav's backdrop-filter would re-sample
   its backdrop every frame (the page moves beneath it) — the main
   scroll-jank source. JS adds body.is-scrolling during active
   scrolling: near-opaque background + NO blur (the 0.88-opaque
   pill looks the same without it), swapped instantly — the 0.3s
   transition used to re-sample at every intermediate blur value
   during the first 300ms of every scroll. The full glass fades
   back ~120ms after scrolling stops. body.is-selecting (added
   while the user drags a text selection — same repaint storm, the
   selection highlight re-samples the blurred backdrop every
   mousemove) gets the identical treatment. */
body.is-scrolling .nav-pill,
body.is-selecting .nav-pill {
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: none;
}
/* While scrolling, freeze the two continuous animations and drop
   the glow halo: the comet repaints its masked ring every frame,
   the aurora is 5 large layers, and the halo is a big blurred
   shadow — all pure cost while content rushes past. The glow
   button keeps its static border + the faint base shadow. All
   resume ~120ms after scrolling stops; the orbs drift so slowly
   (60-72s laps) the freeze is invisible. Same while selecting. */
body.is-scrolling .btn-glow-border::before,
body.is-selecting .btn-glow-border::before { animation-play-state: paused; }
body.is-scrolling .btn-glow-border,
body.is-selecting .btn-glow-border {
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 255, 0.15), 0 4px 30px rgba(0, 0, 0, 0.4);
}
body.is-scrolling .aurora .orb,
body.is-scrolling .aurora .wisp,
body.is-selecting .aurora .orb,
body.is-selecting .aurora .wisp { animation-play-state: paused; }
/* Same trick for the frosted cards (VisionOS pass): with 24px
   blur on every card, mobile scrolling dropped to ~50fps in
   qa/fps-check.py — every card re-samples its backdrop each
   scroll frame. 8px while scrolling only recovered to ~53fps,
   so while scrolling the blur drops to 0 (the card keeps its
   border + shadow; the aurora shows through unblurred for the
   half-second the page is moving — invisible at scroll speed).
   The full 24px glass returns ~120ms after scrolling stops.
   The spec look is preserved at rest, which is when anyone
   actually looks. */
body.is-scrolling .product-card,
body.is-scrolling .service-card,
body.is-scrolling .tier-card,
body.is-scrolling .tool-card,
body.is-scrolling .forum-card,
body.is-scrolling .forum-empty,
body.is-scrolling .booking-card,
body.is-scrolling .ask-card,
body.is-scrolling .answer-card,
body.is-scrolling .admin-row,
body.is-scrolling .auth-gate,
body.is-scrolling .contact-details,
body.is-scrolling .notable-work,
body.is-scrolling .cta-banner,
body.is-scrolling .btn-primary,
body.is-scrolling .btn-ghost,
body.is-scrolling .drawer,
body.is-scrolling .bell-panel,
body.is-scrolling .update-card,
body.is-scrolling .eyebrow-badge,
body.is-scrolling .toast,
body.is-scrolling .signin-menu,
body.is-selecting .product-card,
body.is-selecting .service-card,
body.is-selecting .tier-card,
body.is-selecting .tool-card,
body.is-selecting .forum-card,
body.is-selecting .forum-empty,
body.is-selecting .booking-card,
body.is-selecting .ask-card,
body.is-selecting .answer-card,
body.is-selecting .admin-row,
body.is-selecting .auth-gate,
body.is-selecting .contact-details,
body.is-selecting .notable-work,
body.is-selecting .cta-banner,
body.is-selecting .btn-primary,
body.is-selecting .btn-ghost,
body.is-selecting .drawer,
body.is-selecting .bell-panel,
body.is-selecting .update-card,
body.is-selecting .eyebrow-badge,
body.is-selecting .toast,
body.is-selecting .signin-menu {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  /* PERF R2 (2026-11-25): transition: none — measured live, the
     blur was ANIMATING 24px -> 0 over 0.6-0.7s on every scroll
     (.btn has transition: all 0.6s jelly; cards carry a 0.7s
     transition), re-sampling the blurred backdrop at every
     intermediate value while the page moved — the same storm the
     nav rule already kills with transition: none. The wheel-scroll
     loop re-adds .is-scrolling ~every 120ms, so without this the
     blur never settles: it oscillates 24 <-> 0 for the whole
     scroll. Instant swap, same as the nav pill. */
  transition: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  overflow: hidden;
  transition: transform 0.5s var(--ease-jelly);
}
.brand-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.brand:hover .brand-chip { transform: scale(1.1) rotate(-4deg); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--text);
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.site-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.site-nav a {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }
.nav-glider {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  height: 38px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
  transition: left 0.5s var(--ease-jelly), width 0.5s var(--ease-jelly), opacity 0.25s ease, transform 0.5s var(--ease-jelly);
  pointer-events: none;
}
.site-nav:hover .nav-glider,
.site-nav:focus-within .nav-glider { opacity: 1; transform: translateY(-50%) scale(1); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-jelly), background 0.3s ease;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-jelly), opacity 0.25s ease;
}
.nav-toggle:hover { transform: scale(1.08); }
.nav-toggle:active { transform: scale(0.92, 1.06); }
body.drawer-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.drawer-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 4, 10, 0.6);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.drawer-scrim.open { opacity: 1; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(320px, 86vw);
  padding: 96px 24px 32px;
  background: rgba(10, 15, 30, 0.85);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(105%);
  transition: transform 0.55s var(--ease-jelly);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-nav { display: flex; flex-direction: column; gap: 6px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateX(18px);
  transition: background 0.25s ease, opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}
.drawer.open .drawer-nav a { opacity: 1; transform: translateX(0); }
.drawer.open .drawer-nav a:nth-child(1) { transition-delay: 0.05s; }
.drawer.open .drawer-nav a:nth-child(2) { transition-delay: 0.09s; }
.drawer.open .drawer-nav a:nth-child(3) { transition-delay: 0.13s; }
.drawer.open .drawer-nav a:nth-child(4) { transition-delay: 0.17s; }
.drawer.open .drawer-nav a:nth-child(5) { transition-delay: 0.21s; }
.drawer.open .drawer-nav a:nth-child(6) { transition-delay: 0.25s; }
.drawer.open .drawer-nav a:nth-child(7) { transition-delay: 0.29s; }
.drawer.open .drawer-nav a:nth-child(8) { transition-delay: 0.33s; }
.drawer.open .drawer-nav a:nth-child(9) { transition-delay: 0.37s; }
/* The Theme row (a <button>) is now the drawer's first child, so
   the links shifted down one — the last three links need delays
   too, or they pop in with the base transition. */
.drawer.open .drawer-nav a:nth-child(10) { transition-delay: 0.41s; }
.drawer.open .drawer-nav a:nth-child(11) { transition-delay: 0.45s; }
.drawer.open .drawer-nav a:nth-child(12) { transition-delay: 0.49s; }
.drawer-nav a:hover { background: var(--glass-2); }
body.drawer-open { overflow: hidden; }

/* ---------- Cross-portal updates bell (§2.10, slice 5) ----------
   Editorial bell for TG Intel + CDR Portal news. Desktop: a 40×40
   glass chip in the nav-pill right cluster, after Sign in, before
   the hamburger. Mobile: the pill chip hides and the drawer gets a
   "Notifications" row at the top instead — one bell, two homes by
   viewport, the same badge count in both. The badge is a crimson
   count pill (Laser Crimson #D41514 — a badge is a signal, the one
   place the laser red belongs per v1.5). Hover rules live inside
   @media (hover: hover) like every other button (touch :hover
   sticks after a tap). */
.bell-wrap { position: relative; flex: 0 0 auto; }
.bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  color: #CDCBCA;
  transition: transform 0.5s var(--ease-jelly), color 0.25s ease, border-color 0.25s ease;
}
.bell-btn svg { width: 24px; height: 24px; }
@media (hover: hover) {
  .bell-btn:hover { color: #fafafa; border-color: rgba(0, 229, 255, 0.5); transform: scale(1.08); }
}
.bell-btn:active { transform: scale(0.92, 1.06); }
.bell-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D41514;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
/* The dropdown: more opaque than the pill so text stays readable
   over the page aurora. Right-aligned under the bell, 360px wide,
   its own scroll. */
.bell-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 480px;
  overflow-y: auto;
  padding: 8px 8px 4px;
  border-radius: 16px;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--highlight), var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
/* Same scroll-flatten rule as the other glass panels (see the
   nav-pill block): no blur while scrolling or selecting. */
body.is-scrolling .bell-panel,
body.is-selecting .bell-panel {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 10px;
  font-size: 0.95rem;
}
.bell-mark-all {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.bell-mark-all:hover { text-decoration: underline; }
.bell-section-head {
  padding: 12px 10px 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bell-item {
  position: relative;
  display: block;
  padding: 10px 12px 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.bell-item:hover { background: var(--glass-2); }
/* Unread: a crimson dot at the leading edge + a slightly raised
   surface. Read rows lose the dot and sit flat. */
.bell-item--unread { background: var(--glass-1); }
.bell-item--unread::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D41514;
}
.bell-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bell-item-time { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.bell-item-title {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bell-item-summary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bell-more {
  display: block;
  padding: 8px 12px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.bell-more:hover { text-decoration: underline; }
.bell-foot {
  padding: 10px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.bell-foot a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.bell-foot a:hover { text-decoration: underline; }
.bell-status,
.bell-empty {
  padding: 20px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.bell-retry {
  display: block;
  margin: 0 auto 16px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-2);
  font-size: 0.88rem;
  font-weight: 600;
}
/* Portal tag pills — shared by the bell and the updates page.
   Colour + text, never colour alone. TG Intel cyan is the brand
   site's accent (blue means AI only inside the CDR portal). */
.portal-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portal-tag--tgintel {
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
  color: #7df3ff;
}
.portal-tag--cdr {
  border: 1px solid rgba(212, 21, 20, 0.5);
  background: rgba(212, 21, 20, 0.12);
  color: #ff8a94;
}
/* Mobile home of the bell: the drawer row at the top, with the
   same badge. The drawer only opens below 900px (the hamburger
   hides at 900px), so the row needs no media query of its own. */
.drawer-notifications { justify-content: flex-start; }
.drawer-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #D41514;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
@media (max-width: 899px) {
  /* The pill chip hides on mobile — the drawer row is the bell. */
  .bell-wrap { display: none; }
}

/* ---------- Theme toggle (site-wide light/dark) ----------
   One control, three homes by viewport/page: a 40×40 glass chip in
   the nav-pill right cluster (LEFT of the bell — Sign in · toggle ·
   bell · hamburger), a "Theme" row at the TOP of the mobile drawer,
   and a floating chip on pill-less pages (booking-confirmed). The
   chip mirrors the bell button exactly (same size, border, hover,
   radius) so the two read as a pair. The pill/float icon shows the
   mode you switch TO (sun in dark, moon in light); the drawer row
   names the current mode on the right, so its icon matches the
   current mode instead (sun in light, moon in dark) — otherwise the
   icon and the label would contradict each other. The icon swaps
   with a 200ms fade; the theme itself switches instantly (no
   transition on the surfaces — a cross-fade of every card reads as
   lag, not polish). Behaviour + cookie: js/theme.js. */
.theme-wrap { position: relative; flex: 0 0 auto; }
.theme-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  color: #CDCBCA;
  transition: transform 0.5s var(--ease-jelly), color 0.25s ease, border-color 0.25s ease;
}
.theme-btn:active { transform: scale(0.92, 1.06); }
/* Both icons live in the button, stacked dead-centre; the off one
   fades + shrinks away instead of popping. The SVGs are aria-hidden
   — the button's aria-label carries the meaning. */
.theme-btn .theme-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-btn .theme-icon--off {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
@media (hover: hover) {
  .theme-btn:hover { color: #fafafa; border-color: rgba(0, 229, 255, 0.5); transform: scale(1.08); }
}
/* Floating chip (pill-less pages): fixed top-right, the only chrome
   besides the card. */
.theme-btn--float {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
}
/* Mobile: the pill chip hides like the bell — the drawer row is the
   toggle. (The floating chip is NOT in a .theme-wrap, so it stays
   visible on every viewport — booking-confirmed has no drawer.) */
@media (max-width: 899px) {
  .theme-wrap { display: none; }
}

/* Drawer Theme row: a <button> (a control, not a link) with the
   drawer-link treatment, first row in the drawer. Icon on the left,
   "Theme", current mode on the right. Tapping switches instantly
   and the drawer stays open so the user sees the change (main.js
   only closes the drawer on <a> clicks). */
.drawer-theme {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: transparent;
  opacity: 0;
  transform: translateX(18px);
  transition: background 0.25s ease, opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}
.drawer-theme:hover { background: var(--glass-2); }
.drawer.open .drawer-theme { opacity: 1; transform: translateX(0); transition-delay: 0.05s; }
.drawer-theme-icons {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.drawer-theme-icons .theme-icon {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.drawer-theme-icons .theme-icon--off {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
.drawer-theme-mode {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- Updates page (slice 5) ---------- */
.updates-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.updates-filter {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.updates-filter.active { border-color: rgba(0, 229, 255, 0.55); background: rgba(0, 229, 255, 0.1); color: #7df3ff; }
.updates-count { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }
.updates-list { display: grid; gap: 12px; margin-top: 20px; }
.update-card {
  position: relative;
  padding: 18px 20px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.update-card--unread { background: rgba(255, 255, 255, 0.045); }
.update-card--unread::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D41514;
}
.update-card--unread .update-card-head { padding-left: 16px; }
.update-card--flash {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}
.update-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.update-card-time { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.update-card-title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
}
.update-card-title:hover { text-decoration: underline; }
.update-card-summary { margin: 6px 0 0; color: var(--muted); }
.updates-note {
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Sections (shared) ---------- */
.section { padding: 120px 0; position: relative; }
/* NOTE (2026-11-23): content-visibility: auto was tried here for
   the lag fix and REMOVED the same day. It skipped offscreen
   sections so aggressively that full-page captures came out
   blank below the fold, and it can misjudge anchor scrolls.
   The real lag fix is the aurora layer cut (10 -> 5); this page
   is small enough that skipping section layout buys nothing
   measurable. Keep it off. */
/* Below-fold sections render only when scrolled near — the single
   biggest scroll-jank win on phones. Anchors still work: the
   browser forces the target section to render. */
.products, .services, .booking, .lea, .forum, .solutions, .founder, .final-cta,
.tiers, .how, .limits {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: clamp(1.85rem, 4.4vw, 2.6rem); font-weight: 700; }
.grad-text {
  background: linear-gradient(92deg, #a5f3fc 0%, var(--cyan) 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Hero v5: two-column on desktop, mascot medallion ----------
   The v4 hero was copy only. v5 puts the detective mascot beside the
   headline in a glass medallion with floating product chips — the
   brand mark as a refined visual anchor, not a stock illustration. */
.hero { padding: 184px 0 104px; position: relative; }
.hero-inner { display: flex; flex-direction: column; gap: 56px; align-items: center; }
.hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 340px;
  min-height: 280px;
  flex-shrink: 0;
}
.hero-medallion {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120px 120px at 50% 30%, rgba(0, 229, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--highlight), 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 70px rgba(0, 229, 255, 0.12);
}
.hero-medallion::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.hero-medallion img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dbeafe;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--highlight);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: 0 0 auto;
}
/* The pulse ring animates transform + opacity only (compositor
   properties). The old version animated box-shadow — a paint
   property — on every frame, forever. */
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.65);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.45); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hero h1 {
  font-size: clamp(2.7rem, 6.8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
/* The headline break only applies from tablet up — on a 360px phone
   "Find the truth" alone would wrap to three lines. */
.hero-break { display: none; }
@media (min-width: 640px) {
  .hero-break { display: block; }
}
.hero-line {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
/* Scroll cue: fills the hero's lower space and invites the scroll.
   Transform-only bob; the arrow is a CSS chevron, no icon font. */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}
.scroll-cue:hover { color: var(--cyan); }
.scroll-cue-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: cue-bob 2.2s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}

/* ---------- Products ---------- */
.products .eyebrow, .products h2 { text-align: center; }
.products h2 { max-width: 720px; margin: 0 auto; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-flag {
  align-self: flex-end;
  margin: -6px -6px 2px 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04060c;
  background: linear-gradient(135deg, #7df3ff, var(--cyan) 60%, #38bdf8);
}
.product-card p { margin-bottom: 22px; }
.product-cta { margin-top: auto; }

/* ---------- Services ---------- */
.services .eyebrow, .services h2 { text-align: center; }
.services h2 { max-width: 720px; margin: 0 auto; }
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-card p { margin-bottom: 20px; }
.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.45s var(--ease-jelly);
}
.service-link span {
  transition: transform 0.45s var(--ease-jelly);
}
.service-link:hover { color: #a5f3fc; transform: translateX(2px); }
.service-link:hover span { transform: translateX(4px); }

/* Featured service card (CDR Analysis Assistance): same glass card,
   spans the full grid width — it carries pricing, slots, and its own
   booking flow, so it gets room to breathe. Two-column inner layout
   on wider screens, stacked on phones. */
.service-card--featured { grid-column: 1 / -1; }
.featured-main,
.featured-book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.featured-book {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}
.featured-book p { margin-bottom: 8px; }
.featured-book .price-line { color: var(--text); font-size: 1.02rem; }
.price-line strong { color: var(--cyan); font-weight: 700; }
.featured-book .price-note { font-size: 0.88rem; }
.featured-book .slots-line { font-size: 0.94rem; color: #dbeafe; }
.slots-label { color: var(--cyan); font-weight: 600; }
.featured-book .other-time { font-size: 0.94rem; margin-bottom: 20px; }
@media (min-width: 640px) {
  .service-card--featured {
    flex-direction: row;
    gap: 36px;
    align-items: stretch;
  }
  .featured-main { flex: 1 1 42%; }
  .featured-book {
    flex: 1 1 58%;
    margin-top: 0;
    padding-top: 0;
    padding-left: 36px;
    border-top: 0;
    border-left: 1px solid var(--border-soft);
  }
}

/* Flagship card (TG Intel): a touch more visual weight than the
   other product cards — cyan-tinted border, a soft cyan glow at
   the top, slightly stronger shadow. Deliberately subtle: the
   page is Warro Intel the company, not a TG Intel landing page.
   No extra CTAs, no banner, hero untouched. */
.product-card.product-card--flagship {
  border-color: rgba(0, 229, 255, 0.3);
  background:
    radial-gradient(420px 180px at 50% -60px, rgba(0, 229, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--highlight), var(--shadow-soft), 0 0 36px rgba(0, 229, 255, 0.07);
}
.product-card.product-card--flagship:hover { border-color: rgba(0, 229, 255, 0.45); }

/* ---------- Booking form (CDR Analysis Assistance) ---------- */
.booking-intro {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}
.booking-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  background: var(--glass-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  /* No overflow: hidden here — the collapsible panel + form live
     inside, and the spotlight ::before carries its own rounded
     corners, so nothing needs clipping. */
}
.booking-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
}
.booking-price-line { color: var(--muted); font-size: 0.97rem; }
.booking-price-line strong { color: var(--cyan); font-size: 1.12rem; }
.field { margin: 0 0 20px; }
.field label,
.slot-field legend {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"],
.field input[type="search"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(148, 163, 184, 0.75); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: rgba(255, 92, 92, 0.7); }
.slot-field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.slot-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  margin: 0 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-jelly);
}
.slot-option:hover { border-color: rgba(0, 229, 255, 0.4); }
.slot-option:active { transform: scale(0.99); }
.slot-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--cyan);
}
.slot-option:has(input:checked) {
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.08);
}
.slot-label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.slot-time { margin-left: auto; color: var(--muted); font-size: 0.9rem; text-align: right; }
.other-time-field { margin: 4px 0 10px; }
.form-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  color: #ffb4b4;
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.35);
  border-radius: 12px;
  font-size: 0.95rem;
}
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
#cdr-booking-form .btn { width: 100%; }
#cdr-booking-form .btn[disabled] { opacity: 0.65; cursor: wait; }
@media (max-width: 640px) {
  .booking-card { padding: 22px 18px; }
  .slot-option { flex-wrap: wrap; gap: 4px 12px; }
  .slot-time { margin-left: 30px; text-align: left; }
}

/* ---------- Collapsible booking form ----------
   The booking card shows just the price lines until the visitor
   opens it. The panel animates with the grid-rows trick (0fr to
   1fr) — no JS height measuring, transform/opacity only in spirit.
   Visibility flips with the open class so the closed form is not
   keyboard-reachable. */
.booking-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0 0 22px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.booking-toggle-text {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  flex: 1;
}
.booking-chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--cyan);
  transition: transform 0.45s var(--ease-jelly);
}
.booking-toggle[aria-expanded="true"] .booking-chevron { transform: rotate(180deg); }
.booking-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-jelly);
}
.booking-panel.open { grid-template-rows: 1fr; }
.booking-panel-inner {
  overflow: hidden;
  min-height: 0;
  visibility: hidden;
}
.booking-panel.open .booking-panel-inner { visibility: visible; }
.booking-panel-inner form { padding-top: 26px; }

/* ---------- Booking + LEA side by side ----------
   The two request forms share one row on desktop (two columns)
   and stack on narrow screens. Only one panel opens at a time
   (accordion group "booking-lea" — see js/main.js). The wrapper
   carries the section padding; the inner sections drop theirs,
   and their wraps drop the page padding so the columns sit flush
   in the grid. */
.booking-lea-duo-grid {
  display: grid;
  gap: 64px;
  align-items: start;
}
.booking-lea-duo-grid > section { min-width: 0; padding: 0; }
.booking-lea-duo-grid > section > .wrap { padding: 0; }
@media (min-width: 900px) {
  .booking-lea-duo-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- LEA request form (shares the booking card) ---------- */
.form-success {
  margin: 0 0 16px;
  padding: 12px 16px;
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  font-size: 0.95rem;
}
#lea-request-form .btn { width: 100%; }
#lea-request-form .btn[disabled] { opacity: 0.65; cursor: wait; }
/* Honeypot: real visitors never see it; bots fill it in. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

/* ---------- Contact details panel ---------- */
.contact-details {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 22px 24px;
  text-align: left;
  background: var(--glass-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}
.contact-list { margin: 0; }
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
}
.contact-row + .contact-row { border-top: 1px solid var(--border-soft); }
.contact-row dt {
  flex: 0 0 84px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.contact-row dd { margin: 0; overflow-wrap: anywhere; }
.contact-row a { color: var(--cyan); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* ---------- Forum (v5, redesigned 2026-11-23) ---------- */
/* Question cards are vertical now: a meta row (avatar + name +
   time + answer badge) on top, the title prominent below.
   The whole card is the link; hover lifts it and lights the
   border, glow, and spotlight. Same spec glass as the
   product cards. */
.forum .eyebrow, .forum h2 { text-align: center; }
.forum h2 { max-width: 720px; margin: 0 auto; }
.forum .booking-intro { text-align: center; margin-left: auto; margin-right: auto; }
.forum-count { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
.forum-count:empty { display: none; }
.forum-list {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin: 40px auto 0;
}
.forum-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.45s var(--ease-jelly), box-shadow 0.4s ease;
}
.forum-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 44px rgba(0, 229, 255, 0.08);
}
/* The card is an article now (BUG 2): the question itself links to
   the detail page, and the Answer link sits beside it — nested <a>
   elements are invalid HTML. The inner link carries the card's
   column layout so the spacing is unchanged. */
.forum-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
/* The Answer link on each card: a plain text link in the link
   colour (cyan in dark, cobalt-700 in light), like .service-link. */
.forum-answer-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.45s var(--ease-jelly);
}
.forum-answer-link span { transition: transform 0.45s var(--ease-jelly); }
@media (hover: hover) {
  .forum-answer-link:hover { color: #a5f3fc; transform: translateX(2px); }
  .forum-answer-link:hover span { transform: translateX(4px); }
}
.forum-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #04060c;
  background: linear-gradient(135deg, #7df3ff, var(--cyan));
}
.forum-card-top { display: flex; align-items: center; gap: 12px; }
.forum-card .forum-avatar {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}
.forum-card-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.forum-author {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-time { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.forum-count-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7df3ff;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
}
.forum-count-badge--empty {
  color: var(--muted);
  background: transparent;
  border-color: var(--border-soft);
}
.forum-q {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.forum-cta { text-align: center; margin-top: 32px; }
.forum-cta .form-note { margin-top: 14px; }

/* ---------- Toast (preview sign-in states; reused by real auth) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--highlight), var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-jelly);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Product / service / tier cards ---------- */
/* Product + service + tier cards share one glass treatment.
   VISIONOS PASS (2026-11-23): real frosted glass
   — rgba(255,255,255,0.02) background, 24px backdrop blur, a
   faint border with a brighter specular top edge, and a deep
   soft shadow. The old comment here said "no backdrop-filter,
   the blur would cost GPU time for zero visible difference" —
   that was true when the background was a gradient; with the
   near-transparent spec background the blur is what makes the
   card read as glass over the moving aurora, so it stays.
   PERF: measured with qa/fps-check.py after this change —
   mobile holds 60fps idle / 59fps scrolling (baseline 60/60);
   the blur drops to 0 while scrolling via body.is-scrolling
   (see the nav-pill rule) and returns ~120ms after the scroll
   stops, so the spec look is intact at rest.
   No permanent will-change: the tilt transform is driven by JS
   only while hovering. */
.product-card,
.service-card,
.tier-card {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.5s var(--ease-jelly), border-color 0.3s ease, box-shadow 0.4s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.product-card::before,
.service-card::before,
.tier-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 229, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.product-card:hover,
.service-card:hover,
.tier-card:hover { border-color: rgba(0, 229, 255, 0.32); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 44px rgba(0, 229, 255, 0.08); }
.product-card:hover::before,
.service-card:hover::before,
.tier-card:hover::before { opacity: 1; }

/* Mouse-tracking spotlight for the other glass cards (VisionOS
   pass): the same radial highlight, driven by --mx/--my. Tilt
   cards get the vars from the tilt handler; the rest get them
   from the delegated spotlight handler in main.js (delegation,
   so cards the Forum injects later work too). */
.tool-card::before,
.forum-card::before,
.booking-card::before,
.ask-card::before,
.answer-card::before,
.admin-row::before,
.auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 229, 255, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tool-card:hover::before,
.forum-card:hover::before,
.booking-card:hover::before,
.ask-card:hover::before,
.answer-card:hover::before,
.admin-row:hover::before,
.auth-gate:hover::before { opacity: 1; }
.product-card h3,
.service-card h3,
.tier-card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
  font-weight: 600;
}
.product-card p,
.service-card p,
.tier-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Founder strip ---------- */
.founder-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.founder-role {
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
}
.founder-text { margin: 0 0 16px; color: var(--muted); font-size: 1.04rem; }
.notable-work {
  max-width: 640px;
  margin: 22px auto 0;
  padding: 20px 22px;
  text-align: left;
  background: var(--glass-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}
.notable-work h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.notable-work ul { margin: 0; padding: 0; list-style: none; }
.notable-work li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.notable-work li:last-child { margin-bottom: 0; }
.notable-work li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}
.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.6);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.inline-link:hover { color: var(--cyan); }
.founder-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 26px;
}
.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s ease, transform 0.45s var(--ease-jelly);
  display: inline-block;
}
.text-link:hover { color: var(--cyan); transform: translateY(-2px); }

/* ---------- Final CTA ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 28px;
  border-radius: 26px;
  background:
    radial-gradient(500px 220px at 50% -60px, rgba(0, 229, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--highlight), 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 70px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.cta-banner h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-banner p { max-width: 560px; margin: 14px auto 0; color: var(--muted); font-size: 1.05rem; }
.cta-row { margin-top: 30px; }

/* ---------- Investigations page (v5, investigations.html) ----------
   Same design system as the homepage: glass cards (tier cards share
   the product/service treatment above), cyan accents, jelly
   physics, lots of air. Copy is deliberately short — one line per
   idea, no hyphenated words (hyphens read as AI-written). */

/* The sub-page hero is shorter than the homepage hero — the page
   has its own content below, so the intro stays compact. */
.hero--compact { padding: 168px 0 88px; }

.tiers .eyebrow, .tiers h2,
.how .eyebrow, .how h2,
.limits .eyebrow, .limits h2 { text-align: center; }
.tiers h2, .how h2, .limits h2 { max-width: 720px; margin: 0 auto; }

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
.tier-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Signature tier (Telegram Trace): the same restrained emphasis as
   the flagship product card — cyan-tinted border + soft top glow. */
.tier-card--signature {
  border-color: rgba(0, 229, 255, 0.3);
  background:
    radial-gradient(420px 180px at 50% -60px, rgba(0, 229, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--highlight), var(--shadow-soft), 0 0 36px rgba(0, 229, 255, 0.07);
}
.tier-card--signature:hover { border-color: rgba(0, 229, 255, 0.45); }
.tier-flag {
  align-self: flex-end;
  margin: -6px -6px 2px 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04060c;
  background: linear-gradient(135deg, #7df3ff, var(--cyan) 60%, #38bdf8);
}
.tier-card .tier-price {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tier-card .tier-tag {
  margin: 2px 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
}
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 24px;
}
.tier-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}
.tier-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: auto;
}
.tier-card .tier-time { font-size: 0.88rem; }

/* How it works: five short numbered steps. Lightweight glass blocks
   (no tilt — they are a sequence, not cards to lift). */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
.step {
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-soft);
  box-shadow: var(--highlight);
}
.step-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(92deg, #a5f3fc 0%, var(--cyan) 45%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.step h3 { margin: 12px 0 8px; font-size: 1.05rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* Honest limits: one restrained panel, two columns on wider screens. */
.limits-panel {
  max-width: 860px;
  margin: 48px auto 0;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--highlight), var(--shadow-soft);
}
.limits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.limits-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.limits-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-soft);
  background: rgba(4, 6, 12, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }
.footer-note { max-width: 300px; font-size: 0.88rem !important; }
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.4s var(--ease-jelly);
}
.footer-col a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-spring);
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .limits-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 208px 0 136px; }
  .hero--compact { padding: 184px 0 104px; }
  .hero-inner { flex-direction: row; gap: 64px; text-align: left; }
  .hero-copy { text-align: left; margin: 0; flex: 1; min-width: 0; }
  .hero-line { margin-left: 0; }
  .hero-cta { justify-content: flex-start; }
  .hero-visual { flex: 0 0 340px; }
  .section { padding: 128px 0; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card:last-child { grid-column: auto; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-cta .btn { min-width: 190px; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 640px) {
  /* Smaller aurora orbs on phones (the glow is baked into the
     gradients — no blur filter anywhere). All three colours stay.
     The orbs stay elliptical, like the desktop smoke blobs. */
  .orb { opacity: 0.5; }
  .orb-brass { width: 500px; height: 400px; animation: drift-a 64s ease-in-out 3s infinite, intro-a-m 3s ease-out; }
  .orb-oxblood { width: 540px; height: 430px; animation: drift-b 72s ease-in-out 3.35s infinite, intro-b-m 3s ease-out 0.35s backwards; }
  .orb-crimson { width: 460px; height: 370px; animation: drift-c 60s ease-in-out 3.7s infinite, intro-c-m 3s ease-out 0.7s backwards; }

  /* LAG FIX (2026-11-23): the aurora is 3 orbs + 2 wisps on
     every viewport now (the halos and the other two wisps were
     removed in the simplification) — 5 animated layers, not 10.
     The orbs ARE the aurora; the halos were barely visible. */
  /* Phone-sized load-in: same staggered smoke bloom, measured
     for the smaller orbs. */
  @keyframes intro-a-m {
    0%   { transform: translate(calc(50vw - 60px), calc(50vh - 40px)) scale(0.45, 0.45) rotate(0deg); opacity: 0; }
    55%  { transform: translate(calc(25vw - 30px), calc(25vh - 20px)) scale(1.25, 1.1) rotate(10deg); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
  }
  @keyframes intro-b-m {
    0%   { transform: translate(-50vw, calc(42vh - 250px)) scale(0.45, 0.45) rotate(0deg); opacity: 0; }
    55%  { transform: translate(-25vw, calc(21vh - 125px)) scale(1.25, 1.1) rotate(-10deg); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
  }
  @keyframes intro-c-m {
    0%   { transform: translate(50vw, calc(-4vh - 210px)) scale(0.45, 0.45) rotate(0deg); opacity: 0; }
    55%  { transform: translate(25vw, calc(-2vh - 105px)) scale(1.25, 1.1) rotate(10deg); opacity: 0.7; }
    100% { transform: translate(0, 0) scale(1, 1) rotate(0deg); opacity: 0.6; }
  }
  /* Smaller smoke wisps on phones. */
  .wisp-1 { width: 560px; height: 320px; }
  .wisp-3 { width: 520px; height: 300px; }
}

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .eyebrow-badge { font-size: 0.68rem; letter-spacing: 0.14em; padding: 8px 14px; }
  .brand-name { font-size: 0.95rem; }
  .section { padding: 72px 0; }
  .hero { padding: 156px 0 88px; }
  .hero--compact { padding: 140px 0 72px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .orb { animation: none; }
  .smoke { display: none; }
}

/* ---------- Investigation Toolkit ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 720px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
.tool-card {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.tool-card:hover { border-color: rgba(0, 229, 255, 0.32); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 44px rgba(0, 229, 255, 0.08); }
.tool-card h3 { margin: 14px 0 6px; font-size: 1.25rem; }
.tool-card > p { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tool-row .field { flex: 1 1 200px; margin-bottom: 0; }
.tool-row .btn { flex: 0 0 auto; }
.tool-field-full { margin-bottom: 12px; }
.tool-card select,
.tool-card input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.tool-card select:focus,
.tool-card input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}
.tool-card input[type="file"] {
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
}
.tool-checks { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 14px; }
.tool-checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.tool-checks input { accent-color: var(--accent); }
.tool-result {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: break-all;
  min-height: 46px;
}
.tool-result:empty { display: none; }
.tool-result .ok { color: #4ade80; font-weight: 700; }
.tool-result .bad { color: #ff5c5c; font-weight: 700; }
.tool-result .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; }
/* WHOIS raw record: collapsible, scrollable, small mono text. */
.whois-raw { margin-top: 12px; }
.whois-raw summary { cursor: pointer; color: var(--cyan); font-size: 0.85rem; font-weight: 600; }
.whois-raw pre {
  margin: 8px 0 0;
  max-height: 260px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.tool-result .dim { color: var(--muted); font-size: 0.85rem; }
.tool-result .btn { margin-top: 10px; }
.tool-result #cgi-tower-result:not(:empty) { margin-top: 12px; }
.tool-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--accent); }
.privacy-strip {
  margin-top: 40px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.02));
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-size: 0.95rem;
  line-height: 1.6;
}
.privacy-strip strong { color: var(--text); }

/* Login gate (2026-11-24): the tools need a signed-in account.
   The banner sits above the grids; while locked, the grids dim
   and stop taking input (the gate's own button stays live). */
.toolkit-gate {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(212, 21, 20, 0.10), rgba(212, 21, 20, 0.03));
  border: 1px solid rgba(212, 21, 20, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.toolkit-gate-copy { display: flex; flex-direction: column; gap: 4px; }
.toolkit-gate-copy strong { color: var(--text); font-size: 1.02rem; }
.toolkit-gate-copy span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.tools-locked .tool-grid { opacity: 0.45; pointer-events: none; }
.tools-locked .tool-grid input,
.tools-locked .tool-grid button { pointer-events: none; }

/* Group labels split the tools into Live lookups / Decoders /
   Everyday checks: one quiet line with a hairline rule. */
.tool-group-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tool-group-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}
.tool-group-label + .tool-grid { margin-top: 20px; }

/* Per-card badge, top right: Live lookup (API, cyan pulse) or
   In browser (local, muted). The privacy story, visible per tool. */
.tool-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.tool-badge--api {
  color: #a5f3fc;
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.07);
}
.tool-badge--api .pulse-dot { width: 6px; height: 6px; }

/* Featured card: the Cell Tower Lookup spans the full grid width.
   Same spec glass, a touch more air, a faint cyan tint, and a
   stronger top highlight so it reads as the page's lead tool. */
.tool-featured {
  grid-column: 1 / -1;
  padding: 32px;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.tool-featured h3 { font-size: 1.5rem; }
.tool-featured .tool-badge { top: 32px; right: 32px; }
@media (max-width: 719px) {
  .tool-featured { padding: 26px; }
  .tool-featured .tool-badge { top: 26px; right: 26px; }
}

/* [hidden] must actually hide: several components set display in
   their own rules (notably .toolkit-gate's display:flex), which
   beats the UA stylesheet's [hidden] display:none — without this
   the sign-in gate banner showed to signed-in users too (caught by
   the Phase 2 Playwright QA, 2026-11-25). */
[hidden] { display: none !important; }

/* ---------- Toolkit redesign, Phase 2  ----------
   Landing = the top 4 tools in a 2x2 grid; a left panel lists all
   16 tools; clicking a panel tool opens that tool alone, panel
   stays visible; "All tools" goes back to the landing. View state
   lives on #toolkit-layout (data-toolkit-view) and js/toolkit.js
   hides cards with .tool-card--hidden — CSS only lays out.
   Radii per taste: card 10, panel item 6. No gradients here. */
.toolkit-intro { color: var(--muted); max-width: 640px; margin-top: 12px; }
.toolkit-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 36px;
}
.toolkit-layout .tool-card { border-radius: 10px; }
.toolkit-layout .tool-result { border-radius: 6px; }
.tool-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tool-cards--single { grid-template-columns: minmax(0, 1fr); }
.tool-card--hidden { display: none !important; }
/* Landing default: only the top 4 show, even before any click —
   the JS switcher only runs on panel clicks, so CSS owns the
   initial state. (Single view is owned by .tool-card--hidden.) */
.toolkit-layout[data-toolkit-view="landing"] .tool-card:not([data-top4]) { display: none; }

/* Left panel: sticky, plain list. One glow at a time — the active
   item only, a crimson left bar on a faint crimson tint. */
.toolkit-panel {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
.toolkit-panel-title {
  margin: 0 0 10px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.toolkit-panel-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0 0 2px;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  /* Jelly pop: transform only (no layout thrash), springy curve.
     will-change is set on hover only, not on every item. */
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.18s ease, border-color 0.18s ease;
}
.toolkit-panel-item:hover,
.toolkit-panel-item:focus-visible {
  transform: translateX(6px) scale(1.03);
  background: var(--glass-1);
  border-color: var(--border);
  will-change: transform;
  outline: none;
}
.toolkit-panel-item:focus-visible { box-shadow: 0 0 0 2px #D41514; }
.toolkit-panel-item[aria-current="true"] {
  background: rgba(153, 27, 27, 0.09);
  border-color: rgba(153, 27, 27, 0.35);
  box-shadow: inset 3px 0 0 #991B1B;
}
.toolkit-panel-item[aria-current="true"]:hover { transform: translateX(6px) scale(1.03); }
.toolkit-panel-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.toolkit-panel-kind { font-size: 0.8rem; color: var(--muted); }
.toolkit-panel-item[data-coming-soon] .toolkit-panel-kind { color: var(--muted); font-weight: 600; }
/* "All tools" is the way back — it reads as a control, not a row. */
.toolkit-panel-item--all {
  margin-bottom: 10px;
  background: var(--glass-1);
  border-color: var(--border);
}
.toolkit-panel-item--all .toolkit-panel-name { color: #D41514; }
/* Coming-soon card: shown, not usable — the badge says so, and the
   note appears only when the user opens it. Coming-soon tools read
   as unavailable: muted grey, reduced opacity — never like a live
   tool. Clicking still shows the short note. */
.tool-card[data-coming-soon] { opacity: 0.6; }
.tool-card[data-coming-soon] .icon-chip { filter: grayscale(1); }
.tool-card[data-coming-soon] .tool-badge { color: var(--muted); border-color: var(--border); }
.toolkit-panel-item[data-coming-soon] { opacity: 0.55; }
.toolkit-panel-item[data-coming-soon]:hover { transform: none; background: transparent; border-color: transparent; }

@media (max-width: 900px) {
  .toolkit-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toolkit-panel {
    position: static;
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
  }
  .toolkit-panel-title { display: none; }
  .toolkit-panel-item {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 8px 12px;
    border-color: var(--border);
    white-space: nowrap;
  }
  .toolkit-panel-item:hover,
  .toolkit-panel-item:focus-visible { transform: translateY(-2px) scale(1.02); }
  .toolkit-panel-item--all { margin-bottom: 0; }
}
@media (max-width: 719px) {
  .tool-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .toolkit-panel-item { transition: none; }
  .toolkit-panel-item:hover,
  .toolkit-panel-item:focus-visible { transform: none; }
}

/* Small hint line under a tool's input row; the example button
   reads as a text link, not a second CTA. */
.tool-hint { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; }
/* Small attribution footnote (e.g. the Osmocom TAC credit under
   the IMEI result) — visible, unobtrusive, never inside a result. */
.tool-credit { margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; }
.tool-example {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tool-example:hover { color: #7df3ff; }

/* Nodal Officer Search results: compact rows inside the result
   panel. Name bold, organisation + designation muted, contact
   links on one line, nodal-for tags as small cyan chips. */
.nodal-count { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.nodal-row { padding: 14px 0; border-top: 1px solid var(--border); }
.nodal-row:last-child { padding-bottom: 0; }
.nodal-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.nodal-org { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.nodal-desig { color: var(--muted); font-size: 0.85rem; margin-top: 1px; }
.nodal-contact { margin-top: 6px; font-size: 0.9rem; }
.nodal-contact a { color: var(--accent); }
.nodal-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.nodal-chip {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5f3fc;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* ---------- Forum + admin (Update 2.19) ---------- */
.wrap--narrow { max-width: 780px; }
.section--tight { padding: 40px 0; }

/* Forum cards are articles now: the question links to the detail
   page (.forum-card-link) and the Answer link sits beside it. */
.forum-avatar { position: relative; overflow: hidden; }
.forum-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.forum-status { color: var(--muted); text-align: center; padding: 24px 0; }
.forum-more { text-align: center; margin-top: 24px; }
.forum-more a { color: var(--cyan); text-decoration: none; }
.forum-more a:hover { text-decoration: underline; }

/* Empty states: a proper glass panel with a call to action,
   not a bare line of text. The inline variant (no answers
   yet) sits right above the answer form, so it has no CTA. */
.forum-empty {
  position: relative;
  padding: 44px 28px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: center;
}
.forum-empty p { margin: 0 0 20px; color: var(--muted); font-size: 1.02rem; }
.forum-empty--inline { padding: 30px 24px; }
.forum-empty--inline p { margin: 0; }

/* Signed-in header button: avatar + first name, opens a menu.
   28px DP (was 24px) with a 1.5px ring via box-shadow, matching the
   portal pill (addendum §4). The initials disc is red-tinted:
   ember on dark, crimson wash on light. */
.signin-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 8px; vertical-align: -8px; box-shadow: 0 0 0 1.5px var(--border); }
.signin-initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(232, 50, 49, 0.16); color: #e83231;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
}
html[data-theme="light"] .signin-initials { background: #fbe4e4; color: #991b1b; }
.signin-menu {
  position: fixed;
  z-index: 300;
  min-width: 160px;
  padding: 6px;
  background: rgba(10, 15, 30, 0.97);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--highlight), var(--shadow-soft);
}
.signin-menu a,
.signin-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.signin-menu a:hover,
.signin-menu button:hover { background: var(--glass-2); }

/* Sign-in gate (admin page, ask/answer forms when signed out). */
.auth-gate {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: center;
}
.auth-gate p { margin: 0 0 16px; }
.auth-gate h3 { margin: 0 0 10px; font-size: 1.25rem; }
.auth-gate .btn { margin-top: 8px; }

/* Ask + answer forms. */
.ask-card {
  position: relative;
  padding: 28px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.ask-card h3 { margin: 0 0 20px; }

/* Ask / answer forms: who is posting, and live character
   counts next to each label (limits: title 200, body 5000). */
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.char-count { flex-shrink: 0; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ask-as { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; }
.ask-as strong { color: var(--text); font-weight: 600; }
.ask-as .forum-avatar {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
}

/* Detail view: the question is a hero glass panel (ask-card
   base, so it keeps the spec glass + spotlight), the answers
   thread below it under a ruled heading. */
.forum-back { margin: 0 0 20px; }
.forum-back a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.forum-back a:hover { color: var(--cyan); }
.question-hero { padding: 30px 32px; }
.question-hero .btn { margin-top: 18px; }
.question-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.question-hero-meta .forum-avatar {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.question-hero h2 { margin: 0 0 14px; font-size: 1.65rem; line-height: 1.3; letter-spacing: -0.02em; }
.detail-body { font-size: 1.05rem; line-height: 1.7; margin: 0; }
.answers-head { display: flex; align-items: center; gap: 16px; margin: 40px 0 20px; }
.answers-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.answers-head::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.answer-list { display: grid; gap: 12px; margin: 0 0 32px; }
.answer-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.answer-body { flex: 1; min-width: 0; }
.answer-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 10px; }
.answer-text { margin: 0; line-height: 1.7; }
.answer-index { flex-shrink: 0; color: var(--muted); font-size: 0.8rem; padding-top: 2px; }

.load-more-wrap { text-align: center; margin-top: 28px; }

/* Admin page. */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.admin-stat {
  padding: 18px 14px;
  background: var(--glass-1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  text-align: center;
  /* No backdrop blur on the six stat chips: they are small and
     sit in a tight row — the blur would cost six extra backdrop
     passes for a panel nobody looks through. */
}
.admin-stat-num { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--cyan); }
.admin-stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 0.82rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-tab {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.admin-tab.active { border-color: rgba(0, 229, 255, 0.55); background: rgba(0, 229, 255, 0.1); color: #7df3ff; }
.admin-list { display: grid; gap: 12px; margin-top: 20px; }
.admin-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.admin-row > div { flex: 1; min-width: 0; }
.admin-row p { margin: 6px 0 0; }
.admin-row--deleted { opacity: 0.55; }
.admin-meta { color: var(--muted); font-size: 0.88rem; }
.admin-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
  color: #7df3ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-badge--warn { border-color: rgba(255, 45, 70, 0.4); background: rgba(255, 45, 70, 0.08); color: #ff8a94; }
.admin-badge--muted { border-color: var(--border); background: var(--glass-1); color: var(--muted); }
.admin-badge--amber { border-color: rgba(255, 180, 0, 0.45); background: rgba(255, 180, 0, 0.08); color: #ffb648; }
.admin-badge--ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); color: #6ee7b7; }

/* Forum answers under their question (audit F9): an indented
   sub-list, loaded on demand. Individual answers are smaller
   rows — same card, tighter padding. */
.admin-answers { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--border); }
.admin-answer { padding: 12px 14px; border-radius: 10px; }

/* Users tab: status filter chips + CSV export sit in one row
   above the list. Chips are flat pills; the active one reads
   as selected without a glow. */
.admin-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 20px; }
.admin-chip-row .btn { margin-left: auto; }
.chip {
  appearance: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-1);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--border-soft); }
.chip--active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* CDR tab (slice 4). The pending-reviews stat gets ONE quiet crimson
   accent — and only when there is something to review. Ember #E83231
   is the v1.5 dark-theme text red. */
.admin-stat--attention { border-color: rgba(232, 50, 49, 0.35); }
.admin-stat--attention .admin-stat-num { color: #E83231; }
.admin-stat-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.admin-subhead { margin: 36px 0 0; font-size: 1.05rem; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.admin-pager-note { color: var(--muted); font-size: 0.9rem; }
.cdr-track-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.cdr-track-form .field { flex: 1 1 220px; margin-bottom: 0; }
.cdr-track-form .field--type { flex: 0 1 200px; }

/* Updates tab (slice 5): publish form + published list. The form
   is a vertical stack (title + summary are long fields); the list
   reuses .admin-row with a portal tag in the meta line. */
.updates-publish-form { max-width: 720px; margin-top: 16px; }
.updates-publish-form .field { margin-bottom: 14px; }
.updates-publish-form .field--portal { max-width: 240px; }
.updates-publish-form textarea { min-height: 84px; resize: vertical; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: 0.86em; }

@media (max-width: 860px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-row { flex-direction: column; }
  .answer-card { flex-direction: column; }
  .answer-index { display: none; }
  .ask-card { padding: 20px; }
  .forum-card { padding: 18px; }
  .question-hero { padding: 24px 20px; }
  .question-hero h2 { font-size: 1.4rem; }
}

/* ---------- Cursor glow (VisionOS pass, 2026-11-23) ---------- */
/* A soft cyan glow that eases toward the cursor and settles where
   it stops . The div is created by main.js only on fine pointers
   without reduced-motion; it paints above the page (screen blend,
   low opacity) but below the header/drawer/toast. The rAF loop
   in main.js stops once the glow settles, so it costs nothing
   while the mouse is still. */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.09) 0%, rgba(0, 229, 255, 0.04) 38%, transparent 68%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
@media (pointer: coarse) {
  .cursor-glow { display: none; }
  /* Smaller glow halo on touch: the 24px/48px blurred shadows are
     the most expensive paint on the button, and the smaller halo
     reads the same on a phone screen. */
  .btn-glow-border {
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.4), 0 0 32px rgba(37, 99, 235, 0.22), 0 4px 30px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================================
   LIGHT THEME (site-wide)
   One choice, stored in the warro-theme cookie (Domain
   .warrointel.com), honoured on every page and every in-scope
   subdomain. The dark theme above is UNCHANGED — this section
   only overrides under html[data-theme="light"], and every rule
   here keeps its dark twin intact.

   Measured values (do not re-decide): muted ink #636160 (the
   portal's #6B6967 fails at 4.33:1 over the main site's
   stronger, wandering aurora); card glass 0.65 white (the
   portal's 0.55 fails over oxblood/crimson cores); links
   cobalt-700 #1D4ED8. Cyan / emerald / amber / dark-muted are
   NEVER text in light — cyan stays the glow-border, comet and
   ring colour only. The v1.5 red family carries over: Deep
   Crimson #991B1B is the light action red; Ember #E83231 NEVER
   appears in light (4.26:1 on white).

   How it works: the var block below re-inks every rule that
   uses the tokens (most of the file); the component overrides
   after it cover the rules with hardcoded dark values (card
   borders/shadows, cyan text accents, dark fills). A theme
   switch changes colour only — nothing moves, nothing reflows.
   ============================================================ */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3f2;
  --bg-2: #faf9f8;
  --text: #2e2e2e;
  --muted: #636160;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-1: rgba(255, 255, 255, 0.65);
  --glass-2: rgba(0, 0, 0, 0.04);
  --border: rgba(20, 20, 20, 0.14);
  --border-soft: rgba(20, 20, 20, 0.07);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.12);
  /* --accent is deliberately UNDEFINED in dark (shipped
     behaviour — the var() falls back, so the toolkit links
     render in body text there); in light it is the link
     cobalt, so the toolkit links, focus rings and checkboxes
     get the right colour. */
  --accent: #1d4ed8;
  /* --cyan, --cobalt and --violet are NOT redefined: cyan stays
     the glow-border / comet / ring colour in both themes, and
     every cyan TEXT usage is overridden individually below. */
}

/* ---------- Display ink (#1A1A1A) ---------- */
/* Headings and display elements get the display ink; body text
   stays #2E2E2E (the --text var above). */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .brand-name,
html[data-theme="light"] .tier-card .tier-price,
html[data-theme="light"] .forum-q,
html[data-theme="light"] .update-card-title,
html[data-theme="light"] .nodal-name,
html[data-theme="light"] .drawer-nav a,
html[data-theme="light"] .drawer-theme,
html[data-theme="light"] .bell-item-title,
html[data-theme="light"] .bell-head {
  color: #1a1a1a;
}
/* Footer headings stay muted labels (shipped structure — the h3
   rule above would otherwise promote them to display ink). */
html[data-theme="light"] .footer-col h3 { color: #636160; }

/* ---------- Focus + selection ---------- */
html[data-theme="light"] :focus-visible { outline-color: #1d4ed8; }
html[data-theme="light"] ::selection { background: rgba(29, 78, 216, 0.22); color: #1a1a1a; }

/* ---------- Aurora (§6): orbs unchanged; wisps become soft grey
   shadow-drifts (the dark wisps are nearly invisible on white). */
html[data-theme="light"] .wisp {
  background: radial-gradient(ellipse at center, rgba(100, 116, 139, 0.08) 0%, rgba(100, 116, 139, 0.04) 42%, transparent 70%);
}

/* ---------- Icon chips (§2.3) ---------- */
html[data-theme="light"] .icon-chip {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  box-shadow: var(--highlight), 0 6px 18px rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .icon-chip:hover,
html[data-theme="light"] a:hover .icon-chip,
html[data-theme="light"] .product-card:hover .icon-chip,
html[data-theme="light"] .service-card:hover .icon-chip,
html[data-theme="light"] .tier-card:hover .icon-chip {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: var(--highlight), 0 10px 24px rgba(29, 78, 216, 0.18);
}

/* ---------- Buttons (§2.4) ---------- */
/* Primary: the dark translucency washes out on white, so the light
   button is saturated cobalt (white on cobalt-700 is 6.70:1). The
   glow border (.btn-glow-border) is VERBATIM in both themes — a
   border effect, not text — so it has no override here. */
html[data-theme="light"] .btn-primary {
  color: #fff;
  text-shadow: none;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.9), rgba(37, 99, 235, 0.9));
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.25), 0 0 15px rgba(37, 99, 235, 0.25), 0 4px 30px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] .btn-primary:active {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(29, 78, 216, 0.95));
}
html[data-theme="light"] .btn-ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-top: 1.5px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.06), 0 0 12px rgba(0, 0, 0, 0.06), 0 4px 30px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .btn-signin { background: rgba(255, 255, 255, 0.65); }

/* ---------- Nav pill (§2.1) ---------- */
html[data-theme="light"] .nav-pill { background: rgba(255, 255, 255, 0.7); }
/* Scroll/select flatten: the near-opaque fallback, light side
   (dark is rgba(10,15,30,0.88) — same rule, mirrored). */
html[data-theme="light"] body.is-scrolling .nav-pill,
html[data-theme="light"] body.is-selecting .nav-pill {
  background: rgba(255, 255, 255, 0.92);
}
html[data-theme="light"] .brand-name em {
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  /* The background SHORTHAND resets background-clip to border-box
     — without these two lines the gradient paints the whole box
     (a solid block) instead of the text. The base rule sets the
     clip after its own shorthand; this override must do the same. */
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .nav-glider { background: rgba(29, 78, 216, 0.12); }
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a:focus-visible { color: #1d4ed8; }
html[data-theme="light"] .signin-menu {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- Bell + theme chips (§2.11) ---------- */
/* The chip icons are #CDCBCA in dark — on white glass that is
   1.66:1, so both chips take the primary ink in light. The badge
   stays Laser Crimson #D41514 (a badge is a signal, in both
   themes). */
html[data-theme="light"] .bell-btn,
html[data-theme="light"] .theme-btn { color: #2e2e2e; }
html[data-theme="light"] .bell-panel { background: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .bell-mark-all { color: #1d4ed8; }
html[data-theme="light"] .bell-more { color: #1d4ed8; }
html[data-theme="light"] .portal-tag--tgintel {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
}
html[data-theme="light"] .portal-tag--cdr {
  border-color: rgba(212, 21, 20, 0.4);
  background: rgba(212, 21, 20, 0.08);
  color: #991b1b;
}

/* ---------- Drawer (§2.10) ---------- */
/* The scrim is NOT inverted — it darkens the page behind the
   drawer in either theme, so it has no override. */
html[data-theme="light"] .drawer {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

/* ---------- Cards (§2.3) ---------- */
/* Every glass card shares one treatment: 0.65 white surface (the
   --glass-1 var), a dark hairline, a bright specular top edge,
   and a small neutral shadow (0.08, not the dark 0.4). */
html[data-theme="light"] .product-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .tier-card,
html[data-theme="light"] .tool-card,
html[data-theme="light"] .forum-card,
html[data-theme="light"] .booking-card,
html[data-theme="light"] .ask-card,
html[data-theme="light"] .answer-card,
html[data-theme="light"] .admin-row,
html[data-theme="light"] .auth-gate,
html[data-theme="light"] .contact-details,
html[data-theme="light"] .notable-work,
html[data-theme="light"] .forum-empty,
html[data-theme="light"] .update-card {
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .tier-card:hover,
html[data-theme="light"] .tool-card:hover,
html[data-theme="light"] .forum-card:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 44px rgba(37, 99, 235, 0.06);
}
/* Mouse-tracking spotlight: the same radial highlight, cobalt in
   light instead of cyan. */
html[data-theme="light"] .product-card::before,
html[data-theme="light"] .service-card::before,
html[data-theme="light"] .tier-card::before,
html[data-theme="light"] .tool-card::before,
html[data-theme="light"] .forum-card::before,
html[data-theme="light"] .booking-card::before,
html[data-theme="light"] .ask-card::before,
html[data-theme="light"] .answer-card::before,
html[data-theme="light"] .admin-row::before,
html[data-theme="light"] .auth-gate::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, 0.08), transparent 65%);
}
/* Flagship / signature cards: cobalt-tinted border + top glow
   (the dark cyan versions). */
html[data-theme="light"] .product-card.product-card--flagship,
html[data-theme="light"] .tier-card--signature {
  border-color: rgba(29, 78, 216, 0.3);
  background:
    radial-gradient(420px 180px at 50% -60px, rgba(37, 99, 235, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.65));
  box-shadow: var(--highlight), var(--shadow-soft), 0 0 36px rgba(37, 99, 235, 0.07);
}
html[data-theme="light"] .product-card.product-card--flagship:hover,
html[data-theme="light"] .tier-card--signature:hover { border-color: rgba(29, 78, 216, 0.45); }

/* ---------- Hero (§2.2) ---------- */
html[data-theme="light"] .eyebrow { color: #1d4ed8; }
html[data-theme="light"] .grad-text {
  background: linear-gradient(92deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%);
  /* Re-declared: the background shorthand above resets
     background-clip to border-box (see .brand-name em). */
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .eyebrow-badge { color: #1d4ed8; }
html[data-theme="light"] .pulse-dot { background: #1d4ed8; }
html[data-theme="light"] .pulse-dot::after { border-color: rgba(29, 78, 216, 0.65); }
html[data-theme="light"] .scroll-cue:hover { color: #1d4ed8; }
/* The hero medallion is unchanged (imagery, not theme — §2.2). */

/* ---------- Text accents (cyan → cobalt-700) ---------- */
html[data-theme="light"] .service-link { color: #1d4ed8; }
html[data-theme="light"] .service-link:hover { color: #2563eb; }
html[data-theme="light"] .forum-answer-link { color: #1d4ed8; }
html[data-theme="light"] .forum-answer-link:hover { color: #2563eb; }
html[data-theme="light"] .price-line strong { color: #1d4ed8; }
html[data-theme="light"] .slots-label { color: #1d4ed8; }
html[data-theme="light"] .featured-book .slots-line { color: #555453; }
html[data-theme="light"] .booking-price-line strong { color: #1d4ed8; }
html[data-theme="light"] .tier-card .tier-tag { color: #1d4ed8; }
html[data-theme="light"] .founder-role { color: #1d4ed8; }
html[data-theme="light"] .notable-work h3 { color: #1d4ed8; }
html[data-theme="light"] .notable-work li::before,
html[data-theme="light"] .tier-list li::before,
html[data-theme="light"] .limits-list li::before { background: #1d4ed8; }
html[data-theme="light"] .inline-link { text-decoration-color: rgba(29, 78, 216, 0.6); }
html[data-theme="light"] .inline-link:hover { color: #1d4ed8; }
html[data-theme="light"] .text-link { text-decoration-color: rgba(29, 78, 216, 0.6); }
html[data-theme="light"] .text-link:hover { color: #1d4ed8; }
html[data-theme="light"] .step-num {
  background: linear-gradient(92deg, #1d4ed8 0%, #2563eb 45%, #7c3aed 100%);
  /* Re-declared: the background shorthand above resets
     background-clip to border-box (see .brand-name em). */
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .step,
html[data-theme="light"] .limits-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.5));
}
html[data-theme="light"] .contact-row a { color: #1d4ed8; }

/* ---------- Final CTA ---------- */
html[data-theme="light"] .cta-banner {
  background:
    radial-gradient(500px 220px at 50% -60px, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.55));
  box-shadow: var(--highlight), 0 30px 80px rgba(0, 0, 0, 0.12), 0 0 70px rgba(37, 99, 235, 0.08);
}

/* ---------- Forms (§2.5) ---------- */
html[data-theme="light"] .field input[type="text"],
html[data-theme="light"] .field input[type="search"],
html[data-theme="light"] .field input[type="email"],
html[data-theme="light"] .field input[type="password"],
html[data-theme="light"] .field input[type="tel"],
html[data-theme="light"] .field input[type="date"],
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(20, 20, 20, 0.14);
  /* The dark rule hardcodes color-scheme: dark — it MUST flip,
     or date pickers stay black on a white page (the most common
     light-theme bug). */
  color-scheme: light;
}
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus {
  border-color: rgba(29, 78, 216, 0.55);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder { color: #636160; }
html[data-theme="light"] .field input[aria-invalid="true"],
html[data-theme="light"] .field textarea[aria-invalid="true"] { border-color: rgba(212, 21, 20, 0.7); }
html[data-theme="light"] .slot-option {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(20, 20, 20, 0.12);
}
html[data-theme="light"] .slot-option:hover { border-color: rgba(29, 78, 216, 0.4); }
html[data-theme="light"] .slot-option input[type="radio"] { accent-color: #1d4ed8; }
html[data-theme="light"] .slot-option:has(input:checked) {
  border-color: rgba(29, 78, 216, 0.55);
  background: rgba(29, 78, 216, 0.08);
}
html[data-theme="light"] .form-error {
  color: #d41514;
  background: rgba(212, 21, 20, 0.06);
  border-color: rgba(212, 21, 20, 0.3);
}
html[data-theme="light"] .form-success {
  color: #15803d;
  background: rgba(21, 128, 61, 0.08);
  border-color: rgba(21, 128, 61, 0.3);
}
html[data-theme="light"] .booking-chevron { color: #1d4ed8; }
html[data-theme="light"] .tool-card select,
html[data-theme="light"] .tool-card input[type="number"] {
  background: rgba(255, 255, 255, 0.65);
}
html[data-theme="light"] .tool-card select:focus,
html[data-theme="light"] .tool-card input[type="number"]:focus {
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

/* ---------- Filters / tabs ---------- */
html[data-theme="light"] .updates-filter,
html[data-theme="light"] .admin-tab { background: rgba(255, 255, 255, 0.65); }
html[data-theme="light"] .updates-filter.active,
html[data-theme="light"] .admin-tab.active {
  border-color: rgba(29, 78, 216, 0.55);
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

/* ---------- Forum (§2.7) ---------- */
/* Avatar: a light cobalt gradient with a dark-blue initial —
   the dark avatar is a light cyan gradient with a dark initial,
   so this is the same pattern translated, not inverted. */
html[data-theme="light"] .forum-avatar {
  background: linear-gradient(135deg, #bfdbfe, #60a5fa);
  color: #1e3a8a;
}
html[data-theme="light"] .forum-count-badge {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.35);
}
html[data-theme="light"] .forum-more a { color: #1d4ed8; }
html[data-theme="light"] .forum-back a:hover { color: #1d4ed8; }
html[data-theme="light"] .answer-index { color: #1d4ed8; }

/* ---------- Toast ---------- */
html[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.9); }

/* ---------- Footer (§2.6) ---------- */
html[data-theme="light"] .site-footer { background: rgba(244, 243, 242, 0.7); }

/* ---------- Admin (§2.8) ---------- */
/* Stat cards get the raised surface (they are the hero content);
   the pending-reviews accent is Deep Crimson in light — Ember
   #E83231 is NEVER used in the light theme (§1.10). */
html[data-theme="light"] .admin-stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .admin-stat-num { color: #1d4ed8; }
html[data-theme="light"] .admin-stat--attention { border-color: rgba(153, 27, 27, 0.35); }
html[data-theme="light"] .admin-stat--attention .admin-stat-num { color: #991b1b; }
html[data-theme="light"] .admin-badge {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
}
html[data-theme="light"] .admin-badge--warn {
  border-color: rgba(212, 21, 20, 0.4);
  background: rgba(212, 21, 20, 0.08);
  color: #991b1b;
}
html[data-theme="light"] .admin-badge--amber {
  border-color: rgba(180, 120, 0, 0.45);
  background: rgba(180, 120, 0, 0.08);
  color: #92400e;
}
html[data-theme="light"] .admin-badge--ok {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
}

/* ---------- Updates page ---------- */
html[data-theme="light"] .update-card--unread { background: rgba(29, 78, 216, 0.05); }
html[data-theme="light"] .update-card--flash {
  border-color: rgba(29, 78, 216, 0.55);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.35), 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- Toolkit (§2.9) ---------- */
/* No embedded map on the toolkit page (the Cell Tower Lookup
   links out to Google Maps / OpenStreetMap), so the basemap rule
   in §2.9 has nothing to apply to. */
html[data-theme="light"] .tool-featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.65));
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .tool-result { background: rgba(240, 239, 237, 0.75); }
html[data-theme="light"] .tool-result .ok { color: #15803d; }
html[data-theme="light"] .tool-result .bad { color: #d41514; }
html[data-theme="light"] .whois-raw summary { color: #1d4ed8; }
html[data-theme="light"] .whois-raw pre { background: rgba(240, 239, 237, 0.75); }
html[data-theme="light"] .privacy-strip {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06), rgba(29, 78, 216, 0.02));
  border-color: rgba(29, 78, 216, 0.25);
}
html[data-theme="light"] .tool-badge { background: rgba(0, 0, 0, 0.03); }
html[data-theme="light"] .tool-badge--api {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.3);
  background: rgba(29, 78, 216, 0.07);
}
html[data-theme="light"] .tool-example:hover { color: #2563eb; }
html[data-theme="light"] .nodal-chip {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.07);
  border-color: rgba(29, 78, 216, 0.3);
}

/* ---------- Booking-confirmed (§2.12) ---------- */
/* These selectors also exist in the page's own inline <style>
   block (which loads AFTER this file) — the html[data-theme]
   qualifier outranks them, so the light values still win. */
html[data-theme="light"] .confirm-card { background: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .confirm-detail {
  background: rgba(240, 239, 237, 0.75);
  border-color: rgba(20, 20, 20, 0.08);
}
html[data-theme="light"] .spinner {
  border-color: rgba(29, 78, 216, 0.2);
  border-top-color: #1d4ed8;
}
html[data-theme="light"] .confirm-note strong { color: #1d4ed8; }
html[data-theme="light"] .quiet-link:hover { color: #1d4ed8; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] .spinner { border-top-color: rgba(29, 78, 216, 0.2); }
}

/* ---------- Hover states (light) ----------
   All hover rules stay inside @media (hover: hover), like the
   dark ones — on touch screens :hover sticks after a tap. */
@media (hover: hover) {
  html[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.25), 0 10px 35px rgba(0, 0, 0, 0.25);
  }
  html[data-theme="light"] .btn-ghost:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(212, 21, 20, 0.06));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08), inset 0 -2px 6px rgba(0, 0, 0, 0.06), 0 10px 35px rgba(0, 0, 0, 0.1);
  }
  html[data-theme="light"] .btn-signin:hover { border-color: rgba(29, 78, 216, 0.5); }
  html[data-theme="light"] .bell-btn:hover { color: #1a1a1a; border-color: rgba(29, 78, 216, 0.5); }
  html[data-theme="light"] .theme-btn:hover { color: #1a1a1a; border-color: rgba(29, 78, 216, 0.5); }
}

/* Audit F16: shown when auth.js failed to load — sign-in (and the
   forum, bell and admin that depend on it) is dead, so say so
   instead of leaving inert buttons. */
.auth-fallback-banner {
  padding: 12px 16px;
  text-align: center;
  background: #7f1d1d;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ============================================================
   Account page  — warrointel.com/account.html
   Mature investigator-tool aesthetic: editorial, precise,
   restrained. Deep Crimson #991B1B action red, Oxblood #7F1D1D
   hover, Laser Crimson #D41514 signal only (one at a time).
   Flat buttons, radii 10 / 6 / 3, no gradients, no purple,
   no stacked glows. Glassy white light theme + dark on the
   shared warro-theme cookie. Plain-language labels throughout.
   Each flow looks distinct: signup is a stepped full form,
   login leads with Google, reset is a single-field key panel,
   the code step is centred digit boxes.
   ============================================================ */
.account-section { padding-top: 148px; }
.account-head { max-width: 720px; margin: 0 0 36px; }
.account-head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.08; margin: 0 0 14px; }
.account-sub { color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin: 0; }
.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 380px);
  gap: 28px;
  justify-content: center;
  align-items: start;
}
.account-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .account-card {
  background: var(--glass-1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
/* Account controls use the 6px radius (card 10, small 3).
   Password inputs are in the global .field list now (padding,
   font, width), so they render exactly like their siblings;
   this rule only keeps the account-specific radius and the
   matching background/border for every account input. */
.account-card .field input {
  width: 100%;
  border-radius: 6px;
  /* The global .field rules list input[type="password"] now, so a
     password field gets the same padding/font as its siblings.
     This only keeps the account-specific radius + background. */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}
html[data-theme="light"] .account-card .field input {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(20, 20, 20, 0.14);
  color-scheme: light;
}
.account-card .field input::placeholder { color: rgba(148, 163, 184, 0.75); }
/* The light-theme focus rule (html[data-theme="light"] .field
   input:focus) outranks a plain .account-card selector, so the
   account focus rules carry the theme attribute too. */
html[data-theme="light"] .account-card .field input:focus,
html[data-theme="dark"] .account-card .field input:focus,
.account-card .field textarea:focus {
  border-color: #991B1B;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.14);
}
html[data-theme="dark"] .account-card .field input:focus {
  box-shadow: 0 0 0 3px rgba(212, 21, 20, 0.25);
}
.account-card .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Segmented tabs: one filled crimson tab, the rest quiet. */
.account-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--glass-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}
.account-tab {
  flex: 1;
  min-height: 42px;
  padding: 8px 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.account-tab[aria-selected="true"] { background: #991B1B; color: #fff; }
.account-panel { padding-top: 24px; }
.account-panel-title { font-size: 1.35rem; margin: 0 0 8px; }
.account-panel-sub { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
/* Signup step indicator: small square numbers, radius 3. */
.account-steps {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.account-steps li { display: flex; align-items: center; gap: 8px; }
.account-step-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.account-steps li.is-current { color: var(--text); }
.account-steps li.is-current .account-step-num {
  background: #991B1B;
  border-color: #991B1B;
  color: #fff;
}
.account-steps li.is-done .account-step-num { border-color: #991B1B; color: #991B1B; }
.account-hint { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
/* Flat account buttons: no gradient, no glow, no jelly squash. */
.account-card .btn-account,
.account-card .btn-account-ghost,
.account-card .btn-google {
  width: 100%;
  min-height: 50px;
  border-radius: 6px;
  transform: none;
}
.account-card .btn-account::after,
.account-card .btn-account-ghost::after,
.account-card .btn-google::after { display: none; }
.btn-account {
  background: #991B1B;
  border: 1px solid #991B1B;
  color: #fff;
}
@media (hover: hover) {
  .btn-account:hover { background: #7F1D1D; border-color: #7F1D1D; transform: none; }
}
.btn-account:active { transform: translateY(1px); }
.btn-account-ghost {
  background: transparent;
  border: 1px solid #991B1B;
  color: #991B1B;
}
@media (hover: hover) {
  .btn-account-ghost:hover { background: #991B1B; color: #fff; transform: none; }
}
html[data-theme="dark"] .btn-account-ghost { color: #FCA5A5; border-color: #B91C1C; }
@media (hover: hover) {
  html[data-theme="dark"] .btn-account-ghost:hover { background: #991B1B; color: #fff; }
}
.btn-google {
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  color: #1a1a1a;
  gap: 10px;
}
html[data-theme="dark"] .btn-google {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
  color: var(--text);
}
@media (hover: hover) {
  .btn-google:hover { border-color: rgba(20, 20, 20, 0.45); transform: none; }
  html[data-theme="dark"] .btn-google:hover { border-color: rgba(255, 255, 255, 0.4); }
}
.account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.account-link {
  padding: 0;
  border: 0;
  background: none;
  color: #991B1B;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
html[data-theme="dark"] .account-link { color: #FCA5A5; }
/* Reset + done + signed-in: centred, with a single crimson mark. */
.account-panel--reset,
.account-panel--done,
.account-signedin { text-align: center; }
.account-panel--reset .field { text-align: left; }
.account-reset-mark { margin: 4px 0 12px; color: #991B1B; }
html[data-theme="dark"] .account-reset-mark { color: #FCA5A5; }
.account-signedin-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 6px 0 16px;
  border: 1px solid rgba(153, 27, 27, 0.35);
  border-radius: 10px;
  background: rgba(153, 27, 27, 0.07);
  color: #991B1B;
}
html[data-theme="dark"] .account-signedin-mark {
  background: rgba(212, 21, 20, 0.12);
  color: #FCA5A5;
}
.account-signedin h2 { font-size: 1.35rem; margin: 0 0 8px; }
.account-signedin p { color: var(--muted); margin: 0 0 22px; }
.account-actions { display: flex; gap: 12px; }
.account-actions .btn { flex: 1; }
/* Code step: centred, digit boxes, crimson eyebrow. */
.account-panel--otp { text-align: center; }
.account-panel--otp .field { text-align: left; }
.account-otp-eyebrow {
  margin: 0 0 10px;
  color: #991B1B;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
html[data-theme="dark"] .account-otp-eyebrow { color: #FCA5A5; }
.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}
.otp-box {
  width: 48px;
  height: 56px;
  padding: 0;
  text-align: center;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
}
html[data-theme="light"] .otp-box { background: #fff; border-color: rgba(20, 20, 20, 0.2); }
.otp-box:focus {
  outline: none;
  border-color: #991B1B;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.14);
}
/* Reset code: one 16-digit input — tabular figures, breathing
   room between digits, same treatment as the digit boxes. */
.otp-reset-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
/* ---------- Side panel: the Warro story ---------- */
.account-side {
  position: sticky;
  top: 118px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #0B0B0C;
  color: #F4F3F2;
}
.account-side-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #CDCBCA;
}
.account-side-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 243, 242, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}
.auth-anim-svg { display: block; width: 100%; height: auto; }
.auth-line {
  fill: none;
  stroke: #CDCBCA;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-line--thin { stroke-width: 1; opacity: 0.55; }
.auth-accent { fill: #D41514; stroke: none; }
.auth-accent-line {
  fill: none;
  stroke: #D41514;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Calm 16s loop: each stage fades in, holds, fades out (4s each).
   One crimson signal at a time — the active dot + caption match. */
.auth-stage {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: authStage 16s linear infinite;
}
.auth-stage[data-stage="1"] { animation-delay: 0s; }
.auth-stage[data-stage="2"] { animation-delay: 4s; }
.auth-stage[data-stage="3"] { animation-delay: 8s; }
.auth-stage[data-stage="4"] { animation-delay: 12s; }
@keyframes authStage {
  0% { opacity: 0; transform: translateY(8px) scale(0.97); }
  4% { opacity: 1; transform: translateY(0) scale(1); }
  21% { opacity: 1; transform: translateY(0) scale(1); }
  25%, 100% { opacity: 0; transform: translateY(-6px) scale(0.985); }
}
.auth-dots { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.auth-dot {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(205, 203, 202, 0.25);
  animation: authDot 16s linear infinite;
}
.auth-dot[data-stage="1"] { animation-delay: 0s; }
.auth-dot[data-stage="2"] { animation-delay: 4s; }
.auth-dot[data-stage="3"] { animation-delay: 8s; }
.auth-dot[data-stage="4"] { animation-delay: 12s; }
@keyframes authDot {
  0%, 100% { background: rgba(205, 203, 202, 0.25); }
  4%, 21% { background: #D41514; }
  25% { background: rgba(205, 203, 202, 0.25); }
}
.auth-captions { position: relative; height: 1.6em; margin-top: 14px; text-align: center; }
.auth-caption {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #CDCBCA;
  font-size: 0.98rem;
  opacity: 0;
  animation: authStage 16s linear infinite;
}
.auth-caption[data-stage="1"] { animation-delay: 0s; }
.auth-caption[data-stage="2"] { animation-delay: 4s; }
.auth-caption[data-stage="3"] { animation-delay: 8s; }
.auth-caption[data-stage="4"] { animation-delay: 12s; }
/* Static fallback: shown only with reduced motion. */
.auth-static { display: none; }
.auth-static-svg { display: block; width: 100%; height: auto; }
.auth-static-text {
  margin: 12px 0 0;
  text-align: center;
  color: #CDCBCA;
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .auth-anim { display: none; }
  .auth-static { display: block; }
  .auth-stage, .auth-dot, .auth-caption { animation: none; }
}
/* Side panel never crowds the form: hidden below 900px. */
@media (max-width: 900px) {
  .account-shell { grid-template-columns: minmax(0, 580px); }
  .account-side { display: none; }
}
@media (max-width: 640px) {
  .account-section { padding-top: 128px; }
  .account-card { padding: 22px 18px; }
  .account-card .field-row { grid-template-columns: 1fr; }
  .otp-box { width: 44px; height: 52px; }
  .otp-boxes { gap: 8px; }
  .account-actions { flex-direction: column; }
}
