/* ============================================================
   Kosttillskottprisjakt — Premium svenskt
   Palett: off-white, near-black text, djupgrön som enda accent
   Typografi: Fraunces (serif headings) + Inter (body)
   ============================================================ */

:root {
  --bg:         #FAFAF7;
  --bg-alt:     #F2EFE7;
  --surface:    #FFFFFF;
  --ink:        #1A1A1A;
  --ink-soft:   #3A3A3A;
  --ink-mute:   #6B6B6B;
  --line:       #E6E2D5;
  --line-soft:  #EFEBE0;
  --accent:     #1F4730;
  --accent-dk:  #163524;
  --accent-soft:#E9EFEB;
  --gold:       #8C7A4B;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow-sm:  0 1px 2px rgba(20, 22, 18, 0.04);
  --shadow-md:  0 4px 14px rgba(20, 22, 18, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "EB Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1rem; font-weight: 600; font-family: "Inter", sans-serif; letter-spacing: 0; }

p { margin: 0 0 1.2em; color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; color: var(--ink); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap   { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px;  margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(250, 250, 247, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}
@media (max-width: 880px) {
  .menu-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--line-soft);
  }
}

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  margin-top: 2.5em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-meta .stat .num {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.hero-meta .stat .lbl {
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 6px;
}
.hero-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.hero-aside h3 {
  margin: 0 0 1em;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 64px 0 56px; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--surface);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: var(--surface); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 4px 0;
  font-weight: 500;
}
.btn-link:hover { background: transparent; color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- SECTION ---------- */
section { padding: 80px 0; }
.bg-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}
.section-head h2 { margin: 0; max-width: 720px; }
.section-head .meta {
  color: var(--ink-mute);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- DEAL TILES (Veckans toppfynd) ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.deal-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.deal-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.deal-tile .from {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.deal-tile .from-logo {
  height: 20px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.95;
}
.deal-tile h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.3;
}
.deal-tile .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 6px;
}
.deal-tile .price {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.deal-tile .price-old {
  font-size: 1rem;
  color: var(--ink-mute);
  text-decoration: line-through;
}
.deal-tile .price-save {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 22px;
}
.deal-tile .btn { margin-top: auto; }

/* ---------- HERO ASIDE (live snapshot) ---------- */
.snapshot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  gap: 18px;
}
.snapshot-row:first-of-type { border-top: 0; }
.snapshot-row .prod { font-size: 0.95rem; color: var(--ink); }
.snapshot-row .winner {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.snapshot-row .price {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}
.snapshot-row .price small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- CATEGORY TILES ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cat-tile {
  background: var(--surface);
  padding: 32px 28px;
  display: block;
  color: var(--ink);
  transition: background .15s ease;
}
.cat-tile:hover { background: var(--accent-soft); text-decoration: none; }
.cat-tile .num {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.cat-tile h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
  font-family: "Fraunces", serif;
  font-weight: 500;
}
.cat-tile p { margin: 0; color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- SHOP COMPARE (frontpage + butikssidor) ---------- */
.shop-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.shop-card .brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.shop-card .brand-logo {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}
.shop-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-family: "Fraunces", serif;
  font-weight: 500;
}
.shop-card p.tagline { color: var(--ink-soft); margin-bottom: 24px; }
.shop-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 24px;
}
.shop-card ul li {
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.shop-card ul li:first-child { border-top: 0; }
@media (max-width: 760px) {
  .shop-compare { grid-template-columns: 1fr; }
}

/* ---------- SHOP HERO ---------- */
.shop-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.shop-hero-logo {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}
.shop-hero h1 { margin-bottom: 0.4em; }
.shop-hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
@media (max-width: 760px) {
  .shop-hero { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .shop-hero-logo { max-height: 90px; width: auto; margin: 0 auto; }
}

/* ---------- PRICE TABLE ---------- */
.price-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table th,
.price-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.price-table thead th {
  background: var(--bg-alt);
  color: var(--ink-mute);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--bg); }
.price-table .num {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
}
.price-table .win {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: none;
}
.price-table .save {
  color: var(--ink-mute);
  font-size: 0.82rem;
  margin-top: 2px;
}
.price-table .th-logo {
  height: 22px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  margin: 0 0 6px;
}
.price-table .th-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ---------- ARTICLE CARDS ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px;
}
.article-card {
  display: block;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.article-card:hover { text-decoration: none; }
.article-card:hover h3 { color: var(--accent); }
.article-card .date {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.article-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.3;
  font-family: "Fraunces", serif;
  font-weight: 500;
  transition: color .15s ease;
}
.article-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 14px;
  line-height: 1.55;
}
.article-card .read {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- ARTICLE PAGE ---------- */
.article-hero {
  padding: 64px 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.article-hero h1 { margin-bottom: 18px; }
.article-meta {
  color: var(--ink-mute);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.article-body { padding: 56px 0 80px; }
.article-body h2 { margin: 2em 0 0.6em; font-size: 1.8rem; }
.article-body p { font-size: 1.08rem; line-height: 1.7; color: var(--ink-soft); }
.article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }

.cta-banner {
  margin: 48px 0;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.cta-banner h3 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Fraunces", serif;
  font-weight: 500;
}
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- BREADCRUMBS ---------- */
.crumbs {
  padding: 28px 24px 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
  max-width: 1180px;
  margin: 0 auto;
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { margin: 0 8px; color: var(--line); }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding: 64px 0 32px;
  margin-top: 96px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.93rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: 0.93rem; line-height: 1.55; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- QUIZ (kvar på /quiz/ men inte länkad publikt) ---------- */
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 40px auto;
}
.quiz-progress {
  height: 4px;
  background: var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 28px;
}
.quiz-progress .bar { height: 100%; background: var(--accent); transition: width .25s ease; }
.quiz-question {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.3;
}
.quiz-options { display: grid; gap: 10px; }
.quiz-options button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-size: 0.96rem;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-options button:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-result h2 { color: var(--ink); }

/* ---------- DISCLOSURE / UTILS ---------- */
.disclosure {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-radius: 4px;
  margin: 28px 0;
}
.list-clean { padding-left: 20px; }
.list-clean li { margin-bottom: 8px; color: var(--ink-soft); }
.text-mute { color: var(--ink-mute); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
