/* ═══════════════════════════════════════════════════════════════════
   TYPE
   ─────────────────────────────────────────────────────────────────
   Self-hosted, because the previous arrangement meant the site had no
   typography at all for most visitors: Plus Jakarta Sans and Inter were
   DECLARED here but only ever FETCHED by js/consent.js, from Google, and only
   if someone ticked a box that defaults to off. Measured in a browser, a
   normal visit reported `@font-face entries: NONE` — every page rendered in
   Helvetica. An identity that depends on a consent checkbox is not an
   identity.

   Serving it ourselves removes the transfer to Google entirely, so it needs no
   consent, and it always renders.

   WHY IBM PLEX SANS, AND NOT INTER

   Inter and Plus Jakarta Sans are the most-used interface pairing on the web;
   together they are the sound of every SaaS dashboard, and the two are not
   distinct enough from each other to be a pairing at all. Plex was drawn for
   technical documentation — unambiguous numerals, a real 100–700 range, and
   enough character in the a, g and y to be recognisable — and this product is
   a page of numbers a coach reads at a glance. One family, differentiated by
   weight and size rather than by a second typeface.

   Latin subset only: 46 KB upright, 50 KB italic. SIL OFL 1.1, see
   assets/fonts/LICENSE-ibm-plex-sans.txt.

   `format('woff2')` rather than `format('woff2-variations')` — the older
   keyword still works in current Chromium, but it is obsolete and `woff2` is
   what the spec now defines for a variable font. */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/ibm-plex-sans-var.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
/* The sibling face, for literal strings only: a key name, a hostname, a
   storage key. `<code>` takes `monospace` from the UA stylesheet and nothing
   overrode it, so every code span in the privacy policy came out of DejaVu
   Sans Mono — a different design from the page around it. Plex Mono is drawn
   to sit with Plex Sans, which is the point of using it rather than whatever
   the OS calls "monospace".

   Numbers do NOT use this. They stay in Plex Sans with tabular figures, so a
   training weight reads as a quantity rather than as source code. */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* FORM CONTROLS DO NOT INHERIT TYPE. The UA stylesheet hands every <button>,
   <input>, <select> and <textarea> its own font — Arial, 13.333px — and
   nothing here ever said otherwise. So the cookie banner's three buttons, the
   only UI a first-time visitor is guaranteed to see, rendered entirely in
   Arial on all thirteen pages, as did every unstyled control behind them.
   Asked through CDP: "Accept all" came back Liberation Sans × 10, meaning all
   ten letters.

   `font: inherit` rather than `font-family: inherit`: size, weight and
   line-height come from the UA too, and inheriting only the family leaves a
   13.333px button in the middle of a 15px paragraph. */
button, input, select, textarea, optgroup {
  font: inherit;
  letter-spacing: inherit;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../assets/fonts/ibm-plex-sans-var-italic.woff2') format('woff2');
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   TRAINING OPTIMIZER — 2026 ULTRA-MODERN DESIGN SYSTEM
   ============================================================ */

/* --- Google Fonts ---
   Plus Jakarta Sans (headings), Inter (body) and JetBrains Mono (numbers/
   stats) are loaded conditionally via js/consent.js after user gives DSGVO
   consent, to avoid transferring IP address to Google without consent.
   The Helvetica/system stack below is the fallback until then (or if
   consent is declined), so the page never renders unstyled text (FOUT).
   ─────────────────────────────────────────────────────────────── */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Color Palette */
  --primary-start: #1E3A8A;
  --primary-end: #3B82F6;
  --primary-grad: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);

  --secondary-end: #34D399;
  --secondary-grad: linear-gradient(135deg, #10B981 0%, #34D399 100%);

  --accent-grad: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);

  /* Dark Mode Base */
  --bg-base: #050b18;
  --bg-surface: #0a1628;
  --bg-elevated: #0f1f3d;
  --bg-card: #111827;

  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #7c8594;
  --text-accent: #60A5FA;

  /* Status text. These are TEXT colours, not fills: each is guaranteed
     ≥4.5:1 on every surface of its own theme. Page markup must use these
     rather than a raw brand hex — a hex picked against the dark theme
     (#FBBF24 amber, #A78BFA violet) lands at 1.4–2.7:1 once the light
     theme repaints the surface underneath it. Mirrors the tested values
     in app/packages/config/src/colors.ts. */
  /* Status blue. Distinct from --text-accent, which surfaces remap to their
     own brand ink — a data band must not shift with the chrome. */
  --text-info: #60A5FA;
  --text-warning: #FBBF24;
  --text-violet: #A78BFA;
  --text-danger: #F87171;
  --text-success: #34D399;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-hover: rgba(255, 255, 255, 0.10);

  /* Faint surface steps. A white alpha lifts on dark and does nothing at all
     on light, so the light block below flips each step to an alpha of the ink
     colour, which reads as a recess instead. Use these for table stripes,
     track grooves, chips, and any panel meant to read as "slightly not the
     page". */
  --surface-1: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --surface-3: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --glass-blur: 20px;
  --glass-blur-heavy: 40px;

  /* Neumorphism */
  --neu-shadow: inset 4px 4px 8px rgba(255,255,255,0.08), inset -4px -4px 8px rgba(0,0,0,0.25);
  --neu-shadow-out: 8px 8px 20px rgba(0,0,0,0.4), -4px -4px 12px rgba(255,255,255,0.05);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);

  /* Glow Effects */
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.15);
  --glow-green: 0 0 30px rgba(16, 185, 129, 0.35), 0 0 60px rgba(16, 185, 129, 0.15);
  --glow-gold: 0 0 30px rgba(245, 158, 11, 0.45), 0 0 60px rgba(245, 158, 11, 0.2);

  /* Spacing Scale (8px modular) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  /* Typography — see the @font-face block at the top of this file. */
  --font-heading: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Numbers: the same family, aligned by tabular figures rather than by a
     borrowed code-editor voice. */
  --font-mono: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Literal strings — a key name, a hostname — where monospace is the meaning
     and not a decoration. */
  --font-code: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.6s;

  /* Z-Index Scale */
  --z-raised: 10;
  --z-header: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Container */
  --container-max: 1440px;
  --container-pad: clamp(24px, 6vw, 100px);

  /* Per-muscle accent AS TEXT — the chips on a plan day card, the day title
     on the week strip. NOT the same ramp as the fills in js/planCardRenderer's
     ACCENT, which stay theme-independent because a saturated hue works as a
     stripe or a dot on either background.

     As text it does not. The renderer used the fill hue for the chip label
     too, which is 5.9:1 upward here and 1.6:1 to 2.8:1 once the light block
     below repaints the card white — nine of the ten muscles failed AA for
     anyone on a light-mode OS. These mirror muscleText in
     app/packages/config/src/colors.ts, whose contrast.test.ts computes the
     real ratios for every muscle on every surface of both themes. */
  --muscle-chest: #60A5FA;
  --muscle-back: #34D399;
  --muscle-shoulders: #F59E0B;
  --muscle-triceps: #A78BFA;
  --muscle-biceps: #F472B6;
  --muscle-quads: #F97316;
  --muscle-hamstrings: #F87171;
  --muscle-glutes: #FBBF24;
  --muscle-calves: #22D3EE;
  --muscle-core: #A3E635;
}

/* Light Mode Overrides
   ────────────────────
   Text colours here are the light-theme values already proven in
   app/packages/config/src/colors.ts, whose contrast.test.ts computes real
   WCAG ratios for every text-on-surface pairing. This file never received
   that fix, so an axe run against the rendered pages failed on all eight
   public pages at once:
     --text-muted  was #64748b → 4.10:1 on --bg-surface, 3.79:1 on the
                   tinted blue pills. The light half of UI_UX_AUDIT P1-8.
     --text-accent had NO light override at all, so the dark-theme #60A5FA
                   painted every .section-label and prose link at ~2.3:1.
   Keep the declarations below contiguous: js/tests/theme.test.js reads a
   fixed window from this selector and expects the tokens inside it. */
[data-theme="light"] {
  --surface-1: rgba(15, 23, 42, 0.035);
  --surface-2: rgba(15, 23, 42, 0.06);
  --surface-3: rgba(15, 23, 42, 0.10);
  --bg-base: #f0f4ff;
  --bg-surface: #e8eeff;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #5B6B82;
  --text-accent: #1D4ED8;
  --text-info: #1D4ED8;
  --text-warning: #92400E;
  --text-violet: #6D28D9;
  --text-danger: #B91C1C;
  --text-success: #047857;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.12);
  --neu-shadow: inset 2px 2px 5px rgba(255,255,255,0.9), inset -2px -2px 5px rgba(0,0,0,0.08);
  --neu-shadow-out: 6px 6px 16px rgba(0,0,0,0.12), -3px -3px 8px rgba(255,255,255,0.8);
  /* Each hue taken down to the shade that clears AA on white. Glutes turns
     toward olive and shoulders toward amber so the two — 38 and 43 degrees
     apart in hue — do not collapse into one chip when both are darkened. */
  --muscle-chest: #1D4ED8;
  --muscle-back: #047857;
  --muscle-shoulders: #9A5B06;
  --muscle-triceps: #6D28D9;
  --muscle-biceps: #BE185D;
  --muscle-quads: #9A3412;
  --muscle-hamstrings: #B91C1C;
  --muscle-glutes: #6F650C;
  --muscle-calves: #155E75;
  --muscle-core: #3F6212;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* `body { overflow-x: hidden }` alone does not stop the PAGE from growing
     sideways: the root element still reports the wider scrollWidth, so the
     page scrolls horizontally anyway. On a phone that showed up on the
     pricing page, where the fan carousel's ELITE card is absolutely
     positioned and scaled and ends 5px past the viewport — enough to make
     the whole page slide under a thumb, which reads as broken.

     `clip`, not `hidden`, on purpose: `hidden` would make the root a scroll
     container and break `position: sticky` inside it. A browser too old for
     `clip` ignores this line and behaves exactly as before. */
  overflow-x: clip;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar Custom */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--primary-end); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-start); }

/* ============================================================
   3. TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.h1 { font-size: clamp(40px, 5vw, 72px); text-wrap: balance; }
.h2 { font-size: clamp(32px, 4vw, 56px); }
.h3 { font-size: clamp(24px, 3vw, 40px); }
.h4 { font-size: clamp(20px, 2.5vw, 28px); }
.h5 { font-size: clamp(18px, 2vw, 22px); }

/* ACCENTING ONE WORD OF A HEADLINE is the commonest tell of a generated
   page, and this site did it 32 times — "Everything the analysis *covers*",
   "Your Training Plan, *Scientifically* Optimized". A headline is one
   sentence; colouring a word of it splits it into two and emphasises
   whichever word happened to fit the span.

   The class stays so the markup does not have to be rewritten in seven
   files, but it no longer paints. The gradient variants below are still used
   deliberately — on a score, where the colour means the value. */
/* Accenting one word of a headline is a named tell, and this site did it 32
   times, so it is off by default. The hero is the deliberate exception: that
   treatment is the page's opening, and it was asked for back specifically. */
.gradient-text {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero .gradient-text {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: var(--secondary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   4. LAYOUT SYSTEM
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Section rhythm. Was 96px top and bottom, so 192px of nothing between one
   section's last line and the next one's heading — which reads as an unfinished
   page rather than as air once the sections themselves are short. 64px gives a
   128px ink gap, still clearly a break, on a page that now says less. */
.section {
  padding: var(--s6) 0;
}

.section-sm {
  padding: var(--s5) 0;
}

.section-lg {
  padding: calc(var(--s7) * 1.5) 0;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  gap: var(--s2);
}

.bento-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bento-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bento-grid-asymmetric {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-row-2 { grid-row: span 2; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--s1); }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }

/* ============================================================
   5. GLASS CARDS
   ============================================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.glass-heavy {
  background: var(--surface-1);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  /* A sheen, not a surface: white over the card's own fill. Invisible on
     light, which is what a sheen should be there. */
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.glass-card.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--glass-border-hover);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), var(--glow-blue);
}

/* 3D Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Gradient Border Card */
.gradient-border {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--primary-grad);
}

.gradient-border-gold {
  background: var(--accent-grad);
}

.gradient-border-green {
  background: var(--secondary-grad);
}

.gradient-border-inner {
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) - 1px);
  height: 100%;
  width: 100%;
}

/* Neumorphic */
.neu-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow-out);
  transition: box-shadow var(--dur-base) var(--ease-out);
  border: 1px solid var(--border-subtle);
}

.neu-card:hover {
  box-shadow: 12px 12px 28px rgba(0,0,0,0.5), -4px -4px 12px rgba(255,255,255,0.06), var(--glow-blue);
}

.neu-inset {
  box-shadow: var(--neu-shadow);
  border-radius: var(--radius-md);
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Sits on a filled button (gold or blue in both themes), not on the page. */
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  border-radius: inherit;
  transition: all var(--dur-base) var(--ease-out);
}

.btn:active::after {
  opacity: 1;
  transform: scale(2);
  transition: all 0s;
}

.btn:active {
  transform: scale(0.96);
}

/* Primary CTA — Gold Gradient */
.btn-primary {
  background: var(--accent-grad);
  color: #0f172a;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4), 0 2px 8px rgba(0,0,0,0.2);
  animation: pulse-gold 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.55), 0 4px 16px rgba(0,0,0,0.3);
  animation: none;
}

/* Secondary — Blue Gradient */
.btn-secondary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.5), var(--glow-blue);
}

/* Ghost Glass */
.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* Green */
.btn-green {
  background: var(--secondary-grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
}

.btn-green:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-green);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

/* ============================================================
   7. HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--s2) 0;
  transition: all var(--dur-base) var(--ease-out);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  transition: all var(--dur-base) var(--ease-out);
}

.header.scrolled .header-inner {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

[data-theme="light"] .header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
  display: block;
  object-fit: contain;
  box-shadow: var(--glow-blue), var(--neu-shadow-out);
  transition: all var(--dur-base) var(--ease-spring);
}

.logo:hover .logo-icon {
  transform: scale(1.1) rotate(3deg);
  box-shadow: var(--glow-blue), 0 0 0 4px rgba(59,130,246,0.3);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-text span {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Live counter */
.live-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary-grad);
  border-radius: var(--radius-full);
  transition: transform var(--dur-base) var(--ease-spring);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Theme Toggle */
.theme-toggle {
  width: 48px;
  height: 26px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}

/* Extend the tap/click target to a comfortable size without changing the
   visible 48x26 track (the knob already uses ::after). */
.theme-toggle::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.theme-toggle::after {
  content: '☀️';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--primary-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: transform var(--dur-base) var(--ease-spring);
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(22px);
  content: '🌙';
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  z-index: var(--z-drawer);
  background: linear-gradient(170deg, rgba(11,17,40,0.99) 0%, rgba(4,9,20,1) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: 1px solid rgba(59,130,246,0.14);
  box-shadow: -24px 0 80px rgba(0,0,0,0.65);
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
}

.mobile-drawer::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateX(0);
}
/* Closed, the drawer is off-screen but was still THERE: its 80px shadow fell across the right
   edge of every page on a phone, and its links took keyboard focus where nobody could see
   them. Closed means not rendered to anyone — hidden once the slide-out has finished, shown
   the moment it opens. */
.mobile-drawer:not(.open) { visibility: hidden; box-shadow: none; transition: transform 0.38s cubic-bezier(0.32,0.72,0,1), visibility 0s 0.38s; }

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}
.drawer-overlay.open {
  display: block;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--surface-2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  font-family: var(--font-body);
  position: relative;
}
/* Extend the tap target beyond the visible 34x34 circle without changing
   its appearance. */
.drawer-close::after {
  content: '';
  position: absolute;
  inset: -10px;
}
.drawer-close:hover {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* Drawer Nav */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  flex: 1;
  overflow-y: auto;
  margin-top: 0;
}

/* THE ROW CARRIES ITS OWN HEIGHT NOW. It used to inherit it from a 34px
   emoji tile — the phone navigation was the one surface in the product still
   built from full-colour system emoji (🏠 ⚡ 🔬 🎯 📊 💎 📱), which the desktop
   nav beside it never had. 48px is the comfortable-target size; the rows are
   wide, so this is about the thumb, not the pointer. */
.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.drawer-nav-link .dlabel {
  flex: 1;
}
/* VISIBLE, because a touch device never hovers. This was `opacity: 0` until
   :hover — on the drawer that only exists on phones, so the affordance was
   permanently hidden from every device that can open it. */
.drawer-nav-link .dchev {
  font-size: 16px;
  color: var(--text-muted);
  opacity: 0.55;
  transition: all 0.18s ease;
}
.drawer-nav-link:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.15);
  color: var(--text-primary);
  transform: none;
}
.drawer-nav-link:hover .dchev {
  opacity: 1;
}
.drawer-nav-link.active {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.22);
  color: #93C5FD;
}
.drawer-nav-link.active .dchev {
  opacity: 1;
  color: var(--text-accent);
}

