/* ===== BAS ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  margin: 0;
  padding: 40px 20px;
  min-height: 100vh;
  box-sizing: border-box;
  background: linear-gradient(160deg, #eef2ff 0%, #ffffff 50%, #fdf2f8 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "cv02", "kern";
  font-variant-ligatures: common-ligatures;
}

button, input, textarea, select {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variant-ligatures: inherit;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
}

h1, h2, h3, .title {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.title {
  font-size: 30px;
  margin: 0;
}

p {
  line-height: 1.6;
}

/* ===== HEMSKÄRM ===== */
#home {
  max-width: 420px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.brand-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  background: linear-gradient(95deg, #e8112d 0%, #e8112d 18%, #ff8a00 30%, #ffd400 42%, #00a85a 55%, #1b49dd 68%, #9333ea 82%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.5;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.primary-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  padding: 16px 24px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.45);
}

.ghost-btn {
  background: white;
  color: #475569;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.ghost-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.brand-btn {
  position: relative;
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #e8112d 0%, #ff8a00 20%, #ffd400 40%, #00a85a 60%, #1b49dd 80%, #9333ea 100%);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.55);
}

.brand-btn {
  background-size: 200% 200%;
  animation: brandShift 6s ease infinite, brandPulse 2.4s ease-in-out infinite;
}

@keyframes brandShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35); }
  50%      { box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6); }
}

.brand-soft-btn {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 14px;
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(90deg, #e8112d 0%, #ff8a00 20%, #ffd400 40%, #00a85a 60%, #1b49dd 80%, #9333ea 100%) border-box;
  color: transparent;
  background-clip: padding-box, border-box;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
}

.brand-soft-btn::before {
  content: attr(data-label);
  background: linear-gradient(90deg, #e8112d 0%, #ff8a00 20%, #ffd400 40%, #00a85a 60%, #1b49dd 80%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.brand-soft-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

.small-link-btn {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  box-shadow: none;
  text-decoration: underline;
}

.small-link-btn:hover {
  background: transparent;
  color: #334155;
}

/* ===== PROFIL ===== */
#profile {
  max-width: 480px;
  margin: 40px auto 0;
}

.muted {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

#profile-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  height: 250px;
  margin: 30px auto;
  position: relative;
}

#profile-chart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: black;
  top: 50%;
}

/* ===== QUIZ — svensk samhällsredaktion, taktilt beslutsbord ===== */
#quiz {
  --quiz-ink: #17233d;
  --quiz-muted: #66738a;
  --quiz-line: #d4ddec;
  --quiz-paper: #fffdf7;
  --quiz-yes: #0b745a;
  --quiz-no: #ae3e50;
  width: min(100%, 548px);
  margin: 0 auto;
  padding: 4px 0 30px;
}

#quiz #topbar {
  max-width: none;
  margin: 0 0 22px;
  padding: 0;
  justify-content: space-between;
}

.quiz-mode {
  color: #8290a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

/* ===== KORT ===== */
#card {
  box-sizing: border-box;
  width: min(100%, 500px);
  min-height: 322px;
  margin: 0 auto;
  padding: 70px clamp(30px, 7.5vw, 60px) 62px;
  border: 1px solid rgba(119, 139, 170, .45);
  border-radius: 22px 22px 30px 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 222, 241, .52), transparent 32%),
    linear-gradient(145deg, #fffefb 0%, #f7f9fd 100%);
  box-shadow: 0 28px 42px rgba(33, 52, 83, .15), 0 7px 12px rgba(33, 52, 83, .07), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .3s cubic-bezier(.2,.75,.25,1), opacity .3s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  touch-action: pan-y;
}

#card::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 25px;
  left: clamp(30px, 7.5vw, 60px);
  width: 30px;
  height: 4px;
  border-radius: 99px;
  background: #2f628f;
}

#card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

#card.like::before { background: rgba(16, 133, 98, .16); opacity: 1; }
#card.dislike::before { background: rgba(188, 60, 80, .16); opacity: 1; }

.card-index {
  position: absolute;
  z-index: 2;
  top: 23px;
  left: calc(clamp(30px, 7.5vw, 60px) + 43px);
  color: #61728d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
}

