/* Exzellent Sprachwerk — German Language School & CEFR A1–C2 Ecosystem
   Served at both https://sprachwerk.exzellent.co (via scripts/build-sprachwerk.mjs)
   and https://www.exzellent.co/sprachwerk.html (via routes.json).
   Phase 3 hardened: P3.1–P3.12 responsive breakpoints (320px–2560px),
   44px minimum touch targets, collapsible mobile nav, short-landscape mode,
   bilingual EN/DE switcher styles, and zero off-palette colour literals. */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.sw {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Light theme: the brand cyan, green and pale violet are too light to read
     on a near-white page, so they are mixed darker; dark theme keeps them. */
  --sw-cyan: color-mix(in srgb, #06B6D4 55%, #0B0E1E);
  --sw-gold-ink: color-mix(in srgb, #F0C442 54%, #04050A);
  --sw-green-ink: color-mix(in srgb, #10B981 60%, #0B0E1E);
  --sw-em-grad: linear-gradient(100deg, color-mix(in srgb, #06B6D4 55%, #0B0E1E), #813EEB);
}
:root[data-theme="dark"] body.sw {
  --sw-cyan: #06B6D4;
  --sw-gold-ink: #F0C442;
  --sw-green-ink: #10B981;
  --sw-em-grad: linear-gradient(100deg, #06B6D4, #C9AAFF);
}

.sw a { color: inherit; }
.sw img, .sw svg, .sw video { max-width: 100%; height: auto; }

/* A visitor who chose Deutsch: the head script (data-sw-lang-boot) marks
   <html> before the first paint, and the translated text stays hidden until
   sprachwerk.js has swapped it in, instead of flashing English first. If the
   script never runs, the text shows after two seconds anyway. */
html[data-sw-lang="de"]:not([data-sw-lang-ready]) :is([data-i18n-de], [data-i18n-html-de]) {
  visibility: hidden;
  animation: sw-lang-reveal 0s linear 2s forwards;
}
@keyframes sw-lang-reveal { to { visibility: visible; } }

.sw-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(clamp(16px, 4vw, 36px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 36px), env(safe-area-inset-right, 0px));
}
@media (min-width: 1600px) {
  .sw-wrap { max-width: 1260px; }
}

.sw-skip {
  position: absolute;
  left: 12px;
  top: -56px;
  background: var(--violet);
  color: #FFFFFF;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  text-decoration: none;
}
.sw-skip:focus { top: 10px; }

/* ---------- German Tricolour Top Accent Ribbon ---------- */
.sw-ribbon {
  height: 3px;
  background: linear-gradient(90deg, #04050A 0%, #DD0000 35%, #FFCE00 70%, #06B6D4 100%);
}

/* ---------- Header & Navigation (P3.3 & P3.4) ---------- */
.sw-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sw-head .sw-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.sw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 13.5px;
}
.sw-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.sw-brand em {
  font-style: normal;
  letter-spacing: .04em;
  font-weight: 700;
  font-size: 12px;
  color: var(--sw-cyan);
  border: 1px solid color-mix(in srgb, #06B6D4 45%, var(--line));
  background: color-mix(in srgb, #06B6D4 10%, transparent);
  border-radius: 999px;
  padding: 2px 10px;
}
.sw-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}
.sw-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.sw-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.sw-nav a[aria-current="page"] {
  color: var(--sw-cyan);
  font-weight: 600;
  background: color-mix(in srgb, #06B6D4 12%, transparent);
}
.sw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw-theme-btn,
.sw-lang-btn,
.sw-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .2s, color .2s, background .2s;
}
.sw-theme-btn {
  font-family: var(--font);
  font-size: 15px;
  padding: 0;
}
.sw-theme-btn:hover,
.sw-lang-btn:hover,
.sw-menu-btn:hover {
  color: var(--ink);
  border-color: var(--sw-cyan);
}
.sw-lang-btn[data-lang="de"] {
  color: var(--sw-cyan);
  border-color: color-mix(in srgb, #06B6D4 55%, var(--line));
  background: color-mix(in srgb, #06B6D4 12%, var(--surface));
}
.sw-menu-btn {
  display: none;
  font-size: 16px;
}
.sw-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.sw-site-link:hover {
  color: var(--ink);
  border-color: var(--violet);
}

@media (max-width: 980px) {
  .sw-site-link { display: none; }
}
@media (max-width: 760px) {
  .sw-menu-btn { display: inline-flex; }
  .sw-actions { margin-left: auto; }
  .sw-nav {
    display: none;
    order: 4;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 0 6px;
    border-top: 1px solid var(--line);
  }
  .sw-nav.is-open {
    display: flex;
  }
  .sw-nav a {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
  }
}
@media (max-width: 420px) {
  .sw-brand span { display: none; }
  .sw-actions .sw-btn.sm { padding: 8px 11px; font-size: 12px; }
}

/* ---------- Buttons (P3.4: min-height 44px) ---------- */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, filter .2s, box-shadow .2s;
}
.sw-btn:hover {
  transform: translateY(-1px);
  border-color: var(--sw-cyan);
}
.sw-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.sw-btn.primary {
  background: linear-gradient(120deg, #06B6D4, #813EEB);
  border-color: transparent;
  color: #FFFFFF;
}
.sw-btn.primary:hover { filter: brightness(1.08); }
.sw-btn.gold {
  background: #F0C442;
  border-color: #F0C442;
  color: #04050A;
}
.sw-btn.gold:hover { filter: brightness(1.05); }
.sw-btn.sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}
.sw-btn:focus-visible,
.sw-theme-btn:focus-visible,
.sw-lang-btn:focus-visible,
.sw-menu-btn:focus-visible,
.sw-chip:focus-visible,
.sw-cefr-tab:focus-visible,
.sw-opt:focus-visible,
.sw-nav a:focus-visible {
  outline: 2px solid var(--sw-cyan);
  outline-offset: 2px;
}

/* ---------- Typography & Sections ---------- */
.sw-main { padding: 36px 0 64px; }
.sw-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 14px;
  min-height: 44px;
  padding: 6px 10px 6px 0;
}
.sw-back:hover { color: var(--sw-cyan); }
.sw section { padding: 38px 0; }
.sw section + section { border-top: 1px solid var(--line); }

.sw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sw-cyan);
  border: 1px solid color-mix(in srgb, #06B6D4 35%, var(--line));
  background: color-mix(in srgb, #06B6D4 10%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  max-width: 100%;
}
.sw-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3DF0A0;
  flex-shrink: 0;
}
.sw h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  max-width: 20ch;
  overflow-wrap: break-word;
}
.sw h1 em, .sw h2 em {
  font-style: italic;
  font-family: var(--serif);
  background: var(--sw-em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sw h2 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}
.sw h3 {
  font-size: 18.5px;
  line-height: 1.28;
  margin: 0 0 8px;
}
.sw .lead {
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 65ch;
  margin: 0 0 24px;
}
.sw .ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 480px) {
  .sw .ctas > .sw-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Hero Split Layout (P3.2 & P3.11) ---------- */
.sw-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 940px) {
  .sw-hero-grid { grid-template-columns: 1fr; }
}
.sw-hero-panel {
  border: 1px solid color-mix(in srgb, #06B6D4 30%, var(--line));
  border-radius: 22px;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(160deg, color-mix(in srgb, #06B6D4 10%, var(--surface)), color-mix(in srgb, #813EEB 8%, var(--surface)));
  box-shadow: var(--elev-3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sw-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 400px) {
  .sw-stat-row { grid-template-columns: 1fr; }
}
.sw-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  text-align: center;
}
.sw-stat b {
  display: block;
  font-size: 20px;
  color: var(--sw-cyan);
  letter-spacing: -.02em;
}
.sw-stat span {
  font-size: 11.5px;
  color: var(--mute);
}
.sw-dialogue {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sw-msg {
  font-size: 13.5px;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  border-left: 3px solid var(--sw-cyan);
}
.sw-msg.exzi {
  border-left-color: var(--violet);
  background: color-mix(in srgb, #813EEB 10%, var(--surface));
}
.sw-msg small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mute);
  margin-bottom: 3px;
}

/* ---------- Cards & Grids ---------- */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sw-grid.two { grid-template-columns: repeat(2, 1fr); }
.sw-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .sw-grid, .sw-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sw-grid, .sw-grid.two, .sw-grid.four { grid-template-columns: 1fr; }
}

.sw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 2.5vw, 22px);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.sw-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, #06B6D4 55%, var(--line));
  box-shadow: var(--elev-2);
}
.sw-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #06B6D4 14%, var(--surface));
  color: var(--sw-cyan);
  font-weight: 700;
  font-size: 15px;
}
.sw-card .ico.violet {
  background: color-mix(in srgb, #813EEB 14%, var(--surface));
  color: var(--violet);
}
.sw-card .ico.gold {
  background: color-mix(in srgb, #F0C442 18%, var(--surface));
  color: var(--sw-gold-ink);
}
.sw-card .ico svg { width: 22px; height: 22px; }
.sw-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0;
  flex: 1;
}
.sw-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.sw-card .go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sw-cyan);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  margin-top: 4px;
}
.sw-card .go::after { content: "\00a0→"; }

.sw-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-2);
  background: var(--surface-2);
}
.sw-pill.cyan {
  color: var(--sw-cyan);
  border-color: color-mix(in srgb, #06B6D4 40%, var(--line));
  background: color-mix(in srgb, #06B6D4 10%, transparent);
}
.sw-pill.violet {
  color: var(--violet);
  border-color: color-mix(in srgb, #813EEB 40%, var(--line));
  background: color-mix(in srgb, #813EEB 10%, transparent);
}
.sw-pill.gold {
  color: var(--sw-gold-ink);
  border-color: color-mix(in srgb, #F0C442 45%, var(--line));
  background: color-mix(in srgb, #F0C442 12%, transparent);
}
.sw-pill.green {
  color: var(--sw-green-ink);
  border-color: color-mix(in srgb, #10B981 40%, var(--line));
  background: color-mix(in srgb, #10B981 10%, transparent);
}

/* ---------- Interactive CEFR Level Explorer ---------- */
.sw-cefr-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sw-cefr-tab {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.sw-cefr-tab span {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--mute);
}
.sw-cefr-tab:hover {
  border-color: var(--sw-cyan);
  color: var(--ink);
}
.sw-cefr-tab[aria-selected="true"] {
  background: linear-gradient(120deg, color-mix(in srgb, #06B6D4 18%, var(--surface)), color-mix(in srgb, #813EEB 14%, var(--surface)));
  border-color: var(--sw-cyan);
  color: var(--ink);
  box-shadow: var(--elev-2);
}
.sw-cefr-tab[aria-selected="true"] span {
  color: var(--sw-cyan);
}
.sw-cefr-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
  box-shadow: var(--elev-2);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .sw-cefr-panel { grid-template-columns: 1fr; }
}
.sw-cefr-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  display: grid;
  gap: 8px;
}
.sw-cefr-aside {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Filter Bar (P3.4: 44px touch targets) ---------- */
.sw-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sw-chip {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all .2s;
}
.sw-chip:hover { color: var(--ink); border-color: var(--sw-cyan); }
.sw-chip.active {
  background: color-mix(in srgb, #06B6D4 15%, var(--surface));
  border-color: var(--sw-cyan);
  color: var(--sw-cyan);
}

/* ---------- Interactive Placement Quiz (P3.6) ---------- */
.sw-quiz-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 3.5vw, 28px);
  background: var(--surface);
  box-shadow: var(--elev-2);
  max-width: 780px;
}
.sw-progress {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sw-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #06B6D4, #813EEB);
  transition: width .3s var(--ease);
}
.sw-q-title {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  margin: 10px 0 18px;
}
.sw-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 560px) {
  .sw-opts { grid-template-columns: 1fr; }
}
.sw-opt {
  text-align: left;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .18s;
}
.sw-opt:hover {
  border-color: var(--sw-cyan);
  background: color-mix(in srgb, #06B6D4 8%, var(--surface));
}
.sw-opt.selected {
  border-color: var(--sw-cyan);
  background: color-mix(in srgb, #06B6D4 16%, var(--surface));
  color: var(--sw-cyan);
}
.sw-opt-key {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.sw-opt.selected .sw-opt-key {
  border-color: var(--sw-cyan);
  color: var(--sw-cyan);
}
.sw-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0;
}
@media (max-width: 600px) {
  .sw-ladder { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .sw-ladder { grid-template-columns: repeat(2, 1fr); }
}
.sw-rung {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  background: var(--surface-2);
}
.sw-rung.cleared {
  border-color: #10B981;
  background: color-mix(in srgb, #10B981 12%, var(--surface));
}
.sw-rung.target {
  border-color: var(--sw-cyan);
  background: color-mix(in srgb, #06B6D4 16%, var(--surface));
}
.sw-rung b { display: block; font-size: 16px; }
.sw-rung span { font-size: 11px; color: var(--mute); }

/* ---------- Pricing Cards (PAngV §11 compliant) ---------- */
.sw-launch-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .sw-launch-grid { grid-template-columns: 1fr; }
}
.sw-hero-offer {
  border-radius: 22px;
  padding: clamp(20px, 3.5vw, 28px);
  background: linear-gradient(160deg, color-mix(in srgb, #813EEB 48%, #0F1220), #04050A 78%);
  color: #FFFFFF;
  border: 1px solid color-mix(in srgb, #06B6D4 40%, transparent);
  box-shadow: var(--elev-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* The offer card is dark in both themes, so its gold pill keeps the bright gold. */
.sw-hero-offer .sw-pill.gold { color: #F0C442; }
.sw-price-big {
  font-size: clamp(38px, 6vw, 50px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.sw-guar {
  border: 1px solid color-mix(in srgb, #FFFFFF 22%, transparent);
  background: color-mix(in srgb, #FFFFFF 8%, transparent);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.sw-check-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}
.sw-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sw-check-list li::before {
  content: "✓";
  color: #3DF0A0;
  font-weight: 700;
}

/* ---------- Video Thumbnail Cards ---------- */
.sw-vid-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0F1220;
  position: relative;
  border: 1px solid var(--line);
}
.sw-vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-vid-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: color-mix(in srgb, #04050A 86%, transparent);
  color: #EEF1FB;
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ---------- Notes, Accordions & Bands ---------- */
.sw-note {
  border-left: 3px solid #F0C442;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: 0 14px 14px 0;
  font-size: 14px;
  color: var(--ink-2);
  margin: 16px 0;
}
.sw-note b { color: var(--ink); }

.sw-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
}
.sw-faq summary {
  cursor: pointer;
  min-height: 48px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--mute);
  flex-shrink: 0;
}
.sw-faq details[open] summary::after { content: "–"; }
.sw-faq details > div {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.sw-band {
  border: 1px solid color-mix(in srgb, #06B6D4 35%, var(--line));
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 32px);
  background: linear-gradient(135deg, color-mix(in srgb, #06B6D4 12%, var(--surface)), color-mix(in srgb, #813EEB 10%, var(--surface)));
  text-align: center;
}
.sw-band h2 { margin-inline: auto; }
.sw-band p {
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto 22px;
}
.sw-band .ctas { justify-content: center; }

/* ---------- Footer ---------- */
.sw-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(42px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  color: var(--mute);
}
.sw-foot .sw-wrap {
  display: flex;
  gap: 16px 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.sw-foot p { margin: 0; }
.sw-foot nav {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.sw-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.sw-foot a:hover { color: var(--sw-cyan); }

/* ---------- Short Landscape Viewport Mode (P3.10: max-height 500px) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .sw-head .sw-wrap { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
  .sw-main { padding: 18px 0 32px; }
  .sw section { padding: 20px 0; }
  .sw-quiz-box { padding: 16px; }
  .sw-opts { margin-bottom: 12px; gap: 8px; }
}