/* Staggered slide-in animation */
.mobile-drawer.open .drawer-nav-link {
  animation: drawerLinkIn 0.32s var(--ease-out) both;
}
.mobile-drawer.open .drawer-nav-link:nth-child(1) { animation-delay: 0.04s; }
.mobile-drawer.open .drawer-nav-link:nth-child(2) { animation-delay: 0.07s; }
.mobile-drawer.open .drawer-nav-link:nth-child(3) { animation-delay: 0.10s; }
.mobile-drawer.open .drawer-nav-link:nth-child(4) { animation-delay: 0.13s; }
.mobile-drawer.open .drawer-nav-link:nth-child(5) { animation-delay: 0.16s; }
.mobile-drawer.open .drawer-nav-link:nth-child(6) { animation-delay: 0.19s; }
.mobile-drawer.open .drawer-nav-link:nth-child(7) { animation-delay: 0.22s; }
@keyframes drawerLinkIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Drawer Footer */
.drawer-footer {
  padding: 14px 16px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drawer-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
/* Same floor as the nav rows above it: this is the only sign-in entry point
   on a phone, and it was 41x21. */
.drawer-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.drawer-footer-links a:hover {
  color: var(--text-secondary);
}

/* Light Mode — Drawer Overrides */
[data-theme="light"] .mobile-drawer {
  background: linear-gradient(170deg, #ffffff 0%, #f0f4ff 100%);
  border-left: 1px solid rgba(59,130,246,0.18);
  box-shadow: -20px 0 60px rgba(0,0,0,0.12);
}
[data-theme="light"] .mobile-drawer::before {
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
}
[data-theme="light"] .drawer-header {
  border-bottom-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .drawer-close {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .drawer-close:hover {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .drawer-nav-link:hover {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.18);
}
[data-theme="light"] .drawer-nav-link.active {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.22);
  color: #1D4ED8;
}
[data-theme="light"] .drawer-nav-link.active .dchev {
  color: #3B82F6;
}
[data-theme="light"] .drawer-footer {
  border-top-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .drawer-footer-links a {
  color: var(--text-muted);
}
[data-theme="light"] .drawer-overlay {
  background: rgba(0,0,0,0.35);
}

/* Floating CTA Bar */

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

/* THE SCROLL HINT GETS ITS OWN ROOM. It is pinned 32px above the hero's
   bottom edge, and the hero is only min-height:100vh — once its content is
   taller than the screen (every width, with the example analysis card), the
   bottom edge IS the end of that card, and "Scroll to explore" was drawn
   67px deep into its "Top priority fix" row. Padding the hero by the hint's
   own height (18px label + 8px gap + 40px mouse + 32px offset, plus air)
   keeps content out of that strip at every size. */
.hero:has(> .hero-scroll) { padding-bottom: 116px; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(30, 58, 138, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  width: 100%;
  padding: 0 var(--s4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: var(--s3);
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-grad);
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================================
   HERO BANNER
   ============================================================
   Replaces the logo + two-line <h1>. It is the LCP element, so it
   carries width/height and fetchpriority in the markup and gets no
   entrance animation — fading in the largest thing on the page is
   how a fast load is made to feel slow.

   FULL WIDTH. The banner breaks out of `.hero-content`'s 920px column
   to fill the viewport, not just the wider-than-the-column box it used
   to stop at — `width: 100vw` plus a negative `margin-left` re-centers
   it regardless of where its ancestor's padding sits. `body`'s
   `overflow-x: hidden` (see base rules, above) is what keeps a
   fractional scrollbar-width mismatch on 100vw from opening a
   horizontal scrollbar.

   TWO IMAGES, ONE MASK. Each theme now has its own export — a dark
   asset that is actually dark, not the light marketing banner
   letterboxed onto a navy page — so both can feather the same way
   instead of the old split (light melts, dark gets a bordered panel
   lit by a glow because no mask makes a light image dark). Visibility
   is swapped in index.html by `[data-theme]`, not `display:none` +
   `prefers-color-scheme`: the site's theme can change at runtime from
   either the OS or the `.theme-toggle`, and only `[data-theme]` tracks
   both.

   THE FEATHERED EDGE. Two masks intersected, one per axis, so all
   four sides dissolve rather than ending on a hard rectangle. The
   stops are SHALLOW on purpose and shared by both images: each
   artwork's own content runs close to the frame — the mark sits about
   3% from the left and the far edge (tablet or app screens) ends
   about 97% — so a fashionable 12% feather would eat the logo and
   crop the device. 5% horizontally and 8% vertically is the most that
   can dissolve without deleting anything.
   ============================================================ */
.hero-banner {
  position: relative;
  margin: 0 auto var(--s3);
  width: 100vw;
  max-width: 100vw;
  /* The column has side padding; this cancels it, and re-centers the
     banner on the viewport rather than on `.hero-content`. */
  margin-left: calc(50% - 50vw);
  line-height: 0;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  /* Both axes must fade, so the two masks INTERSECT. The unprefixed keyword
     is `intersect`; WebKit's older syntax spells the same operation
     `source-in`, and shipping only one leaves the other engine with a hard
     edge on two sides. */
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Both images are always in the DOM (so a runtime theme switch never
   re-fetches anything); only one is ever shown. Dark is the unqualified
   default because `data-theme="dark"` is the page's own default.

   Specificity, not source order, is what has to win here: `.hero-banner
   img` above is one class plus one element (0,1,1), so a same-order
   single-class `.hero-banner-light { display: none }` (0,1,0) loses to it
   and both images render at once. Every rule below repeats `.hero-banner
   img` in the selector so nothing here is lower than what it must beat. */
.hero-banner img.hero-banner-light {
  display: none;
}

[data-theme="light"] .hero-banner img.hero-banner-dark {
  display: none;
}

[data-theme="light"] .hero-banner img.hero-banner-light {
  display: block;
}

/* The lit surface under the banner. On the dark theme this is what makes
   the artwork read as though it is lighting the page around it rather than
   simply sitting on top of it. Sized to the banner and behind it, so it
   never touches the artwork's own pixels. Horizontal inset is 0 now that
   the banner already reaches both edges — there is no page left beside it
   for the glow to spill onto. */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: -8% 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(96, 165, 250, 0.16) 0%,
    rgba(96, 165, 250, 0.06) 45%,
    transparent 72%
  );
  pointer-events: none;
}

/* The blue wash is a dark-theme device, there to light the page around a
   dark banner. On light it would be a blue smudge behind a light image
   that already melts into the page on its own. */
[data-theme="light"] .hero-banner::before {
  display: none;
}

/* ── The banner on a phone ────────────────────────────────────
   The artwork is 2062x763 — a 2.7:1 landscape poster. At 390px wide that
   renders 144px tall, and everything inside it scales with it: the wordmark,
   the line under it and the two badges under it all land between 6 and 9px.
   The first thing a phone visitor saw was the brand statement, unreadable.

   So crop instead of shrink. The composition is already two halves — the
   wordmark and its supporting line on the left, the device mockups on the
   right — and only the left half says anything at 390px. `cover` with a
   left-anchored position keeps the full HEIGHT of the artwork and trims the
   width, which is the half that was costing legibility rather than carrying
   it. The result is roughly 2.2x the type size of the squeezed version.

   The mask still applies: it is on the element box, not the pixels. */
@media (max-width: 640px) {
  .hero-banner img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: left center;
    /* A DEEPER RIGHT EDGE, because the crop ends mid-composition. On desktop
       the image ends where the artwork ends, so 5% is enough to soften a
       finished edge. Here it cuts through the device mockups, and a hard stop
       through a phone bezel reads as a rendering fault rather than a fade —
       most visibly on the light theme, where it lands as a grey bar. 12%
       dissolves it while leaving the "Stronger Over Time" card intact. */
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 5%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 5%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
}

.hero-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--s3);
  text-wrap: balance;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--s5);
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--primary-end);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero-cta-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* Live Score Demo */
.hero-demo {
  margin-top: var(--s7);
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.score-demo-card {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s4);
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.score-demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.6), rgba(16,185,129,0.6), transparent);
}

.score-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  /* A token, not white at 8%: the track is the ring's scale, and on the
     light theme a white stroke over a near-white card drew nothing. */
  stroke: var(--surface-3);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.score-number small {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.slider-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.slider-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.slider-label strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  outline: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-grad);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59,130,246,0.5);
  transition: all var(--dur-base) var(--ease-spring);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 16px rgba(59,130,246,0.7);
}

.range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-grad);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(59,130,246,0.5);
}

/* ============================================================
   9. SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--s5);
}

/* THE EYEBROW. A tracked-out capitalised label sat above every section
   heading on the site — 24 of them — saying in small letters what the
   heading says in large ones. "Adding unnecessary typographic labels above
   content" is the third tell the design brief names, and the pill chrome
   around it was the fourth.

   Kept as a quiet line rather than deleted from 24 places in markup: it can
   still carry a section name where that helps, in the page's own voice and
   at the page's own case. */
.section-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 10px;
}
.section-label::before { content: none; }

.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  width: 24px;
  height: 1px;
  background: var(--primary-end);
  opacity: 0.5;
}

/* 52px was the hero's size on a section heading, which left the page shouting
   every 800px. The hero keeps its scale; the sections step down under it. */
.section-title {
  font-size: clamp(27px, 3.2vw, 40px);
  margin-bottom: var(--s2);
}

.section-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   10. FEATURE BENTO GRID
   ============================================================ */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--s2);
}

.feature-card {
  padding: var(--s4);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  transition: all var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.feature-bento .feature-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), var(--glow-blue);
}

.feature-card:hover::after {
  top: -20%;
  right: -20%;
}

.feature-card-large { grid-column: span 5; grid-row: span 2; }
.feature-card-medium { grid-column: span 4; }
.feature-card-small { grid-column: span 3; }
.feature-card-wide { grid-column: span 7; }

/* Compact proof strip — replaces scattered small/medium bento cards */
.proof-strip {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 18px 8px;
  margin-top: var(--s4);
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 160px;
  padding: 10px 20px;
}
.proof-sep {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
  flex-shrink: 0;
}
.proof-icon { font-size: 22px; flex-shrink: 0; }
.proof-text { display: flex; flex-direction: column; gap: 2px; }
.proof-label { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.proof-sub { font-size: 11px; color: var(--text-muted); }
.proof-score {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(59,130,246,0.45);
}
.proof-ba {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 5px 9px; white-space: nowrap; flex-shrink: 0;
}
.proof-arrow { color: var(--text-muted); }
@media (max-width: 900px) {
  .proof-sep { display: none; }
  .proof-item { min-width: calc(50% - 16px); flex: none; }
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-icon-blue { background: rgba(59, 130, 246, 0.15); box-shadow: 0 0 20px rgba(59,130,246,0.2); }
.feature-icon-green { background: rgba(16, 185, 129, 0.15); box-shadow: 0 0 20px rgba(16,185,129,0.2); }
.feature-icon-gold { background: rgba(245, 158, 11, 0.15); box-shadow: 0 0 20px rgba(245,158,11,0.2); }
.feature-icon-purple { background: rgba(124, 58, 237, 0.15); box-shadow: 0 0 20px rgba(124,58,237,0.2); }

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.feature-metric {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.criteria-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.criteria-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: var(--surface-1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-fast) var(--ease-out);
}

.criteria-item:hover {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: var(--text-primary);
}

.criteria-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonials-track {
  display: flex;
  gap: var(--s3);
  overflow: hidden;
  position: relative;
}

.testimonials-inner {
  display: flex;
  gap: var(--s3);
  animation: scroll-track 30s linear infinite;
}

.testimonials-inner:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  padding: var(--s3);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--s2);
}

.star {
  color: var(--text-warning);
  font-size: 14px;
  animation: star-burst 0.3s var(--ease-spring) backwards;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s3);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   12. HOW IT WORKS
   ============================================================ */
.steps-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-start), var(--primary-end), var(--secondary-end));
  opacity: 0.3;
}

.step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s4);
  align-items: start;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  background: var(--primary-grad);
  color: #fff;
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--dur-base) var(--ease-spring);
}

.step-item:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--glow-blue), 0 0 0 8px rgba(59,130,246,0.15);
}

.step-content {
  padding: var(--s4);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-base) var(--ease-out);
}

.step-content:hover {
  border-color: var(--glass-border-hover);
  transform: translateX(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--s1);
}

.step-desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   13. SCIENCE / CRITERIA MATRIX
   ============================================================ */
.criteria-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.criteria-row {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.criteria-row:hover {
  background: var(--glass-bg-hover);
  transform: translateX(4px);
}

.criteria-row td {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.criteria-row td:first-child {
  border-left: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.criteria-row td:last-child {
  border-right: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── The six criteria on a phone ──────────────────────────────
   The table is five columns and carries `min-width: 700px` inline, inside a
   wrapper that scrolls sideways. On a 390px screen that left the first two
   columns visible and pushed the score bar, the score badge and the DETAILS
   BUTTON — the only way to open a criterion — off to the right, behind a
   horizontal scroll with nothing on screen to suggest it was there.

   So the row stops being a row. Each becomes a card: the name and its range
   across the top, the two badges and the bar beneath, the button last and
   reachable. No markup changed — a <tr> takes `display: flex` and the cells
   wrap. */
@media (max-width: 640px) {
  .criteria-table {
    min-width: 0 !important;
    border-spacing: 0 !important;
  }
  .criteria-table thead { display: none; }

  .criteria-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
  }
  .criteria-row:hover { transform: none; }

  .criteria-row td,
  .criteria-row td:first-child,
  .criteria-row td:last-child {
    display: block;
    padding: 0;
    border: none;
    border-radius: 0;
  }
  /* Name and range own the first line; the bar owns its own. */
  .criteria-row td:first-child,
  .criteria-row td:nth-child(3) { flex: 1 1 100%; }
  /* Weight and score sit together under it. */
  .criteria-row td:nth-child(2),
  .criteria-row td:nth-child(4) { flex: 0 0 auto; }
  .criteria-row td:last-child { flex: 1 1 auto; text-align: right; }
  /* 120px was a column width; here the bar has the row to itself. Two
     classes, because the 120px rule is declared further down this file and a
     single-class override at equal specificity would lose on source order. */
  .criteria-row .criteria-score-bar { width: 100%; }
}

.criteria-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.criteria-range {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-accent);
}

.criteria-score-bar {
  width: 120px;
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.criteria-score-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--secondary-grad);
  transition: width 1s var(--ease-out);
}

.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.score-badge-green { background: rgba(16,185,129,0.15); color: var(--text-success); border: 1px solid rgba(16,185,129,0.3); }
.score-badge-yellow { background: rgba(245,158,11,0.15); color: var(--text-warning); border: 1px solid rgba(245,158,11,0.3); }
.score-badge-red { background: rgba(239,68,68,0.15); color: var(--text-danger); border: 1px solid rgba(239,68,68,0.3); }
.score-badge-blue { background: rgba(59,130,246,0.15); color: var(--text-accent); border: 1px solid rgba(59,130,246,0.3); }

/* Criteria Detail Slide Panel */
.criteria-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 95vw);
  z-index: var(--z-modal);
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(40px);
  border-left: 1px solid var(--glass-border);
  padding: var(--s6) var(--s5);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  /* The panel surface is always dark, so force light text regardless of the
     active theme — otherwise the light theme's dark text tokens render
     unreadable (dark-on-dark). Overriding the tokens fixes every descendant
     that uses var(--text-*) in one place. */
  color: var(--text-primary);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #94A3B8;
  --text-accent: #60A5FA;
}

.criteria-detail-panel.open {
  transform: translateX(0);
}

/* ============================================================
   14. ANALYZE PAGE
   ============================================================
   One console, three input methods behind a segmented control.
   Surfaces are declared as tokens (below) rather than inline
   white-alpha tints, because white-alpha fills collapse into the
   page in the light theme — the tokens carry an opaque light value.
   ============================================================ */

:root {
  --az-panel:        #0b1424;
  --az-panel-border: rgba(255,255,255,0.09);
  --az-inset:        rgba(255,255,255,0.035);
  --az-inset-hover:  rgba(255,255,255,0.065);
  --az-inset-border: rgba(255,255,255,0.09);
  --az-thumb:        rgba(255,255,255,0.07);
  --az-thumb-border: rgba(255,255,255,0.13);
  --az-thumb-shadow: 0 4px 14px rgba(0,0,0,0.42);
  --az-panel-shadow: 0 28px 70px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
  --az-lift-shadow:  0 16px 40px rgba(0,0,0,0.35);
}

[data-theme="light"] {
  --az-panel:        #ffffff;
  --az-panel-border: rgba(15,23,42,0.08);
  --az-inset:        #f3f6fd;
  --az-inset-hover:  #e9effb;
  --az-inset-border: rgba(15,23,42,0.07);
  --az-thumb:        #ffffff;
  --az-thumb-border: rgba(15,23,42,0.08);
  --az-thumb-shadow: 0 2px 8px rgba(15,23,42,0.12);
  --az-panel-shadow: 0 22px 52px rgba(15,23,42,0.10), 0 1px 3px rgba(15,23,42,0.06);
  --az-lift-shadow:  0 14px 32px rgba(15,23,42,0.12);
}

/* Shared inline icon sizing — every icon on this page is an inline SVG
   inheriting currentColor, so it picks up hover/active states for free. */
.az-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Hero ───────────────────────────────────────────────────── */
.az-hero {
  padding: 148px 0 56px;
  position: relative;
  overflow: hidden;
}

.az-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.az-hero-title {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: var(--s3);
}

.az-hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
}





/* ── Console shell ──────────────────────────────────────────── */
.az-main { padding-bottom: var(--s7); }

.az-console {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--az-panel);
  border: 1px solid var(--az-panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--az-panel-shadow);
  overflow: hidden;
}

.az-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border-subtle);
}

.az-console-hint {
  flex: 1 1 280px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0;
  text-align: right;
}

.az-console-body { padding: var(--s4); }

.az-pane {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  animation: az-pane-in 0.34s var(--ease-out) both;
}

.az-pane[hidden] { display: none; }

@keyframes az-pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Segmented control ──────────────────────────────────────── */
.az-seg {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  background: var(--az-inset);
  border: 1px solid var(--az-inset-border);
  border-radius: var(--radius-full);
}

.az-seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: var(--radius-full);
  background: var(--az-thumb);
  box-shadow: var(--az-thumb-shadow), inset 0 0 0 1px var(--az-thumb-border);
  transform: translateX(calc(var(--az-seg-i, 0) * 100%));
  transition: transform 0.38s var(--ease-out);
  pointer-events: none;
}

.az-seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: none;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out);
}

.az-seg-btn:hover { color: var(--text-primary); }
.az-seg-btn .az-ico { opacity: 0.7; transition: opacity var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.az-seg-btn.is-active { color: var(--text-primary); }
.az-seg-btn.is-active .az-ico { opacity: 1; color: var(--text-accent); }
.az-seg-btn:focus-visible { outline: 2px solid var(--primary-end); outline-offset: 2px; }

/* ── Quiz (inside the console) ──────────────────────────────── */
.az-quiz {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}

.az-quiz-loading {
  padding: 64px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.quiz-progress {
  height: 3px;
  background: var(--az-inset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary-grad);
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-spring);
}

.quiz-step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--az-inset);
  border: 1px solid var(--az-inset-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-out);
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
}