#text {
  margin: 0;
  color: var(--quiz-ink);
  font-size: clamp(25px, 4.2vw, 32px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.045em;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

.card-footer {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: clamp(30px, 7.5vw, 60px);
  right: clamp(30px, 7.5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8190a5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.card-grip { width: 28px; height: 4px; border-radius: 99px; background: #d2dbe7; }

/* ===== PROGRESS ===== */
#progress {
  --progress-value: 0%;
  box-sizing: border-box;
  width: min(100%, 500px);
  min-height: 38px;
  margin: 0 auto 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--quiz-line);
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  color: #61708a;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  position: relative;
}

#progress::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: var(--progress-value);
  max-width: 100%;
  height: 3px;
  border-radius: 99px;
  background: #2f628f;
  transition: width 360ms cubic-bezier(.2,.75,.25,1);
}

/* ===== KNAPPAR ===== */
#buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: min(100%, 500px);
  margin: 18px auto 0;
}

button {
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  line-height: 1.25;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

/* Tydliga svar — färg förstärker, texten bär beslutet */
.no-btn, .yes-btn {
  display: flex;
  min-height: 82px;
  padding: 13px 24px;
  border: 0;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  filter: drop-shadow(0 3px 0 rgba(255,255,255,.92)) drop-shadow(0 9px 12px rgba(23, 35, 61, .2));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.no-btn {
  padding-left: 36px;
  background: linear-gradient(135deg, #b90f2d, #8e0b24);
  clip-path: polygon(0 50%, 23% 0, 100% 0, 100% 100%, 23% 100%);
}

.yes-btn {
  padding-right: 36px;
  background: linear-gradient(135deg, #008c53, #006d40);
  clip-path: polygon(0 0, 77% 0, 100% 50%, 77% 100%, 0 100%);
}

.no-btn::before,
.yes-btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  clip-path: inherit;
}

.no-btn::before {
  background: linear-gradient(135deg, #ff6474 0%, #f12746 100%);
}

.yes-btn::before {
  background: linear-gradient(135deg, #25df91 0%, #00b76c 100%);
}

.decision-copy { display: flex; flex-direction: column; gap: 3px; }
.decision-copy strong { font-size: 24px; font-weight: 800; letter-spacing: .015em; line-height: 1; text-transform: uppercase; }
.decision-copy small { font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1.15; opacity: .96; }
.no-btn:hover, .yes-btn:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 3px 0 rgba(255,255,255,.96)) drop-shadow(0 13px 15px rgba(23, 35, 61, .25)) saturate(1.08);
}

.no-btn:active,
.yes-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* VET EJ */
.neutral-btn {
  justify-self: center;
  min-width: 68px;
  min-height: 52px;
  margin: 0;
  padding: 8px 10px;
  background: #ffffff;
  color: #526178;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-transform: none;
  border-radius: 14px;
  border: 1px solid #d4ddea;
  box-shadow: 0 5px 12px rgba(23, 35, 61, .08);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.neutral-btn:hover {
  transform: translateY(-1px);
  background: #e9eef5;
  color: #263e5c;
  box-shadow: none;
}

.neutral-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* HOVER */
.yes-btn:hover,
.no-btn:hover {
  transform: translateY(-2px);
}

button:active {
  transform: scale(0.96);
}

button:focus-visible {
  outline: 3px solid #315f9e;
  outline-offset: 3px;
}

/* ===== SCREEN NAV (top-left back link) ===== */
.screen-nav {
  display: flex;
  justify-content: flex-start;
  margin: 0 auto 16px;
  max-width: 480px;
  padding: 0 4px;
}

.nav-link {
  background: transparent;
  border: none;
  padding: 8px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 auto 8px;
  max-width: 480px;
  padding: 0 4px;
}

/* BACK */
.back-btn {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  background: #eef3f9;
  color: #53637b;
  border: none;
  border-radius: 10px;
}

.back-btn:hover {
  background: #e1eaf5;
  color: #253856;
}

/* ===== STARTSKÄRM ===== */
#start {
  max-width: 480px;
  margin: 0 auto;
}

.start-header {
  text-align: center;
  margin: 24px 0 28px;
}

.start-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.start-all-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 18px 22px;
}

.start-all-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.start-all-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0.92;
}

.start-category-section {
  margin-top: 30px;
}

.start-category-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.027em;
  text-align: left;
}

