/* OnlyTest — forest palette */

:root {
  --ink: #17251F;
  --forest: #235746;
  --forest-hover: #194638;
  --forest-soft: #e6efeb;
  --lime: #D7F078;
  --lime-soft: #f4fbd9;
  --bg: #F7F8F4;
  --surface: #FFFFFF;
  --border: #E5EAE5;
  --border-strong: #cbd5e1;
  --text: #17251F;
  --text-secondary: #486056;
  --text-muted: #486056;
  --success: #15803d;
  --success-soft: #ecfdf3;
  --warning: #b45309;
  --warning-soft: #fff8eb;
  --error: #b91c1c;
  --error-soft: #fef2f2;

  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 39, 0.05);
  --shadow-sm: 0 4px 20px rgba(16, 24, 39, 0.06);
  --shadow-md: 0 12px 40px rgba(16, 24, 39, 0.08);
  --shadow-lg: 0 24px 64px rgba(16, 24, 39, 0.1);

  --wrap: 1200px;
  --wrap-app: 1200px;
  --wrap-quiz: 960px;
  --wrap-narrow: 440px;
  --wrap-legal: 840px;

  --header-h: 4.25rem;
  --sidebar-w: 15.5rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ——— Reset & base ——— */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}

a:hover { color: var(--forest-hover); }

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

ul, ol { margin: 0; padding: 0; }

/* ——— Layout utilities ——— */

.wrap {
  width: min(100% - var(--space-8), var(--wrap));
  margin-inline: auto;
}

.wrap-app {
  width: min(100% - var(--space-8), var(--wrap-app));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - var(--space-8), var(--wrap-narrow));
  margin-inline: auto;
}

.wrap-quiz {
  width: min(100% - var(--space-6), var(--wrap-quiz));
  margin-inline: auto;
}

.wrap-legal {
  width: min(100% - var(--space-8), var(--wrap-legal));
  margin-inline: auto;
}

.muted,
.text-muted {
  color: var(--text-muted);
}

.text-secondary { color: var(--text-secondary); }

.small { font-size: 0.875rem; line-height: 1.55; }

.site-main { flex: 1; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--surface);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ——— Site header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-4);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
}

.logo:hover { color: var(--ink); }

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--ink);
}

.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-toggle { display: none; }

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.72rem 1.35rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease),
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--forest);
  color: var(--surface);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--forest-hover);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-accent {
  background: var(--ink);
  color: var(--surface);
}

.btn-accent:hover {
  background: #194638;
  color: var(--surface);
  transform: translateY(-1px);
}

.btn-xl {
  padding: 0.95rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

.btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding-inline: var(--space-4);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-text:hover {
  color: var(--forest);
  transform: none;
  box-shadow: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.88rem 1.6rem;
  font-size: 1rem;
}

.btn-block { width: 100%; }

.inline-form { display: inline; margin: 0; }

/* ——— Forms ——— */

.field {
  margin-bottom: var(--space-5);
}

.field label,
form label {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input::placeholder { color: #94a3b8; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(35, 87, 70, 0.18);
}

select { cursor: pointer; }

.checkbox-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: none;
}

.checkbox-row input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--forest);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.check-line input {
  margin-top: 0.25rem;
  accent-color: var(--forest);
}

/* ——— Toast notifications (Django messages, fixed overlay) ——— */

.toast-viewport {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: min(100vw - var(--space-8), 22.5rem);
  pointer-events: none;
}

@media (max-width: 480px) {
  .toast-viewport {
    top: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
    width: auto;
  }
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.18));
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in 0.35s ease-out;
}

.toast.is-leaving {
  animation: toast-out 0.28s ease-in forwards;
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-leaving {
    animation: none;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(1rem);
  }
}

.toast-text {
  margin: 0;
}

.toast-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 var(--space-1);
  color: inherit;
  opacity: 0.65;
}

.toast-close:hover,
.toast-close:focus-visible {
  opacity: 1;
}

.toast-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-success {
  background: var(--forest-soft);
  color: #194638;
  border-color: rgba(35, 87, 70, 0.25);
}

