/* ==========================================================================
   RAPID AI 10x BRAND SYSTEM, NOVEMBER 2026
   Black, white, graphite grey and one restrained emerald green.

   Loaded LAST on every public page, after styles.min.css, theme.css,
   motion.css and agents.css, so it is the one place the brand is decided.
   The token values are ALSO inlined in each page's <head>
   (<style id="brand-tokens">) so the first paint is already on-brand.

   Rules this file enforces
   - 85-90% of any screen is black, white or grey. Green is for the brand,
     the main action, live/positive states and a few highlights.
   - No purple, no neon, no glowing blobs, no glass blur, no gradient text.
   - One radius scale (10 / 12 / 16 px), thin borders, shadows only on
     surfaces that float (menus, dialogs, the product window).
   - Every colour comes from a token. Light and dark are the same brand.
   ========================================================================== */

/* ---------- 1. Tokens ------------------------------------------------------ */
:root,
html.dark {
  /* neutrals */
  --rx-black: #090909;
  --rx-black-2: #171717;
  --rx-graphite: #404040;
  --rx-white: #FFFFFF;
  /* greens */
  --rx-green: #166534;          /* primary brand green: buttons, marks */
  --rx-green-deep: #14532D;     /* hover / pressed */
  --rx-emerald: #16A36A;        /* accent fills, small indicators */
  --rx-green-dm: #4ADE80;       /* green text on black */
  --rx-green-soft: #DCFCE7;
  --rx-green-pale: #F0FDF4;
  --rx-green-surface: #10251A;  /* dark-mode green panel */

  /* semantic: dark theme is the default */
  --void: #090909;
  --surface: #171717;
  --surface-2: #1F1F1F;
  --section-alt: #0F0F0F;
  --deep-purple: #10251A;       /* legacy name, now the green panel */
  --primary: #166534;
  --primary-light: #4ADE80;
  --primary-deep: #14532D;
  --accent: #4ADE80;
  --glow: #4ADE80;
  --neon: #4ADE80;
  --neon-2: #86EFAC;
  --violet-fill: #16A36A;
  --success: #4ADE80;
  --danger: #F87171;
  --warning: #FBBF24;
  --info: #A3A3A3;
  --text: #FFFFFF;
  --text-secondary: #A3A3A3;
  --text-tertiary: #8A8A8A;
  --tint: 255,255,255;
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --glass-bg: #141414;
  --glass-bg-strong: #1C1C1C;
  --on-primary: #FFFFFF;
  --tag-bg: rgba(74,222,128,.10);
  --tag-border: rgba(74,222,128,.28);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-card: none;
  --shadow-elevated: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
  --glow-primary: none;
  --glow-accent: none;
  --focus-ring: 0 0 0 2px var(--void), 0 0 0 4px #4ADE80;
  color-scheme: dark;
}

html.light {
  --void: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F7F7F7;
  --section-alt: #FAFAFA;
  --deep-purple: #F0FDF4;
  --primary: #166534;
  --primary-light: #166534;
  --primary-deep: #14532D;
  --accent: #166534;
  --glow: #15803D;
  --neon: #16A36A;
  --neon-2: #4ADE80;
  --violet-fill: #16A36A;
  --success: #15803D;
  --danger: #B91C1C;
  --warning: #B45309;
  --info: #525252;
  --text: #090909;
  --text-secondary: #525252;
  --text-tertiary: #6B6B6B;
  --tint: 9,9,9;
  --border: #E5E5E5;
  --border-strong: #D4D4D4;
  --glass-bg: #FFFFFF;
  --glass-bg-strong: #F7F7F7;
  --tag-bg: #F0FDF4;
  --tag-border: #BBF7D0;
  --shadow-card: none;
  --shadow-elevated: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.08);
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #166534;
  color-scheme: light;
}

/* ---------- 2. Base -------------------------------------------------------- */
html body, html.light body, html.dark body { background: var(--void) !important; background-attachment: scroll !important; color: var(--text); }
.constellation, .hero > svg { display: none !important; }
h1, h2, h3, h4 { color: var(--text); letter-spacing: -.02em; }
::selection { background: var(--rx-green-soft); color: #090909; }
:focus-visible { outline: none; box-shadow: var(--focus-ring) !important; border-radius: 6px; }

/* ---------- 3. Remove decoration that carried no information --------------- */
.aurora, .blob, .orb-ring, .cursor-glow, .grid-overlay, .cast-sparks,
.floaty, .scroll-cue, .access-aurora, .cast-relay, .hero-grid, .noise {
  display: none !important;
}
.grad-text, h1 .grad-text, h2 .grad-text {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--accent) !important;
  animation: none !important;
}