.start-category-description {
  margin: -6px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.008em;
  text-align: left;
}

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

.manifest-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-card.manifest-card {
  --party: #146cb2;
  --party-deep: #074e86;
  --party-wash: #edf6fc;
  position: relative;
  isolation: isolate;
  min-height: 196px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 21px 19px;
  gap: 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--party) 22%, #dbe3f0);
  background: linear-gradient(145deg, #fffdf8 0%, var(--party-wash) 135%);
  box-shadow: 0 7px 18px rgba(35, 55, 74, 0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
  transition: transform 210ms cubic-bezier(.2,.8,.2,1), box-shadow 210ms cubic-bezier(.2,.8,.2,1), border-color 210ms ease, background 210ms ease;
}

.manifest-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 136px;
  height: 136px;
  top: -78px;
  right: -62px;
  border-radius: 50%;
  background: var(--party);
  opacity: 0.1;
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease;
}

.manifest-card--l {
  --party: #146cb2;
  --party-deep: #07568e;
  --party-wash: #ebf5fc;
}

.manifest-card--kd {
  --party: #165e98;
  --party-deep: #0b4778;
  --party-wash: #edf4f9;
}

.manifest-card--c {
  --party: #138044;
  --party-deep: #075d30;
  --party-wash: #edf8f1;
}

.manifest-card--mp {
  --party: #6a9e1f;
  --party-deep: #46720d;
  --party-wash: #f3f8e9;
}

.category-card.manifest-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--party) 48%, #dbe3f0);
  box-shadow: 0 16px 28px rgba(25, 64, 90, 0.17), 0 1px 0 rgba(255,255,255,0.9) inset;
}

.manifest-card:hover::before {
  transform: scale(1.18);
  opacity: 0.16;
}

.category-card.manifest-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--party) 55%, #ffffff);
  outline-offset: 4px;
  border-color: var(--party);
}

.category-card.manifest-card:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 6px 12px rgba(25, 64, 90, 0.14);
}

.manifest-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  background: #fffdf8;
  border: 1px solid color-mix(in srgb, var(--party) 20%, #ffffff);
  border-radius: 20px;
  box-shadow: 0 6px 14px rgba(12, 67, 108, 0.11);
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease;
}

.manifest-card:hover .manifest-logo-wrap {
  transform: rotate(-3deg) scale(1.04);
  box-shadow: 0 10px 18px rgba(12, 67, 108, 0.16);
}

.manifest-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.manifest-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
}

.manifest-kicker {
  color: var(--party-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.manifest-name {
  max-width: 205px;
  color: #10283b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.022em;
}

.manifest-arrow {
  position: absolute;
  right: 17px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--party-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  transition: transform 210ms cubic-bezier(.2,.8,.2,1), color 210ms ease;
}

.manifest-card:hover .manifest-arrow {
  color: var(--party);
  transform: translateX(4px);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 12px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}

.category-card:active {
  transform: translateY(0) scale(0.98);
}

.category-icon {
  font-size: 28px;
  line-height: 1;
}

.category-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.category-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .category-grid,
  .manifest-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
  }
  .category-name {
    flex: 1;
    text-align: left;
  }
  .manifest-card {
    min-height: 0;
    min-height: 92px;
    padding: 15px 112px 15px 15px;
  }
  .manifest-logo-wrap {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }
  .manifest-logo {
    width: 38px;
    height: 38px;
  }
  .manifest-card-content {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }
  .manifest-name {
    max-width: none;
  }
  .manifest-arrow {
    right: 17px;
    bottom: auto;
  }
}

/* ===== OM POLSWIPE ===== */
#about {
  max-width: 480px;
  margin: 40px auto 0;
}

.about-content {
  margin-top: 8px;
  color: #334155;
  font-size: 15px;
  line-height: 1.68;
  letter-spacing: -0.008em;
}

.about-content h3 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  line-height: 1.35;
}

.about-content p {
  margin: 0 0 12px;
}

.about-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style-position: outside;
}

