/* ==========================================================================
   FinBeeps Web — Obsidian & Architectural Cyan Design System (Ronda 5)
   Dual Theme: Obsidian Dark (default) + Crisp Light Mode
   Typography: Plus Jakarta Sans (Editorial 500-600) + IBM Plex Sans + Mono
   Stack: Pure CSS3 (Zero frameworks, Mobile-First, WCAG AA/AAA, PWA-ready)
   ========================================================================== */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Obsidian Dark Tokens (Exact Daily Report Palette) */
  --bg-page: #060C17;
  --bg-alt: #0B1323;
  --bg-surface: #0B1323;
  --bg-elevated: #101C32;
  --bg-hover: #101C32;
  --border: #17253B;
  --border-strong: #263B5E;

  --text-primary: #F4F8FC;
  --text-secondary: #B9C8DC;
  --text-muted: #8FA3BE;

  --brand-accent: #2AD2E2;
  --brand-accent-hover: #4BE0EE;
  --brand-accent-text: #2AD2E2;
  --brand-accent-soft: rgba(42, 210, 226, 0.09);
  --brand-accent-border: rgba(42, 210, 226, 0.34);
  --brand-struct: #0F2D59;
  --glass-bg: rgba(6, 12, 23, 0.84);

  /* Semantic P90 Traffic Light (Dark) */
  --risk-low-fg: #6EE7A8;
  --risk-low-bg: rgba(16, 185, 129, 0.13);
  --risk-low-bd: rgba(110, 231, 168, 0.32);

  --risk-mod-fg: #FCD34D;
  --risk-mod-bg: rgba(245, 158, 11, 0.14);
  --risk-mod-bd: rgba(252, 211, 77, 0.34);

  --risk-high-fg: #FCA5A5;
  --risk-high-bg: rgba(239, 68, 68, 0.16);
  --risk-high-bd: rgba(252, 165, 165, 0.38);

  --btn-primary-fg: #041221;
  --btn-struct-bg: #12284A;
  --btn-struct-fg: #F4F8FC;
  --btn-struct-hover: #193664;
  --shadow-elevated: 0 24px 56px -18px rgba(0, 0, 0, 0.68);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing & Layout */
  --container-max: 1380px;
  --header-h: 76px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 640ms;
}

[data-theme="light"] {
  color-scheme: light;

  /* Light Mode Tokens (Exact Daily Report Palette) */
  --bg-page: #FFFFFF;
  --bg-alt: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F5F7FA;
  --bg-hover: #EDF2F7;
  --border: #DCE4EE;
  --border-strong: #BFCDE0;

  --text-primary: #0A1628;
  --text-secondary: #364559;
  --text-muted: #5A6B82;

  --brand-accent: #1FA3B1;
  --brand-accent-hover: #178F9C;
  --brand-accent-text: #0F7683;
  --brand-accent-soft: rgba(31, 163, 177, 0.09);
  --brand-accent-border: rgba(31, 163, 177, 0.34);
  --brand-struct: #0F2D59;
  --glass-bg: rgba(255, 255, 255, 0.88);

  /* Semantic P90 Traffic Light (Light) */
  --risk-low-fg: #126E35;
  --risk-low-bg: #EBFBF1;
  --risk-low-bd: #B6EACC;

  --risk-mod-fg: #9A4A06;
  --risk-mod-bg: #FFF9EB;
  --risk-mod-bd: #F7D996;

  --risk-high-fg: #A81717;
  --risk-high-bg: #FEF2F2;
  --risk-high-bd: #F9BDBD;

  --btn-primary-fg: #FFFFFF;
  --btn-struct-bg: #0F2D59;
  --btn-struct-fg: #FFFFFF;
  --btn-struct-hover: #173E78;
  --shadow-elevated: 0 20px 44px -16px rgba(10, 22, 40, 0.14);
}

/* ==========================================================================
   Reset & Browser Surfaces
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.62;
  accent-color: var(--brand-accent);
  caret-color: var(--brand-accent);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bg-page);
  color: var(--text-primary);
  transition: background var(--dur-med) ease, color var(--dur-med) ease;
}

::selection {
  background: rgba(42, 210, 226, 0.28);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-accent); }

img, svg, video { display: block; max-width: 100%; }

a {
  color: var(--brand-accent-text);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
  transition: color var(--dur-fast) ease;
}
a:hover { color: var(--text-primary); }

:focus-visible {
  outline: 2.5px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--brand-struct);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus,
.skip-link:hover {
  top: 12px;
  color: #FFFFFF;
}

.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Containers & Refined Editorial Typography (Weight 500-600)
   ========================================================================== */
.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}
@media (min-width: 768px) {
  .container { width: min(100% - 48px, var(--container-max)); }
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.45rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.018em;
}

p {
  margin: 0;
  max-width: 68ch;
}

/* ==========================================================================
   Scroll Telemetry Bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--brand-accent);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

/* ==========================================================================
   Top Telemetry Bar + Header, Dual Brand Logo & Theme Toggle
   ========================================================================== */
.telemetry-bar {
  height: 30px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  overflow: hidden;
}
.telemetry-bar__text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.telemetry-bar__accent {
  color: var(--brand-accent-text);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--header-h);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-med) ease, border-color var(--dur-med) ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-link img {
  height: 44px;
  width: auto;
}
@media (min-width: 1024px) {
  .brand-link img {
    height: 46px;
  }
}

