:root {
  --pine: #1E4A3B;
  --pine-deep: #163829;
  --ink: #15211C;
  --muted: #4B5D55;
  --paper: #F5F8F6;
  --mist: #DDE7E1;
  --sun: #F3C531;
  --sun-soft: #FCEFB8;
  --white: #FFFFFF;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius-lg: 20px;
  --radius-sm: 10px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }

/* Topbar */
.topbar {
  background: var(--pine);
  color: var(--white);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: inherit;
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
}
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 48px; width: auto; transition: transform 200ms ease; }
@media (hover: hover) { .wordmark:hover img { transform: rotate(-3deg) scale(1.04); } }
.hero-logo { display: block; width: clamp(150px, 16vw, 210px); height: auto; margin: 0 0 22px -6px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: sticker-in 700ms cubic-bezier(.2, 1.4, .4, 1) both; }
}
@keyframes sticker-in { from { opacity: 0; transform: rotate(-14deg) scale(.7); } to { opacity: 1; transform: none; } }
.footer-logo { display: block; width: clamp(200px, 24vw, 250px); height: auto; margin: 0 0 20px -6px; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
}
.topbar nav a:hover { opacity: 1; color: var(--white); }

/* Hero */
.hero {
  background: var(--pine);
  color: var(--white);
  padding: 56px 0 72px;
  scroll-margin-top: 68px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  max-width: 13ch;
  hyphens: manual;
}
.lead {
  font-size: 1.2rem;
  max-width: 38ch;
  margin: 0 0 1.2em;
  color: #E6EFEA;
}
.hero-note {
  font-size: 0.95rem;
  max-width: 44ch;
  color: #B9CDC3;
  margin: 0;
}

/* Calculator */
.calc {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px -24px rgba(8, 28, 20, 0.55);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--muted); }
.calc input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 11px 14px;
  border: 2px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  -moz-appearance: textfield;
}
.calc input:focus { border-color: var(--pine); outline: none; background: var(--white); }
.input-unit { position: relative; }
.input-unit input { padding-right: 52px; }
.input-unit span {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.95rem; pointer-events: none;
}

.result {
  margin-top: 8px;
  background: var(--sun-soft);
  border-radius: var(--radius-sm);
  padding: 18px 18px 14px;
}
.result-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.result-main span {
  display: block;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
}
.result-grid dt { font-size: 0.82rem; color: #5A5328; }
.result-grid dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.result-grid .units dd { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.result-hint { margin: 12px 0 0; font-size: 0.88rem; color: #5A5328; }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 68px; }
.section-alt { background: var(--white); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

/* Checklist */
.progress {
  height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0; background: var(--pine);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.progress-text { font-size: 0.9rem; color: var(--muted); margin: 8px 0 20px; }

.checklist { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.checklist li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--mist);
}
.checklist li:first-child { border-top: 1px solid var(--mist); }
.checklist input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 34px; height: 34px; margin: 2px 0 0;
  border: 2px solid var(--pine);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  background: var(--white);
  position: relative;
}
.checklist input[type="checkbox"]::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pine);
  font-size: 0.95rem;
}
.checklist input[type="checkbox"]:checked { background: var(--pine); }
.checklist input[type="checkbox"]:checked::before {
  content: "";
  width: 12px; height: 7px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: translateY(-2px) rotate(-45deg);
}
.checklist details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 4px 32px 4px 0;
  position: relative;
}
.checklist details summary::-webkit-details-marker { display: none; }
.checklist details summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.checklist details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.checklist details p { margin: 8px 0 4px; color: var(--muted); max-width: 62ch; }
.checklist li.is-done summary { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }

