/* XPRO Advisor shell — editorial admin design system.
   Cream ground + deep purple, matching the client results page. */

:root {
  --adx-bg: #f0ece4;
  --adx-surface: #fdfcf9;
  --adx-surface-alt: #f7f4ec;
  --adx-ink: #2a2438;
  --adx-body: #5c5648;
  --adx-muted: #8b8478;
  --adx-line: rgba(42, 36, 56, 0.09);
  --adx-line-soft: rgba(42, 36, 56, 0.05);
  --adx-purple: #4C1D95;
  --adx-purple-ink: #3b1675;
  --adx-purple-soft: rgba(76, 29, 149, 0.07);
  --adx-purple-line: rgba(76, 29, 149, 0.18);
  --adx-good: #6b8c4e;
  --adx-good-bg: rgba(107, 140, 78, 0.13);
  --adx-warn: #a8862f;
  --adx-warn-bg: rgba(184, 149, 69, 0.14);
  --adx-crit: #b06442;
  --adx-crit-bg: rgba(193, 124, 90, 0.14);
  --adx-info: #4e6e8c;
  --adx-info-bg: rgba(78, 110, 140, 0.12);
  --adx-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --adx-sans: "Switzer", "Inter", -apple-system, sans-serif;
}

.adx-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: var(--adx-bg); font-family: var(--adx-sans); color: var(--adx-ink); }
@media (max-width: 900px) { .adx-shell { grid-template-columns: 1fr; } .adx-side { display: none; } }

/* ── Sidebar ─────────────────────────────── */
.adx-side { background: var(--adx-surface); border-right: 1px solid var(--adx-line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adx-side__brand { display: flex; align-items: center; gap: 8px; padding: 20px 20px 16px; border-bottom: 1px solid var(--adx-line-soft); }
.adx-side__logo { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--adx-purple); text-decoration: none; }
.adx-side__tag { font-family: var(--adx-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--adx-muted); text-transform: uppercase; }
.adx-nav { padding: 14px 10px 24px; flex: 1; }
.adx-nav__sec { font-family: var(--adx-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--adx-muted); padding: 16px 12px 7px; }
.adx-nav__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin: 1px 0; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--adx-body); text-decoration: none; border-left: 2px solid transparent; }
.adx-nav__link:hover { background: var(--adx-purple-soft); color: var(--adx-purple); }
.adx-nav__link--active { background: var(--adx-purple-soft); color: var(--adx-purple); font-weight: 700; border-left-color: var(--adx-purple); }
.adx-nav__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--adx-crit); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.adx-side__foot { font-family: var(--adx-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adx-muted); padding: 14px 20px; border-top: 1px solid var(--adx-line-soft); }

/* ── Topbar ──────────────────────────────── */
.adx-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--adx-surface); border-bottom: 1px solid var(--adx-line); padding: 14px 28px; position: sticky; top: 0; z-index: 20; }
.adx-top__crumb { font-family: var(--adx-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adx-muted); }
.adx-top__crumb strong { color: var(--adx-purple); font-weight: 700; }
.adx-top__user { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--adx-body); }
.adx-role { background: var(--adx-purple-soft); color: var(--adx-purple); font-family: var(--adx-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }

/* ── Page scaffold ───────────────────────── */
.adx-main { padding: 30px 32px 60px; min-width: 0; }
.adx-eyebrow { font-family: var(--adx-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--adx-muted); margin-bottom: 6px; }
.adx-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.015em; text-transform: uppercase; color: var(--adx-ink); line-height: 1.05; }
.adx-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--adx-ink); padding-bottom: 16px; margin-bottom: 22px; }
.adx-title-meta { font-family: var(--adx-mono); font-size: 11px; color: var(--adx-muted); text-align: right; }
.adx-title-meta strong { color: var(--adx-ink); }

/* ── Stat tiles ──────────────────────────── */
.adx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--adx-line); border: 1px solid var(--adx-line); margin-bottom: 24px; }
.adx-tile { background: var(--adx-surface); padding: 14px 16px 12px; border-top: 3px solid var(--tile, var(--adx-muted)); }
.adx-tile__num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--tile, var(--adx-ink)); font-variant-numeric: tabular-nums; }
.adx-tile__label { font-family: var(--adx-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--adx-muted); margin-top: 3px; }
.adx-tile__sub { font-family: var(--adx-mono); font-size: 10px; color: var(--adx-body); margin-top: 2px; }