html[data-theme="dark"] .brand-logo--light { display: none !important; }
html[data-theme="dark"] .brand-logo--dark  { display: block !important; }
html[data-theme="light"] .brand-logo--dark { display: none !important; }
html[data-theme="light"] .brand-logo--light { display: block !important; }

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.nav-link--report {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
}
.nav-report-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--brand-accent);
  background: var(--bg-hover);
}
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun  { display: block; }
[data-theme="light"] .theme-icon--sun  { display: none; }
[data-theme="light"] .theme-icon--moon { display: block; }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 18px 24px 26px;
  z-index: 115;
  box-shadow: var(--shadow-elevated);
}
.mobile-drawer.is-open { display: grid; gap: 10px; }
.mobile-drawer a {
  padding: 10px 4px;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-drawer { display: none !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-expo),
              background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px); }

a.btn--primary, .btn--primary {
  background: var(--brand-accent);
  color: var(--btn-primary-fg);
}
a.btn--primary:hover, .btn--primary:hover {
  background: var(--brand-accent-hover);
  color: var(--btn-primary-fg);
  transform: translateY(-1px);
}

a.btn--struct, .btn--struct {
  background: var(--btn-struct-bg);
  color: var(--btn-struct-fg);
  border-color: var(--border-strong);
}
a.btn--struct:hover, .btn--struct:hover {
  background: var(--btn-struct-hover);
  color: var(--btn-struct-fg);
  border-color: var(--brand-accent);
}

a.btn--ghost, .btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
a.btn--ghost:hover, .btn--ghost:hover {
  background: var(--bg-hover);
  border-color: var(--brand-accent);
  color: var(--text-primary);
}

.btn--sm { min-height: 38px; padding: 0 15px; font-size: 0.86rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   R7.1 — Full-Bleed Silent Brand Film Hero with Dark Lateral Veil
   ========================================================================== */
.hero {
  position: relative;
  padding: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero__scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(620px, max(46vw, calc(100svh - var(--header-h) - 34px)), 900px);
  background: #060C17;
  color: #F4F8FC;
  overflow: hidden;
}

.hero__scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #060C17 0%, rgba(6, 12, 23, 0.98) 12%, rgba(6, 12, 23, 0.94) 27%, rgba(6, 12, 23, 0.87) 38%, rgba(6, 12, 23, 0.34) 54%, transparent 69%),
    linear-gradient(0deg, rgba(6, 12, 23, 0.36), transparent 22%);
}

.hero__scene .video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #060C17;
  z-index: -2;
  overflow: hidden;
}

.hero__scene .video-frame__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__scene .hero__copy {
  display: block;
  position: relative;
  z-index: 1;
  width: min(100% - 64px, 1440px);
  margin-inline: auto;
  padding: clamp(60px, 6vw, 112px) 0;
  pointer-events: none;
}

.hero__scene .hero__copy > * {
  pointer-events: auto;
}

.hero__scene .hero__title {
  color: #F4F8FC;
  font-size: clamp(2.65rem, 3.8vw, 4.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 26px;
  max-width: 10.8em;
  width: min(40vw, 630px);
  text-wrap: initial;
}

.hero__scene .hero__title-accent {
  color: #2AD2E2;
  display: block;
}

.hero__scene .hero__intro {
  width: min(36vw, 510px);
  max-width: none;
}

.hero__scene .hero__lead {
  color: #D0DCE9;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  margin: 0 0 26px;
  max-width: 49ch;
}

.hero__scene .hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  width: max-content;
}
.hero__scene .hero__actions .btn {
  white-space: nowrap;
  padding: 0 18px;
}
@media (max-width: 719px) {
  .hero__scene .hero__actions {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
  }
}

.hero__scene .hero__actions .btn--primary {
  background: #2AD2E2;
  color: #041221;
  border-color: transparent;
}
.hero__scene .hero__actions .btn--primary:hover {
  background: #4BE0EE;
  color: #041221;
}

.hero__scene .hero__actions .btn--ghost {
  color: #F4F8FC;
  border-color: rgba(143, 163, 190, 0.55);
  background: rgba(6, 12, 23, 0.68);
}
.hero__scene .hero__actions .btn--ghost:hover {
  background: #12284A;
  border-color: #2AD2E2;
  color: #FFFFFF;
}

.hero__scene .hero__meta-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #9FB3CC;
  max-width: 52ch;
}
.hero__scene .hero__meta-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #2AD2E2;
}

.hero__scene .video-controls {
  position: absolute;
  z-index: 3;
  right: max(112px, calc((100% - var(--container-max)) / 2 + 88px));
  bottom: 24px;
}

