/* ==========================================================================
   Hablena — design tokens & base styles
   Colors follow the Spanish national team kit: red, gold, navy.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff') format('woff');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-var.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-italic-var.woff') format('woff');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #C8102E;
  --red-dark: #9E0B22;
  --red-tint: #FBE7EA;
  --gold: #FFC400;
  --gold-tint: #FFF1C2;
  --navy: #0A1633;
  --navy-2: #12204A;
  --navy-3: #16254D;
  --navy-line: #1C2B52;
  --navy-text: #B5C0DD;
  --navy-muted: #8B9BC4;
  --ink: #0A1633;
  --ink-2: #4A5470;
  --muted: #6B7591;
  --surface: #F4F5F8;
  --line: #E3E6EE;
  --white: #FFFFFF;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --radius-s: 6px;
  --radius: 8px;
  --radius-l: 14px;
  --radius-xl: 16px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); 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; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 12px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  overflow-wrap: break-word;
  hyphens: auto;
}
.display--xl { font-size: clamp(46px, 6.4vw, 92px); line-height: 0.92; letter-spacing: -0.03em; }
.display--l { font-size: clamp(34px, 4.8vw, 68px); line-height: 0.98; }
.display--xxl { font-size: clamp(40px, 10vw, 150px); font-stretch: 100%; line-height: 0.88; letter-spacing: -0.035em; white-space: nowrap; }

.kicker {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
}
.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 17px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #FFD233; color: var(--navy); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); font-weight: 600; }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 10; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 80px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 0; }
.nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-s);
  color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600;
}
.lang-switch:hover { border-color: var(--white); color: var(--white); }
.header-login { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 10px; }
.header-login:hover { color: var(--gold); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-s); background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-login { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 40px rgba(10,22,51,.3);
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: 17px; }
  .site-header.is-open .nav { display: flex; }
}
@media (max-width: 520px) {
  .header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */

.hero { background: var(--red); color: var(--white); }
.hero__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 64px;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__kicker { margin-bottom: 28px; font-size: 13px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--gold); }
.hero__title { margin-bottom: 32px; }
.hero__lead { font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 520px; margin-bottom: 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.78); }
.hero__visual { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }

.kit-stripe { height: 8px; background: var(--gold); }
.kit-stripe + .kit-stripe--navy, .kit-stripe--navy { background: var(--navy); }

/* Product mock in hero */
.mock {
  width: 100%; max-width: 500px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 40px 80px rgba(10,22,51,.45);
}
.mock__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--navy-line); }
.mock__meta { display: flex; flex-direction: column; gap: 3px; }
.mock__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-muted); }
.mock__scene { font-size: 17px; font-weight: 700; }
.badge {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 13px;
  background: var(--gold); color: var(--navy); padding: 5px 9px; border-radius: 5px; line-height: 1.1;
}
.progress { height: 4px; background: var(--navy-line); }
.progress > span { display: block; height: 100%; background: var(--gold); }
.mock__chat { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; }
.bubble { max-width: 85%; padding: 14px 16px; font-size: 16px; line-height: 1.45; }
.bubble small { display: block; margin-top: 4px; font-size: 13px; color: var(--navy-muted); }
.bubble--tutor { align-self: flex-start; background: var(--navy-3); border-radius: 12px 12px 12px 3px; }
.bubble--user { align-self: flex-end; background: var(--white); color: var(--navy); border-radius: 12px 12px 3px 12px; font-weight: 500; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-bottom: 10px; }
.wave span { display: block; width: 3px; border-radius: 2px; background: var(--red); }
.wave span.is-rest { background: #C9CEDB; }
.feedback { background: var(--navy-2); border: 1px solid #22356A; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.feedback__row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.meter { display: flex; align-items: center; gap: 12px; }
.meter__label { width: 110px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-muted); }
.meter__track { flex: 1; height: 6px; background: var(--navy-line); border-radius: 3px; }
.meter__track > span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.meter__value { font-size: 13px; font-weight: 700; }
.mock__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 22px; font-size: 13px; color: var(--navy-muted); }
.mic {
  width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 10vw, 120px); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 56px;
}
.section-head__title { flex: 1 1 560px; min-width: 0; }
.section-head__title .display { margin-top: 18px; }
.section-head__text { flex: 0 1 420px; }

