/* ── Announcement bar ───────────────────────────────────────────────────────── */
.announce-bar {
  background: var(--yellow);
  color: #1a1400;
  font-size: .82rem;
  font-weight: 500;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.announce-bar strong { font-weight: 700; }

.announce-bar__link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.announce-bar__close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #1a1400;
  padding: 0 4px;
  opacity: .7;
}

.announce-bar__close:hover { opacity: 1; }

/* ── Variables & Reset ──────────────────────────────────────────────────────── */
:root {
  --blue:        #006AA7;
  --blue-dark:   #00527f;
  --blue-light:  #e6f2fa;
  --yellow:      #FECC00;
  --yellow-dark: #d4a900;

  --bg:          #f5f7fa;
  --surface:     #ffffff;
  --surface-2:   #f0f4f8;
  --border:      #d8e0e8;
  --text:        #1a2330;
  --text-muted:  #5a6a7a;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:0 6px 24px rgba(0,106,167,.16);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .22s ease;
}

[data-theme="dark"] {
  --bg:          #0f1622;
  --surface:     #1a2335;
  --surface-2:   #1e2a3a;
  --border:      #2a3a50;
  --text:        #e8edf4;
  --text-muted:  #7a8ea0;
  --shadow:      0 2px 12px rgba(0,0,0,.3);
  --shadow-hover:0 6px 24px rgba(0,106,167,.3);
  --blue-light:  #0a2035;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

main { flex: 1; }

/* ── Navigation ──────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: var(--shadow);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__flag {
  font-size: 1.5rem;
  line-height: 1;
}

.navbar__brand-text span {
  color: var(--blue);
}

.navbar__unofficial {
  font-size: .5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  opacity: .5;
  margin-left: 6px;
  vertical-align: middle;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* ── Hamburger ───────────────────────────────────────────────────────────────── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Language switcher ───────────────────────────────────────────────────────── */
.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-left: 4px;
}

.lang-btn {
  padding: 4px 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .06em;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.lang-btn:hover:not(.active) { color: var(--text); }

#theme-toggle {
  margin-left: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
}

#theme-toggle:hover { background: var(--border); }

.navbar__utils {
  display: flex;
  align-items: center;
}

#kofi-link {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  height: 30px;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity var(--transition);
  opacity: 0.75;
}
#kofi-link:hover { opacity: 1; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #003d6b 0%, var(--blue) 50%, #004e80 100%);
  color: #fff;
  padding: 88px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Canvas for flickering grid — sits behind content */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Fade out toward bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.hero__title span { color: var(--yellow); }

.hero__subtitle {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Chevron separator at hero bottom */
.hero__separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 32px;
  pointer-events: none;
}

.hero__separator svg {
  width: 100%;
  height: 100%;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--yellow); color: #1a1a00; border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--border); }

.btn--sm { padding: 8px 18px; font-size: .875rem; }

.btn--full { width: 100%; justify-content: center; }

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat__value { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.stat__label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.stats-bar__kofi {
  text-align: center;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 12px 0 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: #fdf6e3;
  border-top: 1px solid #f0e4c4;
  border-bottom: 1px solid #f0e4c4;
  padding: 16px 24px;
}

.stats-bar__kofi strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Section header ruled ────────────────────────────────────────────────────── */
.section-header-ruled {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 36px;
}

.section-header-ruled__title {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.section-header-ruled__tag {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ── Free & Ad-Free banner ──────────────────────────────────────────────────── */
.free-banner {
  background: linear-gradient(135deg, #fffbe6 0%, #fff7cc 100%);
  border-bottom: 1px solid #f0e4a0;
  padding: 1rem 1.5rem;
}

[data-theme="dark"] .free-banner {
  background: linear-gradient(135deg, #1a1a00 0%, #2a2500 100%);
  border-bottom-color: #3a3200;
}

.free-banner__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
}

.free-banner__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.free-banner__text {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  text-align: center;
}

.free-banner__text strong {
  color: var(--blue);
  font-weight: 700;
}

[data-theme="dark"] .free-banner__text strong {
  color: var(--yellow);
}

.free-banner__link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

.free-banner__link:hover {
  color: var(--blue-dark);
}

[data-theme="dark"] .free-banner__link {
  color: var(--yellow);
}

[data-theme="dark"] .free-banner__link:hover {
  color: var(--yellow-dark);
}

/* ── Floating Ko-fi button ───────────────────────────────────────────────────── */
.kofi-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 8000;
  background: #0b5394;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background .2s, transform .2s;
}
.kofi-float:hover {
  background: #094075;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 600px) {
  .free-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: .4rem;
  }
}

/* ── Report question widget ─────────────────────────────────────────────────── */
.report-widget {
  margin-top: 14px;
}

.report-trigger {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  transition: all .2s;
}

.report-trigger:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg);
}

.report-trigger.hidden {
  display: none;
}

.report-form {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 8px;
}

.report-form.open {
  display: block;
}