/* R8.1 — Subtle Cyan Architectural Scroll Down Cue */
.scroll-cue {
  position: absolute;
  right: max(28px, calc((100% - var(--container-max)) / 2));
  bottom: 92px;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2AD2E2;
  opacity: 0.88;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.scroll-cue:hover {
  opacity: 1;
  color: #4BE0EE;
  transform: translateY(2px);
}
.scroll-cue__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 38px;
  background: rgba(42, 210, 226, 0.28);
  overflow: hidden;
}
.scroll-cue__beam {
  position: absolute;
  top: -14px;
  left: -0.5px;
  width: 2px;
  height: 14px;
  background: #2AD2E2;
  animation: scrollCueDrop 2.1s var(--ease-out-expo) infinite;
}
@keyframes scrollCueDrop {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
@media (min-width: 768px) {
  .scroll-cue { display: inline-flex; }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .hero__scene .hero__title { font-size: clamp(2.5rem, 4vw, 3.25rem); }
  .hero__scene .hero__intro { width: 40vw; }
  .hero__scene::before {
    background: linear-gradient(90deg, #060C17 0%, rgba(6, 12, 23, 0.98) 15%, rgba(6, 12, 23, 0.94) 32%, rgba(6, 12, 23, 0.88) 44%, rgba(6, 12, 23, 0.25) 62%, transparent 76%);
  }
}

@media (max-width: 1023px) {
  .hero__scene {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: #060C17;
  }
  .hero__scene::before { display: none; }
  .hero__scene .video-frame {
    position: relative;
    inset: auto;
    z-index: auto;
    order: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .hero__scene .video-frame__media { object-fit: contain; }
  .hero__scene .hero__copy {
    order: 1;
    width: min(100% - 32px, 720px);
    padding: 28px 0 38px;
  }
  .hero__scene .hero__title {
    width: auto;
    max-width: 16em;
    font-size: clamp(2.15rem, 6vw, 3.6rem);
    margin-bottom: 16px;
  }
  .hero__scene .hero__intro { width: auto; max-width: 62ch; }
  .hero__scene .video-controls {
    position: absolute;
    top: calc(56.25vw - 48px);
    bottom: auto;
    right: 14px;
  }
}

.hero-radar__sweep {
  transform-origin: 240px 240px;
  animation: radarSweep 8s linear infinite;
}

.video-frame__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: inline-flex;
  gap: 6px;
}

.video-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(42, 210, 226, 0.34);
  background: rgba(6, 12, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F4F8FC;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.video-ctrl-btn:hover {
  background: rgba(16, 28, 50, 0.94);
  border-color: #2AD2E2;
}

/* ==========================================================================
   Proof Strip (Walk-Forward Telemetry)
   ========================================================================== */
.proof-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (min-width: 900px) {
  .proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  .proof-item {
    padding-inline: 24px;
    border-right: 1px solid var(--border);
  }
  .proof-item:first-child { padding-left: 0; }
  .proof-item:last-child { border-right: 0; padding-right: 0; }
}

.proof-item__val {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 600;
  color: var(--brand-accent-text);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.proof-item__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.proof-item__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.48;
}

/* ==========================================================================
   Sections & Editorial Rhythm
   ========================================================================== */
.section {
  padding: clamp(60px, 7.5vw, 96px) 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 740px;
}
.section__head p {
  margin-top: 12px;
  font-size: 1.02rem;
  color: var(--text-secondary);
}
.section__head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 880px;
}
.section__head--center p {
  margin-inline: auto;
}

/* ==========================================================================
   Audience Profiles (3 Scales)
   ========================================================================== */
.profiles-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .profiles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform var(--dur-med) var(--ease-out-expo),
              border-color var(--dur-med) ease,
              box-shadow var(--dur-med) ease,
              background var(--dur-med) ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  background: var(--bg-elevated);
  box-shadow: 0 14px 34px rgba(42, 210, 226, 0.14);
}
.profile-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  color: var(--brand-accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.profile-card:hover .profile-card__icon {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--btn-primary-fg);
}
.profile-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   R10.3 — Interactive 4x2 Proprietary Advantages Grid (Spotlight + Micro-Viz)
   ========================================================================== */
.ventajas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .ventajas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .ventajas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

.ventaja-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 20px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-med) var(--ease-out-expo),
              border-color var(--dur-med) ease,
              box-shadow var(--dur-med) ease;
}
.ventaja-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    rgba(42, 210, 226, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}
.ventaja-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    220px circle at var(--mx) var(--my),
    rgba(42, 210, 226, 0.72),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}
.ventaja-card:hover,
.ventaja-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--brand-accent-border);
  box-shadow: 0 12px 28px rgba(4, 12, 24, 0.22);
}
.ventaja-card:hover::before,
.ventaja-card:hover::after,
.ventaja-card:focus-within::before,
.ventaja-card:focus-within::after {
  opacity: 1;
}

.ventaja-viz {
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}
.ventaja-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}
.ventaja-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ventaja-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-accent-text);
  font-weight: 600;
}

/* Micro-viz 1: SHA-256 lock */
.mv-hash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.mv-hash__pill {
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-secondary);
  transition: all var(--dur-med) ease;
}
.ventaja-card:hover .mv-hash__pill {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
  color: var(--brand-accent-text);
}
.mv-hash__lock {
  color: var(--text-muted);
  transition: color var(--dur-med) ease, transform var(--dur-med) var(--ease-out-expo);
}
.ventaja-card:hover .mv-hash__lock {
  color: var(--brand-accent);
  transform: scale(1.14);
}

