/* ============================================================
   Matematik Tutoring — Karl Anton Kristensen
   Minimal dark theme inspired by Lex Fridman & 3Blue1Brown
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --bg:          #080808;
  --bg-2:        #0f0f0f;
  --bg-3:        #141414;
  --bg-card:     #1a1a1a;
  --bg-card-2:   #222222;

  --border:      rgba(255, 255, 255, 0.08);
  --border-md:   rgba(255, 255, 255, 0.16);
  --border-lg:   rgba(255, 255, 255, 0.30);

  --accent:      #ffffff;
  --accent-dim:  rgba(255, 255, 255, 0.10);
  --accent-glow: rgba(255, 255, 255, 0.04);

  --text:        #ffffff;
  --text-2:      #cccccc;
  --text-3:      #999999;
  --text-4:      #666666;

  --text-on-accent: #080808;
  --accent-hover:   #dddddd;
  --nav-bg:         rgba(8, 8, 8, 0.88);
  --nav-mobile-bg:  rgba(8, 8, 8, 0.97);

  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.22s ease;

  --container:   1100px;
  --pad:         clamp(20px, 5vw, 40px);
  --section-gap: clamp(80px, 10vw, 130px);
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-2:        #f5f5f5;
  --bg-3:        #eeeeee;
  --bg-card:     #ffffff;
  --bg-card-2:   #f0f0f0;

  --border:      rgba(0, 0, 0, 0.08);
  --border-md:   rgba(0, 0, 0, 0.13);
  --border-lg:   rgba(0, 0, 0, 0.25);

  --accent:      #111111;
  --accent-dim:  rgba(0, 0, 0, 0.06);
  --accent-glow: rgba(0, 0, 0, 0.03);

  --text:        #111111;
  --text-2:      #444444;
  --text-3:      #777777;
  --text-4:      #767676;

  --text-on-accent: #ffffff;
  --accent-hover:   #333333;
  --nav-bg:         rgba(255, 255, 255, 0.90);
  --nav-mobile-bg:  rgba(255, 255, 255, 0.97);
}

/* ── Top banner ── */
.top-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  display: block;
  background: #3b82f6;
  color: #ffffff;
  text-align: center;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background var(--transition);
}
.top-banner:hover {
  background: #2563eb;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 102px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); }
input, select, textarea {
  font-family: var(--font);
  font-size: 15px;
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section-gap);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-dim);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-md);
  color: var(--text-2);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--border-lg);
  color: var(--text);
  background: var(--bg-card);
}

.btn-ghost {
  color: var(--text-2);
  background: transparent;
  padding-inline: 8px;
}
.btn-ghost:hover {
  color: var(--text);
}

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

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-card);
  transition: var(--transition);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 32px; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition),
              border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-symbol {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.nav-logo-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-md);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links .nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--text-2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-lg);
  color: var(--text);
}
.theme-toggle::before { content: '\2600'; }
[data-theme="light"] .theme-toggle::before { content: '\263E'; }

/* Light-mode overrides for JS-injected modal */
[data-theme="light"] .modal-box { background: #fff !important; border-color: rgba(0,0,0,0.12) !important; }
[data-theme="light"] .modal-close { color: #999 !important; }
[data-theme="light"] .modal-close:hover { color: #333 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 12px 0 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile ul {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile li a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav-mobile li:last-child a { border-bottom: none; color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-symbols span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 30px);
  color: var(--accent);
  opacity: 0.07;
  animation: floatSym 12s ease-in-out infinite;
  user-select: none;
}
.hero-symbols span:nth-child(odd) { animation-direction: alternate; }

@keyframes floatSym {
  0%   { transform: translateY(0px) rotate(-2deg); opacity: 0.05; }
  50%  { transform: translateY(-18px) rotate(3deg); opacity: 0.10; }
  100% { transform: translateY(0px) rotate(-2deg); opacity: 0.05; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 120px var(--pad) 80px;
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--accent);
}

.tw-cursor {
  display: inline-block;
  width: 2px;
  color: var(--accent);
  font-weight: 300;
  animation: tw-blink 0.75s step-end infinite;
  margin-left: 1px;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--text-3));
  margin-inline: auto;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7) translateY(0); }
  50%       { opacity: 0.8; transform: scaleY(1) translateY(4px); }
}