.toast-success .toast-icon {
  background: var(--forest);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.toast-info {
  background: #eef6ff;
  color: #0f3d66;
  border-color: rgba(59, 130, 246, 0.25);
}

.toast-info .toast-icon {
  background: #3b82f6;
}

.toast-error {
  background: var(--error-soft);
  color: var(--error);
  border-color: #fecaca;
}

.toast-error .toast-icon {
  background: var(--error);
}

.toast-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: #fde68a;
}

.toast-warning .toast-icon {
  background: var(--warning);
}

html[data-theme="dark"] .toast-success {
  color: #d1fae5;
}

html[data-theme="dark"] .toast-info {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
}

/* Legacy aliases (gestión / correos internos) */
.message,
.flash {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  margin: 0 0 var(--space-3);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
}

/* ——— Shared typography blocks ——— */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--space-5);
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

.fine-print {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.fine-print a {
  color: var(--text-secondary);
  text-decoration: none;
}

.fine-print a:hover { color: var(--forest); }

/* ——— Marketing: hero ——— */

.mkt-hero {
  padding: var(--space-20) 0 var(--space-16);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(218, 245, 117, 0.35), transparent 55%),
  var(--bg);
}

.mkt-hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 960px) {
  .mkt-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
}

.mkt-hero-copy h1 {
  margin-bottom: var(--space-6);
}

.mkt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Hero interactive demo shell */

.mkt-hero-demo {
  min-width: 0;
  perspective: 1200px;
}

.mkt-demo-shell {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5) var(--space-6);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.25deg);
  transition: transform 0.25s ease;
}

.mkt-demo-shell:hover {
  transform: rotate(0deg);
}

.mkt-demo-shell-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.mkt-demo-shell-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-strong);
}