/* Micro-viz 2: 1h -> 4h curve */
.mv-svg { width: 100%; height: 46px; display: block; }
.mv-curve-path {
  stroke-dasharray: 180;
  stroke-dashoffset: 68;
  transition: stroke-dashoffset 650ms var(--ease-out-expo);
}
.ventaja-card:hover .mv-curve-path { stroke-dashoffset: 0; }

/* Micro-viz 3: P90 bar */
.mv-p90 { width: 100%; display: grid; gap: 6px; }
.mv-p90__head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.mv-p90__track { height: 7px; border-radius: 999px; background: var(--border); overflow: hidden; }
.mv-p90__fill {
  width: 44%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34D399 0%, #F59E0B 55%, #F87171 100%);
  transition: width 550ms var(--ease-out-expo);
}
.ventaja-card:hover .mv-p90__fill { width: 82%; }

/* Micro-viz 4: 5 orbital nodes */
.mv-orbit { width: 100%; display: flex; align-items: center; justify-content: space-around; }
.mv-node {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
  border: 1px solid var(--brand-accent-border);
  transition: transform var(--dur-med) var(--ease-out-expo), background var(--dur-med) ease, box-shadow var(--dur-med) ease;
}
.ventaja-card:hover .mv-node {
  background: var(--brand-accent);
  box-shadow: 0 0 10px rgba(42, 210, 226, 0.65);
  transform: scale(1.25);
}
.ventaja-card:hover .mv-node:nth-child(2) { transition-delay: 55ms; }
.ventaja-card:hover .mv-node:nth-child(3) { transition-delay: 110ms; }
.ventaja-card:hover .mv-node:nth-child(4) { transition-delay: 165ms; }
.ventaja-card:hover .mv-node:nth-child(5) { transition-delay: 220ms; }

/* Micro-viz 5: Anti-fatigue filter */
.mv-filter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.mv-filter__raw { color: var(--text-muted); text-decoration: line-through; opacity: 0.75; }
.mv-filter__arrow { color: var(--brand-accent-text); transition: transform var(--dur-med) var(--ease-out-expo); }
.ventaja-card:hover .mv-filter__arrow { transform: translateX(4px); }
.mv-filter__clean {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  color: var(--brand-accent-text);
  font-weight: 600;
}

/* Micro-viz 6: OOS AUROC / BSS bar */
.mv-oos { width: 100%; display: grid; gap: 6px; }
.mv-oos__stats { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: var(--brand-accent-text); font-weight: 600; }
.mv-oos__bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.mv-oos__fill { width: 65%; height: 100%; background: var(--brand-accent); transition: width 600ms var(--ease-out-expo); }
.ventaja-card:hover .mv-oos__fill { width: 90%; }

/* Micro-viz 7: Fragility arc */
.mv-arc-progress {
  stroke-dasharray: 110;
  stroke-dashoffset: 48;
  transition: stroke-dashoffset 650ms var(--ease-out-expo);
}
.ventaja-card:hover .mv-arc-progress { stroke-dashoffset: 16; }

/* Micro-viz 8: Channels */
.mv-channels {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: space-between;
}
.mv-ch {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.ventaja-card:hover .mv-ch {
  border-color: var(--brand-accent);
  color: var(--brand-accent-text);
}

/* ==========================================================================
   Interactive Real Evidence Console (in #ejemplos)
   ========================================================================== */
.evidence-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1024px) {
  .evidence-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 32px;
  }
  .evidence-layout .formats-box { order: 1; }
  .evidence-layout .console { order: 2; }
}

.console {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--dur-med) ease;
}
.console[data-regime="critical"] {
  border-color: rgba(251, 146, 60, 0.45);
}

.console__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.console__tabs {
  display: inline-flex;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  gap: 4px;
}

.console__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.console__tab::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.console__tab:hover::after,
.console__tab[aria-selected="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.console__tab[aria-selected="true"] {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.console__tab-dot { width: 7px; height: 7px; border-radius: 50%; }
.console__tab-dot--high { background: #F87171; }
.console__tab-dot--low  { background: #34D399; }

.console__clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-accent-text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-accent);
}
.console[data-regime="critical"] .status-dot { background: #F87171; }

.provenance-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.provenance-tag--real {
  background: var(--brand-accent-soft);
  color: var(--brand-accent-text);
  border: 1px solid var(--brand-accent-border);
}
.provenance-tag--illustrative {
  background: var(--risk-mod-bg);
  color: var(--risk-mod-fg);
  border: 1px solid var(--risk-mod-bd);
}

.console__event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.console__event-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.console__event-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
}
.risk-badge--low  { background: var(--risk-low-bg);  color: var(--risk-low-fg);  border: 1px solid var(--risk-low-bd); }
.risk-badge--mod  { background: var(--risk-mod-bg);  color: var(--risk-mod-fg);  border: 1px solid var(--risk-mod-bd); }
.risk-badge--high { background: var(--risk-high-bg); color: var(--risk-high-fg); border: 1px solid var(--risk-high-bd); }
.risk-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.console__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.console__metric-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.console__metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}
.console__metric-val--teal { color: var(--brand-accent-text); }
.console__metric-val--high { color: var(--risk-high-fg); }
.console__metric-val--low  { color: var(--risk-low-fg); }
.console__metric-sub {
  display: block;
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.gauge { margin-bottom: 16px; }
.gauge__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.gauge__track {
  position: relative;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}
.gauge__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #F59E0B 0%, #FB923C 52%, #EF4444 100%);
  transition: width 640ms var(--ease-out-expo);
}
.console[data-regime="calm"] .gauge__fill {
  background: linear-gradient(90deg, #1FA3B1 0%, #34D399 100%);
}
.gauge__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.console__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.console__notice svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-accent-text); }