.quiz-option:hover {
  background: rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.38);
  color: var(--text-primary);
  transform: translateX(3px);
}

.quiz-option.selected {
  background: rgba(59,130,246,0.18);
  border-color: var(--primary-end);
  color: var(--text-primary);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-option-chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  background: var(--az-inset);
  border: 1px solid var(--az-inset-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

.chip-group .quiz-option-chip:hover {
  background: var(--az-inset-hover);
  border-color: rgba(59,130,246,0.45);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.chip-group .quiz-option-chip.selected {
  background: var(--primary-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(59,130,246,0.32);
  transform: translateY(-1px);
}

.az-quiz-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 44px 0 8px;
}

.az-quiz-done-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.28);
  color: var(--text-success);
  margin-bottom: 4px;
}

.az-quiz-done-ico svg { width: 28px; height: 28px; }

.az-quiz-done-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.az-quiz-done-sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 8px;
}

/* ── Smart paste ────────────────────────────────────────────── */
.smart-textarea {
  width: 100%;
  min-height: 300px;
  background: var(--az-inset);
  border: 1px solid var(--az-inset-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  line-height: 1.75;
}

.smart-textarea::placeholder {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
}

.smart-textarea:hover { border-color: var(--border-medium); }

.smart-textarea:focus {
  border-color: rgba(59,130,246,0.65);
  background: var(--az-inset-hover);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.14), 0 0 34px rgba(59,130,246,0.12);
}

.az-field-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  margin-top: -12px;
}

.az-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.detection-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.26);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-success);
  animation: fadeInUp 0.3s var(--ease-spring);
}

.detection-tag .az-ico { width: 14px; height: 14px; }

/* ── Upload ─────────────────────────────────────────────────── */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--s5) var(--s4);
  text-align: center;
  cursor: pointer;
  background: var(--az-inset);
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  min-height: 280px;
}

.az-pane .upload-zone:hover,
.az-pane .upload-zone.drag-over,
.az-pane .upload-zone:focus-visible {
  border-color: rgba(59,130,246,0.6);
  background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.10);
  transform: translateY(-2px);
  outline: none;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--az-inset-hover);
  border: 1px solid var(--az-inset-border);
  color: var(--text-accent);
  margin-bottom: 10px;
  transition: transform var(--dur-base) var(--ease-spring),
              border-color var(--dur-base) var(--ease-out);
}

.upload-icon svg { width: 28px; height: 28px; }

.az-pane .upload-zone:hover .upload-icon,
.az-pane .upload-zone.drag-over .upload-icon {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(59,130,246,0.4);
}

.upload-zone-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.upload-zone-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

.az-formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.az-formats .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
}

.az-previews {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.az-previews:empty { display: none; }

.az-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.az-preview .az-ico { color: var(--text-success); }

.az-preview-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 500;
}

.az-preview-size {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* A picked spreadsheet the page will not read (analyze.html, handleFiles):
   the row says so where the file name is, not only in a toast that fades. */
.az-preview.az-preview-bad {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
}
/* .az-previews prefix: outranks the light theme's green `.az-preview .az-ico`. */
.az-previews .az-preview.az-preview-bad .az-ico,
.az-preview.az-preview-bad .az-preview-size { color: var(--text-warning); }
.az-preview.az-preview-bad .az-preview-size { font-family: inherit; font-weight: 600; }

/* ── Hint rows ──────────────────────────────────────────────── */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-accent);
  padding: 12px 16px;
  background: rgba(59,130,246,0.07);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: var(--radius-sm);
}

.ai-typing-warn {
  color: var(--text-warning);
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.2);
}

.typing-dots {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-end);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── Actions ────────────────────────────────────────────────── */
.az-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
  padding-top: var(--s1);
}

.az-cta {
  padding: 16px 34px;
  font-size: 16.5px;
  animation: none;
}

.az-cta .az-ico { width: 19px; height: 19px; }

.az-samples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.az-samples-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 2px;
}

.az-chip {
  padding: 8px 15px;
  background: var(--az-inset);
  border: 1px solid var(--az-inset-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.az-samples .az-chip:hover {
  background: var(--az-inset-hover);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ── Assurance bar ──────────────────────────────────────────── */
.az-assurance {
  max-width: 1040px;
  margin: var(--s3) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--az-panel);
  border: 1px solid var(--az-panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.az-assure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--s3);
  border-right: 1px solid var(--border-subtle);
  transition: background var(--dur-base) var(--ease-out);
}

.az-assure:last-child { border-right: none; }
.az-assurance .az-assure:hover { background: var(--az-inset); }



.az-assure-t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.az-assure-d {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.az-assure-d a { color: var(--text-accent); text-decoration: none; }
.az-assure-d a:hover { text-decoration: underline; }

/* ── Point-of-use disclaimer ────────────────────────────────── */
.az-disclaimer {
  max-width: 1040px;
  margin: var(--s3) auto 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: var(--radius-sm);
}

.az-disclaimer .az-ico { color: var(--text-warning); margin-top: 2px; }

.az-disclaimer p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.az-disclaimer strong { color: #D97706; }
[data-theme="dark"] .az-disclaimer strong { color: #FBBF24; }
.az-disclaimer a { color: var(--text-accent); text-decoration: none; }
.az-disclaimer a:hover { text-decoration: underline; }

/* ── Analysis overlay ───────────────────────────────────────── */
.ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  animation: fadeIn 0.4s ease;
}

.ai-overlay-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -58%);
  background: radial-gradient(circle, rgba(59,130,246,0.16) 0%, transparent 62%);
  pointer-events: none;
}

.ai-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 0 var(--s3);
  max-width: 460px;
}

.ai-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: var(--s4);
}

.ai-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.28);
  box-shadow: 0 0 46px rgba(59,130,246,0.22) inset;
}

.ai-spin {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-block;
  animation: spin 2s linear infinite;
}

.ai-overlay-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.ai-overlay-sub {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--s4);
}

.ai-bar {
  width: 100%;
  max-width: 340px;
  height: 4px;
  background: var(--az-inset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.ai-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #3B82F6, #10B981);
  box-shadow: 0 0 14px rgba(59,130,246,0.5);
  transition: width 0.5s var(--ease-out);
}

.ai-overlay-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  min-height: 20px;
}

.ai-overlay-status #aiStatusMsg {
  font-weight: 600;
  color: var(--text-secondary);
}

.ai-overlay-status #aiStepCount {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.ai-overlay-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-medium);
  flex-shrink: 0;
}

.ai-overlay-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.28);
  color: var(--text-warning);
  margin-bottom: var(--s3);
}

.ai-overlay-ico svg { width: 30px; height: 30px; }

.ai-overlay-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Light theme ─────────────────────────────────────────────
   The blue/green/gold accents above are tuned for a dark page and
   drop to ~1.6–2.3:1 on a white panel. Ratios below were computed
   against the resolved (alpha-composited) light backgrounds and all
   clear 4.5:1 for text, 3:1 for icons.
   ──────────────────────────────────────────────────────────── */
[data-theme="light"] .az-seg-btn.is-active .az-ico,
[data-theme="light"] .upload-icon                 { color: #2563EB; }

[data-theme="light"] .ai-typing                   { color: #1D4ED8; }
[data-theme="light"] .ai-typing-warn              { color: #92400E; }

[data-theme="light"] .detection-tag,
[data-theme="light"] .az-preview .az-ico,
[data-theme="light"] .az-quiz-done-ico            { color: #047857; }

[data-theme="light"] .az-disclaimer .az-ico       { color: #B45309; }
[data-theme="light"] .az-disclaimer strong        { color: #92400E; }
[data-theme="light"] .az-disclaimer p             { color: var(--text-secondary); }

[data-theme="light"] .az-assure-d a,
[data-theme="light"] .az-disclaimer a             { color: #1D4ED8; }

/* --text-muted lands at 4.40:1 on the light inset fill — a hair under
   AA — so muted labels sitting ON an inset surface step up one level. */
[data-theme="light"] .char-counter,
[data-theme="light"] .upload-zone-sub,
[data-theme="light"] .az-samples-label,
[data-theme="light"] .az-quiz-loading             { color: var(--text-secondary); }

[data-theme="light"] .ai-overlay-glow {
  background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 62%);
}

/* ============================================================
   15. RESULTS PAGE
   ============================================================ */
.results-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.results-score-reveal {
  text-align: center;
  z-index: 2;
  position: relative;
}

.mega-score {
  font-family: var(--font-mono);
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 700;
  line-height: 1;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.mega-score-glow {
  position: absolute;
  inset: 0;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(30px);
  opacity: 0.4;
  z-index: -1;
}

.score-ring-large {
  width: 300px;
  height: 300px;
  margin: 0 auto var(--s4);
  position: relative;
}

.particle-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Result Cards */
.result-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
}

.result-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.result-cards-grid .result-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s3);
}

.result-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.result-card-icon-green { background: rgba(16,185,129,0.15); box-shadow: 0 0 20px rgba(16,185,129,0.25); }
.result-card-icon-red { background: rgba(239,68,68,0.15); box-shadow: 0 0 20px rgba(239,68,68,0.2); }
.result-card-icon-gold { background: rgba(245,158,11,0.15); box-shadow: 0 0 20px rgba(245,158,11,0.25); }

.result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.result-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.result-list li::before {
  /* Was content:'→', which the typeface has no glyph for. A drawn marker
     instead — same ink, same weight, no system font in a list of results. */
  content: '';
  width: 0; height: 0; flex-shrink: 0; margin-top: .5em;
  border-left: .42em solid var(--text-secondary);
  border-top: .28em solid transparent;
  border-bottom: .28em solid transparent;
}

/* Before/After Swipe */
.before-after-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  user-select: none;
}

.before-after-before,
.before-after-after {
  padding: var(--s4);
  min-height: 300px;
}

.before-after-before { background: rgba(239,68,68,0.05); }
.before-after-after { background: rgba(16,185,129,0.05); }

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-grad);
  cursor: ew-resize;
  z-index: 5;
  transition: left 0.05s linear;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: var(--glow-blue);
}

/* Weekly Plan Timeline */
.week-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s1);
}

.day-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  perspective: 600px;
}

.day-card:hover {
  transform: translateY(-4px) rotateX(5deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3), var(--glow-blue);
  border-color: var(--glass-border-hover);
}

.day-card.rest {
  opacity: 0.5;
}

.day-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.day-content {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.day-sets {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Export Buttons */
.export-group {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* Upgrade Bar */
.upgrade-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px var(--s4);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border-hover);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  z-index: var(--z-raised);
}

.upgrade-bar-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.upgrade-bar-text strong {
  color: #ffffff;
}

/* ============================================================
   16. PRICING PAGE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  align-items: stretch;   /* all three cards equal height regardless of feature count */
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--s5);
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-grid .pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.featured {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: var(--glow-gold);
  transform: scale(1.03);
}

.pricing-grid .pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

/* ELITE keeps its violet accent on the tier name, the price and its
   explainer, but not a second glowing border: the page already names PRO as
   the recommended plan, and two cards glowing means neither is emphasised. */
.pricing-card.elite {
  border-color: color-mix(in srgb, var(--text-violet) 28%, transparent);
}

/* THE RECOMMENDED-PLAN FLAG.
   Was a gold gradient bar rotated 45deg through the card's corner, animated
   with a 3s infinite pulse. Non-user-triggered motion, on the one card the
   page most wants read carefully, in the one place a price comparison should
   be calm. The flag says the same thing, once, and stays still. */
.plan-flag {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-warning);
}

.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--s1);
}

.pricing-price sup {
  font-size: 24px;
  vertical-align: super;
  font-weight: 500;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--s4);
  flex: 1;
  list-style: none;
  padding: 0;
}

.feature-yes,
.feature-no {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.feature-yes::before {
  /* Drawn, for the same reason: '✓' came out of DejaVu Sans on every row of
     the pricing table, a different weight from the label beside it. */
  content: '';
  width: .4em; height: .74em; flex-shrink: 0; margin-top: .2em;
  border: solid var(--text-success);
  border-width: 0 .15em .15em 0;
  transform: rotate(45deg);
}
.feature-no::before {
  /* An X drawn as two crossing gradients in one box — no glyph, so nothing to
     substitute. The colour was a white alpha, which reads as a lift on dark
     and as nothing at all on light; it is a token now. */
  content: '';
  width: .66em; height: .66em; flex-shrink: 0; margin-top: .26em;
  color: var(--text-muted);
  opacity: .6;
  background:
    linear-gradient(45deg,  transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
}
[data-theme="light"] .feature-no::before {
  color: rgba(0,0,0,0.2);
}

.pricing-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--s3);
  line-height: 1.5;
}

.pricing-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 0 8px rgba(16,185,129,0.4);
}

.pricing-feature-x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-accent);
  margin-top: var(--s4);
  justify-content: center;
}

.countdown-unit {
  text-align: center;
}

.countdown-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.countdown-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-sep {
  color: var(--primary-end);
  font-size: 20px;
}

/* ============================================================
   17. DASHBOARD
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dashboard-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: rgba(59,130,246,0.12);
  color: var(--text-accent);
  border: 1px solid rgba(59,130,246,0.2);
}

.dashboard-main {
  padding: var(--s5);
  overflow-y: auto;
}

/* Score Trend Chart */
.score-trend-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}

.trend-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: var(--s3);
}

.trend-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  position: relative;
}

.trend-bar.highlight {
  background: var(--primary-grad);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(59,130,246,0.4);
}

.trend-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.02);
}

.dashboard-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s3);
}

.dashboard-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  transition: all var(--dur-base) var(--ease-out);
}

.dashboard-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.dashboard-card-full { grid-column: span 3; }
.dashboard-card-2 { grid-column: span 2; }

/* AI Chat Panel */
.ai-chat-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.ai-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: var(--glow-blue);
}

.ai-message-bubble {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--s7) 0 var(--s4);
}

.footer-bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-top: var(--s2);
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--s2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

/* A THUMB, NOT A POINTER. These rendered 18px tall, which is fine for a
   mouse and under WCAG 2.2's 24px floor for a touch target — and the footer
   is where a phone visitor goes looking for the legal pages. The links sit in
   a column, so the height can come from padding without moving anything
   sideways; the flex gap shrinks by the same amount so the block does not
   grow. `inline-flex` because padding does nothing to an inline box's
   hit area in the way a target needs. */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* The four legal links here carry inline styles (colour, size), which is why
   the target size is set from CSS: an inline style never declares `display`
   or `min-height`, so this still wins where it matters and changes nothing
   about how they look. 19px tall before. */
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s4);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--s2);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-out);
}

.social-link:hover {
  background: var(--primary-grad);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

/* ============================================================
   19. ANIMATIONS (Keyframes)
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(245, 158, 11, 0.65), 0 0 60px rgba(245, 158, 11, 0.2); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

@keyframes scroll-track {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes float-particle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@keyframes star-burst {
  from { transform: scale(0) rotate(-30deg); }
  to { transform: scale(1) rotate(0deg); }
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes counter-roll {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-in-right {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { filter: blur(20px); opacity: 0.4; }
  50% { filter: blur(30px); opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll Reveal - initial state */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.05) 25%, 
    rgba(255,255,255,0.10) 50%, 
    rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================================
   20. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--text-accent); }

.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mb-2 { margin-bottom: var(--s2); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }

.p-3 { padding: var(--s3); }
.p-4 { padding: var(--s4); }
.p-5 { padding: var(--s5); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--s4) 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.tag-blue { background: rgba(59,130,246,0.12); color: var(--text-accent); border-color: rgba(59,130,246,0.25); }
.tag-green { background: rgba(16,185,129,0.12); color: var(--text-success); border-color: rgba(16,185,129,0.25); }
.tag-gold { background: rgba(245,158,11,0.12); color: var(--text-warning); border-color: rgba(245,158,11,0.25); }
.tag-purple { background: rgba(124,58,237,0.12); color: var(--text-violet); border-color: rgba(124,58,237,0.25); }

/* ============================================================
   21. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .feature-bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature-card-large { grid-column: span 6; }
  .feature-card-medium { grid-column: span 3; }
  .feature-card-small { grid-column: span 2; }
  .feature-card-wide { grid-column: span 6; }

  .footer-bento {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .az-assurance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-cards-grid {
    grid-template-columns: 1fr;
  }
  .week-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .pricing-card.featured {
    transform: scale(1);
    order: -1;
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

/* TABLETS GET THE DRAWER TOO. The marketing header carries the logo, the
   live counter, six links, the theme toggle and a CTA; measured, it needs
   about 1250px. Between 769px and that it ran past the viewport — 136px at
   a 1024px landscape tablet, 360px at 769px — with "How It Works" wrapped
   onto three lines and the CTA cut off at the edge. So below 1280px the
   links move into the drawer the phone already uses. Scoped to pages that
   HAVE that drawer (`:has(.mobile-drawer)`): the coaching hub's header has
   five short links, fits from 901px, and its .menu-btn opens a different
   panel. */
@media (min-width: 769px) and (max-width: 1279px) {
  body:has(.mobile-drawer) .nav { display: none; }
  body:has(.mobile-drawer) .menu-btn { display: flex; }
  body:has(.mobile-drawer) .mobile-drawer { display: flex; }
}
/* The live counter is decoration, and the first thing to give way. */
@media (max-width: 1023px) {
  .live-counter { display: none; }
}
/* …and it gives way earlier on results.html. The full nav returns at
   1280px, sized for a header whose right side is the theme toggle and a
   short CTA; results.html's is "Re-analyze", ~8px wider, so from 1280 to
   1288px "How It Works" broke onto two lines and the header grew 66 -> 90px.
   `:has()` scopes it to the header that carries that button. */
