/* Spanish by Leo - main stylesheet
   Flat 2D look: no gradients, no 3D shadows, no ruled-paper lines.
   Brand orange comes from the avatar's shirt (#F97F12). */

@font-face { font-family: "Baloo 2"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  --orange: #F97F12;
  --orange-hover: #E96F04;
  --orange-deep: #A94604;      /* orange for text on light backgrounds (AA contrast) */
  --orange-tint: #FFEEDB;
  --cream: #FFF8EE;
  --cream-dim: #F7EDDD;
  --paper: #FFFDF8;            /* off-white for alternating sections */
  --tag-bg: #F1E7D6;
  --white: #FFFFFF;
  --ink: #1A1613;
  --ink-soft: #55504A;
  --ink-faint: #6B645C;
  --line: #E8DDCB;
  --teal: #2B6F86;
  --teal-tint: #E3F0F4;
  --green: #1E8E52;
  --green-ink: #115F37;
  --green-tint: #E6F5EC;
  --red: #C8412B;
  --red-ink: #8F2A19;
  --red-tint: #FCE9E4;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-head: "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 7.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; max-width: 100%; transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span b { color: var(--orange-deep); font-weight: 800; }
.nav { display: none; align-items: center; gap: 6px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream-dim); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; }
.menu-btn svg { width: 24px; height: 24px; }
.mobile-nav { display: none; padding: 8px 0 20px; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- Home ---------- */
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* tags */
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; background: var(--tag-bg); color: var(--ink-soft); }
.tag-teal { background: var(--teal-tint); color: var(--teal); }
.tag-soon { background: transparent; border: 1px dashed var(--ink-faint); color: var(--ink-faint); padding: 2px 10px; }

/* hero */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 28px; align-items: center; grid-template-areas: "copy" "media" "benefits"; }
.hero-copy { grid-area: copy; }
.hero-media { grid-area: media; }
.benefits { grid-area: benefits; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: .9rem; color: var(--ink-faint); margin: 14px 0 0; }
.benefits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.benefit { display: flex; gap: 12px; align-items: flex-start; }
.benefit-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.benefit-icon svg, .skill-icon svg, .check-list svg { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit strong { display: block; font-size: .98rem; line-height: 1.3; }
.benefit .t { color: var(--ink-soft); font-size: .9rem; line-height: 1.4; }

.hero-media { position: relative; max-width: 480px; width: 100%; margin: 0 auto; }
.hero-visual { background: var(--cream-dim); border-radius: 32px; padding: 28px 12px 0; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.hero-visual img { width: min(230px, 62vw); height: auto; }
.mini-lesson { position: relative; margin: -56px 12px 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 14px; box-shadow: 0 8px 24px rgba(26, 22, 19, .08); }
.ml-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-faint); margin-bottom: 4px; }
.ml-title { text-wrap: balance; font-size: 1.15rem; line-height: 1.2; margin: 0 0 6px; }
.ml-text { font-size: .95rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.ml-text strong { color: var(--ink); }
.ml-badge { display: inline-flex; justify-content: center; padding: 3px 0; border-radius: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; background: var(--ink); color: var(--cream); min-width: 64px; }
.ml-badge.alt { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 1px 0; }
.ml-es { display: block; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.ml-en { display: block; font-size: .85rem; color: var(--ink-soft); }
.ml-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .95rem; color: var(--orange-deep); text-decoration: none; padding: 4px 0; }
.ml-link:hover { text-decoration: underline; color: var(--ink); }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "copy media" "benefits media"; gap: 8px 48px; align-items: center; }
  .hero-copy { align-self: end; max-width: 470px; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; align-self: start; max-width: 440px; }
  .benefit { flex-direction: column; gap: 8px; }
  .hero-sub { max-width: 27em; }
  .hero-visual { padding-top: 32px; }
  .hero-visual img { width: 250px; }
}
/* Wide screens: the card floats above Leo's open hand, like he is presenting it */
@media (min-width: 1040px) {
  .hero-media { max-width: 500px; }
  .hero-visual { justify-content: flex-start; padding: 40px 0 0 30px; }
  .hero-visual img { width: 290px; }
  .mini-lesson { position: absolute; right: 14px; bottom: 56%; width: 228px; margin: 0; padding: 16px 16px 14px; }
}

/* how it works */
.steps { display: grid; gap: 16px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.step-n { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--orange-deep); margin-bottom: 10px; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--ink-soft); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
a.card:hover { border-color: var(--ink); color: inherit; }
.skill-feature { display: flex; flex-direction: column; padding: 28px; }
.skill-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.skill-icon svg { width: 26px; height: 26px; }
.skill-feature h3 { font-size: 1.5rem; margin-bottom: .25em; }
.skill-feature p { margin-bottom: 14px; }
.skill-feature .go { margin-top: auto; font-weight: 700; font-size: 1rem; color: var(--orange-deep); }
.skill-feature:hover .go { text-decoration: underline; }
.coming { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 20px 0 0; font-size: .95rem; color: var(--ink-faint); }
.coming-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.level-card { display: flex; flex-direction: column; }
.level-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.level-code { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--ink); }
.level-card ul { margin: 12px 0 14px; padding-left: 1.1em; color: var(--ink-soft); }
.level-card li { margin-bottom: 4px; }
.level-meta { font-size: .88rem; color: var(--ink-faint); margin-bottom: 16px; }
.level-card .btn { align-self: flex-start; margin-top: auto; }