.sha-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sha-bar__hash {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sha-bar__hash code { color: var(--brand-accent-text); font-family: inherit; }

.sha-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--brand-accent-border);
  background: var(--brand-accent-soft);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.sha-bar__btn:hover { border-color: var(--brand-accent); }

.sha-drawer {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
  gap: 8px;
}
.sha-drawer.is-open { display: grid; }
.sha-drawer code {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--brand-accent-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Format Tabs Preview (Email 30s vs Telegram 5s vs Web Report Pro) */
.formats-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.format-tab {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.format-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.format-tab:hover::after,
.format-tab[aria-selected="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.format-tab[aria-selected="true"] {
  background: var(--brand-accent-soft);
  border-color: var(--brand-accent);
  color: var(--text-primary);
}

.format-panel {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.format-panel[hidden] { display: none; }
.format-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand-accent-text);
}
.format-panel__sample {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-primary);
  white-space: pre-line;
}

/* ==========================================================================
   Horizon Scrubber Lab (1h -> 4h)
   ========================================================================== */
.horizon-lab {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .horizon-lab {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 44px;
  }
}

.horizon-steps { display: grid; gap: 10px; }
.horizon-btn {
  text-align: left;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.horizon-btn[aria-pressed="true"] {
  background: var(--brand-accent-soft);
  border-color: var(--brand-accent);
  color: var(--text-primary);
}
.horizon-btn__time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--brand-accent-text);
  white-space: nowrap;
}
.horizon-btn__title { display: block; font-size: 0.96rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.horizon-btn__desc { display: block; font-size: 0.84rem; color: var(--text-secondary); line-height: 1.48; }

.horizon-stage {
  background: #060C17;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #F4F8FC;
}
.horizon-svg { width: 100%; height: auto; overflow: visible; }
.horizon-caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #17253B;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  color: #B9C8DC;
}
.horizon-caption strong { color: #FFFFFF; font-family: var(--font-mono); }

/* ==========================================================================
   Global 5-Index SVG Radar
   ========================================================================== */
.radar-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .radar-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 48px;
  }
}
.radar-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060C17;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.radar-stage--open {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.radar-svg { width: min(100%, 330px); height: auto; overflow: visible; }
.radar-svg--large { width: min(100%, 540px); }
.radar-sweep { transform-origin: 180px 180px; animation: radarSweep 7.5s linear infinite; }
@keyframes radarSweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-node { cursor: pointer; }
.radar-list { display: grid; gap: 10px; }
.radar-item {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  cursor: pointer;
}
.radar-item[aria-pressed="true"] {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
}
.radar-item__name { font-weight: 600; color: var(--text-primary); font-size: 0.96rem; }
.radar-item__session { font-family: var(--font-mono); font-size: 0.77rem; color: var(--brand-accent-text); font-weight: 600; }
.radar-item__desc { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-secondary); }

/* ==========================================================================
   R10.5 — Dynamic Timeline ("Antes. Durante. Después." — CET + EST)
   ========================================================================== */
.day-timeline {
  position: relative;
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .day-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-top: 26px;
  }
  .day-timeline::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: var(--border-strong);
    z-index: 0;
  }
  .day-timeline::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 6%;
    width: 18%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #2AD2E2, transparent);
    box-shadow: 0 0 12px rgba(42, 210, 226, 0.75);
    z-index: 1;
    animation: timelinePulse 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
  }
}
@keyframes timelinePulse {
  0% { left: 6%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 76%; opacity: 0; }
}

.day-step {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform var(--dur-med) var(--ease-out-expo),
              border-color var(--dur-med) ease,
              box-shadow var(--dur-med) ease,
              background var(--dur-med) ease;
}
.day-step:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent);
  background: var(--bg-elevated);
  box-shadow: 0 14px 30px rgba(42, 210, 226, 0.12);
}
.day-step__node {
  display: none;
}
@media (min-width: 900px) {
  .day-step__node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -38px;
    left: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--brand-accent-border);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-accent-text);
    transition: transform var(--dur-fast) var(--ease-out-expo),
                background var(--dur-fast) ease,
                border-color var(--dur-fast) ease,
                box-shadow var(--dur-fast) ease,
                color var(--dur-fast) ease;
  }
  .day-step:hover .day-step__node {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--btn-primary-fg);
    box-shadow: 0 0 14px rgba(42, 210, 226, 0.65);
    transform: scale(1.14);
  }
}
.day-step__clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.clock-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent-text);
  border: 1px solid var(--brand-accent-border);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.day-step:hover .clock-chip:not(.clock-chip--est) {
  border-color: var(--brand-accent);
}
.clock-chip--est {
  background: var(--bg-page);
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.day-step p { font-size: 0.89rem; color: var(--text-secondary); }

/* ==========================================================================
   5-Tier Pricing (4 Cards + Horizontal Enterprise + Detailed Comparison Table)
   ========================================================================== */
.billing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.launch-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
}
.launch-rate-pill strong {
  color: var(--brand-accent-text);
  font-weight: 600;
}
.launch-rate-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  gap: 4px;
}
.billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
}
.billing-toggle__btn[aria-pressed="true"] {
  background: var(--brand-accent);
  color: var(--btn-primary-fg);
}
.billing-save {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.16);
}
.stripe-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.stripe-note svg { color: var(--brand-accent-text); flex-shrink: 0; }