@media (max-width: 1359px) {
  .header-inner:has(.results-reanalyze-btn) .live-counter { display: none; }
}
/* A nav label is one line; if it ever runs out of room it should push, not
   stack. */
.nav-link { white-space: nowrap; }
/* THE SMALLEST PHONES. At 360px the header — logo, theme toggle, menu
   button — was 30px wider than the screen and the menu button sat past the
   edge; at 320px, 70px. Tighter padding and gaps and a smaller wordmark
   bring it inside down to 320px, and the wordmark stays: it is the link's
   accessible name, since the icon beside it carries alt="". */
@media (max-width: 400px) {
  .header-inner { gap: 8px; padding: 8px 10px !important; }
  .logo { gap: 8px; }
  .logo-icon { width: 32px !important; height: 32px !important; }
  .logo-text { font-size: 15px; }
}
@media (max-width: 340px) {
  .logo-text { font-size: 13px; }
  .header-inner { gap: 6px; }
  .logo { gap: 6px; }
}
/* A narrow tablet in portrait: the links that stay in the header (the
   coaching hub keeps its five) tighten rather than run past the edge. */
@media (min-width: 769px) and (max-width: 899px) {
  .nav-link { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-drawer { display: flex; }
  .live-counter { display: none; }

  /* Hide CTA action button in header on mobile — all nav is in the drawer */
  .header .btn-primary { display: none; }
  /* Hide Re-analyze button on results page — use hamburger drawer instead */
  .results-reanalyze-btn { display: none; }

  /* Reduce header padding so hamburger isn't clipped */
  .header-inner { padding: 10px 14px; }
  .header { padding: var(--s1) 0; }

  .feature-bento {
    grid-template-columns: 1fr;
  }
  .feature-card-large,
  .feature-card-medium,
  .feature-card-small,
  .feature-card-wide { grid-column: span 1; }

  .hero-stats { gap: var(--s3); }
  .hero-stat-divider { display: none; }

  .steps-timeline::before { left: 24px; }
  .step-item { grid-template-columns: 50px 1fr; }
  .step-number { width: 50px; height: 50px; font-size: 18px; }

  .az-hero { padding: 120px 0 40px; }

  .az-console-head {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s2);
  }
  /* flex: none — the desktop `flex: 1 1 280px` is a WIDTH in the row layout,
     but once the head turns into a column the same basis is a HEIGHT: a
     one-line hint stood in a 280px box, leaving ~250px of empty console
     between the tabs and the textarea on every phone. */
  .az-console-hint { flex: none; text-align: left; max-width: none; }
  .az-seg-btn { padding: 10px 6px; font-size: 13px; gap: 6px; }
  .az-console-body { padding: var(--s2); }

  .az-actions { flex-direction: column; align-items: stretch; }
  .az-actions .az-cta { width: 100%; }
  .az-samples { justify-content: center; }

  .dashboard-bento {
    grid-template-columns: 1fr;
  }
  .dashboard-card-full,
  .dashboard-card-2 { grid-column: span 1; }

  .footer-bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }

  .result-cards-grid {
    grid-template-columns: 1fr;
  }

  .week-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-ring-large {
    width: 200px;
    height: 200px;
  }

  .upgrade-bar {
    flex-direction: column;
    text-align: center;
    gap: var(--s2);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* How It Works — stack step grids to single column */
  .step-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s4) !important;
  }

  /* Analyze — assurance bar: single column on mobile */
  .az-assurance {
    grid-template-columns: 1fr;
  }
  .az-assure { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .az-assure:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  /* Analyze — the three tab labels must always fit; icons go first */
  .az-seg-btn .az-ico { display: none; }
  .az-seg-btn { font-size: 12.5px; padding: 10px 4px; }
  .smart-textarea { padding: 16px; min-height: 240px; }
  .az-field-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .char-counter { align-self: flex-end; }

  .hero-cta-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-stack .btn {
    width: 100%;
  }

  .score-demo-card {
    flex-direction: column;
  }

  .score-ring-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 36px;
  }

}

/* ============================================================
   22. PAGE-SPECIFIC ENHANCEMENTS
   ============================================================ */

/* Particles floating data metrics */
.metric-particle {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(59, 130, 246, 0.4);
  pointer-events: none;
  animation: float-particle var(--duration, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

/* Gradient background meshes */
.mesh-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

.mesh-blue { background: rgba(30, 58, 138, 0.4); }
.mesh-green { background: rgba(16, 185, 129, 0.2); }
.mesh-gold { background: rgba(245, 158, 11, 0.15); }

/* Progress stroke for forms */
.form-progress-stroke {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--primary-grad);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease-out);
}

/* Notification toast */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: var(--z-toast);
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transform: translateX(120%);
  transition: transform var(--dur-slow) var(--ease-spring);
  max-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-ico {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--text-accent, #60A5FA);
}

/* Score reveal animation class */
.score-animated .score-ring-fill {
  animation: draw-ring 2s var(--ease-out) forwards;
}

@keyframes draw-ring {
  to { stroke-dashoffset: var(--target-offset); }
}

/* Number counter animation */
.count-up {
  display: inline-block;
  animation: counter-roll 0.4s var(--ease-out);
}

/* ============================================================
   COOKIE CONSENT BANNER (DSGVO / ePrivacy)
   ============================================================ */