.mkt-demo-shell-bar span:first-child { background: var(--error); border-color: #991b1b; }
.mkt-demo-shell-bar span:nth-child(2) { background: var(--warning); border-color: #92400e; }
.mkt-demo-shell-bar span:nth-child(3) { background: var(--success); border-color: #166534; }

.mkt-demo-shell-caption {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.mkt-demo-shell .ot-demo {
  border: none;
  padding: 0;
  background: transparent;
}

@media (max-width: 959px) {
  .mkt-hero-demo {
    width: 100%;
  }

  .mkt-demo-shell {
    transform: none;
    max-width: 100%;
  }

  .ot-demo-answer {
    min-height: 3rem;
    padding: var(--space-4);
  }
}

/* Product stage (product landing mock) */

.product-stage {
  perspective: 1200px;
}

.stage-window {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.stage-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.stage-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-strong);
}

.stage-bar span:first-child { background: var(--error); border-color: #991b1b; }
.stage-bar span:nth-child(2) { background: var(--warning); border-color: #92400e; }
.stage-bar span:nth-child(3) { background: var(--success); border-color: #166534; }

.stage-progress {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.stage-progress > i {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: var(--radius-pill);
}

.stage-q {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: var(--space-5);
  color: var(--ink);
}

.stage-answers {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.stage-answers li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stage-answers li span {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
}

.stage-answers li.is-picked {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--ink);
}

.stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.stage-timer {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--lime-soft);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--lime);
}

/* ——— Marketing: bento ——— */

.mkt-bento {
  padding: var(--space-16) 0;
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .mkt-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }
}

@media (min-width: 960px) {
  .mkt-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(160px, auto));
    gap: var(--space-5);
  }

  .bento-a { grid-column: span 5; grid-row: span 2; }
  .bento-b { grid-column: span 7; }
  .bento-c { grid-column: span 4; }
  .bento-d { grid-column: span 3; }
}

.bento {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.bento:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.bento h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-3);
}

.bento p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bento-a {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.bento-a h2,
.bento-a p { color: inherit; }

.bento-a p { opacity: 0.78; }

/* ——— Marketing: split ——— */

.mkt-split {
  padding: var(--space-16) 0;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .mkt-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.split-title {
  margin-bottom: var(--space-4);
}

.split-list {
  list-style: none;
  counter-reset: split;
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.split-list li {
  counter-increment: split;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1rem;
}

.split-list li::before {
  content: counter(split);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  border: 2px solid var(--ink);
}

.split-visual {
  display: flex;
  justify-content: center;
}

.mini-result {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: 6px 6px 0 var(--lime);
}

.mini-result-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--lime);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.mini-score {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.mini-caption {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.mini-bars {
  display: flex;
  gap: var(--space-2);
  height: 8px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--border);
}

.mini-bars span {
  display: block;
  height: 100%;
  width: var(--w, 33%);
  border-radius: var(--radius-pill);
}

.mini-bars span:nth-child(1) { background: var(--forest); }
.mini-bars span:nth-child(2) { background: var(--error); }
.mini-bars span:nth-child(3) { background: var(--border-strong); }

/* ——— Marketing: product ——— */

.mkt-product {
  padding: var(--space-16) 0;
}

.mkt-product header {
  margin-bottom: var(--space-8);
  max-width: 36rem;
}

.product-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.product-spotlight h3 {
  margin-bottom: var(--space-2);
}

.product-spotlight p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ——— Marketing: pricing ——— */

.mkt-pricing {
  padding: var(--space-16) 0;
}

.mkt-pricing > h2 {
  margin-bottom: var(--space-10);
}

.pricing-row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .pricing-row {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.price-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.price-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.price-tile.is-featured {
  border-color: var(--forest);
  background: var(--forest-soft);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-tile.is-featured::before {
  content: "Recomendado";
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--surface);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(35, 87, 70, 0.3);
}

.price-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.price-detail {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ——— Marketing: FAQ ——— */

.mkt-faq {
  padding: var(--space-16) 0 var(--space-24);
}

.mkt-faq > h2 {
  margin-bottom: var(--space-8);
}

.mkt-faq details {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-3);
  background: var(--surface);
  transition: border-color 0.15s var(--ease);
}

.mkt-faq details[open] {
  border-color: var(--ink);
}

.mkt-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
}

.mkt-faq summary::-webkit-details-marker { display: none; }

.mkt-faq p {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ——— App shell ——— */

body.app-shell {
  background: var(--bg);
}

body.app-shell .site-main {
  padding: 0;
}

body.app-shell .site-footer {
  display: none;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transform: translateX(-100%);
  transition: transform 0.25s var(--ease);
}

.app-sidebar.is-open {
  transform: translateX(0);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
    box-shadow: none;
  }
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-10);
  padding: var(--space-2) 0;
}

.sidebar-brand:hover { color: var(--ink); }

.brand-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.sidebar-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border: 2px solid transparent;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.sidebar-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.sidebar-link.is-active {
  background: var(--forest-soft);
  color: var(--forest);
  border-color: rgba(35, 87, 70, 0.2);
}

.sidebar-link-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 2px solid transparent;
  font: inherit;
  cursor: pointer;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .app-main {
    margin-left: 0;
  }
}

.app-topbar {
  padding: var(--space-6) var(--space-6) var(--space-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .app-topbar {
    padding: var(--space-8) var(--space-10) var(--space-5);
  }
}

.topbar-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.topbar-meta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.app-content {
  flex: 1;
  padding: var(--space-6);
  width: min(100%, var(--wrap-app));
}

@media (min-width: 900px) {
  .app-content {
    padding: var(--space-8) var(--space-10) var(--space-16);
  }
}

.app-nav-fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.875rem;
  background: var(--ink);
  color: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.app-nav-fab:hover {
  background: var(--forest);
  border-color: var(--forest);
  transform: translateY(-2px);
}

@media (min-width: 900px) {
  .app-nav-fab { display: none; }
}

/* ——— Dashboard ——— */

.matricula-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
}

.matricula-switch label {
  margin-bottom: 0;
}

.matricula-switch select {
  min-width: 16rem;
  max-width: 100%;
}

.dash-cta {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding: var(--space-8) var(--space-10);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink);
}

@media (min-width: 768px) {
  .dash-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.dash-cta .eyebrow {
  color: var(--lime);
}

.dash-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--surface);
  margin-bottom: var(--space-3);
}

.dash-cta-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  max-width: 46ch;
}