.plans-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .plans-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform var(--dur-med) var(--ease-out-expo),
              border-color var(--dur-med) ease,
              box-shadow var(--dur-med) ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-accent-border);
  box-shadow: 0 12px 28px rgba(4, 12, 24, 0.22);
}
.plan-card--starter {
  border-color: var(--border-strong);
}
.plan-card--starter:hover {
  border-color: var(--brand-accent);
}
.plan-card--featured {
  border: 1.5px solid var(--brand-accent);
  background: var(--bg-elevated);
  box-shadow: 0 14px 36px rgba(42, 210, 226, 0.14);
}
.plan-card--featured:hover {
  box-shadow: 0 18px 42px rgba(42, 210, 226, 0.22);
}

.plan-card__head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.plan-card__head h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; }
.plan-card__badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-accent-soft);
  color: var(--brand-accent-text);
  border: 1px solid var(--brand-accent-border);
  white-space: nowrap;
}
.plan-card--featured .plan-card__badge {
  background: var(--brand-accent);
  color: var(--btn-primary-fg);
  border-color: var(--brand-accent);
}
.plan-card__price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.25vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}
.plan-card__price-unit {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-left: 3px;
}
.plan-card__price-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: normal;
  line-height: 1.4;
}
.plan-card__cta {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  flex: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.plan-list svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-accent-text); }

.plan-secondary-link {
  display: inline-block;
  justify-self: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  margin-top: -2px;
}
.plan-secondary-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.plan-secondary-link:hover {
  color: var(--brand-accent-text);
}
.plan-secondary-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Horizontal Enterprise Institutional Strip */
.enterprise-banner {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.enterprise-banner h3 { margin-bottom: 4px; }
.enterprise-banner p { font-size: 0.92rem; color: var(--text-secondary); }

/* Detailed Comparison Table (standalone section #comparativa) */
.compare-table-wrap {
  margin-top: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.compare-table th,
.compare-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-alt);
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-display);
}
.compare-table td { color: var(--text-secondary); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .col-pro { background: var(--brand-accent-soft); color: var(--text-primary); font-weight: 500; }

/* ==========================================================================
   Signup Form with Visual Plan Pills
   ========================================================================== */
.signup-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}
@media (min-width: 960px) {
  .signup-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
  }
}
.trust-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.trust-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--text-secondary); }
.trust-points svg { flex-shrink: 0; color: var(--brand-accent-text); margin-top: 2px; }

@media (min-width: 960px) {
  .signup-aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}
.signup-aside > h2,
.signup-aside > p,
.signup-aside .trust-points,
.signup-aside .signup-steps-card {
  transition: opacity 180ms ease, transform 180ms var(--ease-out-expo);
}
.signup-aside.is-switching > h2,
.signup-aside.is-switching > p,
.signup-aside.is-switching .trust-points,
.signup-aside.is-switching .signup-steps-card {
  opacity: 0.35;
  transform: translateY(4px);
}
.signup-steps-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  margin-top: 26px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--dur-med) ease, box-shadow var(--dur-med) ease;
}
.signup-steps-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    280px circle at var(--mx) var(--my),
    rgba(42, 210, 226, 0.11),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}
.signup-steps-card:hover {
  border-color: var(--brand-accent-border);
  box-shadow: 0 12px 28px rgba(4, 12, 24, 0.16);
}
.signup-steps-card:hover::before { opacity: 1; }

.signup-steps-head {
  display: grid;
  gap: 6px;
}
.signup-steps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-accent-text);
}
.signup-steps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 0 rgba(42, 210, 226, 0.55);
  animation: signupDotPulse 3.2s ease-out infinite;
}
@keyframes signupDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 210, 226, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(42, 210, 226, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 210, 226, 0); }
}
.signup-steps-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.signup-steps-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.signup-steps-list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 18px;
  left: 14px;
  width: 1.5px;
  background: var(--border-strong);
  z-index: 0;
}
.signup-steps-list::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 13.5px;
  width: 2.5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #2AD2E2, transparent);
  z-index: 1;
  animation: signupFlowDrop 5.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}