#cookieBanner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  /* Under every dialog, above everything else: on a first visit it sat
     above the analysis profile modal (--z-modal) and covered its
     "Start Analysis" button. A dialog is what the visitor opened; the
     banner is still there when it closes. */
  z-index: calc(var(--z-modal, 300) - 1);
  width: min(760px, calc(100vw - 32px));
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
  padding: 20px 24px;
  color: #f1f5f9;
  font-family: var(--font-body);   /* was 'Inter', which no longer loads */
  font-size: 14px;
}
#cookieBanner.cb-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cb-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.cb-text { flex: 1; min-width: 200px; }
.cb-title { font-size: 15px; font-weight: 700; display: block; margin-bottom: 6px; color: #f1f5f9; }
.cb-desc { font-size: 13px; line-height: 1.6; color: #9ca3af; margin: 0; }
.cb-desc strong { color: #e2e8f0; }
.cb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cb-btn {
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.cb-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.cb-btn-accept { background: linear-gradient(135deg,#1E3A8A,#3B82F6); color: #fff; }
.cb-btn-reject  { background: rgba(255,255,255,0.07); color: #9ca3af; border: 1px solid rgba(255,255,255,0.1); }
/* The consent banner is a fixed dark panel in BOTH themes, so its ink has to
   be the dark-theme values — a light-theme token here is dark-on-dark. The
   literals are deliberate and are the one place on the site where they are. */
.cb-btn-settings { background: transparent; color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.cb-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 16px 0; }
.cb-details { font-size: 13px; }
.cb-row { margin-bottom: 12px; }
.cb-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.cb-label div { flex: 1; }
.cb-label strong { display: block; color: #e2e8f0; font-size: 13px; margin-bottom: 2px; }
.cb-label small  { color: #6b7280; font-size: 12px; display: block; line-height: 1.5; }
/* 22, not the UA's 16. The <label> around it is the real click target and
   always has been, so this is about aiming at the box itself on a phone —
   the one dialog every first-time visitor has to operate before anything
   else on the page. */
.cb-label input[type='checkbox'] { margin-top: 2px; accent-color: #3B82F6; width: 22px; height: 22px; flex-shrink: 0; }
.cb-badge { font-size: 10px; padding: 2px 7px; border-radius: 99px; font-weight: 600; flex-shrink: 0; margin-top: 2px; }
.cb-badge-required { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.cb-save-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.cb-privacy-link { display: inline-flex; align-items: center; min-height: 24px; font-size: 12px; color: var(--text-accent); text-decoration: none; }
.cb-privacy-link:hover { text-decoration: underline; }
@media (max-width: 540px) {
  #cookieBanner { bottom: 0; left: 0; width: 100%; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  #cookieBanner.cb-visible { transform: translateY(0); }
  .cb-inner { flex-direction: column; gap: 12px; }
  .cb-actions { width: 100%; justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE: backdrop-filter deaktivieren
   ─────────────────────────────────────────────────────────────────
   backdrop-filter: blur() verursacht auf mobilen Browsern (iOS Safari,
   Chrome Android) schwere Rendering-Fehler: Alle Blur-Compositing-Ebenen
   werden falsch gestapelt → die gesamte Seite erscheint unscharf.
   Ohne backdrop-filter behalten Glass-Elemente ihre semi-transparente
   Hintergrundfarbe — optisch kaum Unterschied, GPU-Last stark reduziert.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Disable all backdrop-filter blur — covers all 30+ instances in the file */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Set CSS blur variables to zero (for any remaining var()-based usage) */
  :root {
    --glass-blur: 0px;
    --glass-blur-heavy: 0px;
  }

  /* Compensate: glass elements need slightly stronger background
     since the blur is gone — they'd otherwise be too transparent */
  .glass {
    background: var(--surface-2) !important;
    border-color: var(--border-medium) !important;
  }
  .glass-heavy {
    background: var(--surface-3) !important;
  }

  /* A DIALOG IS A SURFACE, NOT A PANE OF GLASS. The hub's dialogs are
     `.glass-card`s (the athlete form `.glass-card.modal`, the ranking editor
     `.glass-card[role=dialog]`), and `.glass-card` is 6% white on dark and 70%
     white on light. Above this breakpoint the scrim's blur(5px) turned the
     roster behind into an unreadable wash, so the translucency never showed.
     With the blur switched off here, the roster's names, badges and its own
     "+ New Athlete" button were drawn sharp THROUGH the form, between the
     fields. `--bg-elevated` is the opaque raised surface in both themes. */
  .glass-card.modal,
  .glass-card[role="dialog"] {
    background: var(--bg-elevated) !important;
  }

  /* THE PILL, NOT EVERY NAV, AND NOT ONE COLOUR FOR BOTH THEMES.
     This was `header, .site-header, nav { background: rgba(10,12,20,0.97)
     !important }` — a hard-coded near-black applied in light mode too, on a
     bare element selector. Three things went wrong with it on a phone:

       · `header` is a TRANSPARENT floating wrapper by design; `.header-inner`
         is the pill that carried the blur. Painting the wrapper drew a slab
         across the full width of the page — black, on a white page, in light
         mode.
       · the bare `nav` also caught `.drawer-nav`, so the drawer's white
         interior went black with dark-slate labels on it. That is the phone
         navigation, and it is the only navigation a phone has.
       · assets/tracker.css already had to defend its tab bar against this
         rule with an `!important` of its own, and said so in a comment: "a
         bare element selector can't be out-specified, only out-!important-ed".

     One opaque surface per theme instead, on the elements that actually lost
     their blur. */
  :root { --glass-solid: rgba(11, 17, 40, 0.97); }
  :root[data-theme="light"] { --glass-solid: rgba(255, 255, 255, 0.97); }

  .header-inner {
    background: var(--glass-solid) !important;
  }
}

/* ============================================================
   PRICING PAGE — FAN CAROUSEL (mobile ≤640px)
   ============================================================ */

/* Dots hidden on desktop */
.pricing-carousel-dots { display: none; }

@media (max-width: 640px) {

  /* ── Fan wrapper ── */
  .pricing-grid {
    display: block !important;
    position: relative !important;
    height: 540px !important;   /* JS overrides this dynamically */
    overflow: visible !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* All cards absolutely stacked */
  .pricing-grid .pricing-card {
    position: absolute !important;
    width: 74% !important;
    left: 13% !important;
    top: 0 !important;
    transition: transform .42s cubic-bezier(.25,.46,.45,.94),
                box-shadow .42s ease !important;
    will-change: transform;
    cursor: pointer;
    padding: 18px 16px !important;
    transform: translateX(0) scale(0.86) !important;
    opacity: 1 !important;
    z-index: 0 !important;
    pointer-events: auto !important;
  }
  /* Deactivate desktop hover lift */
  .pricing-grid .pricing-card:hover {
    transform: translateX(0) scale(0.86) !important;
  }

  /* Solid opaque backgrounds per plan — overrides glass-bg fully */
  /* FREE — dark blue-slate */
  .pricing-grid .pricing-card:first-child {
    background: #1a2540 !important;
    border-color: rgba(59,130,246,0.3) !important;
  }
  /* PRO — dark gold-brown */
  .pricing-grid .pricing-card.featured {
    background: #231a0a !important;
    border-color: rgba(245,158,11,0.45) !important;
  }
  /* ELITE — dark purple */
  .pricing-grid .pricing-card.elite {
    background: #1a0f2e !important;
    border-color: rgba(124,58,237,0.4) !important;
  }
  /* Light mode */
  [data-theme="light"] .pricing-grid .pricing-card:first-child {
    background: #e8f0fe !important;
    border-color: rgba(59,130,246,0.3) !important;
  }
  [data-theme="light"] .pricing-grid .pricing-card.featured {
    background: #fef9ed !important;
    border-color: rgba(245,158,11,0.4) !important;
  }
  [data-theme="light"] .pricing-grid .pricing-card.elite {
    background: #f3eeff !important;
    border-color: rgba(124,58,237,0.3) !important;
  }

  /* THE TWO CARDS BEHIND. They were `opacity: 1`, so a fan of three plans
     rendered as three fully legible pages of text overlapping each other:
     "€0", "anyone c", "ality" down the left edge and "athletes", "emplates",
     "PDFs" down the right, beside the centre card's own feature list. Nothing
     about it read as depth — it read as a layout that had broken.

     Dimmed and softened, they become what a fan is supposed to be: the shape
     of the next plan, not its contents. They stay tappable, which is how you
     bring one to the middle. */
  .pricing-grid .pricing-card.fan-left,
  .pricing-grid .pricing-card.fan-right {
    opacity: 0.4 !important;
    filter: blur(1.5px);
  }

  /* Left side card */
  .pricing-grid .pricing-card.fan-left {
    transform: translateX(-36%) scale(0.86) !important;
    z-index: 1 !important;
  }
  /* Right side card */
  .pricing-grid .pricing-card.fan-right {
    transform: translateX(36%) scale(0.86) !important;
    z-index: 1 !important;
  }
  /* Active center card */
  .pricing-grid .pricing-card.fan-center {
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
    z-index: 2 !important;
    cursor: default;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
  }
  .pricing-grid .pricing-card.fan-center:hover {
    transform: translateX(0) scale(1) !important;
  }
  .pricing-grid .pricing-card.featured {
    order: unset !important;
  }
  .pricing-grid .pricing-card.featured.fan-center {
    transform: translateX(0) scale(1) !important;
  }
  .pricing-grid .pricing-card.featured.fan-left {
    transform: translateX(-36%) scale(0.86) !important;
  }
  .pricing-grid .pricing-card.featured.fan-right {
    transform: translateX(36%) scale(0.86) !important;
  }

  /* ── Card content sizes ── */
  .pricing-tier    { font-size: 12px !important; margin-bottom: 6px !important; }
  .pricing-price   { font-size: 44px !important; margin-bottom: 0 !important; }
  .pricing-price-wrap { margin-bottom: 6px !important; }
  .pricing-period  { font-size: 12px !important; margin-bottom: 10px !important; }
  .pricing-tagline { font-size: 12px !important; margin-bottom: 12px !important; line-height: 1.5 !important; }
  .pricing-features { gap: 8px !important; margin-bottom: 14px !important; }
  .feature-yes, .feature-no { font-size: 12.5px !important; line-height: 1.45 !important; gap: 6px !important; }
  .feature-yes::before, .feature-no::before { font-size: 12px !important; }
  .pricing-footer-note { font-size: 12px !important; margin-top: 10px !important; }

  /* ── Dot navigation ── */
  .pricing-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 4px;
  }
  .pcdot {
    /* Visual dot stays 8px (drawn via ::before); the button itself grows to
       a >=32px hit box so it's comfortably tappable — this is the carousel's
       only visible nav control on touch. */
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer; padding: 0;
    flex-shrink: 0;
  }
  .pcdot::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background .2s, width .2s, border-radius .2s;
  }
  [data-theme="light"] .pcdot::before { background: rgba(0,0,0,0.18); }
  .pcdot.active::before { background: #3B82F6 !important; width: 20px; border-radius: 4px; }
  .pcdot-free.active::before  { background: rgba(200,200,220,0.8) !important; }
  .pcdot-pro.active::before   { background: #FBBF24 !important; }
  .pcdot-elite.active::before { background: #A78BFA !important; }

  /* ── Feature Comparison Table ── */
  .comparison-table-wrap {
    overflow-x: unset !important;
  }
  .comparison-table-wrap table {
    font-size: 10px !important;
    table-layout: fixed;
    width: 100%;
  }
  .comparison-table-wrap th,
  .comparison-table-wrap td {
    font-size: 10px !important;
  }
  /* Feature name column ~44% */
  .comparison-table-wrap th:first-child,
  .comparison-table-wrap td:first-child {
    padding: 6px 3px 6px 8px !important;
    width: 44%;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3 !important;
  }
  /* Plan columns ~18.6% each */
  .comparison-table-wrap th:not(:first-child),
  .comparison-table-wrap td:not(:first-child) {
    padding: 6px 2px !important;
    width: 18.6%;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
  /* Header row */
  .comparison-table-wrap thead th {
    padding: 10px 2px !important;
    font-size: 10px !important;
  }
  .comparison-table-wrap thead th:first-child {
    padding: 10px 3px 10px 8px !important;
  }
  /* Category header rows */
  .comparison-table-wrap td[colspan="4"] {
    padding: 5px 8px !important;
    font-size: 9px !important;
  }

  /* ── "Why Upgrade" 3-col → 1-col ── */
  .why-upgrade-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s2) !important;
  }

  /* ── Bottom CTA: stack buttons ── */
  .pricing-cta-btns {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .pricing-cta-btns .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
   ACCESSIBILITY & PRODUCTION POLISH  (2026-07 — global layer)
   Additive, low-risk refinements applied across every page via the
   shared design system. Nothing here changes the default look for
   mouse users; it adds keyboard/focus visibility, motion-safety,
   and a few consistency guards so the whole app feels coherent.
   ============================================================ */

/* Keyboard focus ring — visible only for keyboard/AT users (:focus-visible),
   never on mouse click. Uses the brand blue so it matches the design system. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.drawer-nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-end);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
/* Remove the legacy focus ring for pointer interactions to avoid double rings. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) { outline: none; }

/* Skip-to-content link — appears on first Tab press for keyboard users. */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: var(--z-toast);
  padding: 10px 18px;
  background: var(--primary-grad);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--glow-blue);
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* Respect the OS "reduce motion" setting — disable non-essential animation
   and long transitions for users prone to motion sickness (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    /* Delays too: a near-zero transition that starts 1.9s late still keeps
       its content hidden for 1.9s (results.html's score did exactly that). */
    animation-delay: 0s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .btn-primary { animation: none !important; }
}

/* Consistency guard: images never overflow their container. */
img, svg, video { max-width: 100%; height: auto; }

/* Visible to screen readers only. For labels that a sighted user reads from
   layout (a column whose meaning comes from the rows under it) but which are
   otherwise an empty element to assistive technology. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WCAG 1.4.1 — a link sitting inside a paragraph may not be identified by
   colour alone. Our accent against body text is ~1.1–1.4:1, far under the
   3:1 that would let colour carry it, so prose links are underlined. Links
   that are their own block (nav, buttons, cards) are exempt: they are not
   "in a text block" and carry their own affordances.

   Scoped to <p> and the disclaimer block deliberately: the nav puts bare,
   class-less <a> in <li>, so a broader selector would underline every menu
   item. */
p a:not(.btn):not(.logo),
.az-assure-d a:not(.btn) {
  /* There is no global `a { color }` in this file — links are coloured by the
     component class around them. A bare <a> in prose therefore inherited the
     user agent's #0000ee, which is 2.09:1 on the dark background. */
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Selection colour matches the brand. */
::selection { background: rgba(59,130,246,0.35); color: var(--text-primary); }

/* ============================================================
   Shared Plan Card (planCardRenderer)
   ============================================================
   Card markup emitted by js/planCardRenderer.js is rendered on
   THREE surfaces — results.html (analysis), the athlete overview,
   and the dashboard.html plan editor. These rules live here (a
   stylesheet all three link) so the cards render identically and
   cannot drift. Relocated from results.html's inline <style>.
   The exercise table keeps its semantic <table>/<tr>/<td> markup
   (js/planCardRenderer.js and its tests key off td order and
   tr[data-ei]) but is laid out here as a stack of rounded rows so
   it reads as a card list, not a spreadsheet, and matches the
   dark theme tokens used everywhere else in the app.
   ------------------------------------------------------------ */

/* Day section */
.plan-day-card { border:1px solid var(--border-subtle); border-radius:var(--radius-lg); overflow:hidden; margin-bottom:var(--s2); background:var(--surface-1); transition:border-color var(--dur-fast) var(--ease-out); }
.plan-day-card:hover { border-color:var(--border-medium); }
/* A rest day recedes by losing its fill, not its ink. It used to be
   opacity:.5, which dimmed the TEXT with the card: "Rest" measured 1.99:1 on
   the light theme — below even the 3:1 large-text floor — on every surface
   that renders a plan. */
.plan-day-card.rest-day { background:transparent; border-style:dashed; }
.plan-day-card.rest-day .plan-day-title { color:var(--text-secondary); }
.plan-day-header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 20px; cursor:pointer; user-select:none; position:relative; overflow:hidden; }
.plan-day-header::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--day-accent,#60A5FA); }
.plan-day-header:hover { background:var(--glass-bg); }
.plan-day-title { font-family:var(--font-heading,Inter); font-weight:700; font-size:15.5px; color:var(--text-primary); }
.plan-day-meta { font-size:12px; color:var(--text-muted); margin-top:4px; display:flex; gap:6px; flex-wrap:wrap; }
.plan-day-stats { display:flex; gap:8px; align-items:center; }
.plan-day-stat { font-size:11px; font-weight:600; padding:4px 11px; border-radius:var(--radius-full); font-family:var(--font-mono,monospace); white-space:nowrap; }
.plan-day-toggle { font-size:17px; color:var(--text-muted); transition:transform var(--dur-fast) var(--ease-out); margin-left:8px; }
.plan-day-card.open .plan-day-toggle { transform:rotate(45deg); }
.plan-day-body { display:none; padding:4px 16px 16px; }
.plan-day-card.open .plan-day-body { display:block; animation:hub-fade-panel .2s var(--ease-out); }
.plan-table-wrap { border-radius:var(--radius-md); }

/* Exercise rows — each <tr> becomes its own rounded row-card */
.plan-table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; }
.plan-table, .plan-table thead, .plan-table tbody { display:block; width:100%; }
/* Column-label row above the row-card list — mirrors the tbody td flex
   widths below so labels line up over their column despite the row-card
   layout (each tr is its own flexed card, not a grid row). Columns 3-5
   need an explicit flex-basis (not `auto`): with `auto`, each row sizes
   those items to their own content, and the header's short text ("Sets
   x Reps", "RIR") is much narrower than the body's inputs/badges, so the
   flex:1 Exercise column grows by a different amount in the header row
   than in the body rows and every later column drifts out of line. */
.plan-table thead tr {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px;
  padding:0 14px 6px; margin-bottom:2px;
}
.plan-table thead th {
  text-align:left; padding:0; background:transparent !important; border:none !important;
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color:var(--text-muted);
}
.plan-table thead th:nth-child(1) { flex:0 0 auto; width:16px; }
.plan-table thead th:nth-child(2) { flex:1 1 200px; min-width:0; }
.plan-table thead th:nth-child(3) { flex:0 0 150px; }
.plan-table thead th:nth-child(4) { flex:0 0 70px; }
.plan-table thead th:nth-child(5) { flex:0 0 24px; margin-left:auto; }
.plan-table tbody tr {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px;
  padding:12px 14px; margin-bottom:6px; border-radius:12px;
  background:var(--surface-1); border:1px solid var(--border-subtle);
  transition:background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.plan-table tbody tr:last-child { margin-bottom:0; }
.plan-table tbody tr:hover { background:var(--glass-bg); border-color:var(--border-medium); }
.plan-table td { padding:0; background:transparent !important; vertical-align:middle; }
.plan-table td:nth-child(1) { flex:0 0 auto; width:16px; color:var(--text-muted); font-family:var(--font-mono,monospace); font-size:11px; }
.plan-table td:nth-child(2) { flex:1 1 200px; min-width:0; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.plan-table td:nth-child(3) { flex:0 0 150px; }
.plan-table td:nth-child(4) { flex:0 0 70px; }
.plan-table td:nth-child(5) { flex:0 0 24px; margin-left:auto; }
/* Sets × Reps and RIR sit centred under their headings: the value is a short
   badge in a fixed-width column, and left-aligned it hung off the left edge
   of a column whose label is centred over nothing. Header and cells share
   the rule, so they stay in line at every width the rows wrap to. */
.plan-table thead th:nth-child(3), .plan-table thead th:nth-child(4),
.plan-table td:nth-child(3), .plan-table td:nth-child(4) { text-align:center; }

.ex-name { color:var(--text-primary) !important; font-weight:600; }
.ex-sets { color:var(--text-primary) !important; font-family:var(--font-mono,monospace); font-weight:700; white-space:nowrap; font-size:13px; }
.ex-rir-badge { display:inline-block; padding:3px 9px; border-radius:var(--radius-full); font-size:11px; font-weight:600; font-family:var(--font-mono,monospace); white-space:nowrap; background:var(--glass-bg) !important; color:var(--text-secondary) !important; border:1px solid var(--border-subtle) !important; }
.ex-muscle-tag { display:inline-block; font-size:10px; padding:2px 8px; border-radius:var(--radius-full); font-weight:600; }

/* Coaching-note strip: a full-width info row directly beneath its exercise
   (icon + curated tip), not a cramped table column. Uses the hub's ink
   accent with a fixed-indigo fallback so it reads correctly outside the
   dashboard hub too (results.html, athlete overview), where --hub-ink is
   never defined. */
.plan-table tbody tr.pcr-note-row {
  background:var(--hub-ink-soft, rgba(99,102,241,0.08));
  border:1px solid var(--hub-ink-soft-2, rgba(99,102,241,0.20));
  padding:8px 12px;
  margin-top:-4px;
}
.plan-table tbody tr.pcr-note-row:hover { background:var(--hub-ink-soft, rgba(99,102,241,0.08)); border-color:var(--hub-ink-soft-2, rgba(99,102,241,0.20)); }
/* Beats the generic `.plan-table td:nth-child(1)` positional rule (this row
   has only one td, so it would otherwise be squeezed to that rule's 16px
   index-column width). */
.plan-table tbody tr.pcr-note-row td { flex:1 1 100%; width:auto; display:flex; align-items:flex-start; gap:8px; }
.pcr-note-icon { flex:0 0 auto; width:14px; height:14px; margin-top:2px; color:var(--hub-ink, #6366F1); }
.pcr-note-text { color:var(--text-secondary); font-size:12px; line-height:1.5; }

/* Coaching-tips switch — the PRO/ELITE opt-in that turns the note rows above
   back on. Coaching notes are OFF in the default plan view on every surface
   (and never exported to PDF), so this control only ever appears for a plan
   whose viewer holds the `coachnotes` entitlement. Theme-aware tokens only —
   no raw white-alpha fill, which would vanish on the light theme. */
.coach-tips-toggle {
  display:inline-flex; align-items:center; gap:9px;
  padding:5px 12px 5px 11px; border-radius:var(--radius-full);
  background:var(--glass-bg); border:1px solid var(--border-subtle);
  color:var(--text-secondary); font-size:11.5px; font-weight:600;
  font-family:inherit; line-height:1; cursor:pointer;
  transition:color .16s ease, border-color .16s ease, background .16s ease;
}
.coach-tips-toggle:hover { color:var(--text-primary); border-color:var(--border-medium); background:var(--glass-bg-hover); }
.coach-tips-toggle svg { width:14px; height:14px; flex:0 0 auto; }
.coach-tips-track {
  position:relative; width:28px; height:16px; flex:0 0 auto;
  border-radius:var(--radius-full);
  background:var(--border-medium); border:1px solid var(--border-subtle);
  transition:background .16s ease, border-color .16s ease;
}
.coach-tips-knob {
  position:absolute; top:1px; left:1px; width:12px; height:12px; border-radius:50%;
  background:var(--text-muted); transition:transform .16s ease, background .16s ease;
}
.coach-tips-toggle[aria-pressed="true"] { color:#A5B4FC; border-color:rgba(99,102,241,0.38); background:rgba(99,102,241,0.10); }
.coach-tips-toggle[aria-pressed="true"] .coach-tips-track { background:rgba(99,102,241,0.55); border-color:rgba(99,102,241,0.45); }
.coach-tips-toggle[aria-pressed="true"] .coach-tips-knob { transform:translateX(12px); background:#fff; }
[data-theme="light"] .coach-tips-toggle[aria-pressed="true"] { color:#4338CA; border-color:rgba(79,70,229,0.32); background:rgba(79,70,229,0.09); }
[data-theme="light"] .coach-tips-toggle[aria-pressed="true"] .coach-tips-track { background:#6366F1; border-color:#6366F1; }

.plan-day-footer { display:flex; justify-content:flex-end; gap:16px; margin-top:10px; padding:12px 14px 0; border-top:1px solid var(--border-subtle); font-size:11.5px; color:var(--text-muted); }
.plan-day-footer span strong { color:var(--text-primary); }

/* Light theme: the base rules above use white-alpha fills tuned for the dark
   surface, which go invisible on the light theme's #f0f4ff background.
   Black-alpha equivalents restore visible card/row separation. */
[data-theme="light"] .plan-day-card { background:rgba(0,0,0,0.03); }
[data-theme="light"] .plan-day-card:hover { border-color:var(--border-medium); }
[data-theme="light"] .plan-table tbody tr { background:rgba(0,0,0,0.03); border-color:rgba(0,0,0,0.08); }
[data-theme="light"] .plan-table tbody tr:hover { background:rgba(0,0,0,0.06); border-color:var(--border-medium); }

/* ── Editable controls (planCardRenderer 'editable' mode) ──
   Rendered inside the row-cards, so text inputs mirror the read-only
   text styles (.ex-name / .ex-sets) and only reveal an editable frame
   on hover/focus, matching the dashboard's other inline-edit fields. */
.plan-table input.pcr-ex-name,
.plan-table input.pcr-ex-reps,
.plan-table input.pcr-ex-rir,
.plan-table input.pcr-ex-sets {
  font-size:13px;
  font-family:inherit;
  color:var(--text-primary);
  background:transparent;
  border:1px solid transparent;
  border-radius:7px;
  padding:5px 8px;
  box-sizing:border-box;
  transition:background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.plan-table input.pcr-ex-name { width:100%; max-width:260px; font-weight:600; }
.plan-table input.pcr-ex-reps { width:70px; font-family:var(--font-mono,monospace); }
.plan-table input.pcr-ex-rir  { width:62px; font-family:var(--font-mono,monospace); }
/* Sets mirrors .ex-sets — narrow, monospace, bold, centred */
.plan-table input.pcr-ex-sets {
  width:46px;
  text-align:center;
  font-family:var(--font-mono,monospace);
  font-weight:700;
  font-size:13px;
}
/* Reveal the editable frame only on interaction */
.plan-table input.pcr-ex-name:hover,
.plan-table input.pcr-ex-reps:hover,
.plan-table input.pcr-ex-rir:hover,
.plan-table input.pcr-ex-sets:hover {
  background:var(--glass-bg);
  border-color:var(--border-subtle);
}
.plan-table input.pcr-ex-name:focus,
.plan-table input.pcr-ex-reps:focus,
.plan-table input.pcr-ex-rir:focus,
.plan-table input.pcr-ex-sets:focus {
  outline:none;
  background:var(--glass-bg-hover);
  border-color:var(--text-accent,#60A5FA);
  box-shadow:0 0 0 2px rgba(96,165,250,0.25);
}

/* Editable day title lives in the (dark) card header — styled to read like the
   read-only .plan-day-title (plain heading text) and only reveal an editable
   frame on hover/focus. */
input.pcr-day-label {
  font-family:var(--font-heading,Inter);
  font-weight:700;
  font-size:16px;
  color:var(--text-primary);
  background:transparent;
  border:1px solid transparent;
  border-radius:8px;
  padding:4px 8px;
  min-width:180px;
  max-width:100%;
  transition:background .15s var(--ease-out,ease), border-color .15s var(--ease-out,ease);
}
input.pcr-day-label:hover {
  background:var(--surface-1);
  border-color:var(--border-subtle,rgba(255,255,255,0.08));
}
input.pcr-day-label:focus {
  outline:none;
  border-color:var(--text-accent,#60A5FA);
  background:var(--surface-2);
}

/* Small icon buttons inside row-cards (swap / remove exercise) */
.pcr-swap,
.pcr-remove-ex {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  margin-left:6px;
  padding:0;
  font-size:12px;
  line-height:1;
  border-radius:7px;
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  color:var(--text-secondary);
  cursor:pointer;
  transition:all .15s var(--ease-out,ease);
}
.pcr-swap:hover {
  background:rgba(96,165,250,0.12);
  border-color:var(--text-accent,#60A5FA);
  color:var(--text-primary);
}
.pcr-remove-ex:hover {
  background:rgba(239,68,68,0.12);
  border-color:rgba(239,68,68,0.5);
  color:var(--text-danger);
}

/* Danger icon button in the (dark) day header */
.pcr-remove-day {
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  margin-left:10px;
  padding:0;
  font-size:13px;
  line-height:1;
  border-radius:7px;
  border:1px solid rgba(239,68,68,0.3);
  background:rgba(239,68,68,0.1);
  color:var(--text-danger);
  cursor:pointer;
  transition:all .15s var(--ease-out,ease);
}
.pcr-remove-day:hover {
  background:rgba(239,68,68,0.22);
  border-color:rgba(239,68,68,0.6);
  color:#fca5a5;
}

/* Dashed "add" buttons */
.pcr-add-ex,
.pcr-add-training-day,
.pcr-add-rest-day {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  font-size:13px;
  font-weight:600;
  font-family:inherit;
  color:var(--text-secondary);
  background:transparent;
  border:1px dashed var(--border-medium,rgba(255,255,255,0.15));
  border-radius:10px;
  cursor:pointer;
  transition:all .18s var(--ease-out,ease);
}
.pcr-add-ex:hover,
.pcr-add-training-day:hover,
.pcr-add-rest-day:hover {
  color:var(--text-primary);
  border-color:var(--text-accent,#60A5FA);
  background:rgba(96,165,250,0.08);
}

/* Action rows */
.pcr-day-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px 4px 4px;
}
.pcr-plan-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
  margin-bottom:20px;
}

/* Derived-values banner already carries inline styles from the
   renderer; only add what inline styles don't cover. */
.pcr-derived-note { line-height:1.5; }

/* ── A NARROW TABLE IS A LIST OF CARDS, NOT A TABLE THAT WRAPS. ──
   The columns are fixed flex bases (Exercise 200px, Sets × Reps 150px,
   RIR 70px) that wrap when the card is narrower than ~520px — and the
   heading row wrapped differently from the value rows, because its labels
   are shorter than the values. On a phone the headings came out as a
   staircase ("EXERCISE", then "SETS × REPS", then "RIR", each on its own
   line) with the values nowhere under them.
   So below that width — measured on the card, not the screen, because the
   same table sits in the coach's narrow athlete pane on a desktop — the
   exercise takes its own line, Sets × Reps and RIR sit side by side under
   it, and the heading row is hidden VISUALLY only: a screen reader still
   has the column names. */
.plan-table-wrap { container-type: inline-size; }
@container (max-width: 520px) {
  .plan-table thead {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .plan-table td:nth-child(2) { flex: 1 1 100%; }
  .plan-table td:nth-child(3), .plan-table td:nth-child(4) { flex: 0 0 auto; text-align: left; }
}

/* ── Narrow screens: tighten padding and drop the row index column. ── */
@media (max-width:480px) {
  .plan-day-header { padding:12px 14px 12px 18px; }
  .plan-table tbody tr { padding:10px 12px; }
  .plan-table td:nth-child(1), .plan-table thead th:nth-child(1) { display:none; }
  .plan-day-footer { justify-content:center; }
}
/* A phone. The day header holds three things on one non-wrapping line — the
   day's name (an input with a 180px floor when editable), the set/exercise
   chips (nowrap) and the toggle — and at 390px the line is wider than the
   screen. Measured on the coach's athlete pane: the pane's min-content was
   672px, and this header was the first 216px of it. It wraps instead, the
   name on its own line, the chips and toggle beneath. */
@media (max-width:560px) {
  .plan-day-header { flex-wrap:wrap; row-gap:8px; }
  .plan-day-header > div:first-child { flex:1 1 100%; min-width:0; }
  input.pcr-day-label { min-width:0; width:100%; }
  .plan-day-stats { flex-wrap:wrap; }
}

/* Card print behaviour: always expand the day body when printing */
@media print { .plan-day-body { display:block !important; } .plan-day-card { page-break-inside:avoid; } }

/* ============================================================
   22. ACCESSIBILITY — visible keyboard focus rings
   ============================================================
   Shared across all surfaces. Uses :focus-visible so the ring only
   appears for keyboard navigation, not on mouse click. Improves the
   coaching hub (dashboard.html) and every other page consistently. */
:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 1px;
}
/* Respect reduced-motion: stop the primary CTA's idle pulse animation */
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none !important; }
}

/* ============================================================
   23. RESULTS — SCORE LEAD-IN + 12-WEEK MESOCYCLE BROWSER
   ============================================================
   Two results.html surfaces that used to be built from inline
   styles: the explanation lead-in that answers "Why this score,
   not 100?" before the criterion cards, and the mesocycle
   browser (week track -> day tabs -> ONE day card) that replaced
   the endless stacked week list. Both use the shared tokens, and
   both mirror the coaching hub's day-tab / periodization-track
   pattern so the two surfaces read as one product. */

/* ── Lead-in above the criterion breakdown ─────────────────── */
.score-lead-in {
  max-width: 900px;
  margin: 0 auto var(--s4);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(16,185,129,0.06));
  border: 1px solid rgba(59,130,246,0.22);
}
.score-lead-in-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-success); background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.25); border-radius: var(--radius-full);
  padding: 4px 12px; margin-bottom: 12px;
}
.score-lead-in-title {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; line-height: 1.25;
  margin-bottom: 10px;
}
.score-lead-in-body { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0; }
.score-lead-in-body strong { color: var(--text-primary); }
.score-lead-in-body em { font-style: normal; color: var(--text-warning); }

/* ── Mesocycle browser ─────────────────────────────────────── */
.rmeso-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s2); }
.rmeso-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.rmeso-intro { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--s3); max-width: 70ch; }
.rmeso-legend { display: flex; gap: 16px; align-items: center; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.rmeso-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rmeso-sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* Week track — one node per week, bar height = that week's volume */
.rmeso-track { display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: var(--s3); scrollbar-width: thin; }
.rmeso-week {
  flex: 1 1 0; min-width: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 4px 8px;
  border: 1px solid var(--border-subtle); border-radius: 12px;
  background: var(--surface-1); cursor: pointer; font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.rmeso-week:hover { border-color: var(--border-medium); background: var(--glass-bg); transform: translateY(-2px); }
.rmeso-week-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.rmeso-week-bar { position: relative; width: 100%; max-width: 22px; height: 46px; border-radius: 5px; background: var(--surface-2); display: flex; align-items: flex-end; overflow: hidden; }
.rmeso-week-fill { width: 100%; border-radius: 5px 5px 3px 3px; background: var(--primary-grad); transition: height var(--dur-base) var(--ease-out); }
.rmeso-week.is-deload .rmeso-week-fill { background: var(--accent-grad); }
.rmeso-week-v { font-size: 10.5px; font-weight: 700; color: var(--text-secondary); }
.rmeso-week.is-deload .rmeso-week-v { color: var(--text-warning); }
.rmeso-week.is-sel { border-color: var(--text-accent); background: rgba(96,165,250,0.10); box-shadow: 0 0 0 1px var(--text-accent) inset, 0 6px 16px rgba(0,0,0,0.25); transform: translateY(-2px); }
.rmeso-week.is-deload.is-sel { border-color: var(--text-warning); background: rgba(245,158,11,0.10); box-shadow: 0 0 0 1px #FBBF24 inset, 0 6px 16px rgba(0,0,0,0.25); }

/* Selected week: what it asks for */
.rmeso-weekhead {
  border-left: 3px solid var(--rmeso-accent, #60A5FA);
  background: var(--surface-1);
  border-radius: 10px; padding: 12px 16px; margin-bottom: var(--s2);
}
.rmeso-weekhead-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rmeso-weekhead-wk { font-family: var(--font-heading); font-size: 16px; font-weight: 800; }
.rmeso-weekhead-label { font-size: 13px; font-weight: 600; color: var(--rmeso-accent, #60A5FA); }
.rmeso-chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.rmeso-chip.is-quiet { background: transparent; color: var(--text-muted); }
.rmeso-weekhead-focus { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin-top: 6px; }

/* Day tabs — same pattern as the coaching hub's plan-editor day tabs */
.rmeso-days { display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--s3); scrollbar-width: thin; }
.rmeso-day {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 62px; padding: 9px 15px 8px; margin-bottom: -1px;
  border: none; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: var(--text-secondary); cursor: pointer; font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.rmeso-day:hover { color: var(--text-primary); background: var(--surface-1); }
.rmeso-day.is-active { border-bottom-color: var(--text-accent); color: var(--text-primary); background: transparent; }
.rmeso-day-n { font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.rmeso-day.is-active .rmeso-day-n { color: var(--text-accent); }
.rmeso-day.is-rest .rmeso-day-n { color: var(--text-muted); }
.rmeso-day-label { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; max-width: 84px; overflow: hidden; text-overflow: ellipsis; }

/* Weeks behind the PRO paywall: still in the track (the block's shape is the
   pitch), visibly quieter, and they open an upgrade panel instead of a day. */
.rmeso-week.is-locked { opacity: 0.6; }
.rmeso-week.is-locked .rmeso-week-fill { background: var(--surface-3); }
.rmeso-week.is-locked .rmeso-week-v { font-size: 11px; }
.rmeso-week.is-locked.is-sel { opacity: 1; border-color: var(--border-medium); background: var(--surface-2); box-shadow: none; }
.rmeso-sw.is-lock { background: var(--surface-3); }

.rmeso-locked {
  text-align: center; padding: 28px 24px 30px;
  border: 1px dashed var(--border-medium); border-radius: var(--radius-lg, 16px);
  background: rgba(96,165,250,0.05);
}
.rmeso-locked-badge {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px;
  border-radius: var(--radius-full); border: 1px solid rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.12); color: var(--text-accent);
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
}
.rmeso-locked-title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.rmeso-locked-text { font-size: 13px; color: var(--text-secondary); line-height: 1.65; max-width: 52ch; margin: 0 auto 16px; }

/* The one visible day card */
.rmeso-panel .plan-day-card { margin-bottom: 0; }
.rmeso-empty { font-size: 13px; color: var(--text-muted); padding: 12px 0; line-height: 1.6; }
.rmeso-empty.is-warn { color: var(--text-warning); }

/* Light theme: white-alpha fills are invisible on a light surface, and the
   dark-theme accent text (mint green, amber) drops below contrast on white. */
[data-theme="light"] .score-lead-in { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(16,185,129,0.05)); }
[data-theme="light"] .score-lead-in-badge { color: #047857; }
[data-theme="light"] .score-lead-in-body em { color: #B45309; }
[data-theme="light"] .rmeso-week.is-deload .rmeso-week-v,
[data-theme="light"] .rmeso-empty.is-warn { color: #B45309; }
[data-theme="light"] .rmeso-week { background: rgba(0,0,0,0.03); }
[data-theme="light"] .rmeso-week-bar { background: rgba(0,0,0,0.07); }
[data-theme="light"] .rmeso-weekhead { background: rgba(0,0,0,0.03); }
[data-theme="light"] .rmeso-chip { background: rgba(0,0,0,0.05); }
[data-theme="light"] .rmeso-chip.is-quiet { background: transparent; }
[data-theme="light"] .rmeso-day:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .rmeso-week.is-locked .rmeso-week-fill,
[data-theme="light"] .rmeso-sw.is-lock { background: rgba(0,0,0,0.18); }
[data-theme="light"] .rmeso-week.is-locked.is-sel { background: rgba(0,0,0,0.05); }
[data-theme="light"] .rmeso-locked { background: rgba(59,130,246,0.06); }
[data-theme="light"] .rmeso-locked-badge { color: #1D4ED8; }

@media (max-width: 480px) {
  .score-lead-in { padding: 18px 18px; }
  .rmeso-day { min-width: 48px; padding: 8px 10px 7px; }
  .rmeso-day-label { display: none; }
  .rmeso-week { min-width: 40px; }
}


/* `<code>` and friends take `monospace` from the UA stylesheet, which resolves
   to whatever the system calls that — DejaVu Sans Mono here, Courier
   elsewhere. Named explicitly, they get the face that belongs to this site. */
code, kbd, samp, pre {
  font-family: var(--font-code);
  font-size: 0.92em;
}


/* ── MARKS THAT ARE DRAWN, NOT TYPED ────────────────────────────────
   The Latin subset of the typeface has no arrows, checks, crosses or
   circles, so every one of them was rasterised from whatever the system
   supplies — Liberation Sans, DejaVu Sans, something else again on a Mac.
   Asked through CDP, `npm run fonts` found 125 such glyphs across the site.

   Where the mark carries meaning it is drawn here, in the same ink and at
   the same optical weight as the text it sits in. Where it was decoration
   it is simply gone: a label that needs an arrow after it to say where it
   goes is a label that does not say where it goes. */

/* "8 → 14 sets/week": a real arrow, stem and head. */
.ui-to { display:inline-block; position:relative; width:1.05em; height:1em;
         vertical-align:-0.12em; margin:0 .15em; }
.ui-to::before { content:''; position:absolute; top:50%; left:0; width:100%;
                 height:.09em; background:currentColor; transform:translateY(-50%); }
.ui-to::after  { content:''; position:absolute; top:50%; right:.02em; width:.36em; height:.36em;
                 border-top:.09em solid currentColor; border-right:.09em solid currentColor;
                 transform:translateY(-50%) rotate(45deg); }

/* A leading marker on a requirement or gap line. */
.ui-lead { display:inline-block; width:0; height:0; margin-right:.5em; vertical-align:.08em;
           border-left:.42em solid currentColor;
           border-top:.28em solid transparent; border-bottom:.28em solid transparent; }

/* Yes / no in a feature table, and a close affordance. */
.ui-check { display:inline-block; width:.42em; height:.78em; vertical-align:-0.05em;
            border:solid currentColor; border-width:0 .16em .16em 0;
            transform:rotate(45deg) translateY(-8%); }
.ui-cross { display:inline-block; position:relative; width:.72em; height:.72em;
            vertical-align:-0.08em; }
.ui-cross::before, .ui-cross::after {
  content:''; position:absolute; top:50%; left:0; width:100%; height:.14em;
  background:currentColor; border-radius:.07em; }
.ui-cross::before { transform:translateY(-50%) rotate(45deg); }
.ui-cross::after  { transform:translateY(-50%) rotate(-45deg); }

/* A step or status dot. */
.ui-dot { display:inline-block; width:.5em; height:.5em; border-radius:50%;
          background:currentColor; vertical-align:.08em; margin-right:.45em; }




/* ── THE EYEBROW, FLATTENED ──────────────────────────────────────────
   A tracked-out capitalised label in a tinted pill, with an accent rule on
   each side, sat above every section heading — 24 of them. "Adding
   unnecessary typographic labels above content" and "using all caps for
   labels" are two of the tells the design brief names, and the pill and the
   flanking rules were decoration standing in for hierarchy that the heading
   underneath already provides.

   Kept as a quiet line of text rather than deleted from 24 places across
   seven files: it can still name a section, in the page's own voice and case.

   Last in the file on purpose — several earlier rules set these same
   properties at the same specificity, so source order is what decides. */
.section-header .section-label,
.section-label {
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}
.section-header .section-label::before, .section-label::before,
.section-header .section-label::after,  .section-label::after { content: none; }


/* ── THE CRITERIA LIST ───────────────────────────────────────────────
   Six peers, so a list rather than six identical cards with six pastel icon
   chips. The number comes from the ordered list itself, which is also what
   makes it a list to a screen reader. Two columns on a wide screen because
   six rows of one is a long scroll for six short facts. */
.crit-list {
  list-style: none;
  counter-reset: crit;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 760px) { .crit-list { grid-template-columns: 1fr; gap: 0; } }
/* An odd last item spans both columns instead of leaving an empty cell
   beside it (the seven criteria, the five things the analysis reads). */
.crit-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.crit-list li {
  counter-increment: crit;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}
.crit-list li::before {
  content: counter(crit);
  grid-row: 1 / span 2;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 3px;
}
.crit-list h3 {
  grid-column: 2;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.crit-list p {
  grid-column: 2;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}

/* The findings reuse the list, but neither its numbering nor its two-column
   split: they are six things that commonly go wrong, in no order, so a number
   would claim a sequence that is not there. The heading runs into its own
   sentence instead — same content, a different texture from the criteria
   table directly above it, and no second grid to line up. */
.crit-list--plain li { display: block; }
.crit-list--plain li::before { content: none; }
.crit-list--plain h3 {
  display: inline;
  font-size: 14.5px;
  font-weight: 650;
}
.crit-list--plain h3::after { content: ' \2014  '; color: var(--text-muted); font-weight: 400; }
.crit-list--plain p { display: inline; max-width: none; }


/* The closing call to action: a rule, a sentence, the buttons. No panel, no
   gradient, no eyebrow — the page has been making its case for four screens
   and the end of it only has to make the next step obvious. */
.close-cta {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 44px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.close-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.close-cta-act { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.close-cta-note { font-size: 13.5px; color: var(--text-muted); margin: 14px 0 0; }


/* ── FAQ ─────────────────────────────────────────────────────────────
   Shared by how-it-works and pricing. Both had the same four questions as
   four rounded translucent panels, each with its own soft shadow — the card
   kit applied to a list. Questions under a rule read as a list of questions.
   Appended at the end of the file so source order settles any tie with the
   glass-card rules these replaced. */
.faq { border-top: 1px solid var(--border-subtle); }
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; gap: 16px;
  justify-content: space-between; align-items: center;
  padding: 18px 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary:hover { color: var(--text-accent); }
.faq p { margin: -4px 0 20px; padding-right: 40px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.75; }

/* The trailing "+" rotates into an "x" when the question opens. Scoped to
   .faq: it used to be an unscoped `details summary span:last-child` rule in
   one page's <style>, which would have rotated the last span of any <details>
   summary anywhere on that page. */
.faq summary::-webkit-details-marker { display: none; }
.faq summary span:last-child { display: inline-block; transition: transform var(--dur-fast,.2s) var(--ease-out,ease); }
.faq details[open] summary span:last-child { transform: rotate(45deg); }

/* The one line left where the hero's three-item icon chain used to be. */
.az-hero-note { font-size: 13.5px; color: var(--text-muted); margin: 14px 0 0; }
/* The plan already built, at the top of analyze.html (DECISIONS.md #37). */
.myplan-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 22px auto 0; max-width: 640px; padding: 16px 18px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.myplan-card[hidden] { display: none; }
.myplan-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.myplan-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-accent); }
.myplan-t { font-weight: 700; color: var(--text-primary); }
.myplan-s { font-size: 14px; color: var(--text-secondary); }
.myplan-q { font-size: 13.5px; color: var(--text-secondary); }
.myplan-q a { color: var(--text-accent); }
.myplan-btn { flex: 0 0 auto; }

/* ── Advertising (js/ads.js) ─────────────────────────────────────────
   Only ever visible to signed-out and FREE readers of results.html, and
   only once js/adsConfig.js is filled; until then every .to-ad stays
   `hidden` and none of this paints.

   The frame RESERVES the height of the unit Google is most likely to
   serve at that width (a 336×280 rectangle on a phone, a 250-high
   billboard/leaderboard band on a desktop), so an ad arriving moves
   nothing below it. Too tall costs whitespace; too short is a layout
   shift, which is the one of the two users feel.

   Tokens only: the label and the upsell must hold contrast on both
   themes' surfaces, which css/main.css's two palettes already do. */
.to-ad[hidden] { display: none !important; }
.to-ad {
  max-width: 1000px;
  margin: var(--s4) auto 0;
  padding: 0 var(--s2);
  text-align: center;
}
.to-ad-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.to-ad-frame {
  /* content-box: the reserved height is the AD's height; the 1px border sits
     outside it, or every filled unit would grow by 2px and shift the page. */
  box-sizing: content-box;
  min-height: 280px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  overflow: hidden;
}
@media (min-width: 768px) {
  .to-ad-frame { min-height: 250px; }
}
.to-ad-upsell {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--text-accent);
}
.to-ad-upsell:hover { text-decoration: none; }
/* The end unit sits between the plan section and the disclaimer card. */
.to-ad[data-slot="resultsEnd"] { margin-bottom: var(--s5); }
.container .to-ad { padding: 0; }

/* ── Opened from the app (?embed=app) ─────────────────────────
   The pages the iPhone and Android apps open (js/appEmbed.js has the list
   and the reason: App Store Guideline 3.1.1). The site's chrome leads to
   Pricing, so in the app's view it goes — before first paint, from the
   attribute each such page's <head> sets. Links inside the page are
   js/appEmbed.js's job. */
html[data-embed="app"] .header .nav,
html[data-embed="app"] .header .live-counter,
html[data-embed="app"] .menu-btn,
html[data-embed="app"] .mobile-drawer,
html[data-embed="app"] .drawer-overlay,
html[data-embed="app"] [data-not-in-app] { display: none !important; }
html[data-embed="app"] a.logo:not([href]) { cursor: default; }

.display-sub {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.15; letter-spacing: -.02em; color: var(--accent-ink); margin: 1rem 0 0;
}
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem;
  font-family: var(--font-code); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 32em; margin: 1.25rem 0 0; }
.lede strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-2); max-width: 38em; margin: 0; }
.ls-section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.ls-section--band { background: var(--bg-2); }
.ls-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--amber-2)); transform: scaleX(0); transform-origin: left; z-index: 70; will-change: transform; }
/* ---------- Hero: three questions, the product, five steps (DECISIONS.md #55) ----------
   After the design the owner pointed to: a wide, heavy display face in capitals on the left,
   the picture on the right; pinned, the picture is scanned and dimmed and five steps stamp in
   over it. The picture is the owner's banner devices, set in a gym. */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
body.ls { --font-wide: 'Archivo', 'Arial Black', Impact, var(--font-heading); }
.display {
  font-family: var(--font-wide); font-weight: 800; font-stretch: 118%; font-variation-settings: 'wdth' 118;
  font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; margin: 0; color: var(--ink);
}
/* Each line rises out of its own mask. The padding keeps descenders inside it. */
.display .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.display .line > span { display: block; will-change: transform; }
.display-sub { font-family: var(--font-wide); font-weight: 700; font-stretch: 105%; font-variation-settings: 'wdth' 105; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.1; letter-spacing: -.01em; color: var(--accent-ink); margin: 1rem 0 0; }
body.ls .h2 { font-family: var(--font-wide); font-weight: 800; font-stretch: 112%; font-variation-settings: 'wdth' 112; font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: .98; letter-spacing: -.015em; text-transform: uppercase; margin: 0 0 1.1rem; text-wrap: balance; }
body.ls .kicker { font-family: var(--font-wide); font-weight: 600; font-size: .76rem; letter-spacing: .14em; }
.ls-hero { position: relative; overflow: clip; background: radial-gradient(ellipse at 78% 35%, rgba(var(--scan), .22), transparent 55%), var(--bg); }
.ls-hero__inner { position: relative; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 4.5rem)); padding-bottom: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.ls-hero__text { min-width: 0; }
.ls-hero__text .lede { max-width: 31em; }
.ls-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.ls-hero__note { font-size: .84rem; color: var(--ink-3); margin: .9rem 0 0; }
/* The picture is a night photograph in both themes: it carries its own ground. */
.ls-hero__media { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); aspect-ratio: 3 / 2; background: #050B18; }
/* What the timeline scales is the box inside the figure — the picture and the scan frame
   together; the figure and its soft edge stand still. --pic-x is where the picture is anchored:
   the devices are in its right half, so anchoring near the right keeps them clear of the text
   at every screen shape (js/landing.js reads the same value to place the scan frame). */
.ls-hero__media { --pic-x: 88%; }
.ls-hero__zoom { position: absolute; inset: 0; will-change: transform; }
.ls-hero__zoom img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pic-x) 50%; display: block; }
.scan, .ls-hero__shade { display: none; }
.ls-hero__steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: clamp(1.5rem, 4vw, 3rem) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.ls-hero__steps li { border-top: 2px solid var(--accent); padding-top: .8rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ls-hero__steps .n { font-family: var(--font-wide); font-weight: 800; font-size: 1.6rem; color: var(--accent-ink); line-height: 1; }
.ls-hero__steps .t { font-family: var(--font-wide); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--ink); }
.ls-hero__steps .d { font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
.ls-hero__hint { display: none; }
@media (max-width: 899px) {
  .ls-hero__inner { grid-template-columns: 1fr; }
  .ls-hero__steps { grid-template-columns: 1fr 1fr; }
  .display { font-size: clamp(1.6rem, 8.3vw, 4.4rem); }
  .ls-hero__cta .btn { width: 100%; }
  /* The phone's picture is cut to the devices; it is simply centred. */
  .ls-hero__media { aspect-ratio: 5 / 4; --pic-x: 50%; }
}
/* Pinned. The mask is on the figure, which never moves; what scales is the image inside it.
   Scan line and grid travel by transform, the shade and the steps by opacity (#50.1).
   The hero follows the theme (DECISIONS.md #55.2): the night photograph and the dark inks in
   the dark theme, the daylight photograph on the page's own light tokens in the light one.
   It was the night in both until the owner opened it in light mode and asked why it was dark.
   Two pictures, one shown; both lazy, so the hidden one is never fetched. */
.ls-hero__pic--day { display: none; }
[data-theme="light"] .ls-hero__pic--day { display: inline; }
[data-theme="light"] .ls-hero__pic--night { display: none; }
/* The daylight picture holds the devices a little further from its right edge. */
[data-theme="light"] .ls-hero__media { background: var(--bg); --dev-gap: .06; }
html.anim-hero:not([data-theme="light"]) .ls-hero {
  --bg: #050B18; --ink: #F4F6FB; --ink-2: #B4BCCD; --ink-3: #8C96AB; --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .26);
  --accent: #60A5FA; --accent-ink: #93C5FD; --scan: 96, 165, 250;
  background: radial-gradient(ellipse at 78% 35%, rgba(96, 165, 250, .20), transparent 55%), #050B18; color: var(--ink);
}
.anim-hero .ls-hero__inner { height: 100svh; padding: 0; display: block; width: auto; overflow: hidden; }
/* The column ends where the devices begin: 38vw, and never past 620px on a wide screen. */
.anim-hero .ls-hero__text { position: absolute; left: max(var(--gutter), calc((100vw - var(--container)) / 2)); top: calc(50% + var(--nav-h) / 2); transform: translateY(-50%); width: min(38vw, 620px); z-index: 2; will-change: transform, opacity; }
.anim-hero .display { font-size: clamp(1.9rem, min(3.55vw, 9.5vh), 3.55rem); }
@media (min-width: 900px) { .display .line { white-space: nowrap; } }
/* The picture is sized by the devices, not by the figure (DECISIONS.md #55.2): as wide as fills
   the height, but never wider than 104vw, because the devices are 47.7 % of its width and must
   stay right of the text column on a tall window too (a 5:4 window used to scale them past it
   and under the soft edge). Its right edge puts the tablet's at 99vw. Where that leaves the
   picture short of the screen's height, the figure's mask fades its top and bottom into the
   ground. Both masks are on the figure, which stands still. */
.anim-hero .ls-hero__media { --pic-w: min(178svh, 104vw); --pic-h: calc(var(--pic-w) * .5625); --band: max(0px, calc((100svh - var(--pic-h)) / 2));
  --fade-a: 0%; --fade-b: 16%; --band-k: 2.4; --band-add: 0px;
  position: absolute; top: 0; right: 0; bottom: 0; width: 62vw; aspect-ratio: auto; border-radius: 0; z-index: 1; background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--fade-a), #000 var(--fade-b), #000 100%), linear-gradient(180deg, transparent var(--band), #000 calc(var(--band) * var(--band-k) + var(--band-add)), #000 calc(100% - var(--band) * var(--band-k) - var(--band-add)), transparent calc(100% - var(--band)));
  mask-image: linear-gradient(90deg, transparent var(--fade-a), #000 var(--fade-b), #000 100%), linear-gradient(180deg, transparent var(--band), #000 calc(var(--band) * var(--band-k) + var(--band-add)), #000 calc(100% - var(--band) * var(--band-k) - var(--band-add)), transparent calc(100% - var(--band)));
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* In daylight the picture is bright where the night one is black, so what shows of it behind
   the text column costs the text its contrast. The picture is a little smaller (the devices
   begin at 56vw), its soft edge starts where the column ends and is over before the phone,
   and the top and bottom fades are short, so the devices are not washed out. */
[data-theme="light"].anim-hero .ls-hero__media { --pic-w: min(178svh, 92vw); --fade-a: 22%; --fade-b: 29%; --band-k: 1.35; --band-add: 5svh; }
.anim-hero .ls-hero__zoom img { position: absolute; max-width: none; width: var(--pic-w); height: var(--pic-h); right: calc(1vw - var(--pic-w) * var(--dev-gap, .055)); top: calc(50% - var(--pic-h) / 2); object-position: 50% 50%; }
.anim-hero .ls-hero__shade { display: block; position: absolute; inset: 0; background: var(--bg); opacity: 0; z-index: 2; will-change: opacity; }
/* The frame's box is set by js/landing.js to the devices' place in the picture. */
.anim-hero .scan { display: block; position: absolute; left: 20%; top: 16%; width: 74%; height: 74%; z-index: 3; opacity: 0; overflow: hidden; pointer-events: none; will-change: opacity; }
.scan__grid { position: absolute; inset: 0; transform: translateY(-100%); will-change: transform; background: linear-gradient(180deg, rgba(var(--scan), 0) 0%, rgba(var(--scan), .10) 100%), repeating-linear-gradient(0deg, rgba(var(--scan), .24) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(var(--scan), .24) 0 1px, transparent 1px 28px); }
.scan__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; will-change: transform; background: linear-gradient(90deg, transparent, rgb(var(--scan)) 12%, #dbeafe 50%, rgb(var(--scan)) 88%, transparent); box-shadow: 0 0 22px 3px rgba(var(--scan), .6); }
.scan__line::before { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 90px; background: linear-gradient(0deg, rgba(var(--scan), .28), transparent); }
.scan__corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgb(var(--scan)); }
.scan__corner--tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scan__corner--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scan__corner--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scan__corner--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.anim-hero .ls-hero__steps { position: absolute; left: 50%; top: calc(50% + var(--nav-h) / 2); transform: translate(-50%, -50%); z-index: 3; display: flex; flex-direction: column; gap: 0; padding: 0; width: min(92vw, 860px); }
.anim-hero .ls-hero__steps li { display: grid; grid-template-columns: 4.5rem 13rem 1fr; align-items: baseline; gap: 1.5rem; border-top: 0; border-bottom: 1px solid var(--line); padding: clamp(.6rem, 1.8vh, 1rem) 0; will-change: transform, opacity; }
.anim-hero .ls-hero__steps .n { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.anim-hero .ls-hero__steps .t { font-size: 1.1rem; }
.anim-hero .ls-hero__steps .d { font-size: 1rem; }
.anim-hero .ls-hero__hint { display: flex; align-items: center; gap: .7rem; position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2; font-family: var(--font-code); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ls-hero__hint span { display: block; width: 1px; height: 34px; background: var(--accent); }
.anim-hero .ls-hero .btn-ghost { color: var(--ink); border-color: var(--line-strong); }

/* ---------- The other ground: a section in the opposite theme ----------
   The design alternates dark and light sections. Here that is "the other theme": `.inv`
   re-declares the alias tokens, so everything inside it is that theme's component without a
   rule of its own. Fixed inks on fixed grounds, each pair checked by the rendered audit. */
.inv {
  --bg: #EEF2FA; --bg-2: #EEF2FA; --bg-3: #FFFFFF; --card: #FFFFFF;
  --ink: #0B1220; --ink-2: #3F4A5F; --ink-3: #5B6577;
  --line: rgba(15, 23, 42, .10); --line-strong: rgba(15, 23, 42, .24);
  --accent: #2563EB; --accent-ink: #1D4ED8; --accent-soft: rgba(29, 78, 216, .10);
  --good: #047857; --warn: #B45309; --bad: #B91C1C; --amber-ink: #B45309; --scan: 29, 78, 216;
  background: var(--bg); color: var(--ink);
}
[data-theme="light"] .inv {
  --bg: #070B14; --bg-2: #070B14; --bg-3: #131A2B; --card: #131A2B;
  --ink: #F4F6FB; --ink-2: #A9B2C6; --ink-3: #8690A6;
  --line: rgba(255, 255, 255, .10); --line-strong: rgba(255, 255, 255, .24);
  --accent: #60A5FA; --accent-ink: #93C5FD; --accent-soft: rgba(96, 165, 250, .16);
  --good: #34D399; --warn: #FBBF24; --bad: #F87171; --amber-ink: #FBBF24; --scan: 96, 165, 250;
}
body.ls .inv .muted, body.ls .inv p { color: var(--ink-2); }
body.ls .inv h2, body.ls .inv h3, body.ls .inv label, body.ls .inv strong { color: var(--ink); }

/* ---------- Check ---------- */
.check { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.check__sliders { display: flex; flex-direction: column; gap: 1.75rem; }
.slider__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .55rem; }
.slider__head label { font-weight: 600; }
.slider__head output { font-family: var(--font-code); font-size: .85rem; color: var(--accent-ink); text-align: right; }
.slider__ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-top: .4rem; }
input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; background: var(--line-strong); outline: none; margin: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-3); box-shadow: 0 0 0 1px var(--line-strong), 0 6px 16px rgba(0,0,0,.35); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-3); cursor: pointer; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.check__result { border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .9rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.check__meter { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.check__meter span { display: block; height: 100%; width: 60%; background: var(--bad); border-radius: 999px; transition: width .6s var(--ease), background-color .4s var(--ease); }
.check__num { display: flex; align-items: baseline; gap: .6rem; }
.check__num b { font-family: var(--font-code); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; font-weight: 700; color: var(--bad); transition: color .4s var(--ease); }
.check__num span { color: var(--ink-2); font-size: .95rem; }
.check__result h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.check__result p { color: var(--ink-2); margin: 0; }
.check__benefit { font-size: .82rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: .8rem; }
.check__benefit b { color: var(--ink); font-family: var(--font-code); font-weight: 600; }
.check__result[data-level="2"] .check__meter span, .check__result[data-level="2"] .check__num b { background-color: var(--warn); color: var(--warn); }
.check__result[data-level="2"] .check__num b { background: none; }
.check__result[data-level="1"] .check__meter span { background-color: var(--good); }
.check__result[data-level="1"] .check__num b { color: var(--good); }
@media (max-width: 899px) { .check { grid-template-columns: 1fr; } .check__result { position: static; } }

/* ---------- Bridge ---------- */
.bridge { padding-block: clamp(3rem, 9vw, 6.5rem); overflow: hidden; background: var(--bg); border-block: 1px solid var(--line); }
.bridge__line { font-family: var(--font-wide); font-weight: 900; font-stretch: 125%; font-variation-settings: 'wdth' 125; text-transform: uppercase; font-size: clamp(1.7rem, 7vw, 8rem); line-height: .9; letter-spacing: -.03em; margin: 0; white-space: nowrap; will-change: transform; color: var(--ink); }
/* 7vw, not 10: the second line is 11.9em wide, so at 10vw it was wider than the window and its last word was cut. */
.bridge__line--a { text-align: right; padding-right: 6vw; }
/* Filled with the ground and painted over its own stroke: a transparent fill showed the
   variable font's overlapping contours as lines inside the letters. */
.bridge__line--b { text-align: left; padding-left: 4vw; color: var(--bg); -webkit-text-stroke: max(2px, .05em) var(--ink-3); paint-order: stroke fill; letter-spacing: .02em; }
/* The stroke scales with the type: a fixed 4px was half the stem's width on a phone, where the line is 27px tall. */
.bridge__dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--amber-2); vertical-align: 0; margin-left: .08em; }

/* ---------- Journey ---------- */
.journey { position: relative; background: var(--bg-2); overflow: hidden; }
.journey__pin { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; gap: clamp(1.5rem, 4vh, 2.5rem); }
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.journey__head > div { min-width: 0; }
.journey__head .h2 { margin-bottom: 0; max-width: 16em; }
.journey__count { font-family: var(--font-wide); font-weight: 700; font-size: 1.2rem; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; flex-shrink: 0; }
.journey__track { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-right: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.journey__track::-webkit-scrollbar { display: none; }
.anim-journey .journey__pin { height: 100svh; padding-top: calc(var(--nav-h) + 1.5rem); justify-content: center; }
.anim-journey .journey__track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
.panel { flex: 0 0 auto; width: clamp(290px, min(31vw, 50vh), 470px); display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
/* The pictures are night photographs in both themes. */
.panel__media { margin: 0 0 1.1rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: #05080F; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
.panel__when { font-family: var(--font-wide); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .5rem; }
.panel h3 { font-family: var(--font-wide); font-weight: 800; font-stretch: 108%; font-variation-settings: 'wdth' 108; text-transform: uppercase; font-size: 1.25rem; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .8rem; text-wrap: balance; }
.panel ul { list-style: none; padding: 0; margin: 0; }
.panel ul li { position: relative; padding-left: 1.1rem; color: var(--ink-2); font-size: .92rem; line-height: 1.45; margin-bottom: .35rem; }
.panel ul li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--accent); }
.panel ul li strong { color: var(--ink); font-weight: 600; }
.panel--text { justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--bg-3); }
.panel--text p { color: var(--ink-2); margin: 0; }
.panel__big { font-family: var(--font-wide); font-weight: 900; font-stretch: 120%; font-variation-settings: 'wdth' 120; font-size: clamp(3.4rem, 6.4vw, 5.4rem); line-height: .95; letter-spacing: -.03em; color: var(--ink); margin: .2rem 0 .4rem; }
.panel__big small { display: block; font-family: var(--font-body); font-weight: 500; font-stretch: 100%; font-variation-settings: normal; font-size: 1rem; letter-spacing: 0; color: var(--ink-2); margin-top: .5rem; }
.panel--text .panel__big { color: var(--ink); }
.panel__delta { align-self: flex-start; display: inline-flex; margin: .8rem 0 1rem; padding: .45rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-code); font-weight: 600; font-size: .86rem; }
.panel--end { justify-content: center; align-items: flex-start; gap: 1.4rem; width: clamp(300px, 38vw, 580px); padding-right: 6vw; }
.panel--end .panel__big { text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
@media (max-width: 899px) { .journey__count { display: none; } .panel, .panel--end { width: 80vw; padding-right: 0; } }

/* ---------- Why: the numbers in the wide face ---------- */
body.ls .stats { margin: 2rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line-strong); gap: 1.5rem; }
body.ls .stats div { border-top: 0; padding-top: 0; }
body.ls .stats strong { font-family: var(--font-wide); font-weight: 900; font-stretch: 115%; font-variation-settings: 'wdth' 115; font-size: clamp(2.3rem, 4.2vw, 3.7rem); letter-spacing: -.02em; color: var(--accent-ink); }
/* The counted number is a span inside the strong: it takes the strong's size, not the caption's. */
body.ls .stats strong span { font-size: inherit; color: inherit; letter-spacing: inherit; text-transform: none; font-weight: inherit; }
body.ls .stats div > span { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
body.ls .skills .n { font-family: var(--font-wide); font-weight: 800; font-size: 1.5rem; }
body.ls .skills h3 { font-family: var(--font-wide); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
body.ls .legalnote { padding: 1rem 1.25rem; background: var(--bg-3); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; color: var(--ink-2); }
body.ls .check__num b { font-family: var(--font-wide); font-weight: 900; font-stretch: 118%; font-variation-settings: 'wdth' 118; }
.ls-contact .ls-hero__cta { justify-content: flex-start; }

/* The artwork on the cards */
.bars { display: flex; flex-direction: column; gap: .5rem; }
.bars div { display: grid; grid-template-columns: 5.5em 1fr 3em; gap: .6rem; align-items: center; font-size: .78rem; color: var(--ink-2); }
.bars i { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--good); border-radius: 999px; }
.bars .warn i::after { background: var(--warn); } .bars .bad i::after { background: var(--bad); }
.bars em { font-style: normal; font-family: var(--font-code); color: var(--ink); text-align: right; }
.paste { font-family: var(--font-code); font-size: .8rem; line-height: 1.7; color: var(--ink-2); white-space: pre; }
.paste b { color: var(--ink); font-weight: 600; }
.paste .cur { display: inline-block; width: .55em; height: 1em; background: var(--accent); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.meso { display: flex; align-items: flex-end; gap: 5px; height: 70%; }
.meso i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), #1E3A8A); height: var(--h); position: relative; }
.meso i.deload { background: linear-gradient(180deg, var(--amber-2), var(--amber)); }
.meso__lbl { display: flex; justify-content: space-between; font-family: var(--font-code); font-size: .66rem; color: var(--ink-3); margin-top: .3rem; }
.sets { display: flex; flex-direction: column; gap: .4rem; }
.sets div { display: grid; grid-template-columns: 1.6em 1fr 1fr 2.2em; gap: .5rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-family: var(--font-code); font-size: .8rem; color: var(--ink); }
.sets .tick { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--good); color: #052e1c; font-weight: 700; font-size: .85rem; justify-self: end; }
.sets .tick.open { background: transparent; border: 1px solid var(--line-strong); color: transparent; }
.sets .tick.pr { background: var(--amber-2); color: var(--on-amber); }
.sets .n { color: var(--ink-3); }
.rest { margin-top: .4rem; display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.rest b { font-family: var(--font-code); font-size: 1.05rem; color: var(--good); }
.rest i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.rest i::after { content: ''; position: absolute; inset: 0; width: 62%; background: var(--good); }
.rest span { font-size: .72rem; color: var(--ink-2); }

/* ---------- Coach demo ---------- */
.drill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.chat { border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.chat__bar { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.chat__tag { margin-left: auto; font-family: var(--font-code); font-size: .68rem; letter-spacing: .12em; color: var(--amber-ink); }
.chat__body { padding: 1rem; display: flex; flex-direction: column; gap: .7rem; max-height: 360px; overflow-y: auto; }
.msg { max-width: 88%; padding: .75rem .95rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg--coach { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.msg--me { background: var(--accent-soft); color: var(--ink); border-top-right-radius: 4px; align-self: flex-end; }
.msg__who { display: block; font-family: var(--font-code); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .25rem; }
.chat__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 899px) { .drill { grid-template-columns: 1fr; } }

/* ---------- Numbers ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.stats div { border-top: 2px solid var(--accent); padding-top: .8rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.stats strong { font-family: var(--font-code); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .82rem; color: var(--ink-2); }
.skills { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.skills li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.skills .n { font-family: var(--font-code); font-weight: 700; color: var(--accent-ink); font-size: 1.1rem; }
.skills h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.015em; margin: 0 0 .25rem; }
.skills p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.about__card { border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2rem); position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.ring { width: 150px; height: 150px; margin: 0 auto 1rem; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
/* Number and caption are centred as one block; a grid with place-items gave each its own
   row, which put the caption against the stroke. */
.ring__v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-family: var(--font-code); font-weight: 700; font-size: 2.6rem; letter-spacing: -.04em; }
.ring__v small { display: block; width: max-content; max-width: none; font-size: .56rem; letter-spacing: .06em; text-indent: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; text-align: center; line-height: 1.25; margin: .15rem auto 0; }
.crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.crit li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.crit li b { font-family: var(--font-code); font-weight: 600; color: var(--good); }
.crit li b.no { color: var(--bad); }
.legalnote { font-size: .8rem; color: var(--ink-3); margin-top: 1.5rem; line-height: 1.5; }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } .about__card { position: static; } }

.ls-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 899px) { .ls-contact { grid-template-columns: 1fr; } }
/* ---------- The eight questions, as a list that opens the builder ---------- */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.qlist button { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-3); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), transform .25s var(--ease); }
.qlist button:hover { border-color: var(--accent); transform: translateY(-2px); }
.qlist img, .qlist__glyph { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: block; }
.qlist__glyph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-code); font-weight: 700; font-size: .68rem; letter-spacing: .04em; }
.qlist b { display: block; font-size: .95rem; } .qlist small { display: block; color: var(--ink-3); font-size: .78rem; line-height: 1.3; }
.qlist i { margin-left: auto; font-style: normal; font-family: var(--font-code); color: var(--ink-3); font-size: .74rem; }
@media (max-width: 520px) { .qlist { grid-template-columns: 1fr; } }
/* ---------- FAQ ---------- */
.ls-faq { max-width: 820px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-family: var(--font-code); color: var(--accent-ink); font-size: 1.3rem; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 62ch; }

/* ============================================================
   THE REDESIGN LAYER (2026-10-29)
   The look of the design variant reviewed as an artifact, applied to the live
   pages' own markup: the same tokens the site already has, under the names
   the variant's components use; a slimmer header bar; the amber call to
   action; the landing page's choreography (.ls-* — namespaced, because .hero,
   .faq and .contact already mean something on other pages); the builder as a
   dialog of tiles; the price list's cards and interval switch.
   Nothing here changes an id, a data attribute or a script hook: every
   initialiser in js/main.js and every journey selector still finds what it
   looks for. The alias tokens are declared in BOTH theme blocks — a token
   defined in one theme only is how the light theme lost --text-accent once.
   ============================================================ */
:root {
  --bg: var(--bg-base); --bg-2: var(--bg-surface); --bg-3: var(--bg-elevated); --card: var(--bg-card);
  --ink: var(--text-primary); --ink-2: var(--text-secondary); --ink-3: var(--text-muted);
  --line: rgba(249, 250, 251, .10); --line-strong: rgba(249, 250, 251, .26);
  --accent: #60A5FA; --accent-ink: var(--text-accent); --accent-soft: rgba(96, 165, 250, .16);
  --amber: #F59E0B; --amber-2: #FBBF24; --amber-ink: var(--text-warning); --on-amber: #1a1200;
  --good: var(--text-success); --warn: var(--text-warning); --bad: var(--text-danger);
  --scan: 96, 165, 250;
  --font-display: var(--font-heading);
  --container: 1200px; --gutter: clamp(20px, 4vw, 56px); --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(.22, 1, .36, 1); --nav-h: 72px; --radius: 14px;
}
[data-theme="light"] {
  --line: rgba(15, 23, 42, .09); --line-strong: rgba(15, 23, 42, .22);
  --accent: #3B82F6; --accent-soft: rgba(29, 78, 216, .12);
  --scan: 29, 78, 216;
}

/* ---------- Header: one slim bar, full width, the brand solid ---------- */
/* The landing page scrolls natively (DECISIONS.md #50.1): no library writes the scroll position,
   so nothing here has to stand down for one. Its anchors land under the fixed header by the
   header's own height, and the builder's question list never scrolls the page behind it. */
body.ls [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
#wzBody { overscroll-behavior: contain; }
/* No backdrop-filter: a fixed, full-width blur is re-composited on every scroll frame. */
/* Opaque. At 94 % with no blur behind it, white text on a dark section read through the light
   header as paler letters under the navigation (and the reverse in the dark theme). */
.header { padding: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.header > .container { max-width: none; padding: 0 var(--gutter); }
.header-inner, .header.scrolled .header-inner, [data-theme="light"] .header.scrolled .header-inner {
  max-width: var(--container); margin: 0 auto; height: var(--nav-h); padding: 0; gap: var(--s3);
  background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* On a phone an older rule paints the inner row with `--glass-solid !important` (it was the
   floating pill then). Since the header itself is the surface, that drew a white box inset by
   the gutter inside it, on every page, with a strip of the header's own shade either side.
   An !important is only undone by another. */
@media (max-width: 768px) { .header-inner { background: none !important; } }
.header.scrolled { border-bottom-color: var(--line-strong); }
.logo { gap: 10px; }
.logo-icon { width: 34px; height: 34px; border-radius: 8px; padding: 2px; box-shadow: none; }
.logo:hover .logo-icon { transform: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.logo-text { font-size: 17px; }
.logo-text span { background: none; -webkit-text-fill-color: var(--accent-ink); color: var(--accent-ink); }
.live-counter { display: none; }
.nav { gap: 2px; }
.nav-link { padding: 8px 12px; font-size: 15px; color: var(--ink-2); border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: var(--ink); background: none; }
.nav-link::after { width: calc(100% - 24px); height: 2px; bottom: 2px; background: var(--accent); }
.theme-toggle { background: var(--bg-3); border-color: var(--line-strong); }
.menu-btn { background: none; border-color: var(--line-strong); border-radius: 10px; }

/* ---------- Buttons: amber for the one action, quiet for the rest ---------- */
.btn { padding: .8rem 1.35rem; font-size: 15px; font-weight: 700; letter-spacing: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn-lg { padding: 1rem 1.6rem; font-size: 16px; }
.btn-sm { padding: .55rem 1rem; font-size: 14px; }
.btn-primary { background: var(--amber); color: var(--on-amber); box-shadow: 0 10px 30px -10px rgba(245, 158, 11, .55); animation: none; }
.btn-primary:hover { background: var(--amber-2); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(245, 158, 11, .7); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { background: transparent; border-color: var(--ink); transform: translateY(-1px); box-shadow: none; }
.btn-secondary { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; border: 1px solid transparent; }
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: none; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s4); }
.footer-col-title { font-family: var(--font-code); font-size: 12px; letter-spacing: .14em; color: var(--ink-3); font-weight: 600; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
/* The two functions a statute wants easy to find — "Cancel contracts here"
   (Section 312k BGB) and "Withdraw from contract" (Section 356a BGB, which
   asks for a prominent place) — are not two more legal documents, and must
   not read as such: a rule above them, full-strength ink, heavier, underlined.
   Tokens only, so it holds in both themes and on the inverted sections. */
.footer-links .footer-statutory a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer-links li:not(.footer-statutory) + .footer-statutory { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: var(--s3); }

/* ---------- The landing page (body.ls): the variant's rhythm and type ---------- */
body.ls .container { max-width: calc(var(--container) + 2 * var(--gutter)); padding: 0 var(--gutter); }
body.ls .section { padding-block: var(--section); }
body.ls .h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.85rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .6rem; text-wrap: balance; }
body.ls .section__head { max-width: 760px; margin: 0 auto clamp(1.8rem, 4vw, 3rem); text-align: center; }
body.ls .section__head .kicker { justify-content: center; }
body.ls .section__head .muted { margin: .4rem auto 0; }
body.ls h3 { line-height: 1.2; }
body.ls main > .ls-hero, body.ls main > .journey, body.ls main > .bridge { margin: 0; }

/* The eight-question list opens the builder; the inner buttons inherit nothing from .btn */
.qlist button { font-family: var(--font-body); }

/* ---------- The builder: a dialog of tiles (index.html's #wizardOverlay) ---------- */
/* The controller (WizardController, js/main.js) renders .wz-step > .wz-title +
   .wz-sub + .wz-opts > .wz-opt[data-value] with .wz-opt-icon, .wz-opt-body
   (strong + small) and .wz-radio/.wz-chk, and toggles .wz-sel. These rules
   only dress that: an option is a centred tile with the icon on top, the
   chosen one carries a check in its corner, the radio/box is not drawn. */
#wizardOverlay { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: clamp(.5rem, 2vw, 2rem); }
#wizardBackdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 74%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .35s; }
#wizardOverlay.wz-open #wizardBackdrop { opacity: 1; }
#wizardOverlay.wz-open .wz-modal { transform: translateY(0) scale(1); opacity: 1; }
.wz-modal { position: relative; z-index: 9001; width: min(900px, 100%); max-height: calc(100svh - 2 * clamp(.5rem, 2vw, 2rem)); display: flex; flex-direction: column; overflow: hidden; background: var(--bg-3); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--scan), .08); transform: translateY(48px) scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.wz-prog-wrap { height: 3px; background: var(--line); flex-shrink: 0; order: 2; }
.wz-prog-bar { height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.wz-head-meta { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem .9rem 1.3rem; font-family: var(--font-code); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); flex-shrink: 0; order: 1; }
.wz-head-meta #wzDialogTitle { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink) !important; font-weight: 700 !important; margin-left: auto; }
.wz-close-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .2s var(--ease), transform .2s var(--ease); margin-left: .25rem; }
.wz-close-btn:hover { color: var(--ink); background: var(--card); border-color: var(--ink); transform: rotate(90deg); }
#wzBody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.3rem, 3.5vw, 2.4rem) clamp(1.2rem, 3.5vw, 2.4rem) clamp(1rem, 2.5vw, 1.6rem); color: var(--ink); order: 3; }
.wz-step { animation: wzIn .45s var(--ease); }
@keyframes wzIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.wz-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .5rem; color: var(--ink); text-wrap: balance; }
.wz-sub { font-size: 1rem; color: var(--ink-2); margin: 0 0 1.4rem; line-height: 1.5; max-width: 58ch; }
.wz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.wz-multi-opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.wz-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: .6rem; width: 100%; margin: 0; padding: 1.1rem .8rem 1rem; min-height: 150px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; user-select: none; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.wz-opt:hover { border-color: var(--accent); background: var(--card); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(var(--scan), .6); }
.wz-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-opt.wz-sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.wz-opt.wz-sel::after { content: '\2713'; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.wz-opt-icon { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(180deg, #fff, #eef2f7); border: 1px solid rgba(15, 23, 42, .10); box-shadow: 0 1px 3px rgba(15, 23, 42, .14); font-size: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wz-opt-icon .wizard-icon { width: 52px; height: 52px; object-fit: contain; display: block; }
.wz-opt.wz-sel .wz-opt-icon { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.wz-opt-body { flex: 1; min-width: 0; }
.wz-opt-body strong { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 0; }
.wz-opt-body small { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.35; margin-top: .3rem; }
.wz-radio, .wz-chk { display: none; }
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .9rem 1.3rem; border-top: 1px solid var(--line); flex-shrink: 0; order: 4; }
#wzBody .wz-gate { color: var(--ink-2); }
@media (max-width: 760px) {
  #wizardOverlay { padding: 0; align-items: flex-end; }
  .wz-modal { width: 100%; height: 100svh; max-height: 100svh; border-radius: 0; border: 0; }
  .wz-opts, .wz-multi-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .wz-opt { min-height: 128px; padding: .9rem .6rem .8rem; }
  .wz-opt-icon { width: 52px; height: 52px; border-radius: 13px; } .wz-opt-icon .wizard-icon { width: 42px; height: 42px; }
  .wz-opt-body strong { font-size: .88rem; } .wz-opt-body small { display: none; }
  .wz-title { font-size: 1.45rem; }
}

/* ---------- Pricing: the cards lift, the chosen interval is unmistakable ---------- */
/* The interval switch is styled by pricing.html itself (its own inline block): there the
   chosen option is the inverted pill and the yearly saving a tag on it. */
.pricing-card { background: var(--bg-3); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 1.8rem); transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .45s var(--ease); }
.pricing-card.featured, .pricing-grid .pricing-card.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 24px 60px -30px rgba(245, 158, 11, .5); transform: none; }
.pricing-card:hover, .pricing-grid .pricing-card:hover, html .pricing-card.reveal.visible:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 34px 70px -34px rgba(var(--scan), .6); }
.pricing-card.featured:hover, .pricing-grid .pricing-card.featured:hover, html .pricing-card.featured.reveal.visible:hover { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 34px 70px -28px rgba(245, 158, 11, .65); }
.pricing-tier { font-family: var(--font-code); font-size: .74rem; letter-spacing: .16em; color: var(--accent-ink); }
/* On the card surface --text-muted lands at 4.39:1 in the dark theme; the small print takes the secondary ink. */
.pricing-card .pricing-period, .pricing-card .pricing-footer-note, .pricing-card .pricing-billed, .pricing-card .pricing-tagline { color: var(--ink-2); }
.pricing-price { font-family: var(--font-code); font-size: clamp(2.4rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.plan-flag { font-family: var(--font-code); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Reduced motion: nothing lifts, nothing scans ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .btn-ghost:hover, .btn-secondary:hover, .wz-opt:hover, .pricing-card:hover, .qlist button:hover, .wz-close-btn:hover { transform: none; }
  .wz-modal, .wz-step { transition: none; animation: none; }
}
