/* Gift of English. Layout idea: one loud sunlit hero where every greeting becomes "Hello", then a calm single column built for small phones. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --sun: #ffc928;
  --ink: #101b3a;
  --paper: #ffffff;
  --sky: #0a7f4f;
  --wash: #eef2ff;
  --muted: #4c577a;
  --line: #d9def0;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Arial Black", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
body.home { padding-bottom: 5.5rem; }
a { color: var(--sky); }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.125rem; }

header.site { background: var(--sun); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 0.625rem 1.25rem; align-items: center; justify-content: space-between; padding-top: 1.125rem; padding-bottom: 0.875rem; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 7.5vw, 2.5rem); line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 0.5rem; }
.brand { flex-wrap: nowrap; white-space: nowrap; font-size: clamp(1.375rem, 6.6vw, 2.5rem); }
.brand .domain { font-family: var(--font-body, inherit); font-weight: 700; font-size: clamp(0.75rem, 3.4vw, 1.0625rem); letter-spacing: 0; color: var(--ink); opacity: 0.78; align-self: center; margin-left: 0.15rem; }
.brand::before { content: ""; flex: none; width: 1.05em; height: 1.05em; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cpath%20d%3D%22M24%2013c-3-7-12-8-13-3-1%204%206%205%2013%203z%20M24%2013c3-7%2012-8%2013-3%201%204-6%205-13%203z%22%20fill%3D%22none%22%20stroke%3D%22%23101b3a%22%20stroke-width%3D%223.2%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%225%22%20y%3D%2213%22%20width%3D%2238%22%20height%3D%2210%22%20rx%3D%222.5%22%20fill%3D%22%23101b3a%22/%3E%3Crect%20x%3D%228%22%20y%3D%2223%22%20width%3D%2232%22%20height%3D%2220%22%20rx%3D%222.5%22%20fill%3D%22%23101b3a%22/%3E%3Crect%20x%3D%2221%22%20y%3D%2213%22%20width%3D%226%22%20height%3D%2230%22%20fill%3D%22%23ffffff%22/%3E%3C/svg%3E") center / contain no-repeat; }
nav.site { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9375rem; font-weight: 700; }
nav.site a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
nav.site a:hover { border-bottom-color: var(--ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 5.5vw, 2.25rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
section { padding: 2.75rem 0; display: flex; flex-direction: column; gap: 1rem; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.lead { font-size: 1.1875rem; max-width: 34rem; }

/* Hero: the one loud place. A greeting in any language is answered with "Hello." */
.hero { background: radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.42) 0 6.5rem, rgba(255, 255, 255, 0.2) 6.5rem 11rem, rgba(255, 255, 255, 0.09) 11rem 16rem, transparent 16rem), var(--sun); border-radius: 0 0 2rem 2rem; }
.hero .wrap { padding-top: 1rem; padding-bottom: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.625rem; align-items: stretch; }
.bubble { font-family: var(--font-display); font-weight: 800; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bubble.from { background: #ffffff; color: var(--ink); border-radius: 1.75rem 1.75rem 1.75rem 0.5rem; padding: 0.5rem 0.625rem; gap: 0.125rem; box-shadow: 0 6px 0 rgba(16, 27, 58, 0.14); transition: opacity 0.18s ease, transform 0.18s ease; transform-origin: left bottom; }
.bubble.from bdi { display: block; width: 100%; white-space: nowrap; overflow: hidden; font-size: clamp(1.75rem, 9vw, 4rem); line-height: 1.15; }
.bubble.from.out { opacity: 0; transform: scale(0.92) translateY(0.25rem); }
.bubble-lang { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.bubble.to { background: var(--ink); color: var(--sun); border-radius: 1.75rem 1.75rem 0.5rem 1.75rem; padding: 0.2em 0.2em 0.26em; font-size: clamp(2.75rem, 13vw, 6rem); line-height: 0.95; letter-spacing: -0.05em; transform: rotate(-2deg); box-shadow: 0 6px 0 rgba(16, 27, 58, 0.25); }
.hero h1 { font-size: clamp(1.75rem, 7vw, 2.75rem); line-height: 1.08; }
.hero .lead { color: var(--ink); }

.btn { display: inline-block; background: var(--sky); color: #ffffff; text-decoration: none; font-weight: 700; padding: 0.8125rem 1.25rem; border-radius: 999px; align-self: flex-start; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn.big { font-size: 1.25rem; padding: 1.0625rem 1.875rem; box-shadow: 0 4px 0 var(--ink); transition: transform 0.1s ease, box-shadow 0.1s ease; }
.btn.big:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.hero .btn { background: var(--ink); box-shadow: 0 4px 0 rgba(16, 27, 58, 0.35); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.start { display: flex; flex-direction: column; gap: 0.125rem; align-self: stretch; text-align: center; border-radius: 1rem; }
.btn.start .go { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.15; }
.btn.start .sub { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.facts li { background: rgba(255, 255, 255, 0.55); border-radius: 0.875rem; padding: 0.625rem 0.25rem 0.5rem; text-align: center; font-size: 0.75rem; font-weight: 700; line-height: 1.25; display: flex; flex-direction: column; gap: 0.125rem; }
.facts strong { font-family: var(--font-display); font-size: clamp(1.5rem, 7vw, 2.25rem); line-height: 1; font-variant-numeric: tabular-nums; }

[hidden] { display: none !important; }

/* Sample player */
.player { background: var(--ink); color: #ffffff; border-radius: 1.5rem; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; box-shadow: 0 0.5rem 0 var(--sun); }
.player-top { display: flex; align-items: center; gap: 1rem; }
.play { flex: none; width: 4.75rem; height: 4.75rem; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255, 201, 40, 0.6); animation: play-ring 1.8s ease-out infinite; }
.play svg { width: 2.25rem; height: 2.25rem; fill: currentColor; }
.play .i-pause, .player.playing .play .i-play { display: none; }
.player.playing .play .i-pause { display: block; }
.player.playing .play { animation: none; }
@keyframes play-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 40, 0.6); } 70%, 100% { box-shadow: 0 0 0 1.125rem rgba(255, 201, 40, 0); } }
.player-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.player-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.player-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 6.5vw, 2.125rem); line-height: 1.1; }
.eq { flex: none; display: flex; align-items: flex-end; gap: 0.25rem; height: 2.25rem; }
.eq span { width: 0.3125rem; height: 30%; background: var(--sun); border-radius: 999px; opacity: 0.35; }
.player.playing .eq span { opacity: 1; animation: eq 0.9s ease-in-out infinite; }
.player.playing .eq span:nth-child(2) { animation-delay: -0.3s; } .player.playing .eq span:nth-child(3) { animation-delay: -0.6s; }
.player.playing .eq span:nth-child(4) { animation-delay: -0.15s; } .player.playing .eq span:nth-child(5) { animation-delay: -0.45s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.player-track { height: 0.875rem; background: rgba(255, 255, 255, 0.18); border-radius: 999px; overflow: hidden; cursor: pointer; }
.player-track span { display: block; height: 100%; width: 0; background: var(--sun); border-radius: 999px; }
.player-track:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.player-time { display: flex; justify-content: space-between; font-size: 0.8125rem; color: #c3cbe6; font-variant-numeric: tabular-nums; }
.cap { background: rgba(255, 255, 255, 0.08); border-radius: 1rem; padding: 0.875rem 1rem; min-height: 8.75rem; display: flex; flex-direction: column; gap: 0.25rem; justify-content: center; align-items: center; text-align: center; }
.cap-who { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #c3cbe6; }
.cap-a { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; color: #ffffff; }
.cap-b { font-size: 1.0625rem; line-height: 1.3; color: #c3cbe6; }
.cap.is-pops .cap-who, .cap.is-you .cap-who { color: var(--sun); }
.cap.is-pops .cap-a { font-weight: 400; color: #c3cbe6; }
.cap.is-pops .cap-b { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; line-height: 1.1; color: var(--sun); }
.cap.is-you { background: var(--sun); }
.cap.is-you .cap-who, .cap.is-you .cap-a, .cap.is-you .cap-b { color: var(--ink); }
.player-end { font-weight: 700; color: var(--sun); }
.player audio { display: none; width: 100%; }
.player.failed audio { display: block; }

/* Cards, path */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.cards li { background: var(--wash); border-radius: 1rem; padding: 1.125rem; display: flex; flex-direction: column; gap: 0.375rem; }
.note { background: var(--sun); border-radius: 0.75rem; padding: 0.875rem 1rem; font-weight: 700; }
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.path li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.875rem; padding-bottom: 1.125rem; position: relative; }
.path li::before { content: ""; position: absolute; left: 1.1875rem; top: 2.5rem; bottom: 0; width: 2px; background: var(--line); }
.path li:last-child::before { display: none; }
.path .n { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--wash); color: var(--ink); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.path li.goal .n { background: var(--sun); box-shadow: 0 0 0 3px var(--ink); }
.path p { color: var(--muted); font-size: 0.9375rem; }
.path .range { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.125rem; }

/* Shared lists (language pages) */
.steps, .lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps { gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.875rem; }
.steps li::before { content: counter(step); width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sun); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lessons li { display: flex; gap: 0.75rem; justify-content: space-between; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.lessons li:first-child { border-top: 1px solid var(--line); }
.lessons .n { font-family: var(--font-display); font-weight: 800; color: var(--sky); min-width: 1.75rem; font-variant-numeric: tabular-nums; }
.lessons .t { flex: 1; font-weight: 700; }
.tag { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }

.sample { background: var(--wash); border-radius: 1rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.sample-t { font-weight: 700; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.sample audio { width: 100%; }

/* Languages */
.langgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.langgrid li { border: 1px solid var(--line); border-radius: 0.625rem; padding: 0.5rem 0.625rem; display: flex; flex-direction: column; gap: 0.0625rem; min-width: 0; overflow-wrap: anywhere; }
.langgrid a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.langgrid li:has(a) { border-color: var(--ink); background: var(--sun); }
.native { font-weight: 700; }
.langgrid .native { font-size: 1rem; line-height: 1.3; }
.langgrid .en { color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
.langgrid li:has(a) .en { color: var(--ink); }
.langgrid li.soon { background: var(--wash); border-color: var(--line); }
.langgrid li.soon .en { color: var(--muted); }
@media (min-width: 34rem) { .langgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.langsearch { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; font-size: 0.9375rem; max-width: 32rem; }
.langsearch small { font-weight: 400; color: var(--muted); }
.opennow { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin-bottom: -0.5rem; }
.seeall { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; text-align: center; text-decoration: none; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 1rem; padding: 0.875rem 1rem; box-shadow: 0 4px 0 var(--ink); }
.seeall:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.seeall-q { font-size: 0.9375rem; font-weight: 700; }
.seeall-a { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
#yours { display: flex; flex-direction: column; gap: 0.5rem; }

/* Policy pages */
.policy section { padding: 1.75rem 0; gap: 0.75rem; }
.policy h1 { font-size: clamp(2rem, 8vw, 3rem); }
.policy h2 { font-size: 1.375rem; }
.policy h3 { font-size: 1.0625rem; margin-top: 0.5rem; }
.policy p, .policy li { max-width: 40rem; }
.legal { font-size: 0.9375rem; line-height: 1.55; font-weight: 700; }
.plain { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.375rem; }

.todo { background: #ffe58a; padding: 0 0.25em; font-weight: 700; border-radius: 0.25rem; }
footer.site p { line-height: 1.9; }

/* Cookie consent */
.consent { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 50; max-width: 34rem; margin: 0 auto; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 1rem; padding: 1rem; box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.5; }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.consent-btns button { font: inherit; font-weight: 700; padding: 0.75rem 0.5rem; border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.consent-btns.one { grid-template-columns: 1fr; }
.consent-open .sticky { display: none; }

/* Forms */
form.contact { display: flex; flex-direction: column; gap: 0.875rem; max-width: 32rem; }
form.contact label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 700; font-size: 0.9375rem; }
form.contact label small { font-weight: 400; color: var(--muted); }
form.contact input, form.contact textarea, .langsearch input { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0.625rem; padding: 0.625rem 0.75rem; width: 100%; }
form.contact textarea { min-height: 8rem; resize: vertical; }
form.contact input:focus-visible, form.contact textarea:focus-visible, .langsearch input:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }

footer.site { background: var(--ink); color: #c3cbe6; font-size: 0.875rem; }
footer.site a { color: #ffffff; }
footer.site .wrap { padding-top: 1.5rem; padding-bottom: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }

.sticky { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; background: var(--sky); color: #ffffff; text-align: center; text-decoration: none; font-weight: 700; font-size: 1.125rem; padding: 0.875rem 1rem; border-radius: 999px; box-shadow: 0 4px 0 var(--ink); max-width: 28rem; margin: 0 auto; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes ring { 0% { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(10, 127, 79, 0.55); } 70%, 100% { box-shadow: 0 4px 0 var(--ink), 0 0 0 1rem rgba(10, 127, 79, 0); } }
@keyframes ring-dark { 0% { box-shadow: 0 4px 0 rgba(16, 27, 58, 0.35), 0 0 0 0 rgba(16, 27, 58, 0.5); } 70%, 100% { box-shadow: 0 4px 0 rgba(16, 27, 58, 0.35), 0 0 0 1rem rgba(16, 27, 58, 0); } }
.btn.big { animation: pulse 1.6s ease-in-out infinite, ring 1.6s ease-out infinite; }
.hero .btn.big { animation: pulse 1.6s ease-in-out infinite, ring-dark 1.6s ease-out infinite; }
/* Every "Start the Course" button is green, the hero one included */
.hero .btn.start { background: var(--sky); box-shadow: 0 4px 0 var(--ink); }
.hero .btn.big.start { animation: pulse 1.6s ease-in-out infinite, ring 1.6s ease-out infinite; }
.btn.big:hover, .btn.big:active { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .btn.big, .hero .btn.big, .hero .btn.big.start, .play, .player.playing .eq span { animation: none; }  html { scroll-behavior: auto; } .bubble.from, .btn.big { transition: none; } }

/* Lesson list and player on language pages */
details.part { border-top: 1px solid var(--line); }
details.part:last-of-type { border-bottom: 1px solid var(--line); }
details.part summary { cursor: pointer; list-style: none; padding: 0.875rem 0; display: flex; flex-direction: column; gap: 0.125rem; }
details.part summary::-webkit-details-marker { display: none; }
details.part summary .ptitle { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }
details.part summary .ptitle::after { content: " +"; color: var(--sky); }
details.part[open] summary .ptitle::after { content: " \2212"; }
details.part summary .range { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
details.part .lessons { margin-bottom: 0.75rem; }
.lessons li.ready { cursor: pointer; }
.lessons li.ready .tag { color: #ffffff; background: var(--sky); font-weight: 700; padding: 0.125rem 0.625rem; border-radius: 999px; }
.lessons li.playing .t { color: var(--sky); }
.lessons li.ready.done .tag { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 2px var(--sky); }
.lessons li.done .t::after { content: ""; }
.lplayer { background: var(--ink); border-radius: 1.25rem; padding: 0.75rem; margin: 1rem 0; box-shadow: 0 0.5rem 0 var(--sun); scroll-margin-top: 1rem; }
.lplayer-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 0.75rem; overflow: hidden; }
.lplayer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lplayer-now { color: #ffffff; font-weight: 700; margin-top: 0.625rem; }
.lplayer-links { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.lplayer-links a { color: var(--sun); font-weight: 700; }
.lplayer-next { background: var(--sun); color: var(--ink); border: 0; border-radius: 999px; padding: 0.5rem 1rem; font-weight: 700; font-size: 0.9375rem; cursor: pointer; }

/* Lessons area stands out: hint callout and each part as a card */
.lesson-hint { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--sun); color: var(--ink); border-radius: 1rem; padding: 0.875rem 1rem; margin: 0.5rem 0 1rem; box-shadow: 0 4px 0 var(--ink); }
.lesson-hint svg { flex: none; width: 1.75rem; height: 1.75rem; padding: 0.375rem; border-radius: 50%; background: var(--ink); fill: var(--sun); }
.lesson-hint strong { display: block; font-family: var(--font-display); font-size: 1.125rem; }
details.part { border: 2px solid var(--line); border-radius: 1rem; padding: 0 1rem; margin-bottom: 0.75rem; background: #ffffff; }
details.part:last-of-type { border-bottom: 2px solid var(--line); }
details.part[open] { border-color: var(--sky); box-shadow: 0 4px 0 var(--sky); }
details.part .lessons li:last-child { border-bottom: 0; }
.lessons li .tag { white-space: nowrap; background: var(--wash); border-radius: 999px; padding: 0.125rem 0.625rem; }

/* Certificate page */
.progress { height: 0.75rem; background: var(--wash); border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.progress span { display: block; height: 100%; width: 0; background: var(--sky); border-radius: 999px; }
.quiz { background: var(--ink); color: #ffffff; border-radius: 1.25rem; padding: 1.25rem; box-shadow: 0 0.5rem 0 var(--sun); display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-count { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.quiz-en { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1.1; }
.quiz-ask { color: #c3cbe6; font-weight: 700; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; }
.quiz-help { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid #c3cbe6; background: transparent; color: #ffffff; font: inherit; font-weight: 800; font-size: 1.125rem; cursor: pointer; }
.quiz-dots { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.quiz-dots span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #3a4670; }
.quiz-dots span.did { background: var(--sky); }
.quiz-dots span.now { background: var(--sun); transform: scale(1.3); }
.quiz-hear { display: flex; align-items: center; gap: 1rem; }
.quiz-play { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0.3rem 0 #b98d00; }
.quiz-play svg { width: 2.25rem; height: 2.25rem; fill: currentColor; }
.quiz-play:active { transform: translateY(0.2rem); box-shadow: 0 0.1rem 0 #b98d00; }
.quiz-opts { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-opt { display: flex; align-items: center; gap: 0.75rem; text-align: left; font: inherit; font-weight: 700; color: var(--ink); background: #ffffff; border: 0; border-radius: 0.875rem; padding: 0.875rem 1rem; min-height: 3.75rem; cursor: pointer; }
.quiz-shape { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #eef1f8; display: grid; place-items: center; font-size: 1.125rem; color: var(--ink); }
.quiz-txt { flex: 1; }
.quiz-spk { flex: none; width: 1.75rem; height: 1.75rem; color: #5b6690; }
.quiz-spk svg { width: 100%; height: 100%; fill: currentColor; }
.quiz-opt.on { background: var(--sun); box-shadow: inset 0 0 0 3px var(--ink); }
.quiz-opt.on .quiz-shape { background: var(--ink); color: var(--sun); }
.quiz-opt.on .quiz-spk { color: var(--ink); }
.quiz .btn { align-self: flex-end; background: var(--sky); }
.quiz-next { font-size: 1.125rem; padding: 0.9rem 1.5rem; }
.quiz .btn:disabled { opacity: 0.45; cursor: default; }
.say-btn { vertical-align: middle; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; margin-right: 0.35rem; }
.say-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.result-msg { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.25; }
.cert-img { display: block; width: 100%; height: auto; border-radius: 0.5rem; box-shadow: 0 0.5rem 1.5rem rgba(16, 27, 58, 0.18); margin: 0.5rem 0 1rem; }
.cert-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.cert-actions .btn.ghost { align-self: stretch; text-align: center; }
.cert-print { display: none; }
@media print {
  @page { size: landscape; margin: 0; }
  body.cert-page > *:not(.cert-print) { display: none !important; }
  body.cert-page .cert-print { display: block; }
  body.cert-page .cert-print img { width: 100%; height: auto; }
}
.verify-out { border-radius: 1rem; padding: 1rem; margin: 1rem 0; font-size: 1.0625rem; }
.verify-out.ok { background: #e5f4e4; box-shadow: inset 0 0 0 2px var(--sky); }
.verify-out.no { background: #fbebeb; box-shadow: inset 0 0 0 2px #b42318; }

.fine { font-size: 0.875rem; line-height: 1.45; color: var(--ink); opacity: 0.85; margin-top: 0.75rem; }
.fine a { color: inherit; }

/* Lesson links (Nov 26): a small share pill on each published lesson, and a highlight when a visitor arrives by /es/leccion-N */
.lessons li .t { flex: 1 1 auto; }
.lshare { display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: transparent; color: var(--sky); font: inherit; font-size: 0.8125rem; font-weight: 700; padding: 0.125rem 0.5rem; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--line); }
.lshare svg { width: 1rem; height: 1rem; fill: currentColor; }
.lshare:hover, .lshare:focus-visible { box-shadow: inset 0 0 0 1.5px var(--sky); outline: none; }
.lshare.ok { background: var(--sky); color: #ffffff; box-shadow: none; }
.lessons li.linked { background: var(--wash); border-radius: 0.75rem; padding-left: 0.5rem; padding-right: 0.5rem; }
@media (max-width: 380px) { .lshare span { display: none; } }