@keyframes signupFlowDrop {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { transform: translateY(138px); opacity: 0; }
}
.signup-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: start;
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.signup-step:hover {
  transform: translateX(3px);
}
.signup-steps-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1.5px solid var(--brand-accent-border);
  color: var(--brand-accent-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.signup-step:hover .signup-steps-num {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--btn-primary-fg);
  box-shadow: 0 0 12px rgba(42, 210, 226, 0.45);
}
.signup-step__body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.signup-step__body span {
  display: block;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.signup-steps-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.signup-steps-badges span {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.signup-steps-foot {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.signup-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 20px;
}
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { display: grid; gap: 6px; }
.field label, .field legend, .chip-group legend {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
}
.field legend, .chip-group legend {
  display: block;
  margin-bottom: 10px;
}
.field-hint { font-size: 0.78rem; color: var(--text-muted); }

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--brand-accent); }
.input[aria-invalid="true"] { border-color: #EF4444; }
.field-error { font-size: 0.8rem; color: var(--risk-high-fg); min-height: 1.1em; }

.chip-group { border: 0; margin: 0; padding: 0; display: grid; gap: 9px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* R10.7 — Transparent Plan Selector Cards (Large, Clear Pricing) */
.plan-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}
.plan-pill { position: relative; }
.plan-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-pill__card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 14px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  cursor: pointer;
  text-align: left;
  height: 100%;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.plan-pill__card:hover {
  border-color: var(--brand-accent-border);
  transform: translateY(-1px);
}
.plan-pill__card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  transition: all var(--dur-fast) ease;
}
.plan-pill__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-right: 22px;
}
.plan-pill__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.15;
}
.plan-pill__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.plan-pill input:checked + .plan-pill__card {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
  box-shadow: 0 0 0 1px var(--brand-accent-border);
}
.plan-pill input:checked + .plan-pill__card::after {
  border-color: var(--brand-accent);
  background: var(--brand-accent);
  box-shadow: inset 0 0 0 3px var(--bg-page);
}
.plan-pill input:checked + .plan-pill__card .plan-pill__price {
  color: var(--brand-accent-text);
}
.plan-pill input:focus-visible + .plan-pill__card {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.chip-option { position: relative; }
.chip-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-option span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}
.chip-option input:checked + span {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: var(--btn-primary-fg);
  font-weight: 600;
}

.mode-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode-option { position: relative; }
.mode-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-card {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  cursor: pointer;
  height: 100%;
}
.mode-card strong { font-size: 0.86rem; color: var(--text-primary); }
.mode-card small { font-size: 0.77rem; color: var(--text-muted); line-height: 1.4; }
.mode-option input:checked + .mode-card {
  background: var(--brand-accent-soft);
  border-color: var(--brand-accent);
}
.mode-option.is-locked .mode-card {
  opacity: 0.48;
  cursor: not-allowed;
  border-style: dashed;
}
.mode-lock-badge {
  display: none;
  justify-self: start;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.mode-option.is-locked .mode-lock-badge {
  display: inline-block;
}
.plan-gating-note {
  display: none;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.plan-gating-note.is-visible {
  display: block;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.check-row input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.55; }
.form-status.is-visible { display: block; }
.form-status--success { background: var(--risk-low-bg); border: 1px solid var(--risk-low-bd); color: var(--risk-low-fg); }
.form-status--error   { background: var(--risk-high-bg); border: 1px solid var(--risk-high-bd); color: var(--risk-high-fg); }

/* ==========================================================================
   FAQ (Centered + Wider 1040px + Clean Justified Reading, No Hyphenation)
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 11px;
  max-width: 1040px;
  margin-inline: auto;
}

/* ==========================================================================
   R10.8 — Scalable Contact Section (#contacto: AI 24/7 + Clean Contact Form)
   ========================================================================== */
#contacto .contact-head {
  margin-bottom: 4px;
  max-width: none;
}
#contacto .contact-head p {
  max-width: none;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  #contacto .contact-head p {
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
  }
}
.contact-layout {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 920px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 28px;
  }
}
.contact-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}
.contact-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.contact-card--accent {
  border-color: var(--brand-accent-border);
  background: var(--bg-elevated);
}
.contact-card__email {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brand-accent-text);
  text-decoration: none;
  justify-self: start;
  position: relative;
  padding-bottom: 2px;
}
.contact-card__email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.contact-card__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.contact-form .field:has(textarea) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contact-form textarea.input {
  flex: 1;
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}
.contact-form .btn[type="submit"] {
  margin-top: auto;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 22px;
}
.faq-item summary {
  list-style: none;
  padding: 17px 0;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--brand-accent-text); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding-bottom: 18px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.66;
  max-width: none;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .faq-item p,
  .profile-card p,
  .day-step p,
  .dict-item p,
  .legal-block p {
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* ==========================================================================
   Guia & Legal Pages (Banner, Anatomy, Dictionary Search, LSSI-CE)
   ========================================================================== */
.page-banner {
  background:
    radial-gradient(640px 220px at 14% 0%, rgba(42, 210, 226, 0.09), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: clamp(44px, 5.5vw, 68px) 0 clamp(32px, 4vw, 48px);
}
.page-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent-text);
  margin-bottom: 12px;
}
.page-banner h1 {
  margin-bottom: 12px;
  max-width: 24ch;
}
.page-banner p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 68ch;
}
.legal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.legal-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.legal-subnav a:hover {
  border-color: var(--brand-accent);
  color: var(--text-primary);
}
.legal-subnav a[aria-current="page"] {
  background: var(--brand-accent-soft);
  border-color: var(--brand-accent);
  color: var(--brand-accent-text);
}