/* ── Cards ───────────────────────────────── */
.adx-card { background: var(--adx-surface); border: 1px solid var(--adx-line); border-radius: 14px; padding: 20px; }
.adx-card + .adx-card { margin-top: 16px; }
.adx-card__title { font-family: var(--adx-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adx-ink); font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ── Tables ──────────────────────────────── */
.adx-tablewrap { background: var(--adx-surface); border: 1px solid var(--adx-line); border-radius: 14px; overflow: hidden; }
.adx-tablewrap .adx-scroll { overflow-x: auto; }
.adx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adx-table th { font-family: var(--adx-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--adx-muted); text-align: left; padding: 12px 16px; background: var(--adx-surface-alt); border-bottom: 1px solid var(--adx-line); white-space: nowrap; }
.adx-table td { padding: 12px 16px; border-bottom: 1px solid var(--adx-line-soft); color: var(--adx-body); vertical-align: middle; }
.adx-table tr:last-child td { border-bottom: none; }
.adx-table tbody tr:hover { background: var(--adx-purple-soft); }
.adx-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adx-table .strong { color: var(--adx-ink); font-weight: 600; }

/* ── Chips & badges ──────────────────────── */
.adx-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.adx-chip--good { background: var(--adx-good-bg); color: var(--adx-good); }
.adx-chip--warn { background: var(--adx-warn-bg); color: var(--adx-warn); }
.adx-chip--crit { background: var(--adx-crit-bg); color: var(--adx-crit); }
.adx-chip--info { background: var(--adx-info-bg); color: var(--adx-info); }
.adx-chip--purple { background: var(--adx-purple-soft); color: var(--adx-purple); }
.adx-chip--muted { background: var(--adx-line-soft); color: var(--adx-muted); }

/* ── Buttons ─────────────────────────────── */
.adx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--adx-sans); font-size: 12.5px; font-weight: 700; padding: 9px 18px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: opacity .15s, background .15s; background: var(--adx-purple); color: #fff; }
.adx-btn:hover { opacity: 0.88; }
.adx-btn--ghost { background: transparent; color: var(--adx-purple); border-color: var(--adx-purple-line); }
.adx-btn--ghost:hover { background: var(--adx-purple-soft); opacity: 1; }
.adx-btn--good { background: var(--adx-good); }
.adx-btn--crit { background: transparent; color: var(--adx-crit); border-color: var(--adx-crit); }
.adx-btn--crit:hover { background: var(--adx-crit-bg); opacity: 1; }
.adx-btn--quiet { background: transparent; color: var(--adx-muted); padding: 6px 8px; font-weight: 600; }
.adx-btn--quiet:hover { color: var(--adx-purple); opacity: 1; }
.adx-btn--sm { font-size: 11px; padding: 5px 12px; border-radius: 7px; }

/* ── Forms ───────────────────────────────── */
.adx-input, .adx-select, .adx-textarea { font-family: var(--adx-sans); font-size: 13px; color: var(--adx-ink); background: var(--adx-surface); border: 1px solid var(--adx-line); border-radius: 8px; padding: 8px 11px; }
.adx-input:focus, .adx-select:focus, .adx-textarea:focus { outline: 2px solid var(--adx-purple-line); border-color: var(--adx-purple-line); }
.adx-input--sm, .adx-select--sm { font-size: 11.5px; padding: 5px 8px; border-radius: 6px; }
.adx-label { font-family: var(--adx-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--adx-muted); }
.adx-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--adx-surface); border: 1px solid var(--adx-line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }

/* ── Builder layout ──────────────────────── */
.adx-builder { display: grid; grid-template-columns: minmax(460px, 11fr) minmax(320px, 9fr); gap: 22px; align-items: start; }
.adx-builder__preview { position: sticky; top: 76px; }
@media (max-width: 1240px) {
  .adx-builder { grid-template-columns: 1fr; }
  .adx-builder__preview { position: static; }
}
.adx-itemform { border-top: 1px solid var(--adx-line-soft); padding: 22px 24px 16px; display: flex; flex-direction: column; gap: 22px; }
.adx-itemsum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; cursor: pointer; list-style: none; }
.adx-itemsum .adx-price { font-family: var(--adx-sans); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
details.adx-card { margin-top: 12px; }
.adx-nav__sec + details.adx-card { margin-top: 4px; }

/* ── Field system (builder cards) ────────── */
.adx-sec { display: flex; align-items: center; gap: 10px; font-family: var(--adx-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--adx-purple); margin: 0 0 10px; }
.adx-sec::after { content: ""; flex: 1; height: 1px; background: var(--adx-line-soft); }
.adx-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adx-field > .adx-label { font-size: 8.5px; }
.adx-field .adx-input, .adx-field .adx-select, .adx-field .adx-textarea { width: 100%; }
.adx-fieldrow { display: grid; gap: 12px; }
.adx-input, .adx-select { height: 36px; }
.adx-input--sm, .adx-select--sm { height: 30px; }
.adx-textarea { line-height: 1.5; }
input[type="checkbox"] { accent-color: var(--adx-purple); width: 15px; height: 15px; flex-shrink: 0; }

.adx-inset { background: var(--adx-surface-alt); border: 1px solid var(--adx-line-soft); border-radius: 10px; padding: 14px 16px; }
.adx-statrow { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; align-items: end; }
.adx-stat__label { font-family: var(--adx-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--adx-muted); margin-bottom: 3px; }
.adx-stat__num { font-family: var(--adx-sans); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; color: var(--adx-ink); line-height: 1.15; letter-spacing: -0.01em; }
.adx-stat__num--lg { font-size: 22px; }
.adx-stat__num--good { color: var(--adx-good); }

.adx-switchrow { display: flex; align-items: center; gap: 9px; background: var(--adx-good-bg); border: 1px solid rgba(107, 140, 78, 0.2); border-radius: 9px; padding: 8px 12px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--adx-good); }

