/* ============================================================
   ELYMA – standalone (Cloudflare) versjon
   Designtokens hentet fra PagePilot-produktsiden
   ============================================================ */
:root {
  --green:      #003830;   /* dyp grønn – knapper, mørke seksjoner */
  --green-2:    #008070;   /* mellomgrønn/teal – aksent */
  --green-soft: #E4EFE9;   /* lys mint – badges/aksent */
  --cream:      #FBFAF4;   /* off-white */
  --cream-2:    #EEF4EF;   /* lys grønn-hvit seksjon */
  --ink:        #003830;   /* hovedtekst */
  --muted:      #6E7A75;   /* dempet tekst */
  --line:       #D7DED9;   /* rammer */
  --gold:       #E8B23A;   /* stjerner (gull/gul) */
  --red:        #DD272B;   /* "andre" kryss i sammenligning */
  --radius: 8px;
  --maxw: 1152px;          /* max-w-6xl */
  --font: "Poppins", system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* plass til sticky ATC på mobil */
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- ANNONSEBANNER ---------- */
.announce {
  background: var(--green);
  color: var(--cream);
  text-align: center;
  font-size: .8rem;
  padding: 9px 12px;
}

/* ---------- HEADER ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 30;
}
.header .logo { display: inline-flex; align-items: center; text-decoration: none; }
.header .logo img { height: 40px; width: auto; display: block; }
.header .icon-btn { background: none; border: none; cursor: pointer; color: var(--green); display: inline-flex; }

/* ---------- HEADINGS ---------- */
h1,h2,h3 { font-weight: 700; line-height: 1.2; color: var(--green); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.6rem; }
.section-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--green); }
.section-sub { text-align: center; color: inherit; margin-bottom: 24px; }
strong { font-weight: 600; }

/* ============================================================
   PRODUKT-TOPP
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 12px 16px 32px; max-width: var(--maxw); margin: 0 auto; }

/* Galleri */
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 8px; border-radius: var(--radius); scrollbar-width: none;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.thumbs img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); cursor: pointer; opacity: .5; transition: opacity .2s; }
.thumbs img.active { opacity: 1; outline: 1px solid var(--green); }

/* Kjøpsinfo */
.buybox { display: flex; flex-direction: column; gap: 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #1A1A1A; }
.buybox h1 { font-size: 1.7rem; font-weight: 700; }
.badge { background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 600; padding: 4px 8px; border-radius: var(--radius); width: fit-content; }
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-size: 1rem; font-weight: 500; color: var(--green); }
.price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.price-save { background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: var(--radius); text-transform: uppercase; }
.pdp-sub { font-size: .9rem; color: var(--green); }
hr.soft { border: none; border-top: 1px solid var(--line); margin: 4px 0; }

.usp-list { display: grid; gap: 10px; }
.usp-list li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--green); }
.usp-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; }
.usp-ico svg { width: 20px; height: 20px; color: var(--green); }

/* ---------- KNAPPER ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: var(--cream);
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font); font-size: .9rem; font-weight: 500;
  padding: 15px 25px; text-decoration: none; width: 100%;
  transition: opacity .2s;
}
.btn:hover { opacity: .92; }
.btn svg { width: 18px; height: 18px; }
.btn-light { background: var(--cream); color: var(--green); }

.pay-icons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.pay-icons img { height: 30px; width: auto; }

/* ---------- ANMELDELSER (liten karusell i buybox) ---------- */
.mini-reviews { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; background: rgba(248,250,239,.22); border-radius: var(--radius); padding: 12px 6px; }
.mini-reviews::-webkit-scrollbar { display: none; }
.mini-review { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; gap: 16px; }
.mini-review img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mini-review p { font-size: .8rem; color: var(--green); }
.mini-review .author { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 500; margin-top: 6px; }
.verify { width: 14px; height: 14px; color: #1497ff; }

.trustpilot { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.trustpilot span { font-weight: 500; }

/* ============================================================
   SEKSJONER
   ============================================================ */
.section { padding: 40px 16px; }
.section-dark { background: var(--green); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-cream { background: var(--cream-2); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 25px; max-width: var(--maxw); margin: 0 auto; align-items: center; }
.grid2 img { border-radius: var(--radius); width: 100%; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }

/* Tidslinje-accordion */
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { border-bottom: 1px solid rgba(255,255,255,.44); padding-bottom: 8px; }
.tl-tag { background: var(--green-soft); color: var(--green); font-size: .72rem; font-weight: 500; padding: 4px 8px; border-radius: var(--radius); width: fit-content; margin-bottom: 8px; }
.tl-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 1rem; color: #fff; }
.tl-item summary::-webkit-details-marker { display: none; }
.tl-item summary .chev { transition: transform .3s; }
.tl-item[open] summary .chev { transform: rotate(180deg); }
.tl-item p { padding-top: 10px; font-size: .9rem; }

/* Ikon-feature-kort */
.feature-cards { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: var(--maxw); margin: 0 auto; }
.fcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 16px; }
.fcard .fico { width: 55px; height: 55px; border-radius: 50%; background: var(--green-soft); display: inline-flex; align-items: center; justify-content: center; }
.fcard .fico svg { width: 30px; height: 30px; color: var(--green); }
.fcard h3 { font-size: 1.25rem; font-weight: 600; }
.fcard p { font-size: .9rem; }

/* 3 enkle ikon-tekster (under Kjøp nå) */
.mini-usps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; text-align: center; }
.mini-usps .m { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .78rem; color: var(--green); }
.mini-usps svg { width: 20px; height: 20px; color: var(--green); }

/* Prosent-sirkler */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: var(--maxw); margin: 0 auto; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 6px; }
.ring { position: relative; width: 100px; height: 100px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .track { fill: none; stroke: rgba(233,240,202,.3); stroke-width: 5; }
.ring .bar { fill: none; stroke: var(--green-soft); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 282.74; stroke-dashoffset: 282.74; transition: stroke-dashoffset 2s ease-out; }
.ring .val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; }
.stat .st-title { color: var(--green-soft); font-size: 1.1rem; }
.stat .st-sub { color: var(--cream); font-size: .85rem; }