.dash-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.dash-cta .btn-secondary {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.35);
}

.dash-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--surface);
  color: var(--surface);
}

.progress-visual {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 720px) {
  .progress-visual {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

.progress-ring-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.progress-ring-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.progress-ring-value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.progress-ring-value small {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-bars {
  display: grid;
  gap: var(--space-4);
  flex: 1;
}

.prog-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: var(--space-4);
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.prog-row strong {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.prog-track {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: var(--forest);
  border-radius: var(--radius-pill);
  transition: width 0.3s var(--ease);
}

.prog-fill-warn { background: var(--error); }
.prog-fill-muted { background: var(--border-strong); }

.dash-split {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .dash-split {
    grid-template-columns: 1fr 1.2fr;
  }
}

.repaso-card {
  padding: var(--space-8);
  background: var(--lime-soft);
  border: 2px solid var(--lime);
  border-radius: var(--radius-lg);
}

.repaso-card h3 {
  margin-bottom: var(--space-3);
}

.repaso-card p {
  margin-bottom: var(--space-6);
}

.history-panel {
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.history-head h3 {
  margin: 0;
}

.history-head a {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.history-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
}

.history-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-list time {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-list a {
  font-weight: 700;
  text-decoration: none;
}

/* ——— Wizard ——— */

.wizard {
  max-width: 640px;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin-bottom: var(--space-8);
  padding: 0;
}

.wizard-step-indicator {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.wizard-step-indicator.is-current {
  color: var(--forest);
  border-color: var(--forest);
  background: var(--forest-soft);
}

.wizard-step-indicator.is-done {
  color: var(--success);
  border-color: var(--success);
  background: var(--success-soft);
}

.wizard-panel {
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.wizard-panel[hidden] {
  display: none !important;
}

.wizard-panel h2 {
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

.wizard-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.wizard-grid-2 {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 560px) {
  .wizard-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wizard-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.chip-btn {
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease), color 0.12s var(--ease);
}

.chip-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--forest-soft);
}

.chip-btn.is-selected,
.chip-btn[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--surface);
}

/* ——— Exam / quiz ——— */

body.quiz-app {
  background: var(--surface);
}

body.quiz-app .site-header,
body.quiz-app .site-footer {
  display: none;
}

body.quiz-app .site-main {
  padding: 0;
}

.exam-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--wrap-quiz);
  margin-inline: auto;
  padding: var(--space-4) var(--space-4) var(--space-8);
}

@media (min-width: 720px) {
  .exam-app {
    padding: var(--space-6) var(--space-8) var(--space-12);
  }
}

.exam-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 2px solid var(--border);
}

.exam-exit {
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.exam-exit:hover {
  color: var(--ink);
  background: var(--bg);
}

.exam-progress-wrap {
  flex: 1;
  min-width: 8rem;
}

.exam-progress {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.exam-progress > i,
.exam-progress #progress-bar {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: var(--radius-pill);
  transition: width 0.25s var(--ease);
}

.exam-timer {
  font-weight: 800;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: var(--space-2) var(--space-4);
  background: var(--lime-soft);
  border: 2px solid var(--lime);
  border-radius: var(--radius-pill);
}

.exam-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.exam-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.rail-chip {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease), color 0.12s var(--ease);
}

.rail-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.rail-chip.is-active,
.rail-chip.active {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
}

.rail-chip.is-answered,
.rail-chip.answered {
  border-color: var(--ink);
  background: var(--bg);
  color: var(--ink);
}

.exam-question {
  flex: 1;
  margin-bottom: var(--space-6);
}

.exam-question[hidden] {
  display: none !important;
}

.exam-prompt {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--space-8);
}

.exam-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.exam-choice:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.exam-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exam-letter {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink);
}

.exam-choice-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.exam-choice-text em.ok {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--success);
}

.exam-choice-text em.bad {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--error);
}

.exam-choice.is-selected {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.exam-choice.is-selected .exam-letter {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--surface);
}

.exam-choice.is-correct {
  border-color: var(--success);
  background: var(--success-soft);
}

.exam-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-8);
  border-top: 2px solid var(--border);
}