.about-content li {
  margin-bottom: 6px;
  padding-left: 4px;
  line-height: 1.58;
}

.about-content ul ul {
  margin: 8px 0 4px;
  padding-left: 0;
  list-style: none;
}

.about-content ul ul li {
  position: relative;
  padding-left: 18px;
}

.about-content ul ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #94a3b8;
  font-weight: 600;
}

.about-disclaimer {
  margin-top: 24px;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

/* ===== PROFIL DANGER ZONE ===== */
.danger-zone {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  justify-content: center;
}

.danger-btn {
  background: white;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid #fecaca;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.danger-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.profile-total-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 8px;
}

.profile-total-title {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.032em;
  color: #0f172a;
  text-align: left;
}

.profile-total-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

/* ===== PROFIL KATEGORIER ===== */
.profile-section-title {
  margin: 44px 0 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.028em;
  color: #0f172a;
  text-align: left;
}

.profile-category-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-cat {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-cat.open {
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}

.profile-cat-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.profile-cat-toggle:hover {
  background: #f8fafc;
}

.profile-cat-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: #0f172a;
}

.profile-cat-meta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.profile-cat-chevron {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.profile-cat.open .profile-cat-chevron {
  transform: rotate(-180deg);
}

.profile-cat-body {
  padding: 4px 20px 20px;
}

.profile-cat-empty {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.sub-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 160px;
  margin-top: 16px;
  padding-left: 22px;
  position: relative;
}

.sub-chart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: black;
  top: 50%;
}

.axis-labels {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 1;
}

.axis-labels span {
  position: absolute;
  left: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  color: #cbd5e1;
  white-space: nowrap;
  transform-origin: left center;
}

.axis-labels .axis-top {
  bottom: 50%;
  transform: rotate(-90deg) translateX(8px);
  padding-bottom: 4px;
}

.axis-labels .axis-bottom {
  top: 50%;
  transform: rotate(-90deg) translateX(-100%) translateX(-8px);
  padding-bottom: 4px;
}

.sub-chart .axis-labels span {
  font-size: 9px;
}

.sub-chart .bar-container {
  width: 30px;
  height: 160px;
}

.sub-chart .bar-container img {
  width: 22px;
}

.sub-chart .bar {
  width: 24px;
}

/* ===== RESULTAT ===== */
#chart {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 250px;
  margin-top: 40px;
  padding-left: 22px;
  position: relative;
}

#chart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: black;
  top: 50%;
}


.bar-container {
  position: relative;
  width: 40px;
  height: 250px;
}

.bar-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  z-index: 3;
  background: white;
  border-radius: 50%;
  padding: 2px;
}

.bar {
  position: absolute;
  width: 30px;
  left: 0;
  right: 0;
  margin: auto;
}

.bar.positive {
  background: green;
}

.bar.negative {
  background: red;
}

/* TOOLTIP */
.tooltip {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 10;
  white-space: nowrap;
}

.tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

/* KATEGORIER */
#categories {
  margin-top: 10px;
}

#categories button {
  display: block;
  width: 220px;
  margin: 5px auto;
  padding: 10px;
  border-radius: 10px;
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .brand-title {
    font-size: clamp(44px, 13vw, 56px);
  }

  .title {
    font-size: 27px;
    line-height: 1.2;
  }

  #text {
    font-size: clamp(21px, 6.2vw, 24px);
    line-height: 1.38;
  }

  #quiz {
    padding-top: 0;
  }

  #quiz #topbar {
    margin-bottom: 18px;
  }

  #card {
    min-height: 260px;
    padding: 56px 26px 40px;
    border-radius: 22px;
  }

  #card::after {
    top: 22px;
    left: 26px;
  }

  #progress {
    margin-bottom: 15px;
  }

  #buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 6px;
    margin-top: 20px;
  }

  .no-btn,
  .yes-btn {
    width: auto;
    min-height: 66px;
    padding-left: 27px;
    padding-right: 27px;
  }

  .neutral-btn {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 6px;
  }

  .decision-copy small {
    display: block;
    font-size: 11px;
    line-height: 1.1;
  }

  .about-content {
    font-size: 15px;
    line-height: 1.64;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