.adx-cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--adx-line-soft); padding-top: 12px; }
details > summary::-webkit-details-marker { display: none; }
details > summary:hover { background: var(--adx-purple-soft); }
.adx-caret { font-size: 11px; transition: transform .15s; }
details[open] .adx-caret { transform: rotate(180deg); }
.adx-checklabel { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--adx-body); cursor: pointer; }

/* ── Notices ─────────────────────────────── */
.adx-note { border-radius: 10px; padding: 11px 14px; font-size: 12.5px; border: 1px solid; }
.adx-note--crit { background: var(--adx-crit-bg); color: var(--adx-crit); border-color: rgba(193,124,90,0.25); }
.adx-note--warn { background: var(--adx-warn-bg); color: var(--adx-warn); border-color: rgba(184,149,69,0.25); }
.adx-note--info { background: var(--adx-info-bg); color: var(--adx-info); border-color: rgba(78,110,140,0.25); }
.adx-note--good { background: var(--adx-good-bg); color: var(--adx-good); border-color: rgba(107,140,78,0.25); }

/* ── Utility ─────────────────────────────── */
.adx-grid { display: grid; gap: 16px; }
.adx-flex { display: flex; align-items: center; gap: 10px; }
.adx-flex--between { justify-content: space-between; }
.adx-muted { color: var(--adx-muted); }
.adx-small { font-size: 11.5px; }
.adx-mono { font-family: var(--adx-mono); }
.adx-num { font-variant-numeric: tabular-nums; }
.adx-margin { color: var(--adx-good); font-weight: 700; }
button.adx-btn, form .adx-btn { line-height: 1.2; }
.adx-flash { margin-bottom: 16px; }
@import "tailwindcss";