.exam-footer .btn-primary {
  margin-left: auto;
}

@media (max-width: 539px) {
  .exam-footer {
    flex-direction: column;
  }

  .exam-footer .btn-primary {
    margin-left: 0;
    order: -1;
  }

  .exam-choice {
    padding: var(--space-4) var(--space-5);
  }

  .rail-chip {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }
}

/* ——— Results ——— */

.result-hero {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  margin-bottom: var(--space-10);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.result-hero .eyebrow {
  justify-content: center;
}

.result-score {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin: var(--space-4) 0 var(--space-2);
}

.result-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.result-bars {
  display: grid;
  gap: var(--space-4);
  max-width: 28rem;
  margin: 0 auto var(--space-8);
  text-align: left;
}

.result-bar {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: var(--space-3);
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.result-bar strong {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rb-track {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.rb-track > i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.rb-ok { background: var(--forest); }
.rb-bad { background: var(--error); }
.rb-neutral { background: var(--border-strong); }

.result-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.review-heading {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

.review-item {
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-5);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  border-left-width: 6px;
}

.review-item.is-ok { border-left-color: var(--success); }
.review-item.is-bad { border-left-color: var(--error); }
.review-item.is-blank { border-left-color: var(--border-strong); }

.review-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-prompt {
  font-weight: 700;
  font-size: 1.0625rem;
  margin: var(--space-4) 0;
  line-height: 1.5;
}

.review-opts {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.review-opts li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
}

.review-opts li.mark-ok { background: var(--success-soft); }
.review-opts li.mark-bad { background: var(--error-soft); }

.review-expl {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--space-4);
  line-height: 1.65;
}

/* ——— Auth & cards (shared pages) ——— */

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-xs);
}

.auth-shell {
  padding: var(--space-12) 0 var(--space-20);
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.auth-sub {
  margin: 0 0 var(--space-8);
  color: var(--text-secondary);
  font-weight: 500;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Site footer ——— */

.site-footer {
  border-top: 2px solid var(--border);
  background: var(--surface);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.04em;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 var(--space-5);
  max-width: 32ch;
  line-height: 1.6;
}

.footer-heading {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
}

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

.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-entity {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-doc h1 {
  font-size: 2.25rem;
}

.legal-pending {
  background: var(--warning-soft);
  border: 2px solid #fde68a;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ——— Public nav mobile ——— */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-4);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: var(--space-4);
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    box-shadow: var(--shadow-md);
    min-width: 12rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .mkt-hero {
    padding: var(--space-12) 0 var(--space-10);
  }

  .stage-window {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .prog-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .prog-row span:first-child {
    font-size: 0.8125rem;
  }
}

.stats-table-wrap { margin-bottom: var(--space-10); }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.stats-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: var(--space-3); border-bottom: 2px solid var(--border); }
.stats-table td { padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--border); }
.stats-table tbody tr:hover { background: var(--bg); }
.account-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); }
.auth-shell { padding: var(--space-12) 0 var(--space-16); }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-10); box-shadow: var(--shadow-sm); }

/* ——— Pricing page & catalog ——— */

.pricing-hero {
  padding: var(--space-16) 0 var(--space-10);
  max-width: 52rem;
}

.pricing-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.pricing-selector {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.pricing-selector label {
  font-weight: 700;
  color: var(--text-secondary);
}

.pricing-selector select {
  font: inherit;
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  min-width: min(100%, 20rem);
}

.pricing-context {
  margin-top: var(--space-6);
  font-size: 0.9375rem;
}

.pricing-compare {
  padding-bottom: var(--space-16);
}

.pricing-cards {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.plan-card.plan-featured {
  border-color: var(--forest);
  background: linear-gradient(180deg, var(--forest-soft) 0%, var(--surface) 55%);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.plan-badge {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--lime);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.plan-name {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.plan-price {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.plan-period {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.plan-includes {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.plan-includes li {
  padding-left: 1.25rem;
  position: relative;
}

.plan-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--forest);
}

.plan-iva {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: auto;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.catalog-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.catalog-card .btn-text {
  align-self: flex-start;
}

.mkt-cta-band {
  text-align: center;
  padding: var(--space-16) 0;
  margin: var(--space-8) 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
}

/* ——— Home catalog V4 ——— */

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

.mkt-catalog {
  padding: var(--space-20) 0 var(--space-12);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 40%, var(--bg) 100%);
}

.mkt-catalog-head {
  max-width: 42rem;
  margin-bottom: var(--space-12);
}

.mkt-catalog-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--space-3);
}

.mkt-catalog-head h2 {
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
}

.mkt-catalog-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.mkt-spotlight {
  display: grid;
  gap: var(--space-10);
  align-items: stretch;
  padding: var(--space-10);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: 8px 8px 0 var(--ink);
}

.mkt-spotlight-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 960px) {
  .mkt-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-10);
    padding: var(--space-12);
    align-items: center;
  }
}