/* Sammenligningstabell */
.compare { max-width: 560px; margin: 24px auto 0; }
.compare-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.compare-grid .h { text-align: center; font-size: .85rem; font-weight: 600; padding: 10px; }
.compare-rows { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.compare-rows > div { height: 54px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .85rem; border-top: 1px solid var(--line); }
.compare-rows > div:nth-child(-n+3) { border-top: none; }
.compare-rows .feat { justify-content: flex-start; padding: 0 14px; }
.compare-rows .col-ours { background: var(--green-soft); }
.compare-rows .ok { color: var(--green); }
.compare-rows .no { color: var(--red); }
.compare-rows svg { width: 20px; height: 20px; }

/* Store anmeldelseskort */
.reviews { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; padding: 4px; scrollbar-width: none; max-width: var(--maxw); margin: 0 auto; }
.reviews::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 85%; scroll-snap-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.rcard .stars svg { width: 18px; height: 18px; }
.rcard p { font-size: .9rem; color: #1A1A1A; }
.rcard .author { display: flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 500; }

/* Garanti-stripe */
.guarantee { text-align: center; background: rgba(29,59,29,.15); color: var(--green); font-size: .9rem; padding: 10px; border-radius: var(--radius); max-width: var(--maxw); margin: 0 auto; }

/* Marquee (logo-rad) */
.marquee { background: var(--green); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 60px; align-items: center; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track img { height: 22px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- PRODUKT-TOPP (ny) ---------- */
.pdp-title { font-size: 1.9rem; font-weight: 800; letter-spacing: .01em; line-height: 1.05; color: var(--green); }
.rating-line u { text-decoration: underline; }
.pdp-lead { font-size: 1rem; color: #1A1A1A; }

/* Fordeler 2x2 */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin: 8px 0; }
.feat { display: flex; align-items: center; gap: 14px; }
.feat-ico { flex: 0 0 auto; width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; }
.feat-ico svg { width: 100%; height: 100%; color: var(--green); }
.feat-ico img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.feat p { font-size: .95rem; color: var(--green); line-height: 1.35; }

/* Klinisk callout (nøytral grå boks – som referansen) */
.callout { display: flex; gap: 14px; align-items: center; border: 1px solid #ECECEC; border-radius: 16px; padding: 14px 18px; background: #F7F7F7; }
.callout-ico { flex: 0 0 auto; }
.callout-ico img { width: 62px; height: 62px; object-fit: contain; }
.callout-title { font-weight: 700; font-style: italic; font-size: .98rem; color: #1A1A1A; margin-bottom: 3px; line-height: 1.25; }
.callout p { font-size: .82rem; color: #333; line-height: 1.4; }

/* Tilbud-overskrift */
.offer-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.offer-head span { flex: 1; height: 1px; background: var(--green); opacity: .35; }
.offer-head h2 { font-size: 1.25rem; font-weight: 600; white-space: nowrap; }

/* Bundeltilbud */
.bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; align-items: start; }
.bundle { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; overflow: hidden; }
.bundle input { position: absolute; opacity: 0; pointer-events: none; }
.bundle-tag { display: block; width: 100%; text-align: center; background: #DBDBD8; color: #2A2A2A; font-size: .8rem; font-weight: 600; padding: 8px 4px; }
.bundle-tag--ghost { background: transparent; }
.bundle-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 22px 10px 24px; }
.bundle-body img { width: 88%; aspect-ratio: 1/1; object-fit: contain; margin-bottom: 12px; }
.bundle-days { font-size: 1.5rem; font-weight: 800; color: #1A1A1A; line-height: 1.05; }
.bundle-qty { font-size: .74rem; font-style: italic; color: var(--muted); margin-bottom: 10px; }
.bundle-price { font-size: 1.35rem; font-weight: 800; color: #1A1A1A; }
.bundle-old { font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-top: 2px; }
/* alle blokker hvite; kun valgt/hover blir grønt */
.bundle:hover { border-color: var(--green); }
.bundle:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }

/* Trust-liste */
.trust-items { list-style: none; display: grid; gap: 12px; }
.trust-items li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--green); }
.ti-ico svg { width: 22px; height: 22px; color: var(--green); }

/* Info-accordions (tabs) */
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tabs details { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.tabs summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px; font-size: 1.05rem; font-weight: 500; color: var(--green); }
.tabs summary::-webkit-details-marker { display: none; }
.tab-l { display: flex; align-items: center; gap: 12px; }
.tab-l svg { width: 20px; height: 20px; }
.tabs .chev { width: 20px; height: 20px; transition: transform .3s; }
.tabs details[open] .chev { transform: rotate(180deg); }
.tabs details p { padding: 0 16px 16px; color: var(--muted); font-size: .9rem; }

/* Verifisert anmeldelse (karusell) */
.vreviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.vreviews::-webkit-scrollbar { display: none; }
.vrev { flex: 0 0 100%; scroll-snap-align: center; padding: 20px; }
.vrev-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.vrev-name { font-weight: 700; font-size: .85rem; color: var(--green); }
.vrev p { color: #1A1A1A; font-size: .95rem; }
.vrev-verify { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--green-2); font-size: .85rem; margin-top: 12px; }
.vrev-verify svg { width: 18px; height: 18px; }
.vrev-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.vrev-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.vrev-dots button.active { background: var(--green); }

/* ---------- TILLITSBALK ---------- */
.trust-strip { display: flex; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.trust-strip .tb { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px 8px; font-size: .78rem; font-weight: 600; color: var(--green); }
.trust-strip .tb + .tb { border-left: 1px solid var(--line); }
.trust-strip svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- STEG ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem; }
.step h3 { font-size: 1.1rem; font-weight: 600; }
.step p { font-size: .9rem; color: var(--muted); max-width: 280px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; font-weight: 600; color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; flex: 0 0 auto; transition: transform .3s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 4px 16px; color: var(--muted); font-size: .92rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--green); color: #d9e0d2; padding: 40px 16px 28px; text-align: center; }
.footer .logo { font-weight: 700; color: #fff; margin-bottom: 20px; display: inline-block; }
.footer .logo-word { font-weight: 300; font-size: 1.5rem; letter-spacing: .5em; padding-left: .5em; color: var(--cream); }
.footer nav { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.footer nav a { color: #cdd6c6; text-decoration: none; font-size: .88rem; }
.footer .legal { font-size: .72rem; color: #9fa896; margin-top: 16px; }

/* ---------- STICKY ATC (mobil) ---------- */
.sticky-atc {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--green); display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; transform: translateY(110%); transition: transform .3s;
}
.sticky-atc.show { transform: translateY(0); }
.sticky-atc img { width: 40px; height: 40px; border-radius: var(--radius); object-fit: cover; }
.sticky-atc .t { color: var(--cream); font-size: .85rem; font-weight: 500; flex: 1; }
.sticky-atc .btn { width: auto; padding: 12px 18px; background: var(--cream); color: var(--green); text-transform: uppercase; font-size: .8rem; }

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 900px) {
  h1, .buybox h1 { font-size: 2.2rem; }
  .pdp-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
  .pdp { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding-top: 24px; }
  .gallery { position: sticky; top: 90px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 50px; }
  .feature-cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .reviews .rcard { flex-basis: 31%; }
  .footer { display: grid; grid-template-columns: repeat(3,1fr); text-align: left; gap: 20px; }
  .footer .logo, .footer .legal { grid-column: 1/-1; text-align: center; }
  .sticky-atc { display: none; }
  body { padding-bottom: 0; }
}