/* Bento */
.bento { display: flex; flex-wrap: wrap; gap: 16px; }
.tile {
  flex: 1 1 320px; min-width: 0;
  background: var(--surface); border-radius: var(--radius-l); padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.tile--wide { flex: 2 1 620px; }
.tile--dark { background: var(--navy); color: var(--white); }
.tile--dark .label { color: var(--gold); }
.tile h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; }
.tile--wide h3 { font-size: 28px; }
.tile__text { font-size: 16px; line-height: 1.6; color: var(--navy-text); max-width: 520px; margin-top: 8px; }
.tile__card { background: var(--white); border-radius: 10px; padding: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; font-weight: 500; padding: 10px 14px; border: 1px solid #2A3B66; border-radius: var(--radius); }
.chip--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 5px; background: #EEF0F5; color: var(--ink-2); }
.pill--red { background: var(--red); color: var(--white); font-weight: 700; }
.pill--navy { background: var(--navy); color: var(--white); font-weight: 700; }
.word { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 26px; }
.conj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; font-size: 15px; }
.conj dt { color: var(--muted); }
.conj dd { margin: 0; font-weight: 600; }
.conj__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.conj__tense { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.strike { text-decoration: line-through; color: #9AA3BA; }
.mark { background: var(--gold-tint); font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.aplayer { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.aplayer__btn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.aplayer__track { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.aplayer__track > span { display: block; width: 35%; height: 100%; background: var(--red); border-radius: 2px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.duo strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.duo p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.level { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 8px 0; border-top: 6px solid var(--navy); }
.level:nth-child(-n+2) { border-top-color: var(--red); }
.level:nth-child(3), .level:nth-child(4) { border-top-color: var(--gold); }
.level__code { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.level__name { font-size: 16px; font-weight: 700; }
.level__text { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Tutor */
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split > * { flex: 1 1 460px; min-width: 0; }
.section--navy .kicker { color: var(--gold); }
.section--navy .lead { color: var(--navy-text); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 24px; padding: 28px 0; border-top: 1px solid #22335E; }
.steps__num { flex: none; width: 48px; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 28px; color: var(--gold); }
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: 16px; line-height: 1.6; color: var(--navy-text); }

/* Plans */
.billing { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 10px; }
.billing button {
  min-height: 44px; padding: 0 18px; border: none; border-radius: 7px;
  background: transparent; color: var(--navy); font-size: 15px; font-weight: 700; cursor: pointer;
}
.billing button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.plans { display: flex; flex-wrap: wrap; gap: 16px; }
.plan {
  flex: 1 1 380px; min-width: 0; border-radius: var(--radius-l); padding: 40px;
  display: flex; flex-direction: column; gap: 24px; border: 1.5px solid var(--line);
}
.plan--premium { background: var(--red); color: var(--white); border-color: var(--red); }
.plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan__desc { font-size: 15px; color: var(--ink-2); }
.plan--premium .plan__desc, .plan--premium .plan__per, .plan--premium .plan__note { color: rgba(255,255,255,.86); }
.plan__tag { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 7px 10px; border-radius: 5px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__amount { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 64px; letter-spacing: -0.03em; line-height: 1; }
.plan__per { font-size: 17px; color: var(--ink-2); }
.plan__note { margin-top: -14px; font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* Final CTA */
.cta { background: var(--red); color: var(--white); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: clamp(80px, 10vw, 112px); }
.cta__copy { flex: 0 0 auto; max-width: 100%; }
.cta__copy p { margin-top: 24px; font-size: 20px; color: rgba(255,255,255,.88); }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 64px 32px; }
.site-footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; color: var(--navy-muted); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.site-footer__col { display: flex; flex-direction: column; gap: 4px; }
.site-footer__col h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.site-footer__col a { color: #C4CDE5; text-decoration: none; padding: 6px 0; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom { border-top: 1px solid var(--navy-line); padding-block: 24px 40px; font-size: 13px; color: var(--navy-muted); }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .display { margin-bottom: 24px; }
.notfound p { font-size: 20px; color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 520px; }

/* ==========================================================================
   Tool pages (conjugator)
   ========================================================================== */

.hero--compact .hero__compact { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 14px; color: rgba(255,255,255,.8); }
.breadcrumb a { color: var(--white); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--gold); }

.verb-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.verb-title {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 900;
  font-size: clamp(56px, 9vw, 120px); line-height: .9; letter-spacing: -0.03em;
}
.verb-tr { margin-top: 12px; font-size: 22px; color: rgba(255,255,255,.9); }
.verb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; font-size: 15px; }
.verb-meta__item span { color: rgba(255,255,255,.75); }
.verb-meta__item strong { font-weight: 700; }
.verb-meta__item strong.is-irr { color: var(--gold); }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 5px; background: var(--white); color: var(--navy); }
.tag--irregular { background: var(--gold); }

.verb-search {
  display: flex; align-items: center; gap: 10px; flex: 0 1 360px;
  background: var(--white); color: var(--muted); border-radius: var(--radius);
  padding: 0 16px; min-height: 52px;
}
.verb-search--big { flex: none; max-width: 560px; min-height: 60px; }
.verb-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 17px; color: var(--navy); min-height: 48px;
}
.verb-search:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.verb-search input::placeholder { color: #8A93AB; }

.conj-verb { padding-block: 48px 96px; }
.legend { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 15px; color: var(--ink-2); }
.legend__swatch { width: 14px; height: 14px; border-radius: 3px; background: var(--red); flex: none; }
.tense-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tense { background: var(--surface); border-radius: var(--radius-l); padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 6px; }
.tense__head { display: flex; flex-direction: column; gap: 2px; }
.tense__head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.tense__es { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .02em; }
.tense__use { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.tense__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tense__table th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 12px 9px 0; width: 46%; font-size: 14px; }
.tense__table td { padding: 9px 0; font-weight: 600; }
.tense__table tr + tr th, .tense__table tr + tr td { border-top: 1px solid var(--line); }
.form--irr { color: var(--red); font-weight: 800; }

.conj-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.conj-cta__inner > div { flex: 1 1 560px; min-width: 0; }
.conj-cta .section, .conj-cta { padding-block: clamp(64px, 8vw, 96px); }

.conj-related { padding-block: 64px 96px; }
.conj-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.conj-related__head h2 { font-size: 24px; font-weight: 700; }
.conj-related__head a { font-weight: 700; text-decoration: none; }

.conj-index { padding-block: 56px 96px; display: flex; flex-direction: column; gap: 48px; }
.verb-group__title { font-size: 22px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: baseline; gap: 10px; }
.verb-group__title span { font-size: 14px; font-weight: 600; color: var(--muted); }
.verb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.verb-card a {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--navy); transition: border-color .15s ease, transform .15s ease;
}
.verb-card a:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.verb-card__inf { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 20px; }
.verb-card__tr { font-size: 14px; color: var(--muted); }
.verb-empty { font-size: 17px; color: var(--ink-2); }
[hidden] { display: none !important; }

/* ==========================================================================
   Grammar guides
   ========================================================================== */

.gindex { padding-block: 56px 96px; }
.gcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.gcard a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 24px; border-radius: var(--radius-l); background: var(--surface);
  text-decoration: none; color: var(--navy); border: 1.5px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.gcard a:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.gcard__level { align-self: flex-start; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 13px; background: var(--red); color: var(--white); padding: 4px 8px; border-radius: 5px; margin-bottom: 8px; }
.gcard__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 26px; letter-spacing: -0.01em; line-height: 1.05; }
.gcard__sub { font-size: 15px; color: var(--ink-2); }

.gtopic { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-block: 56px 96px; }
.gtopic__main { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 48px; }
.gverbs { flex: 1 1 240px; position: sticky; top: 24px; }
.gverbs h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.gverbs .verb-list { grid-template-columns: 1fr; }

.glead { font-size: 21px; line-height: 1.6; color: var(--ink); }
.gtip { background: var(--navy); color: var(--white); border-radius: var(--radius-l); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.gtip__label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gtip p { font-size: 17px; line-height: 1.55; }

.gsection { display: flex; flex-direction: column; gap: 14px; }
.gsection h2, .quiz h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; line-height: 1.1; }
.gsection__text { font-size: 17px; line-height: 1.65; color: var(--ink-2); }

.examples { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.examples li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); position: relative; }
.examples li::before { content: ''; position: absolute; left: 0; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.examples__es { font-size: 18px; font-weight: 600; color: var(--navy); }
.examples__tr { font-size: 15px; color: var(--muted); }

.pairs { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pairs__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.pairs__cell { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 10px; padding: 14px 16px; border-left: 0; }
.pairs__cell--b { background: var(--gold-tint); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; }
.gtable { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 420px; }
.gtable th, .gtable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.gtable thead th { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: var(--surface); }
.gtable tbody th { font-weight: 500; color: var(--ink-2); }
.gtable td { font-weight: 700; }
.gtable tr:last-child th, .gtable tr:last-child td { border-bottom: none; }

.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 4px; }
.signals__col { background: var(--surface); border-radius: 12px; padding: 18px 20px; }
.signals__col h3 { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.signals__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.signals__col li { font-weight: 600; background: var(--white); padding: 6px 10px; border-radius: 6px; font-size: 15px; }

.mistakes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mistake { background: var(--surface); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.mistake__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 17px; font-weight: 600; }
.mistake__wrong { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; }
.mistake__wrong::before { content: '✕'; text-decoration: none; display: inline-block; margin-right: 8px; }
.mistake__right::before { content: '→ '; color: var(--muted); }
.mistake p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

.quiz { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.quiz__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.quiz__q { background: var(--white); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.quiz__sentence { font-size: 18px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.quiz__num { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; color: var(--red); font-size: 15px; }
.blank { display: inline-block; min-width: 56px; text-align: center; border-bottom: 2.5px solid #C9CEDB; color: var(--muted); padding: 0 4px; }
.blank.is-filled { color: var(--navy); border-color: var(--navy); }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__opt {
  min-height: 44px; min-width: 72px; padding: 0 18px; border-radius: 8px;
  border: 2px solid var(--line); background: var(--white); color: var(--navy);
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.quiz__opt:hover:not(:disabled) { border-color: var(--navy); }
.quiz__opt:disabled { cursor: default; }
.quiz__opt.is-right { background: var(--gold-tint); border-color: #E0A800; }
.quiz__opt.is-wrong { background: var(--red-tint); border-color: var(--red); color: var(--red); }
.quiz__why { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.quiz__why strong { color: var(--navy); }
.quiz__score { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--navy); }

@media (max-width: 860px) { .gverbs { position: static; } }

/* Legal pages */
.legal { max-width: 760px; padding-block: 56px 96px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.legal p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
.legal__note { background: var(--surface); border-radius: 12px; padding: 18px 20px; color: var(--ink) !important; }
.legal__updated { margin-top: 32px; font-size: 14px !important; color: var(--muted) !important; }

/* ==========================================================================
   Accounts
   ========================================================================== */

.auth { padding-block: 48px 96px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.auth-card {
  width: 100%; max-width: 460px; background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 20px 50px rgba(10,22,51,.06);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  font: inherit; font-size: 16px; color: var(--navy); min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); width: 100%;
}
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255,196,0,.6); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__hint { font-size: 13px; color: var(--muted); }
.auth-error { background: var(--red-tint); color: var(--red-dark); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; font-weight: 600; }
.auth-small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.auth-switch { font-size: 15px; color: var(--ink-2); }
.auth-switch a { font-weight: 700; }
.btn[disabled] { opacity: .7; cursor: progress; }

.danger { width: 100%; border-top: 1px solid var(--line); padding-top: 16px; }
.danger summary { cursor: pointer; font-weight: 700; color: var(--red); min-height: 44px; display: flex; align-items: center; }
.danger__form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; max-width: 420px; }
.danger__form p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #16254D; color: var(--white); }


/* ==========================================================================
   Lesson player (lp-*): chunky, tactile, game-like
   ========================================================================== */

:root {
  --ok: #2FA35F;
  --ok-dark: #23824A;
  --ok-tint: #E6F6EC;
  --ok-ink: #1B6B3C;
  --pick: #1E6BD6;
  --pick-tint: #E7F0FD;
  --pick-dark: #1554AE;
  --edge: #DCE0EA;
  --edge-dark: #C5CBD9;
  --lp-radius: 16px;
}

.lp-body { background: var(--white); }
.lp { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* 3D button primitive: a solid "ledge" under the face that collapses on press */
.lp-cta, .lp-opt, .lp-tile, .lp-match__item, .lp-audio, .lp-card .lp-audio {
  -webkit-tap-highlight-color: transparent;
}
.lp-cta {
  --face: var(--red); --ledge: var(--red-dark); --txt: var(--white);
  appearance: none; border: 0; cursor: pointer;
  min-height: 54px; min-width: 180px; padding: 0 28px;
  border-radius: var(--lp-radius);
  background: var(--face); color: var(--txt);
  box-shadow: 0 4px 0 var(--ledge);
  font: inherit; font-family: var(--font-display); font-stretch: 112%; font-weight: 800;
  font-size: 17px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.lp-cta:hover { filter: brightness(1.06); color: var(--txt); }
.lp-cta:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--ledge); }
.lp-cta:disabled { --face: #E9ECF2; --ledge: #D4D9E3; --txt: #9AA3BA; cursor: not-allowed; filter: none; }
.lp-cta--green { --face: var(--ok); --ledge: var(--ok-dark); }
.lp-cta--red { --face: var(--red); --ledge: var(--red-dark); }
.lp-cta--ghost { --face: var(--white); --ledge: var(--edge); --txt: var(--pick); border: 2px solid var(--edge); }
.lp-cta:focus-visible { outline: 3px solid var(--pick); outline-offset: 3px; }

/* ---------- top bar ---------- */
.lp-top { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 16px; }
.lp-icon-btn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 0; background: none; color: #A3ABBF; cursor: pointer; }
.lp-icon-btn:hover { background: var(--surface); color: var(--navy); }
.lp-icon-btn .lp-sound-off { display: none; }
.lp-icon-btn.is-muted .lp-sound-on { display: none; }
.lp-icon-btn.is-muted .lp-sound-off { display: block; }

.lp-progress { flex: 1; height: 16px; background: #E9ECF2; border-radius: 99px; overflow: hidden; }
.lp-progress > span {
  position: relative; display: block; height: 100%; width: 2%;
  background: var(--ok); border-radius: 99px;
  transition: width .5s cubic-bezier(.3,1.4,.5,1);
}
.lp-progress > span::after { content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }

.lp-combo { flex: none; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 18px; color: #FF8A00; }
.lp-combo.is-bump { animation: lp-bump .45s cubic-bezier(.3,1.6,.5,1); }

/* ---------- stage ---------- */
.lp-stage { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: clamp(16px, 4vw, 40px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 24px; outline: none; }
.lp-stage.is-enter { animation: lp-in .35s ease both; }
.lp-heading { font-family: var(--font-display); font-stretch: 105%; font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); margin: 0; }
.lp-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #F3E8FF; color: #7A3EC8; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: -12px; }

/* mascot + speech bubble */
.lp-say { display: flex; align-items: flex-end; gap: 14px; }
.lp-say__mascot { flex: none; width: clamp(84px, 16vw, 116px); }
.lp-say__mascot .mascot { width: 100%; height: auto; display: block; animation: lp-idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.lp-say__mascot--person { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-say__face { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #EEF1F7; box-shadow: inset 0 -4px 0 rgba(10,22,51,.06); }
.lp-say__face .avatar { width: 100%; height: 100%; display: block; transform: translateY(4%); }
.lp-say__face--lucia { background: #FDE8D7; }
.lp-say__face--mateo { background: #E3ECFA; }
.lp-say__face--sofia { background: #FFF1C2; }
.lp-say__face--pablo { background: #E6F6EC; }
.lp-say__name { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-bubble .lp-listen { padding: 4px 8px; }
.lp-bubble {
  position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 18px; margin-bottom: 18px;
  border: 2px solid var(--edge); border-radius: var(--lp-radius); background: var(--white);
}
.lp-bubble::before, .lp-bubble::after { content: ''; position: absolute; left: -12px; bottom: 16px; width: 0; height: 0; border-style: solid; border-width: 9px 12px 9px 0; }
.lp-bubble::before { border-color: transparent var(--edge) transparent transparent; }
.lp-bubble::after { left: -9px; border-color: transparent var(--white) transparent transparent; }
.lp-bubble__text { font-size: clamp(19px, 2.4vw, 22px); font-weight: 600; color: var(--navy); line-height: 1.35; }
.lp-bubble__tr { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.lp-blank { display: inline-block; min-width: 72px; padding: 0 6px; margin: 0 4px; border-bottom: 3px solid var(--edge-dark); text-align: center; color: var(--pick); font-weight: 700; }
.lp-blank.is-filled { border-color: var(--pick); animation: lp-pop .25s ease; }

/* audio buttons */
.lp-audio {
  flex: none; width: 48px; height: 48px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--pick); color: var(--white); box-shadow: 0 4px 0 var(--pick-dark);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .08s ease, box-shadow .08s ease;
}
.lp-audio svg { width: 24px; height: 24px; }
.lp-audio:active { transform: translateY(4px); box-shadow: 0 0 0 var(--pick-dark); }
.lp-audio.is-pulse svg { animation: lp-pop .3s ease; }
.lp-audio--xl { width: 132px; height: 112px; border-radius: 24px; box-shadow: 0 6px 0 var(--pick-dark); }
.lp-audio--xl svg { width: 52px; height: 52px; }
.lp-audio--xl:active { transform: translateY(6px); }
.lp-listen { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.lp-link { background: none; border: 0; padding: 8px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #A3ABBF; cursor: pointer; min-height: 44px; }
.lp-link:hover { color: var(--pick); }
.lp-reveal { font-size: 22px; font-weight: 700; color: var(--navy); }

/* intro word cards */
.lp-cards { display: flex; flex-direction: column; gap: 12px; }
.lp-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 2px solid var(--edge); border-radius: var(--lp-radius); box-shadow: 0 4px 0 var(--edge); background: var(--white); }
.lp-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-card__es { font-family: var(--font-display); font-stretch: 105%; font-weight: 800; font-size: clamp(22px, 3vw, 28px); color: var(--navy); line-height: 1.1; }
.lp-card__tr { font-size: 16px; color: var(--muted); }

/* answer options */
.lp-opts { display: grid; gap: 12px; }
.lp-opts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-opts--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
@media (max-width: 520px) { .lp-opts--grid { grid-template-columns: 1fr; } }
.lp-opts.is-shake { animation: lp-shake .4s ease; }
.lp-opt {
  --b: var(--edge); --bg: var(--white); --c: var(--navy);
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px;
  border: 2px solid var(--b); border-radius: var(--lp-radius); background: var(--bg); color: var(--c);
  box-shadow: 0 4px 0 var(--b);
  font: inherit; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease, border-color .12s ease;
}
.lp-opt:hover:not(:disabled) { --bg: #F7F8FB; }
.lp-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--b); }
.lp-opt__key { flex: none; width: 30px; height: 30px; border: 2px solid var(--edge); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #A3ABBF; }
.lp-opt__text { flex: 1; min-width: 0; }
.lp-opt.is-picked { --b: #8DB6F0; --bg: var(--pick-tint); --c: var(--pick-dark); }
.lp-opt.is-picked .lp-opt__key { border-color: #8DB6F0; color: var(--pick); }
.lp-opt.is-right { --b: #7FCB9D; --bg: var(--ok-tint); --c: var(--ok-ink); animation: lp-pop .3s ease; }
.lp-opt.is-right .lp-opt__key { border-color: var(--ok); background: var(--ok); color: var(--white); }
.lp-opt.is-wrong { --b: #F0A2AE; --bg: var(--red-tint); --c: var(--red-dark); }
.lp-opt.is-wrong .lp-opt__key { border-color: var(--red); background: var(--red); color: var(--white); }
.lp-opt:disabled { cursor: default; }
.lp-opts--row .lp-opt { justify-content: center; text-align: center; }
.lp-opts--row .lp-opt__key { display: none; }

.lp-opts--stack { grid-template-columns: 1fr; }

/* typing */
.lp-input {
  width: 100%; min-height: 128px; resize: none; padding: 16px 18px;
  border: 2px solid var(--edge); border-radius: var(--lp-radius); background: #F7F8FB;
  font: inherit; font-size: 20px; line-height: 1.4; color: var(--navy);
  transition: border-color .15s ease, background .15s ease;
}
.lp-input:focus { outline: none; border-color: #8DB6F0; background: var(--white); }
.lp-input.is-right { border-color: #7FCB9D; background: var(--ok-tint); color: var(--ok-ink); }
.lp-input.is-wrong { border-color: #F0A2AE; background: var(--red-tint); color: var(--red-dark); }
.lp-input.is-shake { animation: lp-shake .4s ease; }
.lp-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -10px; }
.lp-key {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 2px solid var(--edge); border-radius: 12px; background: var(--white);
  box-shadow: 0 3px 0 var(--edge); font: inherit; font-size: 18px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.lp-key:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.lp-key:disabled { opacity: .5; cursor: default; }

/* dialogue */
.lp-chat { display: flex; flex-direction: column; gap: 14px; }
.lp-chat .lp-bubble { flex-direction: row; }
.lp-link--inline { padding: 0; min-height: 32px; font-size: 13px; }
.lp-chat__me { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 80%; animation: lp-up .3s cubic-bezier(.3,1.3,.5,1); }
.lp-chat__who { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp-chat__bubble { padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--pick); color: var(--white); font-size: 19px; font-weight: 600; box-shadow: 0 3px 0 var(--pick-dark); }

/* sentence builder */
.lp-build { display: flex; flex-direction: column; gap: 28px; }
.lp-build__answer {
  min-height: 124px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; padding: 8px 0;
  background-image: linear-gradient(to bottom, transparent 56px, var(--edge) 56px, var(--edge) 58px, transparent 58px);
  background-size: 100% 62px;
}
.lp-build__answer.is-shake { animation: lp-shake .4s ease; }
.lp-build__pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-slot { display: inline-flex; min-width: 56px; min-height: 52px; border-radius: 14px; background: #E9ECF2; }
.lp-tile {
  min-height: 52px; padding: 0 16px; border: 2px solid var(--edge); border-radius: 14px; background: var(--white); color: var(--navy);
  box-shadow: 0 4px 0 var(--edge); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
  animation: lp-pop .18s ease;
}
.lp-tile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.lp-tile:disabled { cursor: default; }
.lp-build__answer.is-right .lp-tile { border-color: #7FCB9D; box-shadow: 0 4px 0 #7FCB9D; color: var(--ok-ink); }
.lp-build__answer.is-wrong .lp-tile { border-color: #F0A2AE; box-shadow: 0 4px 0 #F0A2AE; color: var(--red-dark); }

/* match pairs */
.lp-match { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-match__col { display: flex; flex-direction: column; gap: 12px; }
.lp-match__item {
  --b: var(--edge); --bg: var(--white); --c: var(--navy);
  min-height: 60px; padding: 10px 14px; border: 2px solid var(--b); border-radius: var(--lp-radius); background: var(--bg); color: var(--c);
  box-shadow: 0 4px 0 var(--b); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, opacity .3s ease, background .12s ease;
}
.lp-match__item:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--b); }
.lp-match__item.is-picked { --b: #8DB6F0; --bg: var(--pick-tint); --c: var(--pick-dark); }
.lp-match__item.is-matched { --b: #7FCB9D; --bg: var(--ok-tint); --c: var(--ok-ink); animation: lp-pop .3s ease; cursor: default; }
.lp-match__item.is-gone { --b: #EEF0F5; --bg: var(--white); --c: #C8CEDB; box-shadow: none; animation: none; }
.lp-match__item.is-error { --b: #F0A2AE; --bg: var(--red-tint); --c: var(--red-dark); animation: lp-shake .4s ease; }

/* ---------- bottom sheet ---------- */
.lp-sheet { position: sticky; bottom: 0; border-top: 2px solid #EEF0F5; background: var(--white); transition: background .2s ease; }
.lp-sheet__inner { max-width: 1000px; margin: 0 auto; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; }
.lp-sheet.is-right { background: var(--ok-tint); border-color: transparent; }
.lp-sheet.is-wrong { background: var(--red-tint); border-color: transparent; }
.lp-sheet.is-enter .lp-feedback { animation: lp-up .28s cubic-bezier(.3,1.3,.5,1); }
.lp-feedback { flex: 1 1 300px; display: flex; align-items: center; gap: 16px; }
.lp-feedback[hidden] { display: none; }
.lp-feedback__icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.lp-feedback__icon svg { width: 34px; height: 34px; }
.lp-sheet.is-right .lp-feedback__icon { color: var(--ok); }
.lp-sheet.is-wrong .lp-feedback__icon { color: var(--red); }
.lp-feedback__text strong { display: block; font-family: var(--font-display); font-stretch: 105%; font-weight: 800; font-size: 24px; line-height: 1.15; }
.lp-feedback__text p { margin: 4px 0 0; font-size: 17px; line-height: 1.4; }
.lp-feedback__text p:empty { display: none; }
.lp-sheet.is-right .lp-feedback__text { color: var(--ok-ink); }
.lp-sheet.is-wrong .lp-feedback__text { color: var(--red-dark); }
@media (max-width: 560px) {
  .lp-sheet__inner { flex-direction: column; align-items: stretch; }
  .lp-feedback__icon { width: 48px; height: 48px; }
  .lp-feedback__text strong { font-size: 20px; }
  .lp-cta { width: 100%; }
}

/* ---------- lesson complete ---------- */
.lp-done { position: relative; flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 32px var(--gutter) 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.lp-done[hidden] { display: none; }
.lp-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.lp-done__mascot { width: 168px; animation: lp-jump 1s cubic-bezier(.3,1.5,.5,1) both; }
.lp-done__mascot .mascot { width: 100%; height: auto; display: block; }
.lp-done__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: clamp(34px, 6vw, 48px); line-height: 1; letter-spacing: -0.01em; color: var(--gold); -webkit-text-stroke: 0; text-shadow: 0 3px 0 #E0A800; margin: 0; }
.lp-done__goal { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 420px; }
.lp-stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.lp-stat { --c: var(--navy); border: 2px solid var(--c); border-radius: var(--lp-radius); background: var(--c); overflow: hidden; display: flex; flex-direction: column; animation: lp-up .5s cubic-bezier(.3,1.3,.5,1) both; }
.lp-stat:nth-child(2) { animation-delay: .12s; }
.lp-stat:nth-child(3) { animation-delay: .24s; }
.lp-stat__label { padding: 6px 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.lp-stat__value { flex: 1; background: var(--white); border-radius: 12px 12px 14px 14px; padding: 14px 6px; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 26px; color: var(--c); }
.lp-stat--gold { --c: #F2B200; }
.lp-stat--green { --c: var(--ok); }
.lp-stat--navy { --c: var(--pick); }
.lp-streak { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 99px; background: #FFF3E0; color: #B35C00; font-weight: 800; animation: lp-pop .4s ease .5s both; }
.lp-streak[hidden] { display: none; }
.lp-save { margin: 0; font-size: 15px; color: var(--ink-2); }
.lp-done__actions { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.lp-done__actions .lp-cta { width: 100%; }

/* ---------- motion ---------- */
@keyframes lp-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes lp-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes lp-bump { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes lp-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes lp-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes lp-jump { 0% { opacity: 0; transform: translateY(40px) scale(.7); } 60% { opacity: 1; transform: translateY(-14px) scale(1.05); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   App home (ah-*, learn, path): learning path with streak & XP
   ========================================================================== */

.ah-body { background: var(--white); }
.ah { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid #EEF0F5; }
.ah__bar { max-width: 1120px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; min-height: 68px; }
.ah__brand, .ah__brand:hover { color: var(--navy); }
.ah__tabs { display: flex; gap: 4px; margin-right: auto; }
.ah__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid transparent; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ah__tab svg { width: 22px; height: 22px; }
.ah__tab:hover { background: var(--surface); color: var(--navy); }
.ah__tab.is-active { border-color: #A9CBF5; background: var(--pick-tint); color: var(--pick); }
.ah__chips { display: flex; align-items: center; gap: 6px; }
.ah-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 12px; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 17px; color: #A3ABBF; text-decoration: none; }
.ah-chip svg { width: 24px; height: 24px; }
.ah-chip--streak.is-active { color: #FF8A00; }
.ah-chip--xp { color: #F2B200; }
.ah-chip--lang { font-size: 14px; letter-spacing: .06em; color: var(--muted); border: 2px solid var(--edge); }
.ah-chip--lang:hover { color: var(--navy); border-color: var(--edge-dark); }
.ah-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; margin-left: 4px; }
.ah-avatar:hover { color: var(--gold); background: var(--navy-3); }
@media (max-width: 860px) {
  .ah__bar { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .ah__brand .brand__name { display: none; }
  .ah__tabs { order: 3; width: 100%; margin: 0 -6px; justify-content: space-between; }
  .ah__tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 12px; }
  .ah__chips { margin-left: auto; }
}
@media (max-width: 420px) { .ah__tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

.learn { max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) 96px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .learn { grid-template-columns: minmax(0, 1fr); } }
.learn__path { display: flex; flex-direction: column; gap: 40px; min-width: 0; max-width: 600px; width: 100%; margin: 0 auto; }
.learn__hello { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; color: var(--navy); margin: 0; }
.learn[aria-busy="true"] .path, .learn[aria-busy="true"] .account { visibility: hidden; }

/* unit banner */
.punit { --u: var(--red); --u-dark: var(--red-dark); position: relative; display: flex; flex-direction: column; gap: 28px; }
.punit--1 { --u: var(--pick); --u-dark: var(--pick-dark); }
.punit--2 { --u: var(--ok); --u-dark: var(--ok-dark); }
.punit--3 { --u: var(--navy); --u-dark: #000A1F; }
.punit--4 { --u: #7A3EC8; --u-dark: #5B2A99; }
.punit__banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--lp-radius); background: var(--u); color: var(--white); box-shadow: 0 4px 0 var(--u-dark); }
.punit__kicker { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.punit__banner h2 { margin: 0; font-family: var(--font-display); font-stretch: 105%; font-weight: 800; font-size: clamp(21px, 2.6vw, 25px); line-height: 1.15; }
.punit__count { flex: none; padding: 8px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); font-weight: 800; font-size: 15px; }
.punit.is-complete .punit__count { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.punit__mascot { z-index: 0; position: absolute; top: 150px; left: calc(50% + var(--side) * 150px - 55px); width: 110px; pointer-events: none; opacity: .95; }
.punit__mascot .mascot { width: 100%; height: auto; animation: lp-idle 3.2s ease-in-out infinite; }
@media (max-width: 520px) { .punit__mascot { display: none; } }

/* path nodes */
.path { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.node.is-current { margin-top: 48px; }
.punit__banner + .path > .node.is-current:first-child { margin-top: 36px; }
.node { --size: 76px; position: relative; transform: translateX(calc(var(--x) * var(--size))); }
.node__btn {
  --face: var(--u); --ledge: var(--u-dark);
  position: relative; width: var(--size); height: calc(var(--size) * .9); border: 0; border-radius: 50%; cursor: pointer;
  background: var(--face); color: var(--white); box-shadow: 0 7px 0 var(--ledge);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.node__btn:hover { filter: brightness(1.06); }
.node__btn:active { transform: translateY(7px); box-shadow: 0 0 0 var(--ledge); }
.node__btn:focus-visible { outline: 3px solid var(--pick); outline-offset: 6px; }
.node__icon { width: 36px; height: 36px; display: none; }
.node.is-current .node__icon--star, .node.is-done .node__icon--check, .node.is-locked .node__icon--lock { display: block; }
.node.is-done .node__btn { --face: var(--gold); --ledge: #D9A300; color: var(--navy); }
.node.is-locked .node__btn { --face: #E5E8EF; --ledge: #CDD2DE; color: #B4BBCB; }
.node.is-current .node__btn::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 6px solid #E9ECF2; border-top-color: var(--u); border-right-color: var(--u); }
.node__start { position: absolute; left: 50%; bottom: calc(100% + 18px); transform: translateX(-50%); padding: 8px 14px; border-radius: 12px; border: 2px solid var(--edge); background: var(--white); color: var(--u); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; display: none; animation: node-bob 1.6s ease-in-out infinite; }
.node__start::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: var(--white); border: 2px solid var(--edge); border-top: 0; border-left: 0; transform: translate(-50%, -6px) rotate(45deg); }
.node.is-current:not(.is-open) .node__start { display: block; }
.node--trophy .node__btn { --face: #E5E8EF; --ledge: #CDD2DE; color: #B4BBCB; cursor: default; }
.node--trophy .node__btn svg { width: 38px; height: 38px; }
.node--trophy .node__btn:active { transform: none; box-shadow: 0 7px 0 var(--ledge); }
.punit.is-complete .node--trophy .node__btn { --face: var(--gold); --ledge: #D9A300; color: var(--navy); }
@keyframes node-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }

/* popover */
.node__pop { position: absolute; z-index: 10; top: calc(100% + 18px); left: 50%; width: min(300px, calc(100vw - 32px)); transform: translateX(calc(-50% - var(--x) * var(--size) * .5)); padding: 18px; border-radius: var(--lp-radius); background: var(--u); color: var(--white); box-shadow: 0 4px 0 var(--u-dark), 0 18px 40px -18px rgba(10,22,51,.45); display: flex; flex-direction: column; gap: 6px; text-align: left; animation: lp-up .2s ease; }
.node__pop[hidden] { display: none; }
.node__pop-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.node__pop h3 { margin: 0; font-size: 20px; font-weight: 800; }
.node__pop-goal, .node__pop-score { margin: 0; font-size: 15px; line-height: 1.45; opacity: .92; }
.node__pop-score { font-weight: 700; }
.node__go { --face: var(--white); --ledge: rgba(0,0,0,.18); --txt: var(--u); margin-top: 10px; width: 100%; min-width: 0; }
.node__go:hover { color: var(--u); }
.node__pop-locked { display: none; margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.node.is-locked .node__pop { background: #F4F5F8; color: var(--ink-2); box-shadow: 0 4px 0 #DCE0EA, 0 18px 40px -18px rgba(10,22,51,.35); }
.node.is-locked .node__go { display: none; }
.node.is-locked .node__pop-locked { display: block; }

.soon { padding: 24px; border: 2px dashed var(--edge-dark); border-radius: var(--lp-radius); text-align: center; color: var(--ink-2); }
.soon__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.soon h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--navy); }
.soon p { margin: 0; line-height: 1.5; }

/* sidebar */
.learn__side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) { .learn__side { position: static; max-width: 600px; width: 100%; margin: 0 auto; } }
.side-card { padding: 20px; border: 2px solid #EEF0F5; border-radius: var(--lp-radius); display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.side-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.side-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.side-card__xp { font-weight: 800; color: #E0A800; }
.side-card__big { display: flex; align-items: center; gap: 14px; }
.side-card__big svg { width: 52px; height: 52px; flex: none; }
.side-card__big strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 34px; line-height: 1; color: #FF8A00; }
.side-card__big span { font-weight: 700; color: var(--ink-2); }
.goalbar { height: 18px; border-radius: 99px; background: #E9ECF2; overflow: hidden; }
.goalbar > span { position: relative; display: block; height: 100%; width: 0; border-radius: 99px; background: var(--gold); transition: width .8s cubic-bezier(.3,1.2,.5,1); }
.goalbar > span::after { content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); }
.goalbar.is-full > span { background: var(--ok); }
.side-link { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 12px; color: var(--navy); text-decoration: none; }
.side-link:hover { background: var(--surface); color: var(--navy); }
.side-link > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.side-link strong { font-size: 16px; color: var(--navy); }
.side-link__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 17px; color: var(--white); }
.side-link__icon--blue { background: var(--pick); box-shadow: 0 4px 0 var(--pick-dark); }
.side-link__icon--green { background: var(--ok); box-shadow: 0 4px 0 var(--ok-dark); }
.account { scroll-margin-top: 92px; }
.account__facts { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.account__facts dt { font-size: 13px; color: var(--muted); }
.account__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); word-break: break-all; }
.account__logout { min-height: 46px; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .node__start, .punit__mascot .mascot { animation: none; }
}
.node.is-open { z-index: 6; }

/* unit banner extras */
.punit__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.punit__guide { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.16); color: var(--white); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.punit__guide svg { width: 18px; height: 18px; }
.punit__guide:hover { background: rgba(255,255,255,.26); color: var(--white); }
.side-card__cta { width: 100%; min-width: 0; min-height: 48px; }

/* guide pages */
.guide { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 96px; display: flex; flex-direction: column; gap: 22px; }
.guide__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-weight: 700; text-decoration: none; }
.guide__back svg { width: 20px; height: 20px; }
.guide__back:hover { color: var(--navy); }
.guide__title { margin: 0; font-family: var(--font-display); font-stretch: 105%; font-weight: 800; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; }
.guide__lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.tip-card { position: relative; padding: 24px 24px 20px 72px; border: 2px solid #EEF0F5; border-radius: var(--lp-radius); display: flex; flex-direction: column; gap: 10px; }
.tip-card__num { position: absolute; left: 20px; top: 22px; width: 36px; height: 36px; border-radius: 12px; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; box-shadow: 0 3px 0 #D9A300; }
.tip-card h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy); }
.tip-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.tip-card__examples { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tip-card__examples li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.tip-card__es { font-size: 18px; font-weight: 700; color: var(--navy); }
.tip-card__tr { font-size: 15px; color: var(--muted); }
.say-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--pick); color: var(--white); box-shadow: 0 3px 0 var(--pick-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.say-btn svg { width: 20px; height: 20px; }
.say-btn:active { transform: translateY(3px); box-shadow: none; }
.guide__start { align-self: center; margin-top: 8px; }
@media (max-width: 520px) { .tip-card { padding: 20px 18px 18px; } .tip-card__num { position: static; } .guide__start { align-self: stretch; } }

/* ==========================================================================
   Landing: the course section (real numbers, the cast, features)
   ========================================================================== */
.hero__title { hyphens: manual; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .course-grid { grid-template-columns: minmax(0, 1fr); } }
.course-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.course-copy .display { margin: 0; }
.course-copy .lead { max-width: 560px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 6px; width: 100%; max-width: 560px; }
@media (max-width: 520px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-row > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 14px 14px 12px; border-radius: 14px; background: var(--surface); }
.stat-row dd { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 34px; line-height: 1; color: var(--red); }
.stat-row dt { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.cast-card { padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--navy); color: var(--white); box-shadow: 0 30px 60px -30px rgba(10,22,51,.55); }
.cast-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--gold); }
.cast-card > p { margin: 0 0 24px; color: var(--navy-text); line-height: 1.55; }
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; } }
.cast__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cast__item strong { margin-top: 6px; font-size: 15px; }
.cast__item span:last-child { font-size: 12px; line-height: 1.3; color: var(--navy-muted); }
.cast__face { width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: block; background: #EEF1F7; }
.cast__face svg { width: 100%; height: 100%; display: block; }
.cast__face .avatar { transform: translateY(4%); }
.cast__face--hablena { background: var(--gold); padding: 14%; }
.cast__face--lucia { background: #FDE8D7; }
.cast__face--mateo { background: #E3ECFA; }
.cast__face--sofia { background: #FFF1C2; }
.cast__face--pablo { background: #E6F6EC; }
.feature-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 22px; border: 2px solid #EEF0F5; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); }
.feature__icon svg { width: 26px; height: 26px; }
.feature__icon--0 { background: var(--red); box-shadow: 0 4px 0 var(--red-dark); }
.feature__icon--1 { background: var(--pick); box-shadow: 0 4px 0 var(--pick-dark); }
.feature__icon--2 { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 #D9A300; }
.feature__icon--3 { background: var(--ok); box-shadow: 0 4px 0 var(--ok-dark); }