/* ── About ── */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.about-left { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 12px; }

.about-avatar {
  position: relative;
  width: 220px;
  height: 220px;
}
.about-avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1px solid var(--border-md);
  background: var(--accent-glow);
}
.about-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

.about-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-lbl {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-md);
}

.about-name-card {
  padding: 12px;
  flex-direction: column;
}
.about-name {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}
.about-credential {
  color: var(--accent);
  font-size: 0.80rem;
  font-weight: 500;
  text-align: center;
  margin-top: 4px;
}

.about-right .section-title { margin-bottom: 24px; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  padding: 20px;
}
.about-body em { color: var(--text); font-style: normal; }

/* ── Services ── */
/* ── Pricing table ── */
.pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-header {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  gap: 16px;
}
.pricing-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pricing-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pricing-col-dot--online { background: #888888; }

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: rgba(255,255,255,0.02); }

.pricing-row-featured {
  background: linear-gradient(90deg, rgba(124,106,245,0.06), transparent);
  border-left: 2px solid var(--accent);
}
.pricing-row-featured:hover { background: linear-gradient(90deg, rgba(124,106,245,0.09), transparent); }

.pricing-tier { display: flex; flex-direction: column; gap: 4px; }
.pricing-tier-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pricing-tier-note {
  font-size: 13px;
  color: var(--text-3);
}
.pricing-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 3px 10px;
  border-radius: 100px;
}

.pricing-cell {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.price-main {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  font-family: var(--font-mono);
}
.price-unit {
  font-size: 14px;
  color: var(--text-2);
}
.price-sub {
  font-size: 12px;
  color: var(--text-3);
  width: 100%;
  margin-top: -2px;
}

/* Skræddersyet tilbud */
.pricing-custom {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 28px 32px;
}
.pricing-custom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-free-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.pricing-free-icon {
  color: var(--accent);
  font-size: 13px;
}

.pricing-tier-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-4);
  letter-spacing: 0;
}

.pricing-offer {
  margin-top: 20px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.pricing-offer-tag {
  background: #3b82f6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 20px;
}
.pricing-offer-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
}
.pricing-offer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-offer-prices {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.pricing-offer-price-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pricing-offer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}
.pricing-offer-original {
  font-size: 14px;
  color: var(--text-4);
  text-decoration: line-through;
}
.pricing-offer-discounted {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #3b82f6;
  font-family: var(--font-mono);
}
.pricing-offer-divider {
  width: 1px;
  height: 40px;
  background: var(--border-md);
  flex-shrink: 0;
}

.services-footnote {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  margin-top: 32px;
}

/* ── Videos ── */
.videos { background: var(--bg-2); }

/* Tab switcher */
.video-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.video-tab {
  padding: 8px 22px;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.video-tab:hover {
  border-color: var(--border-lg);
  color: var(--text);
}
.video-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}

/* Subject badges (about section) */
.subject-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.subject-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.video-search-wrap {
  max-width: 420px;
  margin: 0 auto 36px;
}

.video-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 11px 16px 11px 42px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.video-search::placeholder { color: var(--text-3); }
.video-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.video-search::-webkit-search-cancel-button { display: none; }

.video-card[hidden] { display: none; }

.videos-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  padding: 32px 0;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.video-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
}
.video-card:hover .video-icon { opacity: 0.4; }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-icon {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--accent);
  opacity: 0.6;
  transition: opacity var(--transition);
  z-index: 1;
}

.video-play {
  display: none;
}

.video-coming {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 4px;
}

.video-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.video-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.video-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.videos-footer {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.videos-footer p {
  font-size: 14px;
  color: var(--text-3);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: var(--border-md); }

.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.author-meta {
  font-size: 12px;
  color: var(--text-3);
}

.testimonials-disclaimer {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-4);
}

/* ── Contact ── */
.contact { background: var(--bg-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 16px; }

.contact-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option { background: var(--bg-3); }

/* Form sections */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-hint {
  font-weight: 400;
  color: var(--text-3);
  font-size: 12px;
}

/* Checkbox grid */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.check-item:hover {
  border-color: var(--border-md);
  color: var(--text);
}
.check-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--border-md);
  border-radius: 3px;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
}
.check-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 4px;
  width: 5px; height: 8px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.radio-item:hover {
  border-color: var(--border-md);
  color: var(--text);
}
.radio-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.radio-item input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--border-md);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
}
.radio-item input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}
.radio-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: -4px;
}