/* starting guide */
.guide-grid { display: grid; gap: 20px; }
.guide-lesson h2 { margin-bottom: .3em; }
.guide-lesson > p { color: var(--ink-soft); }
.compare { display: grid; gap: 12px; margin: 20px 0; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; background: var(--paper); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 8px; }
.compare-col ul { margin: 0 0 10px; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; }
.compare-col .cc-use { color: var(--ink-soft); font-size: .95rem; margin: 0 0 10px; }
.compare-col .ex { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.mini-q { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin: 0 0 20px; background: var(--white); }
.mq-label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 6px; }
.mq-sentence { font-size: 1.15rem; font-weight: 600; margin: 0 0 12px; }
.mq-blank { display: inline-block; min-width: 2.4em; text-align: center; border-bottom: 2px solid var(--ink); color: var(--ink-faint); }
.mq-blank.filled { color: var(--green-ink); border-color: var(--green); }
.mq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mq-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 600; transition: border-color .15s ease, background .15s ease; }
.mq-opt:hover { border-color: var(--orange); background: var(--orange-tint); }
.mq-letter { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; }
.mq-opt.correct { border-color: var(--green); background: var(--green-tint); }
.mq-opt.correct .mq-letter { border-color: var(--green); background: var(--green); color: var(--white); }
.mq-opt.incorrect { border-color: var(--red); background: var(--red-tint); }
.mq-opt.incorrect .mq-letter { border-color: var(--red); background: var(--red); color: var(--white); }
.mq-feedback { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .97rem; color: var(--ink-soft); }
.mq-feedback.show { display: block; }
.mq-feedback.ok { background: var(--green-tint); border: 2px solid var(--green); }
.mq-feedback.bad { background: var(--cream-dim); border: 2px solid var(--red); }
.mq-feedback strong { color: var(--ink); }
.mq-en { display: block; margin-top: 4px; font-size: .9rem; color: var(--ink-faint); }
.note { background: var(--cream-dim); border-radius: var(--radius-md); padding: 14px 16px; font-size: .95rem; color: var(--ink-soft); margin: 0 0 20px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-direction: column; }
.trust-photo { display: flex; justify-content: center; background: var(--cream-dim); border-radius: var(--radius-md); padding: 16px 12px 0; margin-bottom: 16px; overflow: hidden; }
.trust-photo img { width: min(220px, 60vw); }
.trust h3 { font-size: 1.3rem; }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .97rem; line-height: 1.45; }
.check-list li strong { color: var(--ink); }
.check-list svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; stroke: var(--green); }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .guide-grid { grid-template-columns: 1.35fr .9fr; gap: 24px; } .card-lg { padding: 32px; } }