@theme {
  /* ===== XPRO Color System ===== */

  /* Dark surfaces */
  --color-xpro-dark: #09090b;
  --color-xpro-dark-light: #18181b;
  --color-xpro-dark-elevated: #27272a;

  /* Purple accent */
  --color-xpro-purple: #8b5cf6;
  --color-xpro-purple-light: #a78bfa;
  --color-xpro-purple-dark: #7c3aed;

  /* Slate text */
  --color-xpro-slate: #71717a;
  --color-xpro-slate-light: #a1a1aa;

  /* Semantic */
  --color-dark-bg: #09090b;
  --color-dark-surface: #18181b;
  --color-dark-elevated: #27272a;
  --color-dark-border: rgba(255, 255, 255, 0.1);
  --color-dark-border-subtle: rgba(255, 255, 255, 0.05);

  --color-text-primary: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-tertiary: #71717a;

  --color-accent: #8b5cf6;
  --color-accent-hover: #7c3aed;
  --color-accent-subtle: rgba(139, 92, 246, 0.1);

  --color-success: #10b981;
  --color-error: #ef4444;

  /* ===== Typography ===== */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Switzer', 'Inter', system-ui, sans-serif;

  /* ===== Shadows ===== */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.2);
  --shadow-card-hover: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-elevated: 0 10px 25px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-purple: 0 0 20px 0 rgb(139 92 246 / 0.25);

  /* ===== Light Theme (Quiz + Results) ===== */
  --color-xpro-warm-white: #fafaf5;
  --color-xpro-light-surface: #f5f5f4;
  --color-xpro-light-border: #e5e5e5;

  /* Teal accent (diagnostics) */
  --color-xpro-teal: #14b8a6;
  --color-xpro-teal-light: #5eead4;
  --color-xpro-teal-dark: #0d9488;

  /* Light shadows */
  --shadow-light-card: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-light-card-hover: 0 4px 12px -2px rgb(0 0 0 / 0.08);
  --shadow-light-elevated: 0 10px 25px -5px rgb(0 0 0 / 0.08);

  /* Serif for emotional headings */
  --font-serif: 'Playfair Display', 'Georgia', serif;

  /* ===== Border Radius ===== */
  --radius-4xl: 2rem;

  /* ===== Animations ===== */
  --animate-fade-in-up: fade-in-up 0.5s ease-out both;
  --animate-fade-in: fade-in 0.4s ease-out both;
  --animate-scale-in: scale-in 0.3s ease-out both;
  --animate-shimmer: shimmer 2s linear infinite;
  --animate-pulse-ring: pulse-ring 1.5s ease-out infinite;
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scale-in {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* XPRO Design System — Custom utilities extending Tailwind */

/* ===== Gradient Text ===== */
.text-gradient-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-pink {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Radiant Gradient ===== */
.bg-radiant-gradient {
  background: linear-gradient(115deg, #c4b5fd 28%, #a78bfa 70%, #8b5cf6 100%);
}

@media (min-width: 640px) {
  .bg-radiant-gradient {
    background: linear-gradient(145deg, #c4b5fd 28%, #a78bfa 70%, #8b5cf6 100%);
  }
}

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-light {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Stagger animation delays ===== */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ===== Button Inset Highlight ===== */
.inset-highlight {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

/* Radiant secondary button — white/15 bg with inset glow */
.btn-secondary-radiant {
  position: relative;
}
.btn-secondary-radiant::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* ===== Gradient Backgrounds ===== */
.bg-gradient-hero {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
              linear-gradient(to bottom, #09090b, #18181b);
}

.bg-gradient-cta {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.bg-gradient-card-dark {
  background: linear-gradient(145deg, #27272a 0%, #18181b 100%);
}

/* ===== Ring-based card styling ===== */
.card-ring {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.05);
}

.card-ring:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(255 255 255 / 0.1);
}

/* ===== Score bar gradient ===== */
.score-bar-gradient {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* ===== Transition Lift ===== */
.transition-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-lift:hover {
  transform: translateY(-1px);
}

.transition-lift:active {
  transform: translateY(0px);
}

/* ===== Testimonials horizontal scroll ===== */
.testimonials-scroll {
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(1.5rem, calc((100vw - 72rem) / 2 + 1.5rem));
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  scroll-snap-align: start;
}

/* ===== Screenshot container ===== */
.screenshot-container {
  --padding: 8px;
  position: relative;
  border-radius: 1.5rem;
}

.screenshot-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.screenshot-inner {
  border-radius: calc(1.5rem - var(--padding));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* ===== Bento card fade overlays ===== */
.bento-fade-bottom {
  position: relative;
}

.bento-fade-bottom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, #09090b 100%);
  pointer-events: none;
}

.bento-fade-top {
  position: relative;
}

.bento-fade-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, transparent 50%, #18181b 100%);
  pointer-events: none;
}

/* ===== PlusGrid border pattern ===== */
.plus-grid-borders {
  position: relative;
}

.plus-grid-borders::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.plus-grid-borders::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* ===== Dot Grid Background ===== */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== Match Bar Animation ===== */
.match-bar-animate {
  animation: match-bar-fill 1.2s ease-out both;
}

@keyframes match-bar-fill {
  from { width: 0%; }
}

/* ===== Match Ring Animation ===== */
.match-ring-animate {
  animation: match-ring-draw 1.5s ease-out both;
}

@keyframes match-ring-draw {
  from { stroke-dasharray: 0 327; }
}

/* ===== Stagger Fade In Up ===== */
.stagger-fade-in > * {
  opacity: 0;
  transform: translateY(20px);
  animation: stagger-entry 0.5s ease-out forwards;
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade-in > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-fade-in > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes stagger-entry {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Dimension nav responsive ===== */
.dim-nav-mobile { display: block; }
.dim-nav-desktop { display: none; }
@media (min-width: 1024px) {
  .dim-nav-mobile { display: none !important; }
  .dim-nav-desktop { display: block !important; }
}

/* ===== Dimension data row accordion ===== */
.dim-row summary { list-style: none; }
.dim-row summary::-webkit-details-marker { display: none; }
.dim-row details + details { border-top: 1px solid #f0ece4; }
.dim-row details[open] > summary { background-color: rgba(76, 29, 149, 0.02); }

/* Smooth open/close animation via grid-template-rows */
.dim-row .dim-row-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}
.dim-row .dim-row-content > div {
  overflow: hidden;
}
.dim-row details[open] .dim-row-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* ===== Typewriter cursor ===== */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== Consult Modal Slider ===== */
.consult-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #4C1D95 0%, #4C1D95 var(--slider-pct, 60%), #e8e4dc var(--slider-pct, 60%), #e8e4dc 100%);
  outline: none;
  margin: 8px 0;
}
.consult-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4C1D95;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.25);
  border: 3px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.consult-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 3px 12px rgba(76, 29, 149, 0.35);
}
.consult-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4C1D95;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.25);
  border: 3px solid #fff;
}
.consult-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e8e4dc;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ===== Line Clamp ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Light Theme Utilities ===== */
.card-light {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
}
.card-light:hover {
  box-shadow: 0 4px 12px -2px rgb(0 0 0 / 0.08);
}

.btn-pill-black {
  background: #09090b;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-pill-black:hover {
  background: #27272a;
  transform: translateY(-1px);
}

.btn-pill-purple {
  background: #8b5cf6;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-pill-purple:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.quiz-option-light {
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.quiz-option-light:hover {
  border-color: #8b5cf6;
  background: #faf5ff;
}

.glass-white {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Quiz Warm Theme Overrides ===== */
/* When question partials render inside .quiz-warm, keep purple accent on warm cream bg */

.quiz-warm .peer:checked ~ div {
  border-color: #4C1D95 !important;
  background-color: rgba(76, 29, 149, 0.05) !important;
}
.quiz-warm .group:hover > div:first-child {
  border-color: rgba(76, 29, 149, 0.4);
  background-color: rgba(76, 29, 149, 0.03);
}
.quiz-warm .group:has(:checked) .flex-shrink-0 {
  border-color: #4C1D95 !important;
  background-color: #4C1D95 !important;
}

/* Radio/checkbox option cards: warm borders + purple hover + active press */
.quiz-warm .quiz-option-light div[class*="border-gray-200"] {
  border-color: #e5e0d8;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms ease-out;
}
.quiz-warm .quiz-option-light:hover div[class*="border-gray-200"] {
  border-color: rgba(76, 29, 149, 0.4);
  background-color: rgba(76, 29, 149, 0.04);
}
.quiz-warm .quiz-option-light:active div[class*="border-gray-200"] {
  transform: scale(0.98);
}
.quiz-warm .peer:checked ~ div[class*="border-gray-200"] {
  border-color: #4C1D95 !important;
  background-color: rgba(76, 29, 149, 0.06) !important;
}

/* Text/select inputs: warm bg + purple focus states */
.quiz-warm textarea,
.quiz-warm select,
.quiz-warm input[type="text"] {
  border-color: #e5e0d8 !important;
  background-color: #fffefb !important;
}
.quiz-warm textarea:focus,
.quiz-warm select:focus,
.quiz-warm input[type="text"]:focus {
  border-color: #4C1D95 !important;
  --tw-ring-color: rgba(76, 29, 149, 0.3) !important;
}

/* Slider: purple thumb */
.quiz-warm .slider-purple::-webkit-slider-thumb {
  background: #4C1D95 !important;
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
.quiz-warm .slider-purple::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 16px rgba(76, 29, 149, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}
.quiz-warm .slider-purple::-moz-range-thumb {
  background: #4C1D95 !important;
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
.quiz-warm .slider-purple::-moz-range-track {
  background: #e5e0d8 !important;
}

/* Prevent flash-of-content before Stimulus animateIn runs */
.quiz-warm [data-quiz-transition-target="option"] {
  opacity: 0;
  transform: translateY(8px);
}

/* Reduced motion: skip transforms, keep opacity transitions */
@media (prefers-reduced-motion: reduce) {
  .quiz-warm [data-quiz-transition-target="option"],
  .quiz-warm [data-quiz-transition-target="question"] {
    transform: none !important;
  }
}

/* Slider value + percentage accent */
.quiz-warm .text-xpro-purple {
  color: #4C1D95 !important;
}

/* Slider track background */
.quiz-warm .bg-gray-200 {
  background-color: #e5e0d8 !important;
}

/* ===== Dimension Nav Active State ===== */
.dim-nav-active {
  background-color: rgba(76, 29, 149, 0.08) !important;
  color: #4C1D95 !important;
  outline: 1.5px solid rgba(76, 29, 149, 0.25);
  outline-offset: -1.5px;
}
.dim-nav-active .tabular-nums {
  color: #4C1D95 !important;
}

/* ===== V3 Landing Nav ===== */
.v3-nav-scrolled {
  /* pill nav already has frosted glass — just tighten padding on scroll */
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