.form-success {
  background: rgba(124, 106, 245, 0.12);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
}

/* ── Onboarding Wizard ── */
.onboarding-wizard {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ob-progress-wrap {
  height: 3px;
  background: var(--border);
}
.ob-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.ob-steps {
  padding: 36px 32px;
  min-height: 340px;
}

.ob-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: ob-in 0.28s ease;
}
.ob-step--active { display: flex; }

@keyframes ob-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ob-step-counter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}
.ob-question {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.ob-hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0;
}

.ob-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-options--multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ob-opt {
  padding: 12px 16px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  background: var(--bg-card-2);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.ob-opt:hover {
  border-color: var(--border-lg);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.ob-opt--selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
}

.ob-step-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ob-next-btn {
  padding: 11px 22px;
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition), transform var(--transition);
}
.ob-next-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.ob-skip-btn {
  font-size: 14px;
  color: var(--text-3);
  cursor: pointer;
  font-family: var(--font);
  transition: color var(--transition);
}
.ob-skip-btn:hover { color: var(--text-2); }

.ob-back-btn {
  font-size: 13px;
  color: var(--text-4);
  cursor: pointer;
  font-family: var(--font);
  transition: color var(--transition);
  align-self: flex-start;
  margin-top: 4px;
}
.ob-back-btn:hover { color: var(--text-3); }

/* Result */
.ob-result { align-items: center; text-align: center; }
.ob-result-check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.ob-result-title {
  font-size: 20px; font-weight: 600;
  color: var(--text); letter-spacing: -0.02em;
}
.ob-result-body {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  text-align: center;
  max-width: 460px;
}
.ob-result-meta {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}
.ob-summary {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.ob-summary-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 14px;
}
.ob-summary-label { color: var(--text-3); flex-shrink: 0; }
.ob-summary-val { color: var(--text); font-weight: 500; text-align: right; }

.ob-contact-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%;
}
/* Result form */
.ob-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ob-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.ob-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ob-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ob-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.ob-form-group input,
.ob-form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.ob-form-group input::placeholder,
.ob-form-group textarea::placeholder { color: var(--text-4); }
.ob-form-group input:focus,
.ob-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.ob-form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.ob-form-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ob-form-success {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
  width: 100%;
}


.ob-restart {
  font-size: 13px; color: var(--text-4);
  cursor: pointer; font-family: var(--font);
  transition: color var(--transition);
}
.ob-restart:hover { color: var(--text-3); }