/* final CTA */
.cta-final { text-align: center; max-width: 720px; margin: 0 auto; padding: 36px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 32px; }
.cta-final img { margin: 0 auto 12px; border-radius: 50%; }
.cta-final p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 22px; }
.cta-final .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9E0D2; padding: 36px 0 28px; font-size: .95rem; }
.site-footer a { color: #FFD9B0; }
.site-footer a:hover { color: var(--white); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-small { margin-top: 20px; font-size: .85rem; color: #B9AE9E; }

/* ---------- Practice page ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: .3em; }
.picker { margin: 20px 0 12px; }
.picker-label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.seg-btn { text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; min-height: 64px; transition: border-color .15s ease, background .15s ease; }
.seg-btn:hover { border-color: var(--orange); }
.seg-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--cream-dim); }
.seg-btn .seg-code { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1.1; display: block; }
.seg-btn .seg-name { font-size: .88rem; color: var(--ink-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-weight: 600; }
.tab:hover:not([disabled]) { border-color: var(--orange); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.tab[disabled] { border-style: dashed; color: var(--ink-faint); cursor: not-allowed; background: transparent; }
.tab .tag { margin-left: 6px; padding: 1px 8px; font-size: .68rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; min-height: 40px; font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--orange); }
.chip[aria-pressed="true"] { background: var(--cream-dim); border-color: var(--ink); font-weight: 600; }

.stage { margin: 20px 0 48px; }
.panel { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel h2 { font-size: 1.5rem; }
.resume { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--teal-tint); border: 2px solid var(--teal); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 16px; }
.resume p { margin: 0; font-weight: 600; }
.resume-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-line { font-size: .9rem; color: var(--ink-faint); margin-top: 14px; }

.session-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: .9rem; font-weight: 600; }
.session-count { color: var(--ink-soft); }
.session-progress { height: 10px; border-radius: 99px; background: var(--cream-dim); overflow: hidden; margin-bottom: 22px; }
.session-progress-fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width .25s ease; }
.quit-link { background: none; border: none; padding: 8px 0; color: var(--ink-faint); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.practice-instruction { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.practice-prompt { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; line-height: 1.3; margin-bottom: 8px; }
.practice-sentence { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.25; margin: 4px 0 18px; }
.practice-hint { color: var(--ink-soft); font-style: italic; margin: 0 0 18px; }
.practice-q:focus { outline: none; }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 56px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 1.05rem; font-weight: 500; transition: border-color .15s ease, background .15s ease; }
.option:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-tint); }
.option .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
.option:disabled { cursor: default; }
.option.correct { border-color: var(--green); background: var(--green-tint); }
.option.correct .dot { border-color: var(--green); background: var(--green); color: var(--white); }
.option.incorrect { border-color: var(--red); background: var(--red-tint); }
.option.incorrect .dot { border-color: var(--red); background: var(--red); color: var(--white); }
.option:not(:disabled) .dot { color: transparent; }

.blank-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--cream-dim); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.blank-slot { min-width: 76px; height: 44px; border-radius: 10px; border: 2px dashed var(--ink-faint); display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--white); }
.blank-slot.filled { border-style: solid; border-color: var(--ink); background: var(--orange-tint); }
.blank-slot.ok { border-style: solid; border-color: var(--green); background: var(--green-tint); color: var(--green-ink); }
.blank-slot.no { border-style: solid; border-color: var(--red); background: var(--red-tint); color: var(--red-ink); }
.word-bank { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.word-chip { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px; min-height: 52px; font-size: 1.05rem; font-weight: 600; }
.word-chip:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-tint); }
.word-chip:disabled { opacity: .45; cursor: default; }

.error-sentence { display: flex; flex-wrap: wrap; gap: 8px; border: 2px solid var(--line); border-radius: 14px; padding: 16px; background: var(--white); }
.error-word { background: var(--cream-dim); border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 44px; font-size: 1.1rem; font-weight: 500; }
.error-word:hover:not(:disabled) { border-color: var(--orange); background: var(--orange-tint); }
.error-word:disabled { cursor: default; }
.error-word.is-answer { border-color: var(--green); background: var(--green-tint); color: var(--green-ink); }
.error-word.is-wrong-pick { border-color: var(--red); background: var(--red-tint); color: var(--red-ink); }
.error-correct-box { border: 2px solid var(--green); background: var(--green-tint); border-radius: 14px; padding: 14px 16px; margin-top: 12px; font-size: 1.1rem; font-weight: 600; }
.error-correct-box mark { background: #BFE7CE; color: var(--green-ink); padding: 1px 6px; border-radius: 6px; }
.error-correct-box .hint { display: block; margin-top: 4px; font-weight: 400; font-size: .95rem; color: var(--ink-soft); font-style: italic; }

.feedback { margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); }
.feedback.ok { background: var(--green-tint); border: 2px solid var(--green); }
.feedback.bad { background: var(--cream-dim); border: 2px solid var(--red); }
.fb-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; font-family: var(--font-head); font-size: 1.15rem; }
.feedback.ok .fb-head { color: var(--green-ink); }
.feedback.bad .fb-head { color: var(--red-ink); }
.fb-head svg { width: 22px; height: 22px; flex: 0 0 22px; }
.fb-explain { margin: 0; }
.examples { margin-top: 12px; background: rgba(255,255,255,.7); border-radius: 10px; padding: 12px 14px; }
.examples-label { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.examples ul { list-style: none; margin: 0; padding: 0; }
.examples li { margin-bottom: 6px; }
.examples li:last-child { margin-bottom: 0; }
.examples .es { font-weight: 600; display: block; }
.examples .en { color: var(--ink-soft); font-size: .92rem; display: block; }
.vocab-card { background: var(--cream-dim); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 16px; }
.vocab-word { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; line-height: 1.2; }
.vocab-en { color: var(--ink-soft); }
.next-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.summary { text-align: center; }
.summary .score { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--orange-deep); margin: 6px 0; }
.summary-topics { text-align: left; margin: 18px 0; padding: 14px 18px; background: var(--cream-dim); border-radius: var(--radius-md); }
.summary-topics h3 { font-size: 1rem; margin-bottom: 8px; }
.summary-topics ul { margin: 0; padding-left: 1.1em; }
.summary-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .summary-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; } }
.error-note { background: var(--red-tint); border: 2px solid var(--red); border-radius: var(--radius-md); padding: 16px; }

/* ---------- Simple text pages ---------- */
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose li { margin-bottom: .4em; }
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-grid img { width: min(260px, 70vw); margin: 0 auto; }
@media (min-width: 760px) { .about-grid { grid-template-columns: 1fr 260px; } }
.center-page { text-align: center; padding: 56px 0; }
.center-page img { width: 220px; margin: 0 auto 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .cta-band { display: none; } }