.report-form__title {
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.report-form__reasons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.report-form__reasons label {
  font-size: .82rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-form__comment {
  width: 100%;
  font-size: .82rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  margin-bottom: 10px;
}

.report-form__actions {
  display: flex;
  gap: 8px;
}

.report-thanks {
  font-size: .82rem;
  color: #16a34a;
  margin: 0;
  font-weight: 500;
}

/* ── Trust / Disclaimer strip ────────────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-strip__compact {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.trust-strip__summary {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.trust-strip__summary strong {
  color: var(--text);
}

.trust-strip__summary a {
  color: var(--blue);
}

.trust-strip__toggle {
  background: none;
  border: none;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
}

.trust-strip__toggle:hover {
  text-decoration: underline;
}

.trust-strip__details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.trust-strip__details.hidden {
  display: none;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}

.trust-strip__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-strip__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-strip__item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.trust-strip__item p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-strip__item a {
  color: var(--blue);
}

/* ── Three pathways ──────────────────────────────────────────────────────────── */
.pathways {
  padding: 60px 0;
  border-top: none;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.pathways__grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pathway-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pathway-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.pathway-card--highlight {
  background: var(--blue-light);
  border-color: var(--blue);
}

[data-theme="dark"] .pathway-card--highlight {
  background: #0a1e2f;
  border-color: var(--blue);
}

.pathway-card__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
}

.pathway-card__icon { font-size: 2rem; line-height: 1; margin: 4px 0 8px; }

.pathway-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pathway-card__body {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.pathway-card__btn { margin-top: 16px; align-self: flex-start; }

.pathway-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pathway-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
}

@media (max-width: 700px) {
  .pathways__grid { flex-direction: column; gap: 16px; }
  .pathway-arrow { transform: rotate(90deg); padding: 4px 0; }

  .trust-strip__summary .mobile-hide { display: none; }
  .stats-bar__kofi .mobile-hide { display: none; }
}

/* ── Guide / article cards ───────────────────────────────────────────────────── */
.guides {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Gradient image placeholder */
.guide-card__img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.guide-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.25));
}