/* ── Footer ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 40px 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-3);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text-2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}
.footer-sub { opacity: 0.6; }

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .pricing-header,
  .pricing-row   { grid-template-columns: 1fr 160px 160px; }
  .videos-grid   { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
  .about-grid    { grid-template-columns: 1fr; }
  .about-left    { flex-direction: row; align-items: center; gap: 32px; }
  .about-avatar  { flex-shrink: 0; }
}

@media (max-width: 700px) {
  /* ── Nav ── */
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
  .nav { top: 28px; }
  .nav-container { height: 56px; }

  /* Mobilmenu */
  .nav-mobile { padding: 8px 0 16px; }
  .nav-mobile li a {
    padding: 14px 0;
    font-size: 17px;
  }

  /* ── Banner ── */
  .top-banner {
    font-size: 11px;
    padding: 6px 12px;
    line-height: 1.4;
  }

  /* ── Hero ── */
  .hero { min-height: 100svh; }
  .hero-content { padding: 100px var(--pad) 60px; }
  .hero-label { font-size: 11px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
  }
  .hero-scroll-indicator { display: none; }

  /* ── About ── */
  .about-grid { gap: 24px; }
  .about-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .about-avatar { width: 200px; height: 200px; }
  .about-name-card { padding: 8px 0; }
  .about-name { font-size: 1.1rem; }
  .about-credential { font-size: 0.85rem; }
  .about-body {
    padding: 0;
    font-size: 15px;
    gap: 14px;
  }
  .about-right .section-label,
  .about-right .section-title { text-align: center; }

  /* ── Videos ── */
  .videos-grid { grid-template-columns: 1fr; gap: 14px; }
  .video-body { padding: 14px 16px; }
  .video-title { font-size: 15px; }
  .video-search { font-size: 16px; }
  .videos-show-more { width: 100%; justify-content: center; }

  /* ── Pricing ── */
  .pricing-table { border-radius: var(--radius); }
  .pricing-header { display: none; }
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 20px;
  }
  .pricing-col-head { display: none; }

  /* Tier info */
  .pricing-tier { margin-bottom: 10px; }
  .pricing-tier-name { font-size: 16px; }
  .pricing-tier-note { font-size: 11px; }

  /* To prisfelter side om side */
  .pricing-row {
    display: flex;
    flex-wrap: wrap;
  }
  .pricing-tier { width: 100%; }
  .pricing-cell {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-3);
    padding: 12px 10px;
    border-radius: var(--radius);
    margin: 0 4px;
    gap: 2px;
  }
  .pricing-cell::before {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
  }
  .pricing-row .pricing-cell:first-of-type::before { content: "Fysisk"; }
  .pricing-row .pricing-cell:last-of-type::before { content: "Online"; }
  .pricing-row .pricing-cell:first-of-type { margin-left: 0; }
  .pricing-row .pricing-cell:last-of-type { margin-right: 0; }

  .price-main { font-size: 22px; }
  .price-unit { font-size: 12px; }
  .price-sub { text-align: center; font-size: 11px; }

  .pricing-free-banner { font-size: 13px; padding: 12px 16px; }

  /* Offer */
  .pricing-offer { border-radius: var(--radius); }
  .pricing-offer-tag { font-size: 11px; padding: 10px 16px; text-align: center; }
  .pricing-offer-body {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .pricing-offer-info { text-align: center; }
  .pricing-offer-info .pricing-tier-name { justify-content: center; }
  .pricing-offer-info .pricing-tier-note { text-align: center; }
  .pricing-offer-prices {
    width: 100%;
    justify-content: center;
    gap: 24px;
  }
  .pricing-offer-price-col { align-items: center; }
  .pricing-offer-divider { display: none; }
  .pricing-offer-discounted { font-size: 22px; }
  .pricing-offer-body .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* ── Kontakt ── */
  .contact-grid { gap: 32px; }
  .contact-info .section-label,
  .contact-info .section-title { text-align: left; }
  .contact-desc { font-size: 15px; margin-bottom: 24px; }
  .contact-details { gap: 12px; }
  .contact-details li { font-size: 15px; word-break: break-all; }
  .contact-icon { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }

  /* ── Onboarding wizard ── */
  .onboarding-wizard { border-radius: var(--radius); }
  .ob-steps { padding: 24px 18px; min-height: auto; }
  .ob-question { font-size: 18px; }
  .ob-opt { padding: 14px 16px; font-size: 16px; }
  .ob-options--multi { grid-template-columns: 1fr; }
  .ob-next-btn {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }
  .ob-contact-btns { flex-direction: column; }
  .ob-contact-btns .btn { width: 100%; justify-content: center; }
  .ob-summary { padding: 14px 16px; }
  .ob-summary-row { font-size: 13px; flex-wrap: wrap; }
  .ob-result-body { font-size: 14px; }

  /* ── Form inputs: 16px forhindrer zoom på iOS ── */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .ob-form-group input,
  .ob-form-group textarea { font-size: 16px; padding: 12px 14px; }
  .form-row { grid-template-columns: 1fr; }
  .ob-form-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .radio-row { flex-direction: column; }
  .check-item, .radio-item { padding: 12px 14px; font-size: 15px; }

  /* ── Footer ── */
  .footer { padding-block: 32px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .footer-nav { gap: 16px; }
  .footer-nav a { font-size: 15px; }

  /* ── Generel spacing & typografi ── */
  .section { padding-block: clamp(48px, 8vw, 80px); }
  .section-title { font-size: clamp(22px, 6vw, 32px); }
  .section-subtitle { font-size: 15px; line-height: 1.6; }
  .section-header { margin-bottom: clamp(28px, 5vw, 40px); }

  /* Scroll padding til banner + nav */
  html { scroll-padding-top: 90px; }
}

@media (max-width: 480px) {
  .about-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }

  .price-main { font-size: 20px; }
  .pricing-cell { padding: 10px 8px; }

  .section { padding-block: clamp(40px, 8vw, 64px); }

  .hero-title { font-size: clamp(32px, 10vw, 48px); }
}
