/* =====================================================
   FysikkMedMartin.no  –  Globalt designsystem v2
   Synkronisert med MatteMedMartin.no
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── DARK MODE (standard) ───────────────────────── */
:root {
  --bg-1: #0d1b2a; --bg-2: #11263a;
  --surface: #15314a; --surface-2: #1b3d5c;
  --border: #234b6d; --border-soft: #1c3854;
  --blue: #6aa9d6; --blue-soft: #4f8db8;
  --teal: #5fc4b8; --green: #8ad29b;
  --amber: #f5c971; --rose: #e98ba2; --violet: #a48cd9;
  --text: #e7eef5; --text-muted: #9bb1c5; --text-dim: #6f8aa1;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius: 14px; --radius-sm: 9px;
  --topbar-bg: rgba(13,27,42,.88); --nav-bg: rgba(17,38,58,.6);
}

/* ─── LIGHT MODE – via system preference ─────────── */
@media (prefers-color-scheme: light) {
  :root {
    --bg-1:#f8fafc; --bg-2:#f1f5f9; --surface:#ffffff; --surface-2:#f1f5f9;
    --border:#94a3b8; --border-soft:#cbd5e1;
    --blue:#2563eb; --blue-soft:#1d4ed8; --teal:#10b981; --green:#059669;
    --amber:#d97706; --rose:#e11d48; --violet:#7c3aed;
    --text:#1e2937; --text-muted:#475569; --text-dim:#94a3b8;
    --shadow:0 8px 24px rgba(0,0,0,.10);
    --topbar-bg:rgba(255,255,255,.92); --nav-bg:rgba(241,245,249,.85);
  }
  .logo-mark { color: #ffffff; }
  .nav-tab { border-color: #cbd5e1; color: var(--text); }
  .nav-tab.active { color: #ffffff; }
  .nav-tab:hover { border-color: var(--teal); }
  input[type="range"] { background: #94a3b8; }
  .matte-promo { background: linear-gradient(135deg,#1e3a5f 0%,#0f2742 100%); }
}

/* ─── LIGHT MODE – via manuell toggle ────────────── */
[data-theme="light"] {
  --bg-1:#f8fafc; --bg-2:#f1f5f9; --surface:#ffffff; --surface-2:#f1f5f9;
  --border:#94a3b8; --border-soft:#cbd5e1;
  --blue:#2563eb; --blue-soft:#1d4ed8; --teal:#10b981; --green:#059669;
  --amber:#d97706; --rose:#e11d48; --violet:#7c3aed;
  --text:#1e2937; --text-muted:#475569; --text-dim:#94a3b8;
  --shadow:0 8px 24px rgba(0,0,0,.10);
  --topbar-bg:rgba(255,255,255,.92); --nav-bg:rgba(241,245,249,.85);
}
[data-theme="light"] .logo-mark { color: #ffffff; }
[data-theme="light"] .nav-tab { border-color: #cbd5e1; color: var(--text); }
[data-theme="light"] .nav-tab.active { color: #ffffff; }
[data-theme="light"] .nav-tab:hover { border-color: var(--teal); }
[data-theme="light"] input[type="range"] { background: #94a3b8; }
[data-theme="light"] .matte-promo { background: linear-gradient(135deg,#dbeafe 0%,#bfdbfe 100%); color: #1e3a5f; }
[data-theme="light"] .matte-promo h2,
[data-theme="light"] .matte-promo p { color: #1e3a5f; }
[data-theme="light"] .matte-promo-badge { background: rgba(30,58,95,.15); color: #1e3a5f; }

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-size: 15px; font-weight: 700; color: var(--text); }
.logo-sub   { font-size: 11px; color: var(--text-muted); }

/* ─── NAV TABS ───────────────────────────────────── */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  flex-shrink: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.nav-tab:hover { color: var(--text); background: var(--surface); border-color: var(--border-soft); }
.nav-tab.active {
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  font-weight: 600;
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(95,196,184,0.25);
}

.nav-spacer { margin-left: auto; }

/* ─── DROPDOWN ───────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown-trigger { background: transparent; border: 1px solid transparent; font-family: inherit; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  padding-top: 12px;
  min-width: 220px;
  z-index: 100;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.nav-dropdown-menu a {
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  display: block;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--teal); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }

/* Forhindre klipping av dropdown */
.nav-tabs { overflow: visible; }
@media (max-width: 700px) {
  .nav-tabs { overflow-x: auto; }
  .nav-dropdown-menu { position: fixed; top: 58px; left: 8px; right: 8px; min-width: unset; }
}

/* ─── THEME TOGGLE ───────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  margin-left: 6px;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface); border-color: var(--teal); }

/* ─── MAIN WRAPPER ───────────────────────────────── */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 90px;
}

/* ─── HERO (index) ───────────────────────────────── */
.hero {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
}

.hero-img {
  width: 180px;
  height: 180px;
  background: var(--surface-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  flex-shrink: 0;
}

.hero-classroom-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.hero p  { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.hero p + p { margin-top: 8px; }

/* ─── TOPIC GRID (index) ─────────────────────────── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: 0.2s;
  display: block;
  cursor: pointer;
}
.topic-card:hover {
  background: var(--surface-2);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.topic-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 10px;
  border: 1px solid var(--border-soft);
}
.topic-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.topic-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── PAGE HERO ──────────────────────────────────── */
.page-hero { margin-bottom: 28px; }
.page-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 7px; }
.page-hero p  { color: var(--text-muted); font-size: 14.5px; }

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

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── FORMULA TABLE ──────────────────────────────── */
.formula-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.formula-table thead th {
  background: var(--surface-2);
  color: var(--blue);
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.formula-table tbody tr { border-bottom: 1px solid var(--border-soft); }
.formula-table tbody tr:last-child { border-bottom: none; }
.formula-table tbody td { padding: 11px 14px; vertical-align: middle; }
.formula-table tbody tr:hover td { background: rgba(95,196,184,0.05); }

.f-math {
  font-size: 15px;
  color: var(--amber);
  font-style: italic;
  font-weight: 600;
}
.f-name  { color: var(--text); font-weight: 500; }
.f-desc  { color: var(--text-muted); font-size: 13px; }
.f-unit  {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

/* ─── EXAMPLE BOX ────────────────────────────────── */
.example-box {
  border-left: 3px solid var(--teal);
  background: rgba(95,196,184,0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 16px;
}
.example-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--bg-1);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.example-box p {
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
}

/* ─── TRINN-FOR-TRINN ────────────────────────────── */
.steps { margin-top: 18px; }
.step  { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-1);
  margin-top: 1px;
}
.step-body p    { font-size: 14px; color: var(--text); line-height: 1.6; }
.step-formula   {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 14px;
  background: rgba(245,201,113,0.1);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--amber);
  font-style: italic;
  font-weight: 600;
}
.step-result    {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(95,196,184,0.12);
  border: 1px solid rgba(95,196,184,0.3);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--teal);
  font-weight: 700;
}

/* ─── FLIP CARDS ─────────────────────────────────── */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}
.flip-card          { height: 145px; perspective: 1000px; cursor: pointer; }
.flip-card-inner    {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--border-soft);
}
.flip-card-front { background: var(--surface-2); }
.flip-card-back  {
  background: linear-gradient(135deg, rgba(95,196,184,0.13), rgba(106,169,214,0.13));
  border-color: var(--teal);
  transform: rotateY(180deg);
}
.flip-title  { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.flip-hint   { font-size: 11px; color: var(--text-dim); }
.flip-def    { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.flip-f      { margin-top: 7px; font-size: 15px; color: var(--amber); font-style: italic; font-weight: 600; }

/* ─── CALCULATOR ─────────────────────────────────── */
.calc-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 18px;
}
.calc-title { font-size: 14.5px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.calc-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 500;
}
.calc-field input, .calc-field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: 0.15s;
}
.calc-field input:focus, .calc-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(95,196,184,0.18);
}
.calc-field select option { background: var(--surface); }

.calc-btn {
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.calc-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.calc-result {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(95,196,184,0.1);
  border: 1px solid rgba(95,196,184,0.3);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--teal);
  font-weight: 600;
  display: none;
}
.calc-result.show { display: block; }
.calc-result span { color: var(--text-muted); font-weight: 400; font-size: 13px; display: block; margin-top: 3px; }

/* ─── INFO TIP ───────────────────────────────────── */
.info-tip {
  background: rgba(106,169,214,0.1);
  border: 1px solid rgba(106,169,214,0.25);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 13.5px;
  color: var(--blue);
  margin-top: 14px;
  line-height: 1.55;
}

/* ─── QUIZ ───────────────────────────────────────── */
.quiz-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.quiz-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.quiz-tab:hover:not(.active) { color: var(--text); background: var(--surface-2); }
.quiz-tab.active {
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border-color: var(--teal);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(95,196,184,0.25);
}

.quiz-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }

.quiz-question-box {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 12px;
}
.quiz-q-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }

.quiz-option {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
  line-height: 1.5;
}
.quiz-option:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border); }
.quiz-option.correct { background: rgba(138,210,155,0.15); border-color: var(--green); color: var(--green); font-weight: 600; }
.quiz-option.wrong   { background: rgba(233,139,162,0.15); border-color: var(--rose);  color: var(--rose); }
.quiz-option:disabled { cursor: not-allowed; }

.quiz-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: none;
  line-height: 1.55;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct-fb { background: rgba(138,210,155,0.1); border: 1px solid rgba(138,210,155,0.3); color: var(--green); }
.quiz-feedback.wrong-fb   { background: rgba(233,139,162,0.1); border: 1px solid rgba(233,139,162,0.3); color: var(--rose); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 10px; }
.quiz-nav button {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.quiz-nav button:hover { background: var(--surface); border-color: var(--teal); color: var(--teal); }
.quiz-nav .quiz-progress { font-size: 13px; color: var(--text-muted); }

.quiz-result {
  text-align: center;
  padding: 32px 20px;
}
.quiz-result h3 { font-size: 22px; margin-bottom: 10px; }
.quiz-result p  { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.quiz-result button {
  padding: 10px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ─── ALLE-QUIZER – nivå-knapper ─────────────────── */
.quiz-level-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quiz-level-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s;
  border: 1px solid transparent;
}
.quiz-level-btn.lett     { background: rgba(138,210,155,0.15); color: var(--green);    border-color: rgba(138,210,155,0.4); }
.quiz-level-btn.middels  { background: rgba(250,200,100,0.15); color: #e6a817;          border-color: rgba(250,200,100,0.4); }
.quiz-level-btn.vanskelig{ background: rgba(233,139,162,0.15); color: var(--rose);     border-color: rgba(233,139,162,0.4); }
.quiz-level-btn.alt      { background: var(--surface-2);       color: var(--teal);     border-color: var(--border-soft); }
.quiz-level-btn:hover    { opacity: 0.8; transform: translateY(-1px); }

/* ─── SHARE BAR ──────────────────────────────────── */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
}
.share-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--surface); }

/* ─── STATS-BAR ──────────────────────────────────── */
.mmm-stats-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.mmm-stats-bar:empty { display: none; }
.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ─── DAGLIG UTFORDRING ──────────────────────────── */
.daily-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.daily-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.daily-date {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
}
.daily-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.daily-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.daily-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.daily-start-btn:hover { opacity: .85; }
.daily-done {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.daily-done-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(138,210,155,.15);
  border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(250,160,60,.15);
  border: 1px solid rgba(250,160,60,.4);
  color: #f0a030;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}
.points-earned {
  display: inline-block;
  animation: popIn .35s ease;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
}
@keyframes popIn {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── WEAKSPOTS ──────────────────────────────────── */
.gamified-weakspots {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.weakspot-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(233,139,162,.1);
  border: 1px solid rgba(233,139,162,.3);
  color: var(--rose);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin: 4px 4px 0 0;
  transition: .15s;
}
.weakspot-link:hover { background: rgba(233,139,162,.2); }

/* ─── TEST DEG SELV ──────────────────────────────── */
.test-yourself {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 28px;
  text-align: center;
}
.test-yourself h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.test-yourself p  { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
.start-btn:hover { opacity: .85; }

/* ─── MATTE-PROMO ────────────────────────────────── */
.matte-promo {
  background: linear-gradient(135deg,#1e3a5f 0%,#0f2742 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.matte-promo::before {
  content: '📐';
  position: absolute;
  right: 30px; top: 20px;
  font-size: 80px;
  opacity: .08;
  pointer-events: none;
}
.matte-promo-badge {
  display: inline-block;
  background: rgba(95,196,184,.2);
  border: 1px solid rgba(95,196,184,.4);
  color: var(--teal);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.matte-promo h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.matte-promo p  { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 22px; }
.matte-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.matte-promo-btn:hover { opacity: .85; }

/* ─── ALLE-QUIZER – emneknapper ──────────────────── */
.aq-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aq-topic-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: 0.15s;
  white-space: nowrap;
}
.aq-topic-btn:hover { border-color: var(--teal); color: var(--text); }
.aq-topic-btn.active {
  background: linear-gradient(135deg, var(--blue-soft), var(--teal));
  color: var(--bg-1);
  border-color: var(--teal);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(95,196,184,0.25);
}

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 60px;
}
.site-footer a { color: var(--teal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