.guide-card__img--law     { background: linear-gradient(135deg, #003d6b, var(--blue)); }
.guide-card__img--register { background: linear-gradient(135deg, #004e40, #00897b); }
.guide-card__img--study    { background: linear-gradient(135deg, #1a237e, #3949ab); }

.guide-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.guide-card__date {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.guide-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-card__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.guide-card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 10px;
  align-self: flex-start;
}

/* ── Feature cards ───────────────────────────────────────────────────────────── */
.features {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card__body { color: var(--text-muted); font-size: .95rem; }

/* ── CTA section ─────────────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, #004e80 0%, var(--blue) 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta__sub { opacity: .88; margin-bottom: 32px; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq {
  padding: 60px 0 72px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.faq__list { max-width: 720px; margin: 0 auto; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--blue);
}

.faq__item.open .faq__question::after { transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: .95rem;
}

.faq__item.open .faq__answer {
  max-height: 400px;
  padding: 0 22px 18px;
}

/* ── Support banner ─────────────────────────────────────────────────────────── */
.support-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
}

.support-banner__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.support-banner__text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  color: var(--yellow);
}

.support-banner__text p {
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
  opacity: .9;
}

.support-banner__actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex-shrink: 0;
}

.support-banner__btn {
  white-space: nowrap;
  text-align: center;
  font-size: .9rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.btn--yellow {
  background: var(--yellow);
  color: #1a1a00;
  border: 2px solid var(--yellow);
}
.btn--yellow:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}

@media (max-width: 600px) {
  .support-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .support-banner__actions {
    width: 100%;
  }
  .support-banner__btn {
    width: 100%;
  }
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 20px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.footer__brand .navbar__brand-text {
  font-weight: 700;
}

.footer__brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.footer__tagline {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin-top: 4px;
}

.footer__col { /* column wrapper */ }

.footer__heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .875rem;
  color: var(--text-muted);
}

.footer__links-list a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links-list a:hover { color: var(--blue); text-decoration: none; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

.footer__bottom a { color: var(--blue); }

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ── Page header (quiz / exam / progress) ────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px 32px;
}

.page-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header__sub { color: var(--text-muted); font-size: .95rem; }

/* ── Quiz / Exam UI ──────────────────────────────────────────────────────────── */
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px; }

.quiz-progress-bar {
  background: var(--border);
  border-radius: 99px;
  height: 8px;
  margin-bottom: 28px;
  overflow: hidden;
}

.quiz-progress-bar__fill {
  background: linear-gradient(90deg, var(--blue), #00a8e8);
  height: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: .875rem;
  color: var(--text-muted);
}

.quiz-meta .category-badge {
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}

.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: .97rem;
  line-height: 1.4;
  background: var(--bg);
  text-align: left;
  width: 100%;
  color: var(--text);
}

.option:hover:not([disabled]) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.option__letter {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.option.correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

[data-theme="dark"] .option.correct {
  background: #052e16;
  color: #86efac;
}

.option.correct .option__letter {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.option.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

[data-theme="dark"] .option.wrong {
  background: #2d0707;
  color: #fca5a5;
}

.option.wrong .option__letter {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.option[disabled] { cursor: not-allowed; }

/* Explanation box */
.explanation {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
  display: none;
}

.explanation.show { display: block; }

.explanation strong { color: var(--blue); }

/* Quiz controls */
.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.quiz-finish-link {
  text-align: center;
  margin-top: 16px;
  font-size: .85rem;
}
.quiz-finish-link a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.quiz-finish-link a:hover {
  text-decoration: underline;
}

/* ── Result screen ────────────────────────────────────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.result-card__score {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--blue);
}

.result-card__label {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.result-card__message {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-card__sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.result-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.kofi-nudge {
  margin: 24px 0;
  padding: 14px 20px;
  background: #fdf6e3;
  border: 1px solid #f0e4c4;
  border-radius: 10px;
  font-size: .9rem;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}
[data-theme="dark"] .kofi-nudge {
  background: rgba(253, 246, 227, 0.08);
  border-color: rgba(240, 228, 196, 0.15);
}
.kofi-nudge a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Timer ───────────────────────────────────────────────────────────────────── */
.timer {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
}

.timer.warning { color: #dc2626; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ── Category filter ─────────────────────────────────────────────────────────── */
.filter-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.locked { pointer-events: none; opacity: .5; }
@media (max-width: 700px) {
  .filter-wrap.locked { display: none; }
}

/* ── Progress page ───────────────────────────────────────────────────────────── */
.progress-wrap { max-width: 960px; margin: 0 auto; padding: 40px 20px; }

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

/* ── Progress link card ──────────────────────────────────────────────────────── */
.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.link-card__title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 4px;
}

.link-card__sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.link-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.link-card__url {
  flex: 1;
  min-width: 0;
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
  cursor: pointer;
  user-select: all;
}

.link-card__copy {
  white-space: nowrap;
}

/* ── Toast animation ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card__value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.category-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.category-row__name {
  width: 180px;
  font-size: .9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.progress-track {
  flex: 1;
  background: var(--border);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #00a8e8);
  transition: width .6s ease;
}

.progress-fill.good { background: linear-gradient(90deg, #16a34a, #22c55e); }
.progress-fill.medium { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress-fill.poor { background: linear-gradient(90deg, #dc2626, #ef4444); }

.category-row__pct {
  width: 42px;
  text-align: right;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.exam-history {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.exam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: .9rem;
  flex-wrap: wrap;
}

.exam-row:last-child { border-bottom: none; }

.exam-score {
  font-weight: 700;
  font-size: 1.05rem;
}

.exam-score.pass { color: #16a34a; }
.exam-score.fail { color: #dc2626; }

.badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge--pass { background: #dcfce7; color: #15803d; }
.badge--fail { background: #fee2e2; color: #b91c1c; }

[data-theme="dark"] .badge--pass { background: #052e16; color: #86efac; }
[data-theme="dark"] .badge--fail { background: #2d0707; color: #fca5a5; }

/* ── Law notice banner ───────────────────────────────────────────────────────── */
.law-notice {
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 16px 22px;
  background: #fff7e6;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius);
  font-size: .92rem;
  line-height: 1.6;
  color: #78350f;
}

.law-notice strong { color: #b45309; }

[data-theme="dark"] .law-notice {
  background: #1f1200;
  border-color: #b45309;
  color: #fcd34d;
}

[data-theme="dark"] .law-notice strong { color: #fbbf24; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* ── Hamburger menu ── */
  .navbar__hamburger { display: flex; }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    max-width: 200px;
    background: var(--surface);
    box-shadow: -6px 0 32px rgba(0,0,0,.18);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 24px;
    gap: 4px;
    margin-left: 0;
    transform: translateX(100%);
    transition: transform .28s ease;
  }

  .navbar__links.open { transform: translateX(0); }

  .nav-link { padding: 13px 12px; font-size: 1rem; }
  .lang-switch { margin-left: 0; margin-top: 12px; align-self: flex-start; }
  .navbar__utils { margin-top: 8px; align-self: flex-start; }
  .navbar__utils #theme-toggle { margin-left: 0; }
  .navbar__utils #kofi-link { border-left: none; padding-left: 0; margin-left: 10px; }

  /* Backdrop */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 150;
  }
  .nav-overlay.open { display: block; }

  /* ── Hero ── */
  .hero { padding: 48px 20px 40px; }
  .hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }

  /* ── Stats ── */
  .stats-bar__inner { gap: 24px; }

  /* ── Quiz/Exam ── */
  .question-card { padding: 20px 16px; }
  .question-text { font-size: 1rem; }

  /* ── Progress ── */
  .category-row__name { width: 110px; font-size: .8rem; }
  .exam-row { font-size: .8rem; gap: 8px; }

  /* ── Footer ── */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}
