/* LærNorsk – main stylesheet */
:root {
  --navy: #0b2a4a;
  --navy-2: #12406e;
  --red: #ba0c2f;
  --red-2: #d8243f;
  --blue: #00205b;
  --sky: #eaf2fb;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #dde5ef;
  --bg: #f7f9fc;
  --white: #fff;
  --ok: #1d8a4e;
  --bad: #c62839;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(11, 42, 74, .08);
  --a1: #2e9e6b; --a2: #2d7dd2; --b1: #8d5cd6; --b2: #d9782d; --c1: #c0264b;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 .8em; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
h3 { font-size: 1.15rem; margin: .3em 0 .4em; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2rem); }
.center { text-align: center; }
.section { padding: 2.5rem 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 2px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.main-nav { flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; white-space: nowrap; }
.main-nav a { display: block; padding: .5rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.main-nav a:hover { background: var(--sky); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--navy); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: .4rem; min-width: 170px; }
.lang-switch a { display: block; padding: .45rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lang-switch a:hover { background: var(--sky); }
.lang-switch a[aria-current] { font-weight: 700; color: var(--red); }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d5a96 100%); color: #fff; padding: 3.5rem 0; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: #ffb3c0; margin: 0; }
.page-head .eyebrow { color: var(--red); }
.lead { font-size: 1.15rem; max-width: 60ch; }
.hero .lead { color: #dbe7f5; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .75rem 1.3rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.1rem; }

/* page head */
.page-head { background: linear-gradient(180deg, var(--sky), var(--bg)); padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.crumbs a { color: var(--muted); }

/* cards + grids */
.grid { display: grid; gap: 1.2rem; }
.features { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.levels { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.topics { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sounds { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,42,74,.13); }
.card p { margin: .2rem 0 .6rem; color: var(--muted); }
.feature .icon { font-size: 2rem; }
.more { font-weight: 700; color: var(--red); }
.meta { font-size: .88rem; font-weight: 600; color: var(--navy-2) !important; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .03em; }
.badge-lg { font-size: 1.1rem; padding: .3rem .9rem; }
.level-card { border-top: 5px solid var(--navy); }
.lvl-a1 .badge, .level-card.lvl-a1 .badge { background: var(--a1); } .level-card.lvl-a1 { border-top-color: var(--a1); }
.lvl-a2 .badge, .level-card.lvl-a2 .badge { background: var(--a2); } .level-card.lvl-a2 { border-top-color: var(--a2); }
.lvl-b1 .badge, .level-card.lvl-b1 .badge { background: var(--b1); } .level-card.lvl-b1 { border-top-color: var(--b1); }
.lvl-b2 .badge, .level-card.lvl-b2 .badge { background: var(--b2); } .level-card.lvl-b2 { border-top-color: var(--b2); }
.notice { background: #fff8e6; border: 1px solid #f3dca0; padding: .8rem 1rem; border-radius: 12px; color: #6b5310; }
.alert { background: #fdecee; border: 1px solid #f3b9c1; color: var(--bad); padding: .8rem 1rem; border-radius: 12px; font-weight: 600; }
.success { background: #e8f6ee; border: 1px solid #a9dcbf; color: var(--ok); padding: 1rem; border-radius: 12px; font-weight: 700; }

/* rules + examples */
.rules { padding-left: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem .9rem 3.2rem; margin-bottom: .7rem; }
.rules li::before { content: counter(r); position: absolute; left: 1rem; top: .85rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.examples, .wordlist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.wordlist { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.examples li, .wordlist li { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
.examples li > div { display: flex; flex-direction: column; }
.no { font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.tr { color: var(--muted); font-size: .95rem; }
.wordlist .tr::before { content: "— "; }
.say { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--sky); color: var(--navy); cursor: pointer; font-size: .9rem; display: grid; place-items: center; transition: background .15s; }
.say:hover { background: #d3e4f7; }
.say.playing { background: var(--red); color: #fff; }
.say[disabled] { opacity: .4; cursor: not-allowed; }
.sound .letter { font-size: 2.6rem; font-weight: 800; color: var(--red); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.chips li { display: flex; align-items: center; gap: .4rem; background: var(--bg); border-radius: 30px; padding: .2rem .8rem .2rem .2rem; font-weight: 600; }
.chips .say { width: 2rem; height: 2rem; }

/* quiz */
.quiz fieldset { margin: 0 0 1rem; }
.quiz legend { font-weight: 700; font-size: 1.15rem; color: var(--navy); padding: 0 .3rem; }
.qn { color: var(--red); }
.options { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label { padding: .6rem 1.2rem; border: 2px solid var(--line); border-radius: 30px; cursor: pointer; font-weight: 600; background: #fff; }
.options label:hover { border-color: var(--navy-2); }
.options input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.options input:focus-visible + label { outline: 3px solid var(--red-2); outline-offset: 2px; }
.score { text-align: center; border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; color: #fff; }
.score.good { background: linear-gradient(135deg, var(--ok), #26b06a); }
.score.meh { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.score .label { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; opacity: .85; }
.score .num { display: block; font-size: 3rem; font-weight: 800; }
.score .pct { font-weight: 700; }
.review { padding-left: 1.2rem; }
.review li { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .7rem; }
.review li.bad { border-left-color: var(--bad); }
.review .prompt { margin: 0; font-weight: 700; }
.review .verdict { margin: .2rem 0 0; }
.review li.ok .verdict { color: var(--ok); }
.review li.bad .verdict { color: var(--bad); }

/* book */
.book-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.book-cover { border-radius: 8px; box-shadow: 0 18px 40px rgba(11,42,74,.25); }
.price { font-size: 1.2rem; }
.order-form { display: grid; gap: .4rem; max-width: 460px; }
.order-form input[type=text], .order-form input[type=email] { padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; font: inherit; }
.order-form input:focus { border-color: var(--navy-2); outline: none; }
.order-form label { font-weight: 600; }
.formats { border: 0; padding: 0; margin: .5rem 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.formats legend { font-weight: 600; margin-bottom: .3rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.2rem 2.6rem; }
.toc li { padding: .3rem 0; }
.big404 { font-size: 6rem; font-weight: 900; color: var(--red); margin: 0; line-height: 1; }

/* footer */
.site-footer { background: var(--navy); color: #c9d6e6; margin-top: 3rem; padding: 2.2rem 0 1rem; }
.site-footer strong { color: #fff; font-size: 1.2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-langs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding: 0; margin: 0; }
.footer-langs a { color: #c9d6e6; text-decoration: none; }
.footer-langs a:hover { color: #fff; text-decoration: underline; }
.copy { font-size: .85rem; opacity: .7; margin-top: 1.5rem; }

@media (max-width: 860px) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-img { max-width: 340px; margin: 0 auto; }
  .book-cover { max-width: 220px; }
  .header-inner { flex-wrap: wrap; gap: .4rem 1rem; padding: .5rem 0; }
  .main-nav { order: 3; flex-basis: 100%; }
  .lang-switch { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== NorskGrammatikk redesign ===== */
:root { --navy:#061d36; --navy-2:#0e3a66; --red:#e0263f; --red-2:#f0475d; --sky:#eaf3fc; --bg:#f4f7fb; --ice:#7fb3e6; --radius:20px; --shadow:0 10px 30px rgba(6,29,54,.08); }
body { font-family: "Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif; }
h1,h2 { letter-spacing:-.02em; }
.site-header { background:rgba(255,255,255,.88); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.wordmark { font-weight:600; color:var(--navy); letter-spacing:-.02em; font-size:1.3rem; }
.wordmark b { font-weight:900; color:var(--red); }
.wordmark small { font-size:.62em; font-weight:600; color:var(--muted); margin-left:1px; }
.site-footer .wordmark { color:#fff; } .site-footer .wordmark small { color:#9fb6cf; }
.main-nav a[aria-current="page"] { background:var(--navy); box-shadow:0 4px 12px rgba(6,29,54,.25); }
.hero { position:relative; padding:4.5rem 0 6rem;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(127,179,230,.35), transparent 60%),
    radial-gradient(50% 60% at 10% 0%, rgba(46,158,107,.28), transparent 60%),
    linear-gradient(160deg,#061d36 0%,#0e3a66 55%,#145089 100%); }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:90px;
  background:url("../img/fjord.svg") bottom/100% 100% no-repeat; pointer-events:none; }
.hero .eyebrow { display:inline-block; background:rgba(255,255,255,.12); color:#fff; padding:.35rem .9rem; border-radius:30px; letter-spacing:.06em; border:1px solid rgba(255,255,255,.2); }
.hero h1 { font-size:clamp(2.1rem,4.6vw,3.3rem); }
.hero-img { filter:drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.btn { border-radius:14px; }
.btn-primary { background:linear-gradient(135deg,var(--red),#c01834); box-shadow:0 8px 20px rgba(224,38,63,.35); }
.card { border:1px solid rgba(14,58,102,.08); }
a.card:hover { transform:translateY(-4px); box-shadow:0 18px 40px rgba(6,29,54,.14); }
.feature .icon { display:inline-grid; place-items:center; width:3.2rem; height:3.2rem; border-radius:14px; background:var(--sky); font-size:1.6rem; margin-bottom:.4rem; }
.page-head { background:radial-gradient(70% 120% at 100% 0%, #dbeafb, transparent 60%), linear-gradient(180deg,var(--sky),var(--bg)); }
.rules li::before { background:linear-gradient(135deg,var(--red),#c01834); }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-top:-3.5rem; position:relative; z-index:2; }
.stat { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:1.1rem 1.3rem; text-align:center; }
.stat .n { display:block; font-size:2rem; font-weight:900; color:var(--navy); line-height:1.1; }
.stat .l { color:var(--muted); font-weight:600; font-size:.92rem; }
.site-footer { background:linear-gradient(160deg,#061d36,#0b2d52); }
.culture-card .icon { display:inline-grid; place-items:center; width:3.2rem; height:3.2rem; border-radius:14px; background:var(--sky); font-size:1.7rem; margin-bottom:.4rem; }
.prose section { margin-bottom:2rem; }
.prose p { font-size:1.06rem; line-height:1.75; margin:0 0 1rem; }
.prose h2 { margin-top:.5rem; }
.options-col { flex-direction:column; align-items:stretch; }
.options-col label { border-radius:14px; }
.review .say { display:inline-grid; width:2rem; height:2rem; vertical-align:middle; }
.box { border-radius:14px; padding:1rem 1.2rem; margin:0 0 1.2rem; font-weight:500; }
.box-tip { background:#eaf6ef; border:1px solid #b8e2c8; color:#14532d; font-size:1.08rem; }
.box-warn { background:#fff6e5; border:1px solid #f5d38f; color:#6b4a06; }
.rules li strong { color:var(--navy); }
.pager { display:flex; justify-content:space-between; gap:1rem; margin-top:2rem; }
.pager a { padding:1rem 1.2rem; font-weight:700; color:var(--navy); max-width:48%; }
.art-hero { margin:-1rem auto 0; }
.art-hero img, .art-img img { width:100%; height:auto; border-radius:var(--radius); box-shadow:var(--shadow); display:block; }
.art-img { margin:0 0 1.2rem; }
.culture-card { padding:0 0 1.2rem; overflow:hidden; }
.culture-card > :not(.thumb) { margin-left:1.4rem; margin-right:1.4rem; }
.culture-card .thumb { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; margin-bottom:-1.6rem; }
.culture-card .icon { position:relative; border:3px solid #fff; }
.culture-card:not(:has(.thumb)) { padding-top:1.4rem; }

/* ===== home v2 ===== */
.hero-photo { padding:5rem 0 6.5rem;
  background:
    linear-gradient(100deg, rgba(6,29,54,.92) 0%, rgba(6,29,54,.75) 45%, rgba(6,29,54,.35) 100%),
    url("../img/home-hero.webp") center/cover no-repeat, #0e3a66; }
.hero-photo .hero-grid { grid-template-columns: 1.25fr .75fr; }
.hero-levels { list-style:none; display:flex; gap:.5rem; padding:0; margin:1.6rem 0 0; }
.hero-levels a { display:block; padding:.35rem .9rem; border-radius:30px; font-weight:800; color:#fff; text-decoration:none; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); }
.hero-levels a:hover { background:rgba(255,255,255,.25); }
.daily { background:rgba(255,255,255,.97); color:var(--ink); border-radius:24px; padding:1.6rem 1.7rem; box-shadow:0 30px 60px rgba(0,0,0,.35); position:relative; }
.daily::before { content:""; position:absolute; left:-12px; bottom:28px; border:12px solid transparent; border-right-color:#fff; border-left:0; }
.daily-label { margin:0 0 .6rem; font-size:.8rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--red); }
.daily-no { margin:0; font-size:1.55rem; font-weight:800; color:var(--navy); line-height:1.3; }
.daily-tr { margin:.5rem 0 0; color:var(--muted); font-size:1.05rem; }
.daily-foot { display:flex; align-items:center; gap:.6rem; margin-top:1.1rem; color:var(--muted); font-weight:600; font-size:.92rem; }
.features { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.feature { text-align:left; }
.band { background:linear-gradient(180deg,#fff,#eef4fb); border-block:1px solid var(--line); }
.section-head { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; flex-wrap:wrap; }
.more { text-decoration:none; }
.topic-tiles { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:.8rem; }
.tile { display:flex; align-items:center; gap:.8rem; background:#fff; border:1px solid var(--line); border-radius:14px; padding:.9rem 1rem; text-decoration:none; color:var(--navy); transition:transform .15s, box-shadow .15s; }
.tile:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.tile .badge { flex:none; }
.culture-grid { grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
.cta-box { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; flex-wrap:wrap; background:linear-gradient(135deg,#061d36,#145089); color:#fff; border-radius:24px; padding:2.2rem 2.4rem; }
.cta-box h2 { color:#fff; margin-bottom:.3rem; } .cta-box p { margin:0; color:#cfe0f3; max-width:55ch; }
@media (max-width:860px){ .hero-photo .hero-grid{grid-template-columns:1fr;} .daily::before{display:none;} }
.credit { font-size:.78rem; color:var(--muted); margin:.4rem 0 0; }
.credit a { color:var(--muted); }
.lvl-c1 .badge, .level-card.lvl-c1 .badge { background: var(--c1); } .level-card.lvl-c1 { border-top-color: var(--c1); }
/* listening / dictation / bergen */
.player { display:flex; flex-direction:column; gap:.4rem; margin-bottom:1.5rem; }
.player audio { width:100%; }
.transcript { background:#fff; border:1px solid var(--line); border-radius:14px; padding:1rem 1.2rem; margin:1rem 0 1.5rem; }
.transcript summary { cursor:pointer; font-weight:700; color:var(--navy); }
.transcript p { margin:.4rem 0; }
.listen-card .icon, .dict-card .icon { font-size:1.8rem; }
.dict-card { background:linear-gradient(135deg,#fff,#eef4fb); }
.dict-row { display:flex; align-items:center; gap:.8rem; }
.dict-row legend { float:left; margin-right:.2rem; }
.dict-row input { flex:1; padding:.75rem .9rem; border:2px solid var(--line); border-radius:12px; font:inherit; font-size:1.05rem; }
.dict-row input:focus { border-color:var(--navy-2); outline:none; }
.say-lg { width:3rem; height:3rem; font-size:1.1rem; }
.w-ok { color:var(--ok); font-weight:700; }
.w-miss { color:var(--bad); font-weight:700; text-decoration:underline wavy; }
kbd { background:#fff; border:1px solid var(--line); border-bottom-width:3px; border-radius:6px; padding:.1rem .45rem; font-family:inherit; font-weight:700; }
.bergen-head { background:radial-gradient(70% 120% at 100% 0%, #fde3e8, transparent 60%), linear-gradient(180deg,#eef4fb,var(--bg)); }
.bergen-grid { grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.plain-list { list-style:none; padding:0; margin:.5rem 0 0; display:grid; gap:.5rem; }
.plain-list a { text-decoration:none; color:var(--ink); font-weight:600; }
.plain-list a:hover { color:var(--red); }
.exam-text { font-size:1.06rem; line-height:1.8; margin-bottom:1.5rem; }
.exam-task .task-no { font-size:1.12rem; font-weight:600; color:var(--navy); }
.draft { width:100%; padding:1rem; border:2px solid var(--line); border-radius:14px; font:inherit; line-height:1.7; resize:vertical; }
.draft:focus { border-color:var(--navy-2); outline:none; }
.writer { margin:1.2rem 0; }
.checklist { list-style:none; padding:0; display:grid; gap:.4rem; }
.checklist label { display:flex; gap:.6rem; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:10px; padding:.6rem .8rem; cursor:pointer; }
.oral-list li { margin-bottom:.7rem; }
.oral-list .say { display:inline-grid; width:2rem; height:2rem; vertical-align:middle; }
.recorder { margin:1.2rem 0; }
.recorder.recording { border-color:var(--red); box-shadow:0 0 0 4px rgba(224,38,63,.15); }
.rec-time { font-weight:800; margin-left:.6rem; font-variant-numeric:tabular-nums; }
.recorder audio { display:block; width:100%; margin-top:.8rem; }
.sources ul { font-size:.92rem; }
.main-nav a { padding:.5rem .65rem; font-size:.94rem; }
.cat-chips { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem; }
.cat-chips a { background:#fff; border:1px solid var(--line); border-radius:30px; padding:.4rem .9rem; text-decoration:none; color:var(--navy); font-weight:600; }
.cat-chips a:hover { border-color:var(--navy-2); }
.mistakes { list-style:none; padding:0; display:grid; gap:.8rem; margin-bottom:2rem; }
.mistakes .card { padding:1rem 1.2rem; }
.m-wrong { margin:0; color:var(--bad); text-decoration:line-through; text-decoration-thickness:1px; font-weight:600; }
.m-right { margin:.3rem 0; color:var(--ok); font-weight:700; font-size:1.08rem; display:flex; align-items:center; gap:.5rem; }
.m-right .say { width:2rem; height:2rem; }
.m-why { margin:0; color:var(--ink) !important; }
.phrase-grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
.phrase-card .icon { font-size:1.8rem; }
.features { grid-template-columns:repeat(5,1fr); }
@media (max-width:1000px){ .features { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); } }
.footer-links { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,auto); gap:.3rem 1.5rem; }
.footer-links a { color:#c9d6e6; text-decoration:none; } .footer-links a:hover { color:#fff; text-decoration:underline; }
.dict-row { flex-wrap:wrap; }
.dict-help { flex-basis:100%; display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.2rem; }
.dict-help details { font-size:.92rem; }
.dict-help summary { cursor:pointer; color:var(--navy-2); font-weight:600; list-style:none; padding:.25rem .7rem; border:1px dashed var(--line); border-radius:20px; display:inline-block; }
.dict-help summary::-webkit-details-marker { display:none; }
.dict-help details[open] summary { background:var(--sky); border-style:solid; }
.hint-text { margin:.4rem 0 0; font-family:Consolas,"Courier New",monospace; letter-spacing:.06em; font-size:1rem; color:var(--navy); }
.answer-text { margin:.4rem 0 0; font-weight:700; color:var(--navy); font-size:1.05rem; }
.dict-row.revealed input { background:#fffaf0; }
.used-help { color:#8a5a00; font-weight:600; }
.answer-tr { margin:.2rem 0 0; color:var(--muted); font-style:italic; }
.brand img { width:46px; height:46px; border-radius:13px; box-shadow:0 4px 12px rgba(6,29,54,.25); }
.wm-stack { display:flex; flex-direction:column; line-height:1; gap:2px; }
.wm-stack b { font-size:1.35rem; font-weight:900; color:var(--navy); letter-spacing:-.02em; }
.wm-stack span { font-size:.82rem; font-weight:700; color:var(--red); letter-spacing:.16em; text-transform:uppercase; }
.dict-help details[open] { flex-basis:100%; }
/* ===== layout polish ===== */
.site-header { background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:0 1px 0 var(--line), 0 6px 20px rgba(6,29,54,.05); }
.culture-card .thumb { margin-bottom:1rem; }
.culture-card h3 { margin-top:0; }
.hint-text, .answer-text { overflow-wrap:anywhere; }
.level-card { display:flex; flex-direction:column; }
.level-card .btn { justify-content:center; width:100%; margin-top:.5rem; }
.level-card .meta { margin-top:auto; }
.level-card .btn + .btn { margin-top:.6rem; }
.wm-footer b { color:#fff; } .wm-footer span { color:#ff6b80; }
.site-footer .copy a { color:inherit; }
.page-head + .art-hero { margin-top:1.5rem; }
.art-hero { margin-top:1.5rem; }
@media (max-width:600px) {
  .features { grid-template-columns:1fr 1fr; gap:.7rem; }
  .feature { padding:1rem; }
  .feature p { display:none; }
  .feature .icon { width:2.6rem; height:2.6rem; font-size:1.3rem; }
  .feature h3 { font-size:1rem; }
  .hero-photo { padding:3rem 0 5rem; }
  .hero .eyebrow { font-size:.72rem; }
  .actions .btn-lg { width:100%; justify-content:center; }
  .daily-no { font-size:1.3rem; }
  .cta-box { padding:1.6rem; }
  .cta-box .btn { width:100%; justify-content:center; }
  .section-head { flex-direction:column; align-items:flex-start; gap:.2rem; }
  .pager { flex-direction:column; } .pager a { max-width:none; }
}
.level-card > .badge { align-self:flex-start; }
.level-card .btn { text-align:center; }
.levels { grid-template-columns:repeat(auto-fit,minmax(195px,1fr)); }
.level-card, .level-card.lvl-a1, .level-card.lvl-a2, .level-card.lvl-b1, .level-card.lvl-b2, .level-card.lvl-c1 { border-top:1px solid rgba(14,58,102,.08); }
.level-card.lvl-a1 { box-shadow:inset 0 5px 0 var(--a1), var(--shadow); }
.level-card.lvl-a2 { box-shadow:inset 0 5px 0 var(--a2), var(--shadow); }
.level-card.lvl-b1 { box-shadow:inset 0 5px 0 var(--b1), var(--shadow); }
.level-card.lvl-b2 { box-shadow:inset 0 5px 0 var(--b2), var(--shadow); }
.level-card.lvl-c1 { box-shadow:inset 0 5px 0 var(--c1), var(--shadow); }
.level-card .btn { padding:.6rem .7rem; font-size:.93rem; }
.badge.lvl-a1 { background:var(--a1); } .badge.lvl-a2 { background:var(--a2); } .badge.lvl-b1 { background:var(--b1); } .badge.lvl-b2 { background:var(--b2); } .badge.lvl-c1 { background:var(--c1); }
.plain-list li a { display:flex; gap:.5rem; align-items:flex-start; } .plain-list .badge { flex:none; margin-top:.15rem; }
/* ===== mobile & cross-browser hardening ===== */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { overflow-wrap:break-word; -webkit-tap-highlight-color:rgba(14,58,102,.12); }
.sources a, .prose a, .credit a { overflow-wrap:anywhere; word-break:break-word; }
input, textarea, select, button { font-size:max(16px, 1em); }          /* iOS Safari: no zoom-on-focus */
.order-form label, .formats label { min-height:44px; display:inline-flex; align-items:center; gap:.4rem; }
.more { display:inline-block; padding:.5rem 0; }
.say { min-width:44px; min-height:44px; }
.chips .say, .m-right .say, .review .say, .oral-list .say { min-width:36px; min-height:36px; }
.site-header { padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
.site-footer { padding-bottom:calc(1rem + env(safe-area-inset-bottom)); }
img, audio, video { max-width:100%; }
audio { min-height:44px; }
@supports not (aspect-ratio: 16 / 9) { .culture-card .thumb { height:200px; } }
@media (hover:none) { a.card:hover, .tile:hover, .btn:hover { transform:none; } }
@media (max-width:360px) {
  body { font-size:16px; }
  .wrap { width:calc(100% - 1.4rem); }
  .wm-stack b { font-size:1.15rem; } .wm-stack span { font-size:.7rem; letter-spacing:.12em; }
  .brand img { width:40px; height:40px; }
  .hero h1 { font-size:1.75rem; }
  .features { grid-template-columns:1fr 1fr; }
  .options label { padding:.55rem .9rem; }
}
/* mobile menu (details/summary, no JS needed) */
.mobile-menu { display:none; }
@media (max-width:860px) {
  .main-nav { display:none; }
  .site-header { position:sticky; }
  .header-inner { flex-wrap:nowrap; min-height:62px; padding:.4rem 0; }
  .mobile-menu { display:block; order:3; }
  .lang-switch { margin-left:auto; order:2; }
  .mobile-menu summary { list-style:none; cursor:pointer; width:46px; height:46px; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; }
  .mobile-menu summary::-webkit-details-marker { display:none; }
  .burger { display:grid; gap:5px; width:22px; }
  .burger i { display:block; height:2.5px; border-radius:2px; background:var(--navy); transition:transform .2s, opacity .2s; }
  .mobile-menu[open] .burger i:nth-child(1) { transform:translateY(7.5px) rotate(45deg); }
  .mobile-menu[open] .burger i:nth-child(2) { opacity:0; }
  .mobile-menu[open] .burger i:nth-child(3) { transform:translateY(-7.5px) rotate(-45deg); }
  .mobile-menu nav { position:absolute; left:0; right:0; top:100%; background:#fff; border-bottom:1px solid var(--line); box-shadow:0 18px 30px rgba(6,29,54,.12); padding:.4rem 1rem 1rem; max-height:calc(100vh - 70px); overflow-y:auto; }
  .mobile-menu ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:.35rem; }
  .mobile-menu a { display:flex; align-items:center; min-height:46px; padding:.4rem .9rem; border-radius:12px; text-decoration:none; color:var(--ink); font-weight:600; background:var(--bg); }
  .mobile-menu a[aria-current="page"] { background:var(--navy); color:#fff; }
  .lang-switch summary { min-height:46px; display:flex; align-items:center; }
}
.work-head { background:radial-gradient(70% 120% at 100% 0%, #fff0d9, transparent 60%), linear-gradient(180deg,#eef4fb,var(--bg)); }
.work-grid { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.work-card { padding:0 0 1.2rem; overflow:hidden; }
.work-card > :not(.thumb) { margin-left:1.4rem; margin-right:1.4rem; }
.work-card .thumb { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; margin-bottom:1rem; }
.work-card .icon { display:inline-grid; place-items:center; width:3.2rem; height:3.2rem; border-radius:14px; background:var(--sky); font-size:1.7rem; margin:1.4rem 1.4rem .4rem; }
.test-tiles { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:.7rem; }
.source-note { margin-top:1.5rem; }
/* fieldset legends: keep the question INSIDE the card (browsers draw legends on the top border) */
.quiz fieldset { border:1px solid rgba(14,58,102,.08); padding:1.3rem 1.4rem 1.2rem; min-width:0; }
.quiz fieldset > legend { float:left; width:100%; padding:0; margin:0 0 .6rem; line-height:1.4; }
.quiz fieldset > legend + * { clear:both; }
.quiz fieldset::after { content:""; display:block; clear:both; }
.dict-row > legend { float:none; width:auto; margin:0; }
.explain { background:#fff; border:1px solid var(--line); border-left:5px solid var(--navy-2); border-radius:16px; padding:1.3rem 1.5rem .4rem; margin:0 0 2rem; }
.explain h2 { margin-top:0; }
.explain p { font-size:1.07rem; line-height:1.75; }

/* legal pages + footer legal links */
.legal-links { font-size:.9rem; text-align:center; margin:.4rem auto 0; }
.legal-links a { color:inherit; opacity:.85; }
.legal h2 { margin-top:1.8rem; }
.legal ul { padding-left:1.2rem; }
.contact-box { padding:1rem 1.2rem; margin-top:1.5rem; }
.order-form .consent { display:flex; gap:.5rem; align-items:flex-start; font-size:.92rem; line-height:1.45; margin:.6rem 0 1rem; }
.order-form .consent input { margin-top:.25rem; flex:none; }

/* cookie consent banner */
.cookie-banner { position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:1000; max-width:640px; margin:0 auto;
  background:#fff; color:var(--ink,#0e2a47); border:1px solid var(--line,#d9e2ec); border-radius:16px;
  box-shadow:0 12px 40px rgba(14,42,71,.22); padding:1rem 1.2rem; display:flex; flex-wrap:wrap; gap:.8rem 1rem; align-items:center; }
.cookie-banner[hidden] { display:none; }
.cookie-banner p { margin:0; flex:1 1 320px; font-size:.95rem; line-height:1.5; }
.cookie-actions { display:flex; gap:.6rem; flex:0 0 auto; }
.cookie-actions .btn { min-width:7rem; }
@media (max-width:520px){ .cookie-actions { width:100%; } .cookie-actions .btn { flex:1; } }

/* lesson tools: quick rule, learned, slow audio, report, progress */
.box-quick { font-size:1.08rem; border-width:2px; margin-top:0; }
.head-tools { display:flex; flex-wrap:wrap; gap:.6rem 1rem; align-items:center; margin:.8rem 0 0; }
.btn-learned { background:#fff; color:var(--navy); border:2px solid var(--navy); padding:.45rem 1rem; font-size:.95rem; }
.btn-learned.on { background:#1f8a4c; border-color:#1f8a4c; color:#fff; }
.page-head .bokmal-note { font-size:.88rem; opacity:.85; }
.h2-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.btn-slow { border:1.5px solid var(--line); background:#fff; color:var(--navy); border-radius:999px; padding:.35rem .9rem; font:inherit; font-size:.92rem; cursor:pointer; }
.btn-slow.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.btn-slow:focus-visible, .btn-learned:focus-visible, .say:focus-visible { outline:3px solid #f4b400; outline-offset:2px; }
.report { margin:2rem 0 1rem; font-size:.95rem; }
.topic-card.learned { border-color:#1f8a4c; box-shadow:inset 4px 0 0 #1f8a4c; }
.topic-card.learned h3::after { content:" ✓"; color:#1f8a4c; }
.progress { margin:.2rem 0 1.2rem; }
.progress .bar { height:10px; background:var(--sky,#e8f1fb); border-radius:999px; overflow:hidden; }
.progress .bar span { display:block; height:100%; width:0; background:#1f8a4c; border-radius:999px; transition:width .4s; }
.progress p { margin:.4rem 0 0; font-size:.95rem; font-weight:600; }

/* hand-drawn feature icons */
.feature .icon-img { display:block; width:56px; height:56px; border-radius:14px; margin-bottom:.55rem; box-shadow:0 4px 12px rgba(6,29,54,.18); transition:transform .2s; }
.feature:hover .icon-img { transform:rotate(-4deg) scale(1.05); }
@media (max-width:640px){ .feature .icon-img { width:44px; height:44px; border-radius:12px; } }