/* Compare */
.compare-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.compare-head .section-lead { margin-bottom: 0; }
.season-filter {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--sun-soft);
  padding: 8px 10px;
  border-radius: 99px;
}
.season-filter-label { font-weight: 600; font-size: 0.9rem; padding: 0 6px 0 8px; }
.chip {
  font: inherit; font-size: 0.92rem; font-weight: 600;
  border: 0; border-radius: 99px;
  padding: 7px 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { background: rgba(255, 255, 255, 0.7); }
.chip.is-active { background: var(--ink); color: var(--white); }
.season-now { margin: 18px 0 18px; font-size: 0.95rem; color: var(--muted); }
.season-now strong { color: var(--ink); }

.table-wrap { border: 1px solid var(--mist); border-radius: var(--radius-lg); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th {
  text-align: left;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  padding: 0;
}
.compare th button {
  font: inherit; font-weight: 600; font-size: 0.9rem;
  color: var(--muted);
  background: none; border: 0;
  width: 100%; text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.compare th button::after { content: "↕"; opacity: 0.35; font-size: 0.8em; }
.compare th button[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
.compare th button[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
.compare th button[aria-sort] { color: var(--ink); }
.compare th.col-season { background: var(--sun-soft); }
.compare th.col-season button { color: var(--ink); }

.compare td {
  padding: 16px;
  border-bottom: 1px solid var(--mist);
  vertical-align: top;
  font-size: 0.97rem;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr { cursor: pointer; transition: background 0.15s ease; }
.compare tbody tr:hover { background: var(--paper); }
.compare td.col-season { background: rgba(252, 239, 184, 0.45); }
.compare tbody tr:hover td.col-season { background: var(--sun-soft); }

.supplier-btn {
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--pine);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: var(--mist);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.supplier-btn:hover { text-decoration-color: var(--pine); }

.season-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tag {
  font-size: 0.78rem; font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  background: #ECF1EE; color: #4A5A52;
}
.tag.is-now { background: var(--pine); color: var(--white); }
.tag.is-delvis { background: var(--sun); color: var(--ink); }
.season-detail { font-size: 0.86rem; color: var(--muted); display: block; }

.group-row th { text-align: left; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; padding: 18px 20px 8px; background: var(--white); border-top: 2px solid var(--pine); cursor: default; }
.empty-row td { text-align: center; color: var(--muted); padding: 32px; cursor: default; }

.table-note { font-size: 0.88rem; color: var(--muted); margin-top: 16px; max-width: 70ch; }

/* Footer */
.footer { background: var(--ink); color: #C9D4CE; padding: 48px 0 56px; }
.footer .wordmark { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer p { max-width: 60ch; margin: 0 0 12px; }
.footer-small { font-size: 0.88rem; color: #8FA198; }

/* Panel */
.panel {
  border: 0; padding: 0;
  width: min(560px, 100%);
  max-height: 100vh; height: 100%;
  margin: 0 0 0 auto;
  background: var(--white);
  color: var(--ink);
}
.panel::backdrop { background: rgba(21, 33, 28, 0.45); }
.panel[open] { animation: slide-in 0.25s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel-inner { padding: 36px 32px 40px; position: relative; }
.panel-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.panel-close:hover { background: var(--mist); }
.panel-type { color: var(--muted); font-weight: 600; margin: 0 0 4px; padding-right: 48px; }
.panel h2 { font-size: 2rem; font-weight: 800; }
.panel-facts { margin: 22px 0; display: grid; gap: 0; border-top: 1px solid var(--mist); }
.panel-facts div {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--mist);
}
.panel-facts dt { color: var(--muted); font-size: 0.92rem; }
.panel-facts dd { margin: 0; font-weight: 600; }
.panel-facts div:first-child dd { background: var(--sun-soft); padding: 2px 8px; border-radius: 6px; justify-self: start; }

.panel-calc {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 24px;
}
.panel-calc p { margin: 0 0 6px; }
.panel-calc .big {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.8rem; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 8px;
}
.panel-calc .small { font-size: 0.9rem; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  font-weight: 600; font-size: 1.05rem;
  padding: 15px 22px;
  border-radius: 99px;
  background: var(--pine); color: var(--white);
  text-decoration: none;
}
.btn:hover { background: var(--pine-deep); color: var(--white); }
.panel-source { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: 0.88rem; }
  .calc { padding: 20px; }

  /* Tabellen blir kort på mobil */
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .compare, .compare tbody { display: block; width: 100%; }
  .compare thead {
    display: block;
  }
  .compare thead tr {
    display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px;
  }
  .compare th { background: none; border: 0; flex: 0 0 auto; }
  .compare th button {
    border: 1px solid var(--mist); border-radius: 99px;
    padding: 7px 12px; font-size: 0.85rem; background: var(--white);
    white-space: nowrap;
  }
  .compare th.col-season { background: none; }
  .compare th.col-season button { background: var(--sun-soft); border-color: var(--sun); }
  .compare tbody { display: grid; gap: 12px; }
  .compare td { min-width: 0; overflow-wrap: anywhere; }
  .compare tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--mist);
    border-radius: var(--radius-sm);
    background: var(--white);
    overflow: hidden;
  }
  .compare td { border: 0; padding: 10px 14px; }
  .compare td::before {
    content: attr(data-label);
    display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 2px;
  }
  .compare td:first-child { grid-column: 1 / -1; padding-top: 14px; }
  .compare td:first-child::before { display: none; }
  .compare td.col-season { grid-column: 1 / -1; }
  .compare td:nth-child(3) { grid-column: 1 / -1; }
  .empty-row { display: block !important; }
  .compare tbody tr.group-row { display: block !important; background: none; border: 0; box-shadow: none; padding: 0; margin: 18px 0 6px; border-radius: 0; overflow: visible; }
  .group-row th { display: block; padding: 10px 2px 0; border-top: 2px solid var(--pine); background: none; }

  .panel { width: 100%; max-width: 100%; margin: 0; }
  .panel-inner { padding: 28px var(--gutter) 32px; }
  .panel-facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 440px) {
  .topbar nav { gap: 12px; }
  .topbar nav a:nth-child(1), .topbar nav a:nth-child(4) { display: none; }
  .wordmark img { height: 40px; }
}

/* Område */
.area { background: var(--pine); color: var(--white); }
.area .section-lead { color: #D3E2DA; }
.area-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.area-form { margin-top: 8px; max-width: 420px; }
.area-form label { color: var(--white); font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.area-form select {
  width: 100%;
  font: inherit; font-size: 1.05rem; font-weight: 500;
  padding: 12px 40px 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2315211C' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.area-form select:disabled { opacity: 0.6; }
.area-form select:focus { border-color: var(--sun); outline: none; }
.area-source { font-size: 0.85rem; color: #A9C2B6; max-width: 46ch; margin-top: 8px; }

.area-result { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 28px; min-height: 280px; }
.area-empty { display: grid; place-content: center; text-align: center; min-height: 224px; color: var(--muted); }
.area-empty-title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin: 0 0 6px; }
.area-empty p { margin: 0 auto; max-width: 36ch; }
.area-kommun { margin: 0; color: var(--muted); font-weight: 600; }
.area-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 2px 0 8px; }
.area-type {
  display: inline-block; margin: 0 0 22px;
  background: var(--sun); color: var(--ink);
  font-weight: 700; font-size: 0.92rem;
  padding: 4px 12px; border-radius: 99px;
}
.stat { margin-bottom: 18px; }
.stat-label { font-weight: 600; font-size: 0.9rem; margin: 0 0 6px; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--mist); }
.stack span { display: block; height: 100%; }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.88rem; color: var(--muted); }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); vertical-align: -1px; }
.legend strong { color: var(--ink); font-weight: 600; }
.area-facts { margin: 4px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--mist); padding-top: 16px; }
.area-facts dt { font-size: 0.82rem; color: var(--muted); }
.area-facts dd { margin: 2px 0 0; font-weight: 600; }
.area-facts dd small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.advice { background: var(--paper); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.advice-title { font-family: var(--font-display); font-weight: 700; margin: 0 0 6px; font-size: 1.1rem; }
.advice ul { margin: 0; padding-left: 20px; }
.advice li { margin: 4px 0; }
.btn-ghost { background: var(--ink); border: 0; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { background: var(--pine-deep); }

.area-banner {
  background: var(--paper); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: -6px 0 18px; font-size: 0.95rem;
}
.area-banner button { font: inherit; color: var(--pine); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 6px; }

.compare th.col-match button { color: var(--ink); }
.match { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; margin-bottom: 4px; }
.match-bra { background: var(--pine); color: var(--white); }
.match-delvis { background: var(--sun); color: var(--ink); }
.match-samre { background: var(--mist); color: var(--ink); }
.match-why { display: block; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 880px) {
  .area-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .area-result { padding: 20px; }
  .area-facts { grid-template-columns: 1fr 1fr; }
  .compare td.col-match { grid-column: 1 / -1; }
}

/* Koppling kalkyl och område */
.calc-area { margin-top: 14px; border-top: 1px solid var(--mist); padding-top: 14px; font-size: 0.93rem; }
.calc-area p { margin: 0 0 6px; }
.calc-area-title { font-weight: 700; }
.tack { display: inline-block; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 0.88rem; }
.tack-ok { background: #DCEFE4; color: var(--pine-deep); }
.tack-mellan { background: var(--sun-soft); color: #5A4A10; }
.tack-svar { background: #F6DCD3; color: #7A2E17; }
.area-calc { border: 2px solid var(--sun); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 16px; }
.area-calc-sum { margin: 0 0 10px; font-size: 0.95rem; }
.area-calc-list { list-style: none; margin: 0; padding: 0; }
.area-calc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mist); }
.area-calc-list .match { margin: 0 0 0 6px; }
.area-calc-num { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.link-btn { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--pine); background: var(--paper); border: 1px solid var(--mist); border-radius: 99px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.link-btn:hover { border-color: var(--pine); }
.area-calc-note { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 720px) {
  .area-calc-list li { flex-direction: column; align-items: flex-start; }
}

/* Kalkylen med område */
.calc select {
  width: 100%;
  font: inherit; font-size: 1rem; font-weight: 500;
  padding: 11px 34px 11px 12px;
  border: 2px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2315211C' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
  text-overflow: ellipsis;
}
.calc select:focus { border-color: var(--pine); outline: none; background-color: var(--white); }
.calc select:disabled { opacity: 0.55; }
.result-cta {
  display: inline-block; margin-top: 12px;
  font-weight: 700; color: var(--ink);
  text-decoration-thickness: 2px;
}
.result-cta::after { content: " ↓"; }

/* Rekommendation */
.area .area-grid { grid-template-columns: 1fr 1fr; }
.area-empty a { color: var(--pine); }
.area-card .area-source { color: var(--muted); margin: 0; }
.products { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 28px; }
.products-head h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.products-head p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.products-head strong { color: var(--ink); }
.product-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.product {
  display: grid; gap: 4px; width: 100%; text-align: left;
  font: inherit; color: inherit;
  background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer;
}
.product:hover { border-color: var(--mist); background: var(--white); }
.product-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-right: 4px; color: var(--pine); }
.product-top .match { margin: 0; }
.product-type { font-size: 0.88rem; color: var(--muted); }
.product-num { font-size: 0.98rem; }
.product-num strong { font-family: var(--font-display); font-size: 1.15rem; }
.product-meta { font-size: 0.88rem; color: var(--muted); }
.product .tack { justify-self: start; margin-top: 2px; }
.product .match-why { margin-top: 2px; }
.product .match-why-samre, .product .match-why-delvis { color: var(--ink); border-left: 3px solid #C9653F; padding: 4px 0 4px 10px; margin: 6px 0; }
.product .match-why-delvis { border-left-color: var(--sun); }
.products-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 16px; }
@media (max-width: 880px) {
  .area .area-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .products { padding: 20px; }
}

/* Områdesval i rekommendationen */
.area-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--mist); }
.area-picker .field { margin: 0; }
.area-picker label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.area-picker select {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 500;
  padding: 10px 34px 10px 12px;
  border: 2px solid var(--mist); border-radius: var(--radius-sm);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2315211C' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); appearance: none; -webkit-appearance: none;
}
.area-picker select:focus { border-color: var(--pine); outline: none; }
.area-picker select:disabled { opacity: 0.55; }
.area-empty { min-height: 160px; }
@media (max-width: 480px) { .area-picker { grid-template-columns: 1fr; } }

/* Rimlighet */
.product .tack { font-weight: 600; }
.product-forslag { font-size: 0.86rem; color: var(--ink); }
.product-hh { font-size: 0.84rem; color: var(--muted); }
.panel-calc .tack { display: block; margin: 8px 0 6px; }
.products-more { display: block; width: 100%; margin: 0 0 16px; padding: 10px 14px; font-size: 0.95rem; }
.link-btn { font: inherit; font-weight: 600; color: var(--pine); background: var(--paper); border: 1px solid var(--mist); border-radius: 99px; cursor: pointer; }
.link-btn:hover { border-color: var(--pine); }

.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.plan-actions .btn { flex: 1 1 180px; }
.dela-status { margin-top: 10px; font-size: 0.9rem; color: var(--muted); word-break: break-all; }
#dela { font: inherit; font-weight: 700; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; }
#dela:hover { filter: brightness(0.96); }

/* Om oss */
.om-oss { background: var(--pine); color: var(--white); }
.om-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; max-width: 980px; }
.om-sticker img { width: 100%; height: auto; transform: rotate(-4deg); }
.om-text h2 { color: var(--white); margin-bottom: 0.5em; }
.om-text p { max-width: 60ch; color: #DCE8E1; font-size: 1.05rem; }
.om-ingress { font-size: 1.25rem !important; color: var(--white) !important; }
.om-mal { font-weight: 700; color: var(--sun) !important; }
.om-tips { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid rgba(255,255,255,0.18); color: var(--white); font-size: 1.3rem; }
.tips-form { margin-top: 18px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; max-width: 640px; }
.tips-form label { color: var(--ink); }
.tips-form input, .tips-form select, .tips-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px;
  border: 2px solid var(--mist); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.tips-form textarea { resize: vertical; }
.tips-form input:focus, .tips-form select:focus, .tips-form textarea:focus { border-color: var(--pine); outline: none; background: var(--white); }
.tips-skicka { font: inherit; font-weight: 700; border: 0; background: var(--sun); color: var(--ink); cursor: pointer; }
.tips-skicka:disabled { opacity: 0.7; cursor: default; }
.om-text .tips-note { color: var(--muted); font-size: 0.88rem; margin: 12px 0 0; }
.tips-note a { color: var(--pine); }
.om-text .tips-status { color: var(--pine); font-weight: 700; margin: 10px 0 0; }
@media (max-width: 600px) { .tips-form .field-row { grid-template-columns: 1fr; gap: 0; } .tips-form { padding: 18px; } }
@media (max-width: 760px) {
  .om-grid { grid-template-columns: 1fr; gap: 24px; }
  .om-sticker { max-width: 200px; }
}
.topbar nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 0.88rem; }
}
.dela-ruta { display: flex; gap: 8px; margin-top: 8px; }
.dela-ruta input { flex: 1 1 auto; width: auto; min-width: 0; font: inherit; font-size: 0.9rem; padding: 8px 10px; border: 2px solid var(--mist); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
.dela-ruta .btn { width: auto; min-width: 0; font: inherit; font-weight: 700; border: 0; background: var(--pine); color: var(--white); padding: 8px 16px; cursor: pointer; flex: 0 0 auto; }

/* Leverantörerna i korthet */
.lev-kort { margin-top: 40px; }
.lev-kort h3 { font-size: 1.3rem; margin-bottom: 4px; }
.lev-kort-intro { color: var(--muted); margin: 0 0 14px; }
.lev-kort details { border-top: 1px solid var(--mist); padding: 12px 0; }
.lev-kort details:last-of-type { border-bottom: 1px solid var(--mist); }
.lev-kort summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; list-style: none; }
.lev-kort summary::-webkit-details-marker { display: none; }
.lev-kort summary::before { content: "+"; font-weight: 700; color: var(--pine); width: 1em; }
.lev-kort details[open] summary::before { content: "–"; }
.lev-kort summary span { color: var(--muted); font-size: 0.92rem; }
.lev-kort details p { margin: 8px 0 0 1.6em; max-width: 70ch; }
.lev-kort .lev-fakta { color: var(--muted); font-size: 0.9rem; }

/* Vanliga frågor */
.faq h2 { margin-bottom: 18px; }
.faq-item { border-top: 1px solid var(--mist); padding: 14px 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--mist); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; font-weight: 700; color: var(--pine); width: 1em; flex: 0 0 auto; }
.faq-item[open] summary::before { content: "–"; }
.faq-item summary h3 { font-size: 1.08rem; margin: 0; }
.faq-item p { margin: 8px 0 0 1.6em; max-width: 68ch; }

/* Så funkar det, i heron */
.hero-steps { list-style: none; counter-reset: steg; margin: 0 0 1.1em; padding: 0; display: grid; gap: 10px; max-width: 46ch; }
.hero-steps li { counter-increment: steg; position: relative; padding-left: 38px; color: #E6EFEA; font-size: 1.02rem; line-height: 1.45; }
.hero-steps li::before { content: counter(steg); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 0.9rem; display: grid; place-items: center; }
.hero-steps strong { color: var(--white); }
@media (max-width: 700px) {
  .hero-steps { gap: 6px; font-size: 0.95rem; }
  .hero-steps li { font-size: 0.95rem; padding-left: 34px; }
  .hero-steps li::before { width: 24px; height: 24px; font-size: 0.82rem; }
}

/* Jämförelse, inte försäljning: liten etikett ovanför rubriken */
.hero-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; }
.hero-eyebrow .utrop { color: var(--sun); font-family: var(--font-display); font-weight: 800; font-size: 1.7em; line-height: 0; margin-left: 3px; display: inline-block; vertical-align: -0.12em; transform: rotate(12deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow .utrop { animation: studs 900ms cubic-bezier(.2, 1.6, .4, 1) 900ms both; }
}
@keyframes studs { 0% { transform: rotate(12deg) scale(0.2); opacity: 0; } 60% { transform: rotate(-6deg) scale(1.25); opacity: 1; } 100% { transform: rotate(12deg) scale(1); } }

/* Förslag per säljomgång */
.omg-block + .omg-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--mist); }
.omg-rubrik { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.omg-nr { background: var(--ink); color: var(--white); border-radius: 999px; padding: 3px 11px; font-size: 0.82rem; font-family: var(--font-body); font-weight: 600; }
.omg-belopp { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; color: var(--muted); width: 100%; }
.omg-not { margin: -4px 0 12px; font-size: 0.9rem; color: var(--muted); }
.panel-note { margin: 10px 0 0; font-size: 0.86rem; color: var(--muted); }
.nobr { white-space: nowrap; }

/* Lekfull gul handritad understrykning under "Jämför" */
.mark { position: relative; display: inline-block; white-space: nowrap; margin-bottom: 0.12em; }
.mark::after {
  content: "";
  position: absolute;
  left: -3%; right: -4%;
  bottom: -0.16em;
  height: 0.3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 40 7, 80 5, 120 9 S 180 16, 196 8' fill='none' stroke='%23F3C531' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: rotate(-1.5deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mark::after { animation: rita 650ms cubic-bezier(.3, .8, .3, 1) 450ms both; }
}
@keyframes rita { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Meny: knapp på mobil, alla val på dator */
.meny-knapp { display: none; }
.topbar nav a { white-space: nowrap; }
@media (max-width: 900px) {
  .topbar-inner { position: relative; }
  .meny-knapp { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--white); background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 44px; }
  .meny-knapp::before { content: ""; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .topbar nav { display: none; overflow: visible; }
  .topbar.oppen nav { display: grid; position: absolute; top: 100%; right: max(16px, env(safe-area-inset-right, 0px)); left: auto; min-width: 240px; background: var(--pine-deep, #173a30); border-radius: 0 0 16px 16px; padding: 8px 0; z-index: 60; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
  .topbar.oppen nav a { display: block !important; padding: 12px 20px; font-size: 1rem; opacity: 1; }
}
@media (max-width: 420px) { .topbar.oppen nav { left: 16px; right: 16px; min-width: 0; } }
.panel-mer { display: block; text-align: center; margin-top: 10px; font-size: 15px; color: var(--pine); }

/* Guide på startsidan */
.guide-tips { padding-top: 0; }
.guide-kort { display: grid; gap: 8px; justify-items: start; background: var(--sun-soft, #FFF9C4); border-radius: var(--radius-lg, 20px); padding: 28px 32px; text-decoration: none; color: var(--ink); max-width: 728px; margin-inline: auto; }
.guide-kort:hover, .guide-kort:focus-visible { outline: 2px solid var(--pine); }
.guide-typ { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pine); }
.guide-rubrik { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; }
.guide-text { font-size: 17px; line-height: 1.5; max-width: 640px; }
.guide-las { margin-top: 6px; background: var(--pine); color: var(--white); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 15px; }