.anatomy-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .anatomy-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } }
.anatomy-hotspots { display: grid; gap: 10px; }
.hotspot-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.hotspot-btn[aria-pressed="true"] { border-color: var(--brand-accent); background: var(--brand-accent-soft); }
.hotspot-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-struct); color: #FFFFFF;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.hotspot-btn[aria-pressed="true"] .hotspot-num { background: var(--brand-accent); color: var(--btn-primary-fg); }
.hotspot-btn > div strong { display: block; color: var(--text-primary); font-size: 0.94rem; margin-bottom: 3px; }
.hotspot-btn > div span { display: block; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.48; }

.dict-search-bar {
  margin-bottom: 22px;
  max-width: 520px;
  position: relative;
}
.dict-search-bar input {
  padding-left: 42px;
}
.dict-search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.dict-empty {
  display: none;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  text-align: center;
}
.dict-empty.is-visible { display: block; }

.dict-grid { display: grid; gap: 18px; }
@media (min-width: 820px) { .dict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dict-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.dict-item[hidden] { display: none; }
.dict-item p { font-size: 0.92rem; color: var(--text-secondary); }
.dict-example {
  margin-top: 4px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand-accent-text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.9rem;
}
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-alt); color: var(--text-primary); font-weight: 600; }
.data-table td { color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: 0; }

.legal-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; } }
.legal-toc {
  display: grid;
  gap: 4px;
  padding: 20px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
@media (min-width: 960px) {
  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.legal-toc strong {
  display: block;
  padding: 0 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent-text) !important;
}
.legal-toc a {
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.legal-toc a:hover {
  color: var(--text-primary);
  background: var(--brand-accent-soft);
  border-left-color: var(--brand-accent);
}
.legal-prose { display: grid; gap: 24px; min-width: 0; }
.legal-block {
  scroll-margin-top: calc(var(--header-h) + 28px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 14px;
}
.legal-block h2 {
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}
.legal-block p, .legal-block li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: none;
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
.legal-block strong { color: var(--text-primary); }
.legal-block ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal-block code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--brand-accent-text);
}

.lssi-grid { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 640px) { .lssi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lssi-cell {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  display: grid;
  gap: 3px;
}
.lssi-cell span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.lssi-cell strong { font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-primary); }

/* ==========================================================================
   Footer (Always Deep Obsidian with White Logo + Centered Legal Notice)
   ========================================================================== */
.site-footer {
  background: #040912;
  color: #B9C8DC;
  border-top: 1px solid #17253B;
  padding: 52px 0 36px;
}
.footer-top {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #17253B;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 36px;
  }
}
@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: minmax(240px, 1.55fr) repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 32px 44px;
  }
}
.footer-brand {
  margin-bottom: 14px;
}
.footer-brand img {
  height: 34px;
  width: auto;
}
.footer-col h3 { font-size: 0.9rem; color: #F4F8FC; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a {
  color: #B9C8DC;
  text-decoration: none;
  font-size: 0.89rem;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  transition: color var(--dur-fast) ease;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: #2AD2E2;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out-expo);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-col a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-legal {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #8FA3BE;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
  padding-top: 8px;
}
.footer-legal p { max-width: 84ch; margin-inline: auto; }
.footer-legal strong { color: #D7E3F0; }

/* ==========================================================================
   R8.4 — FinBeeps LLM-First Assistant Widget (Obsidian + Cyan, Dual Theme)
   ========================================================================== */
.fb-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-accent-border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-elevated);
  transition: transform var(--dur-fast) var(--ease-out-expo), border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.fb-chat-fab:hover {
  transform: translateY(-2px);
  border-color: var(--brand-accent);
  background: var(--bg-hover);
}
.fb-chat-fab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.fb-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 155;
  width: min(370px, calc(100vw - 24px));
  max-height: min(540px, calc(100dvh - 110px));
  display: none;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}
.fb-chat-panel.is-open { display: flex; }

.fb-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.fb-chat-head__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}
.fb-chat-head__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand-accent-text);
}
.fb-chat-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fb-chat-close:hover { border-color: var(--brand-accent); color: var(--text-primary); }

.fb-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.fb-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
}
.fb-msg--bot {
  justify-self: start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.fb-msg--user {
  justify-self: end;
  background: var(--brand-accent);
  color: var(--btn-primary-fg);
  font-weight: 500;
}
.fb-msg--typing {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.fb-msg a {
  color: var(--brand-accent-text);
  font-weight: 600;
}

.fb-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}
.fb-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.fb-chip:hover { border-color: var(--brand-accent); color: var(--text-primary); }

.fb-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.fb-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
}
.fb-chat-input:focus { outline: none; border-color: var(--brand-accent); }
.fb-chat-send {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--brand-accent);
  color: var(--btn-primary-fg);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.fb-chat-send[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 520px) {
  .fb-chat-fab { right: 14px; bottom: 14px; padding: 0 14px; min-height: 44px; }
  .fb-chat-panel { right: 12px; bottom: 68px; width: calc(100vw - 24px); }
}

/* ==========================================================================
   Scroll Reveal & Reduced Motion
   ========================================================================== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo);
}
.js-ready [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
.js-ready [data-reveal-delay="1"] { transition-delay: 70ms; }
.js-ready [data-reveal-delay="2"] { transition-delay: 140ms; }
.js-ready [data-reveal-delay="3"] { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
