/* Language Casa site layout. Tokens and lc components live in language-casa.css (do not edit that file). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-size: 16px; line-height: 24px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--heading); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a.lc-btn, a.lc-logo { text-decoration: none; }
.lc-logo-c { font-size: 1.08em; }
.lc-btn { justify-content: center; text-align: center; }
.lc-headline-xl { font-size: clamp(30px, 9vw, 72px); overflow-wrap: break-word; }
.lc-headline-l { font-size: clamp(38px, 9vw, 56px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }

/* Layout */
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--space-4); }
.section { display: flex; flex-direction: column; gap: var(--space-5); margin-block: var(--space-8); }
.lead { max-width: 56ch; }
.card { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); }
.paper {
  --paper-line: color-mix(in srgb, var(--heading) 14%, transparent);
  background-color: var(--surface);
  background-image: linear-gradient(var(--paper-line) 1px, transparent 1px), linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.actions { display: flex; flex-direction: column; gap: var(--space-3); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-4); }
.site-header .lc-logo { font-size: clamp(22px, 6vw, 32px); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--control-border) solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--heading); cursor: pointer; }
.theme-toggle:hover { border-color: var(--heading); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }
@media (max-width: 479px) { .header-cta { display: none; } }
.site-footer { margin-top: var(--space-8); padding-block: var(--space-6); background: var(--surface); color: var(--text-muted); font-size: 14px; line-height: 20px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5) var(--space-8); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.site-footer .lc-logo { font-size: 24px; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.site-footer li a { display: inline-block; padding-block: 6px; }

/* Hero */
.hero { display: grid; gap: var(--space-6); align-items: center; padding-block: var(--space-5) 0; }
.hero-text { display: flex; flex-direction: column; gap: var(--space-5); }
.tags { display: flex; gap: var(--space-2); }
.hero-cta { font-size: 20px; padding: 18px 36px; min-height: 64px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-cta { animation: none; } }
.hero-art { position: relative; width: min(100%, 360px); height: 360px; margin-inline: auto; display: grid; place-items: center; padding-bottom: 40px; }
.hero-art .lc-avatar { width: 200px; height: 200px; font-size: 104px; }
.hero-art .lc-box { position: absolute; }
.hero-art .hello { top: 12px; left: 0; }
.hero-art .hola { top: 64px; right: 0; }
.hero-art .note { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) rotate(var(--tilt-left)); white-space: nowrap; color: var(--heading); }
.hero-art .note-tr { display: block; margin-top: 4px; font-size: 0.75em; text-align: center; color: var(--text-muted); }

/* Goals */
.goals { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius-md); }

/* Stats */
.stats-title { font-size: 22px; line-height: 28px; }
.stats { list-style: none; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stats li { display: flex; align-items: center; gap: var(--space-4); }
.stat-icon { font-size: 44px; line-height: 1; }
.stat-label { display: block; color: var(--text-muted); }
.stat-num { display: block; font: 700 36px/1.1 var(--font-display); color: var(--heading); }

/* Trial lesson steps */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface); border-radius: var(--radius-md); padding: var(--space-5); }
.steps li::before { content: counter(step); font: 700 44px/1 var(--font-display); color: var(--heading); }

/* Prices */
.prices { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prices .lc-price { width: auto; }
.prices .star { font-size: 0.6em; vertical-align: super; }
.refund { font-weight: 600; color: var(--heading); }
.prices .lc-btn { margin-top: auto; align-self: flex-start; }

/* Teachers */
.teachers { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); }
.teacher { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.teacher .lc-photo-inner { width: 220px; height: 260px; }
.teacher figcaption { display: flex; flex-direction: column; gap: var(--space-1); }

/* Reviews */
.reviews { columns: 3 280px; column-gap: var(--space-5); }
.review { display: flex; flex-direction: column; gap: var(--space-4); break-inside: avoid; margin-bottom: var(--space-5); }
.review blockquote { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq details { background: var(--surface); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; padding: var(--space-4) var(--space-5); font-size: 18px; line-height: 28px; font-weight: 600; }
.faq details p { padding: 0 var(--space-5) var(--space-4); }

/* Final call to action */
.cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; padding: var(--space-7) var(--space-5); }
.cta .actions { justify-content: center; }

/* Level test */
.test { max-width: 720px; padding-block: var(--space-5) 0; }
.test > section { display: flex; flex-direction: column; gap: var(--space-5); }
.test progress { width: 100%; height: 8px; accent-color: var(--cta); }
.test form { display: flex; flex-direction: column; gap: var(--space-5); }
.test fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-text { padding: 0; font: 600 22px/30px var(--font-sans); }
.q-text:focus { outline: none; }
.blank { display: inline-block; min-width: 3.5em; border-bottom: 2px solid currentColor; }
.options { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.option { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-3) var(--space-4); background: var(--surface); border: var(--control-border) solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; line-height: 24px; }
.option:hover, .option:has(:checked) { border-color: var(--heading); }
.option:has(:checked) { box-shadow: var(--shadow-sticker); }
.option:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--cta); }
.messenger { display: flex; flex-direction: column; gap: var(--space-3); }
.consent { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 14px; line-height: 20px; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--cta); }
.result-score { font: 700 44px/1 var(--font-display); color: var(--heading); }
.result-level { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); font-size: 22px; line-height: 28px; font-weight: 600; }
.result-level .lc-box { font-size: 28px; line-height: 32px; }

/* Legal pages */
.legal { max-width: 760px; padding-block: var(--space-6) 0; }
.legal h1 { font: 700 clamp(30px, 7vw, 44px)/1.1 var(--font-display); color: var(--heading); margin-bottom: var(--space-5); }
.legal h2 { font: 600 22px/28px var(--font-sans); margin: var(--space-6) 0 var(--space-3); }
.legal p, .legal ul { margin-bottom: var(--space-3); }
.legal ul { padding-left: var(--space-5); }
.legal a { overflow-wrap: anywhere; }

@media (min-width: 600px) {
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .test .actions .lc-btn, .test form .lc-btn { align-self: flex-start; }
}

@media (min-width: 900px) {
  .section { margin-block: var(--space-9); }
  .hero { grid-template-columns: 1.4fr 1fr; padding-top: var(--space-7); }
  .hero-art { height: 460px; }
  .hero-art .lc-avatar { width: 280px; height: 280px; font-size: 145px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
