/* Practice lessons: the slide player. Everything is prefixed lp- so it never clashes with site.css.
   Calm and clear: big tap targets, right/wrong shown with an icon AND a word (never colour alone). */

.lp { --ink: #101a2e; --ink2: #2b3a58; --muted: #5e6a80; --paper: #f6f5f0; --line: #e4e1d8; --navy: #1a3a6e; --navyS: #e3e9f6;
  --gold: #f2a93b; --ok: #11605c; --okS: #ddf1ee; --no: #a33a26; --noS: #fbe3de;
  --head: "Bricolage Grotesque", system-ui, sans-serif; --body: Lexend, system-ui, sans-serif;
  font-family: var(--body); color: var(--ink); max-width: 560px; margin: 0 auto; padding: 0 16px 40px; line-height: 1.5; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2 { font-family: var(--head); margin: 0; line-height: 1.15; color: inherit; }
.lp p { margin: 0; }
.lp-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 0; background: #fff; }
.lp-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 18px; flex: none; }
.lp-prog { flex: 1; height: 12px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.lp-prog i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .3s ease; }
.lp-count { font-size: 13px; color: var(--muted); min-width: 40px; text-align: right; }
.lp-card { padding: 18px 0 8px; min-height: 52vh; }
.lp-kick { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.lp-card h2 { font-size: 26px; margin-bottom: 12px; }
.lp-card h1 { font-size: 30px; margin-bottom: 10px; }
.lp-text { font-size: 17px; color: var(--ink2); }
.lp-ex { margin-top: 16px; background: var(--navyS); border-radius: 16px; padding: 14px 16px; font-size: 18px; font-weight: 500; color: var(--navy); }
.lp-ex small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.lp-opts { display: grid; gap: 10px; margin-top: 14px; }
.lp-opt { font: inherit; font-size: 17px; text-align: left; min-height: 56px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.lp-opt:focus-visible, .lp-btn:focus-visible, .lp-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lp-opt.right { border-color: var(--ok); background: var(--okS); }
.lp-opt.right::before { content: "✓"; font-weight: 700; color: var(--ok); }
.lp-opt.wrong { border-color: var(--no); background: var(--noS); }
.lp-opt.wrong::before { content: "✗"; font-weight: 700; color: var(--no); }
.lp-opt[disabled] { cursor: default; }
.lp-gap { font-size: 21px; font-weight: 500; }
.lp-gap span { display: inline-block; min-width: 80px; border-bottom: 3px solid var(--gold); text-align: center; color: var(--navy); }
.lp-line { min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 2px dashed var(--line); border-radius: 16px; margin-top: 14px; }
.lp-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-tile { font: inherit; font-size: 17px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.lp-line .lp-tile { border-color: var(--navy); background: var(--navyS); }
.lp-say { font-size: 22px; font-weight: 500; color: var(--navy); background: var(--navyS); border-radius: 16px; padding: 16px; margin-top: 8px; }
.lp-rec { display: grid; gap: 10px; margin-top: 16px; }
.lp-rec audio { width: 100%; }
.lp-feedback { min-height: 28px; margin: 12px 0; border-radius: 14px; font-size: 15.5px; }
.lp-feedback.ok { background: var(--okS); color: var(--ok); padding: 12px 14px; }
.lp-feedback.no { background: var(--noS); color: var(--no); padding: 12px 14px; }
.lp-feedback b { display: block; font-size: 17px; }
.lp-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.lp-btn { font: inherit; font-weight: 600; font-size: 17px; min-height: 54px; border-radius: 16px; border: 0; background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.lp-btn[disabled] { background: #c9cfdb; cursor: default; }
.lp-btn.lp-o { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.lp-btn.lp-wa { background: #1f7a45; }
.lp-link { background: none; border: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px; }
.lp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.lp-meta span { background: var(--paper); border-radius: 99px; padding: 5px 12px; font-size: 13.5px; color: var(--ink2); }
.lp-stars { font-size: 44px; letter-spacing: 6px; color: var(--gold); margin: 6px 0 10px; }
.lp-stars .off { color: var(--line); }
.lp-phrases { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-phrases li { background: var(--navyS); color: var(--navy); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.lp-box { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 16px; display: grid; gap: 10px; }
.lp-box h3 { font-family: var(--head); font-size: 19px; margin: 0; }
.lp-box input[type=text], .lp-box input[type=tel] { font: 700 19px/1.3 var(--head); padding: 8px 2px; border: 0; border-bottom: 3px solid var(--gold, #f2a93b); border-radius: 0; background: transparent; width: 100%; outline: none; }
.lp-box input[type=text]:focus, .lp-box input[type=tel]:focus { border-bottom-color: var(--navy); }
.lp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink2); }
.lp-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.lp-small { font-size: 13px; color: var(--muted); }
.lp-hp { position: absolute; left: -9999px; }
.lp-cert { border: 6px double var(--gold); border-radius: 18px; padding: 22px; text-align: center; background: #fffdf7; }
.lp-cert h3 { font-family: var(--head); font-size: 22px; margin: 4px 0; }
.lp-cert b { display: block; font-family: var(--head); font-size: 28px; color: var(--navy); margin: 8px 0; }
.lp-body { margin: 0; background: #fff; }
.lp-preview { margin: 0; background: #fbe8c7; color: #8a5a12; font: 600 12.5px system-ui, sans-serif; text-align: center; padding: 6px; }
.lp-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lp-card-link { display: grid; gap: 4px; border: 1px solid #e4e1d8; border-radius: 16px; padding: 16px; text-decoration: none; color: #101a2e; background: #fff; }
.lp-card-link small { color: #1a3a6e; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.lp-card-link b { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 19px; }
.lp-card-link span { color: #2b3a58; font-size: 14px; }
.lp-card-link em { font-style: normal; font-weight: 600; color: #1a3a6e; }
@media (prefers-reduced-motion: reduce) { .lp-prog i { transition: none; } }
@media print {
  body * { visibility: hidden; }
  .lp-cert, .lp-cert * { visibility: visible; }
  .lp-cert { position: absolute; left: 0; top: 0; right: 0; }
}
.lp-mt { margin-top: 14px; }