.mkt-spotlight-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.mkt-spotlight-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.mkt-spotlight-territory {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: var(--space-4);
}

.mkt-spotlight-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.55;
}

.mkt-spotlight-perks {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.mkt-spotlight-perks li {
  position: relative;
  padding-left: 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mkt-spotlight-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
}

.mkt-spotlight-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.mkt-spotlight-demo {
  background: linear-gradient(165deg, var(--forest-soft) 0%, var(--surface) 72%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: stretch;
  min-width: 0;
}

@media (min-width: 960px) {
  .mkt-spotlight-demo {
    padding: var(--space-8);
  }
}

.mkt-study-journey {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mkt-study-journey-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0;
}

.mkt-journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.mkt-journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mkt-journey-step:hover {
  border-color: var(--forest);
  transform: translateX(4px);
}

.mkt-journey-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink);
}

.mkt-journey-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mkt-journey-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-1);
}

.mkt-journey-copy h3 {
  font-size: 1rem;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
}

.mkt-journey-copy p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.mkt-catalog-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .mkt-catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.mkt-catalog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mkt-catalog-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
}

.mkt-catalog-card-meta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.mkt-catalog-card-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
}

.mkt-catalog-price {
  font-size: 0.9375rem;
  color: var(--forest);
}

.mkt-catalog-empty {
  margin-top: var(--space-12);
  text-align: center;
}

.mkt-catalog-empty {
  padding: var(--space-12);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* Interactive demo */

.ot-demo {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 2px solid var(--border);
}

.ot-demo-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.ot-demo-progress {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: var(--space-4);
}

.ot-demo-question {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: var(--space-5);
  color: var(--ink);
}

.ot-demo-answers {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.ot-demo-answer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.ot-demo-answer:hover:not(:disabled) {
  border-color: var(--forest);
}

.ot-demo-answer:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.ot-demo-answer:disabled {
  cursor: default;
}

.ot-demo-letter {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.75rem;
}

.ot-demo-answer.is-picked {
  border-color: var(--ink);
}

.ot-demo-answer.is-correct {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.08);
  color: var(--ink);
}

.ot-demo-answer.is-wrong {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.06);
}

.ot-demo-feedback {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.ot-demo-verdict {
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.ot-demo-verdict[data-state="ok"] {
  color: var(--success);
}

.ot-demo-verdict[data-state="bad"] {
  color: var(--error);
}

.ot-demo-explain {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}

/* Access band */

.mkt-access-band {
  margin: var(--space-8) 0 var(--space-16);
  padding: var(--space-16) 0;
  background: var(--ink);
  color: var(--bg);
}

.mkt-access-inner {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .mkt-access-inner {
    grid-template-columns: 1.2fr auto;
    gap: var(--space-12);
  }
}

.mkt-access-band h2 {
  color: var(--bg);
  margin-bottom: var(--space-4);
}

.mkt-access-lead {
  font-size: 1.0625rem;
  opacity: 0.92;
  line-height: 1.55;
  margin-bottom: var(--space-6);
}

.mkt-access-list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-3);
  font-weight: 600;
}

.mkt-access-band .fine-print {
  color: rgba(247, 248, 244, 0.7);
}

.mkt-access-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: min(100%, 16rem);
}

.mkt-access-cta .btn-secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(247, 248, 244, 0.45);
}