/* ---------- 4. Surfaces ---------------------------------------------------- */
.glass, .glass-strong {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.section-alt { background: var(--section-alt) !important; border-block: 1px solid var(--border); }
.cta-section .cta-card, .cta-card {
  background: var(--rx-black) !important;
  color: #FFFFFF;
  border: 1px solid var(--rx-black-2) !important;
}
.cta-card {
  --text: #FFFFFF; --text-secondary: #A3A3A3; --text-tertiary: #8A8A8A; --accent: #4ADE80; --glow: #4ADE80;
  --border: rgba(255,255,255,.12); --border-strong: rgba(255,255,255,.2); --surface: #171717; --surface-2: #1F1F1F;
  --glass-bg: #141414; --glass-bg-strong: #1C1C1C; --tag-bg: rgba(74,222,128,.10); --tag-border: rgba(74,222,128,.28); --tint: 255,255,255;
}
.cta-card h2, .cta-card h3, .cta-card p { color: #FFFFFF; }
.cta-card p { color: #A3A3A3; }
html.light .cta-card .btn-glass { color: #FFFFFF; border-color: rgba(255,255,255,.3) !important; }

/* ---------- 5. Header ------------------------------------------------------ */
.site-header .header-inner,
.site-header.is-scrolled .header-inner {
  background: color-mix(in srgb, var(--void) 92%, transparent) !important;
  -webkit-backdrop-filter: saturate(160%) blur(8px) !important;
  backdrop-filter: saturate(160%) blur(8px) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  border-radius: 14px !important;
}
.main-nav a, .main-nav .nav-dd-link { color: var(--text-secondary); }
.main-nav a:hover, .main-nav .nav-dd-link:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.nav-pill { background: var(--surface-2) !important; box-shadow: none !important; border: 1px solid var(--border) !important; }
.brand-word { color: var(--text); }
.brand-badge { background: var(--primary) !important; color: #FFFFFF !important; border-radius: 5px !important; }

/* ---------- 6. Buttons ----------------------------------------------------- */
.btn { border-radius: 10px !important; font-weight: 600; letter-spacing: -.005em; }
.btn-primary, .btn.btn-primary {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  border: 1px solid var(--primary) !important;
  box-shadow: none !important;
}
.btn-primary:hover, .btn.btn-primary:hover {
  background: var(--primary-deep) !important;
  border-color: var(--primary-deep) !important;
  box-shadow: none !important;
  transform: none !important;
}
.btn-glass, .btn-secondary, .btn-outline {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
.btn-glass:hover, .btn-secondary:hover, .btn-outline:hover {
  background: var(--surface-2) !important;
  border-color: var(--text-tertiary) !important;
  transform: none !important;
}
.btn-ghost { color: var(--text-secondary) !important; }
.btn-ghost:hover { color: var(--text) !important; background: var(--surface-2) !important; }
.btn-burst, .btn::after { display: none !important; }
.magnetic { translate: none !important; }

/* ---------- 7. Labels, pills, eyebrows ------------------------------------- */
.eyebrow, .eyebrow-muted, .eyebrow-on-glass {
  background: var(--tag-bg) !important;
  color: var(--accent) !important;
  border: 1px solid var(--tag-border) !important;
  border-radius: 6px !important;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: .3rem .6rem;
}
.live-dot { background: var(--rx-emerald) !important; box-shadow: none !important; animation: none !important; }
.pill, .mock-pill, .chip { border-radius: 6px !important; }

/* ---------- 8. Cards -------------------------------------------------------- */
.cast-card, .price-card, .plan-card, .feature-card, .module-card, .pb-card, .tool-card,
.faq-item, .flow-step, .ba-col, .card {
  border-radius: var(--radius-lg) !important;
}
.cast-card:hover, .price-card:hover, .plan-card:hover, .feature-card:hover, .pb-card:hover, .tool-card:hover {
  border-color: var(--border-strong) !important;
  box-shadow: none !important;
}
.prism::before, .prism::after { display: none !important; }

/* The one "most popular" plan reads as chosen, quietly. */
.price-card.featured, .plan-card.featured, .price-card.is-featured {
  border: 1.5px solid var(--primary) !important;
  background: var(--surface) !important;
}

/* ---------- 9. Product window (the hero preview) ---------------------------- */
.mock-window {
  background: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
  box-shadow: var(--shadow-elevated) !important;
  border-radius: 14px !important;
}
.mock-titlebar { border-bottom: 1px solid var(--border); }
.mock-kpi { background: var(--surface-2) !important; border: 1px solid var(--border) !important; border-radius: 10px !important; }

/* ---------- 10. Agents: one visual language --------------------------------
   Each agent keeps its name, portrait and job. Their accents are now three
   steps of the same family instead of three unrelated colours. */
.agent-adriana { --a1: #16A36A; --a2: #4ADE80; --a-rgb: 22, 163, 106; }
.agent-luis    { --a1: #A3A3A3; --a2: #D4D4D4; --a-rgb: 163, 163, 163; }
.agent-chloe   { --a1: #4ADE80; --a2: #86EFAC; --a-rgb: 74, 222, 128; }
html.light .agent-adriana { --a1: #166534; --a-rgb: 22, 101, 52; }
html.light .agent-luis    { --a1: #404040; --a-rgb: 64, 64, 64; }
html.light .agent-chloe   { --a1: #15803D; --a-rgb: 21, 128, 61; }
.av, .cast-photo { box-shadow: none !important; }

/* ---------- 11. Footer ----------------------------------------------------- */
.site-footer { background: var(--section-alt) !important; border-top: 1px solid var(--border); }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--text); }

/* ---------- 12. Motion: calm by default ------------------------------------ */
.reveal { transition-duration: .5s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 13. Homepage blocks added in the Nov 2026 rebuild -------------- */
.hm-group { margin-top: 2.5rem; }
.hm-group + .hm-group { margin-top: 3rem; }
.hm-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.hm-group-head h3 { font-size: 1.25rem; margin: 0; }
.hm-plan-tag {
  font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px;
  background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border);
}
.hm-group-sub { margin: .4rem 0 1.1rem; color: var(--text-secondary); }
.hm-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.module-card h4, .hm-sol h3 { font-size: 1rem; font-weight: 650; margin: .9rem 0 .4rem; color: var(--text); letter-spacing: -.01em; }
.module-card p { color: var(--text-secondary); }
.module-icon { background: var(--tag-bg) !important; color: var(--accent) !important; border: 1px solid var(--tag-border) !important; border-radius: 10px !important; box-shadow: none !important; }
.hm-card-link { display: inline-block; margin-top: .75rem; font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.hm-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-more a { color: var(--accent); font-weight: 600; }
.hm-sol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.hm-sol { padding: 1.4rem; border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.hm-sol h3 { margin-top: .9rem; font-size: 1.05rem; }
.hm-sol p { font-size: .92rem; line-height: 1.55; color: var(--text-secondary); margin: .35rem 0 0; }
.hm-sol p strong { color: var(--text); font-weight: 600; }
.hm-sol .hm-card-link { margin-top: auto; padding-top: .9rem; }
@media (max-width: 1100px) {
  .hm-features--4, .hm-sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .hm-features--4, .hm-sol-grid { grid-template-columns: 1fr !important; }
}

/* ---------- 14. Theme switch: a plain, quiet control ---------------------- */
.theme-toggle {
  background: var(--surface-2) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border: 1px solid var(--border-strong) !important;
}
.theme-toggle:hover { box-shadow: none !important; transform: none !important; border-color: var(--text-tertiary) !important; }
.tt-sky, .tt-stars { display: none !important; }
.tt-knob, html.light .tt-knob {
  background: var(--text) !important;
  box-shadow: none !important;
}
.tt-knob::after { background: var(--surface-2) !important; }
.tt-knob::before, html.light .tt-knob::before { display: none !important; }

/* ---------- 15. Playbook: flat surfaces, one accent ------------------------ */
.answer-box {
  background: var(--tag-bg) !important;
  border: 1px solid var(--tag-border) !important;
  border-left: 3px solid var(--primary) !important;
  box-shadow: none !important;
}
.pb-study { background: var(--surface) !important; border-color: var(--border-strong) !important; }
.pb-feature::before { display: none !important; }
.pb-card::before { background: var(--primary) !important; opacity: 1 !important; height: 2px !important; }
.pb-tab i { box-shadow: none !important; }
.pb-tab.is-active { box-shadow: none !important; }
.pb-search { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border-radius: 12px !important; }
.pb-search:focus-within { box-shadow: var(--focus-ring) !important; }
.pillar-chip:hover, .print-btn:hover, .copy-btn:hover { box-shadow: none !important; transform: none !important; }
.pb-tool:hover .pb-tool-ic, .pb-demo:hover .pb-tool-ic { transform: none !important; }

/* ---------- 16. Accessibility fixes from the axe pass --------------------- */
.cta-card .grad-text, .cta-card h2 .grad-text { color: #4ADE80 !important; }
.breadcrumb .is-current, .breadcrumb [aria-current] { color: var(--text-secondary) !important; opacity: 1 !important; }
main p a:not(.btn):not(.hm-card-link):not(.pb-cta), main dd a, main .faq-a a, main td a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.pricing-note, .hm-plan-tag { color: var(--text-secondary) !important; opacity: 1 !important; }

/* ---------- 17. Hero background film ------------------------------------- */
/* The hero sits on the film in both themes, so it carries the dark tokens
   locally: white headline, grey body, green accents, readable on the veil. */
.hero--film {
  --text: #FFFFFF; --text-secondary: #C4C4C4; --text-tertiary: #A3A3A3; --accent: #4ADE80; --glow: #4ADE80;
  --border: rgba(255,255,255,.14); --border-strong: rgba(255,255,255,.24); --surface: #171717; --surface-2: #1F1F1F;
  --glass-bg: #141414; --glass-bg-strong: #1C1C1C; --tag-bg: rgba(74,222,128,.12); --tag-border: rgba(74,222,128,.32); --tint: 255,255,255;
  --void: #090909; --section-alt: #0F0F0F;
  position: relative; isolation: isolate; color: #FFFFFF; background: #090909;
  padding-top: 8.5rem !important; margin-top: -5.5rem;
}
.hero--film .hero-title, .hero--film .hero-sub, .hero--film .hero-proof p { color: var(--text); }
.hero--film .hero-sub { color: var(--text-secondary); }
.hero-film { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #090909 url(/assets/intro-poster.webp) center / cover no-repeat; }
.hero-film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-film-video.is-playing { opacity: 1; }
.hero-film-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,9,9,.92) 0%, rgba(9,9,9,.78) 42%, rgba(9,9,9,.45) 100%),
    linear-gradient(180deg, rgba(9,9,9,.35) 0%, rgba(9,9,9,0) 30%, rgba(9,9,9,0) 70%, #090909 100%);
}
html.light .hero--film .hero-film-veil {
  background:
    linear-gradient(90deg, rgba(9,9,9,.92) 0%, rgba(9,9,9,.78) 42%, rgba(9,9,9,.45) 100%),
    linear-gradient(180deg, rgba(9,9,9,.35) 0%, rgba(9,9,9,0) 30%, rgba(9,9,9,0) 70%, rgba(9,9,9,.9) 100%);
}
@media (max-width: 900px) {
  .hero-film-veil { background: linear-gradient(180deg, rgba(9,9,9,.6) 0%, rgba(9,9,9,.85) 55%, #090909 100%) !important; }
}
@media (prefers-reduced-motion: reduce) { .hero-film-video { display: none; } }
html.light .hero--film .mock-pill.pill-success, .hero--film .mock-pill.pill-success { color: #4ADE80 !important; background: rgba(74,222,128,.14) !important; }
html.light .hero--film .mock-pill.pill-info, .hero--film .mock-pill.pill-info { color: #C4C4C4 !important; background: rgba(255,255,255,.08) !important; }
html.light .hero--film .mock-pill.pill-warn { color: #FBBF24 !important; }

/* ---------- 18. Case study pages ----------------------------------------- */
.cs-wrap { max-width: 820px; }
.cs-byline { margin-top: .8rem; font-size: .88rem; color: var(--text-tertiary); }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0 2rem; }
.cs-facts > div { padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cs-facts span { display: block; font-size: .75rem; color: var(--text-tertiary); }
.cs-facts strong { display: block; margin-top: .2rem; font-size: .95rem; color: var(--text); }
.cs-steps { margin: 1rem 0 2rem; padding-left: 1.3rem; color: var(--text-secondary); line-height: 1.65; }
.cs-steps li { margin-top: .6rem; }
.cs-steps strong { color: var(--text); }
.cs-quote { width: 100%; border-collapse: collapse; font-size: .98rem; }
.cs-quote th, .cs-quote td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); color: var(--text); }
.cs-quote thead th { font-size: .78rem; color: var(--text-tertiary); font-weight: 600; }
.cs-quote .num { text-align: right; font-variant-numeric: tabular-nums; }
.cs-quote tfoot th, .cs-quote tfoot td { border-bottom: 0; font-weight: 700; }
.cs-wrap .page-section-title { margin-top: 2.5rem; }
.cs-wrap .faq-list { margin-top: 1rem; }
.cs-next { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
@media (max-width: 720px) { .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-wrap .answer-box { border-radius: 12px; padding: 1.2rem 1.4rem; margin: 0 0 1rem; }
.cs-wrap .answer-box p { margin: 0; color: var(--text); line-height: 1.65; }

/* ---------- 19. Hero product window: see-through over the film ------------ */
/* The window is a pane of tinted glass: the film and its scene stay visible
   behind it, the words on it keep a soft shadow so they still read, and it
   drifts gently. Placed a little lower and to the right of the headline. */
.hero--film .hero-visual {
  max-width: 470px; width: 100%; justify-self: end; margin-left: auto;
  transform: translateY(1.75rem);
}
.hero--film .mock-window {
  background: rgba(9, 9, 9, .22) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7) !important;
  -webkit-backdrop-filter: blur(1.5px) saturate(115%) !important;
  backdrop-filter: blur(1.5px) saturate(115%) !important;
  animation: rx-drift 7s ease-in-out infinite;
  will-change: transform;
}
.hero--film .mock-titlebar { background: transparent !important; border-bottom-color: rgba(255, 255, 255, .1) !important; }
.hero--film .mock-kpi {
  background: rgba(255, 255, 255, .05) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
.hero--film .mock-chart, .hero--film .mock-rows, .hero--film .mock-row { background: transparent !important; }
.hero--film .mock-rows { border-top-color: rgba(255, 255, 255, .1) !important; }
.hero--film .mock-window, .hero--film .mock-window strong, .hero--film .mock-window small,
.hero--film .mock-kpi-label, .hero--film .mock-kpi-value, .hero--film .mock-title, .hero--film .mock-illustrative {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 12px rgba(0, 0, 0, .55);
}
.hero--film .mock-window small, .hero--film .mock-kpi-label { color: #D4D4D4 !important; }
.hero--film .mock-illustrative { color: #C4C4C4 !important; }

/* rows arrive one after another, then the pane settles into its drift */
.hero--film .mock-kpi, .hero--film .mock-row { animation: rx-rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.hero--film .mock-kpi:nth-child(1) { animation-delay: .25s; }
.hero--film .mock-kpi:nth-child(2) { animation-delay: .35s; }
.hero--film .mock-kpi:nth-child(3) { animation-delay: .45s; }
.hero--film .mock-row:nth-child(1) { animation-delay: .7s; }
.hero--film .mock-row:nth-child(2) { animation-delay: .95s; }
.hero--film .mock-row:nth-child(3) { animation-delay: 1.2s; }
@keyframes rx-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero--film .hero-visual { justify-self: center; margin: 0 auto; transform: none; max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--film .mock-window, .hero--film .mock-kpi, .hero--film .mock-row { animation: none !important; }
}

/* 20. Plain-language explainer (/what-is-rapid-ai-10x/) */
.ws-list{list-style:none;padding:0;margin:.75rem 0 1rem;display:grid;gap:.6rem}
.ws-list li{padding:.85rem 1rem;border:1px solid var(--border,rgba(127,127,127,.2));border-radius:.75rem;background:var(--surface,transparent);line-height:1.55}
.ws-table th[scope="row"]{white-space:nowrap;text-align:left}
.ws-table td,.ws-table th{vertical-align:top}
.ws-terms{display:grid;gap:.6rem;margin:.75rem 0 1rem}
.ws-terms>div{padding:.85rem 1rem;border:1px solid var(--border,rgba(127,127,127,.2));border-radius:.75rem}
.ws-terms dt{font-weight:600;margin-bottom:.2rem}
.ws-terms dd{margin:0;color:var(--text-secondary,inherit);line-height:1.55}
@media (max-width:640px){.ws-table th[scope="row"]{white-space:normal}}

/* 21. Cards site-wide: purple icons, grey card on hover (20 Nov 2026) */
html.dark, html:not(.light) { --card-icon: #C4B5FD; --card-icon-bg: rgba(139,92,246,.16); --card-icon-border: rgba(167,139,250,.35); --card-hover: #262626; --card-hover-border: #404040; --card-icon-on: #171717; }
html.light { --card-icon: #6D28D9; --card-icon-bg: #F3EEFF; --card-icon-border: #DDD0FB; --card-hover: #EBEBEB; --card-hover-border: #C9C9C9; --card-icon-on: #FFFFFF; }

/* Icons inside cards */
.module-icon, .pb-topic-ic { background: var(--card-icon-bg) !important; color: var(--card-icon) !important; border-color: var(--card-icon-border) !important; transition: background-color .2s ease, color .2s ease; }
.price-card .ic, .vision-item > .ic, .related-card .ic { color: var(--card-icon) !important; }

/* The card itself */
.module-card, .price-card, .plan-card, .feature-card, .tool-card, .hm-sol, .hm-step, .related-card, .pb-card, .pb-topic-card, .vision-item, .roadmap-body, .diagram-card { transition: background-color .2s ease, border-color .2s ease !important; }
.module-card:hover, .price-card:hover, .plan-card:hover, .feature-card:hover, .tool-card:hover, .hm-sol:hover, .hm-step:hover, .related-card:hover, .pb-card:hover, .pb-topic-card:hover, .vision-item:hover, .roadmap-body:hover, .diagram-card:hover, .module-card:focus-within, .price-card:focus-within, .plan-card:focus-within, .feature-card:focus-within, .tool-card:focus-within, .hm-sol:focus-within, .hm-step:focus-within, .related-card:focus-within, .pb-card:focus-within, .pb-topic-card:focus-within, .vision-item:focus-within, .roadmap-body:focus-within, .diagram-card:focus-within {
  background: var(--card-hover) !important; border-color: var(--card-hover-border) !important;
  box-shadow: none !important; transform: none !important;
}
/* The featured plan keeps its green outline so it still reads as the pick. */
.price-card--popular:hover, .price-card.featured:hover, .price-card.is-featured:hover { border-color: var(--primary) !important; }
/* Boxed icons fill solid purple on hover. */
.module-card:hover .module-icon, .module-card:hover .pb-topic-ic, .price-card:hover .module-icon, .price-card:hover .pb-topic-ic, .plan-card:hover .module-icon, .plan-card:hover .pb-topic-ic, .feature-card:hover .module-icon, .feature-card:hover .pb-topic-ic, .tool-card:hover .module-icon, .tool-card:hover .pb-topic-ic, .hm-sol:hover .module-icon, .hm-sol:hover .pb-topic-ic, .hm-step:hover .module-icon, .hm-step:hover .pb-topic-ic, .related-card:hover .module-icon, .related-card:hover .pb-topic-ic, .pb-card:hover .module-icon, .pb-card:hover .pb-topic-ic, .pb-topic-card:hover .module-icon, .pb-topic-card:hover .pb-topic-ic, .vision-item:hover .module-icon, .vision-item:hover .pb-topic-ic, .roadmap-body:hover .module-icon, .roadmap-body:hover .pb-topic-ic, .diagram-card:hover .module-icon, .diagram-card:hover .pb-topic-ic { background: var(--card-icon) !important; color: var(--card-icon-on) !important; border-color: var(--card-icon) !important; }
/* Pale inner boxes (pilot price) stay visible on the grey card. */
.price-card:hover .card-pilot { background: var(--void) !important; }
/* White "Book a walkthrough" button stays distinct on grey. */
.price-card:hover .btn-glass { background: var(--void) !important; }
