/* Vervevenn.no – felles stilark
   Konsept: hvert tilbud er en klippekupong med perforert stubb.
   Blekkstrekene er hentet fra myntmaskotens konturer. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #f7f5ff;
  --card: #ffffff;
  --ink: #17112b;
  --ink-soft: #544d6a;
  --coin: #b9adff;
  --coin-light: #ece8ff;
  --cheek: #dce4ff;
  --accent: #4f3fd6;
  --accent-dark: #3a2cb0;
  --ok: #127a4b;
  --rule: #e2ddf3;
  --line: 2px solid var(--ink);
  --radius: 18px;
  --stub: 236px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

p, li, dd { text-wrap: pretty; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reklamemerking ---------- */
.ad-note {
  margin: 0;
  padding: 9px 20px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.ad-note strong { color: var(--coin); }

/* ---------- Topp ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  font-stretch: 87%;
}
.brand:hover { color: var(--ink); }
.brand img { width: 46px; }

.checked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px;
  background: var(--card);
  border: var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.checked::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------- Forsidetopp ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 170px;
  grid-template-areas:
    "title mascot"
    "lead  mascot"
    "check mascot";
  column-gap: 16px;
  align-items: end;
  padding: 8px 0 28px;
}
.hero h1 { grid-area: title; }
.hero .lead { grid-area: lead; }
.hero .checked { grid-area: check; justify-self: start; }

.hero h1,
.page-hero h1 {
  margin: 0 0 14px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.hero h1 { font-size: clamp(50px, 8vw, 76px); }

.lead {
  max-width: 52ch;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-mascot {
  grid-area: mascot;
  align-self: end;
  width: 170px;
  transform: rotate(5deg);
  transform-origin: bottom center;
}

/* ---------- Kupong ---------- */
.coupons {
  display: grid;
  gap: 16px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.coupon {
  display: grid;
  grid-template-columns: 1fr var(--stub);
  padding: 2px;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.coupon-main {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--card);
  border-radius: 16px 0 0 16px;
}

.coupon-logo {
  width: 56px;
  height: 56px;
  border: var(--line);
  border-radius: 14px;
}

.coupon-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 87%;
  line-height: 1.2;
}
.coupon-title a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--coin);
  text-underline-offset: 4px;
}
.coupon-title a:hover { text-decoration-color: var(--ink); }

.tag {
  padding: 1px 9px;
  background: var(--cheek);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-stretch: 100%;
}

.coupon-bonus {
  margin: 6px 0 6px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-soft);
}
.coupon-bonus strong {
  margin-right: 4px;
  font-size: 28px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--ink);
}

.coupon-terms {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.coupon-risk {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.coupon-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--coin-light);
  border-left: 2px dashed var(--ink);
  border-radius: 0 16px 16px 0;
}

/* Hakk i kupongen der perforeringen møter kanten */
.coupon-stub::before,
.coupon-stub::after {
  content: "";
  position: absolute;
  left: -12px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border: var(--line);
  border-radius: 50%;
}
.coupon-stub::before { top: -12px; }
.coupon-stub::after { bottom: -12px; }

.stub-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 6px 6px 6px 14px;
  background: var(--card);
  border: var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.code-value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.code-action {
  padding: 7px 11px;
  background: var(--ink);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.code:hover .code-action { background: var(--accent); }
.code.is-copied .code-action {
  background: var(--ok);
  animation: stamp 0.35s ease-out;
}

@keyframes stamp {
  from { transform: scale(1.3) rotate(-8deg); }
  to { transform: none; }
}

.go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--accent);
  border: var(--line);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.go:hover { background: var(--accent-dark); color: #ffffff; }

.stub-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- Seksjoner ---------- */
.section { margin: 0 0 44px; }

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section p {
  max-width: 65ch;
  margin: 0 0 14px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--coin);
  border: var(--line);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
}
.steps strong { display: block; line-height: 1.3; margin-top: 8px; }
.steps span { display: block; color: var(--ink-soft); }

.steps-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps-row li { grid-template-columns: 1fr; gap: 10px; }
.steps-row strong { margin-top: 0; }

.section .tip {
  max-width: none;
  margin: 20px 0 0;
  padding: 12px 16px;
  background: var(--card);
  border: var(--line);
  border-radius: 12px;
  font-size: 15px;
}

.risk {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: var(--cheek);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Faktaboks ---------- */
.facts {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  margin: 0;
  background: var(--card);
  border: var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.facts dt,
.facts dd {
  margin: 0;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-weight: 700; background: var(--coin-light); }
.facts dd code {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
}
.facts > :nth-last-child(-n + 2) { border-bottom: 0; }

/* ---------- Spørsmål og svar ---------- */
.faq { border-top: var(--line); }
.faq details { border-bottom: var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: var(--line);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--coin); }
.faq details p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* ---------- Brødsmuler ---------- */
.crumbs { margin: 4px 0 14px; font-size: 14px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-soft);
}
.crumbs a { color: var(--ink); }

.page-hero { padding: 0 0 24px; }
.page-hero h1 { font-size: clamp(40px, 7vw, 60px); }

/* ---------- Andre koder ---------- */
.others {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.others a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  height: 100%;
  padding: 12px;
  background: var(--card);
  border: var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
}
.others a:hover { background: var(--coin-light); color: var(--ink); }
.others img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.others strong { display: block; font-size: 16px; line-height: 1.25; }
.others span { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-soft); }

/* ---------- Bunn ---------- */
.site-foot {
  margin-top: 16px;
  padding: 28px 0 44px;
  border-top: var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.site-foot a { color: var(--ink); font-weight: 600; }
.site-foot p { margin: 0 0 8px; max-width: 65ch; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }

  .hero {
    grid-template-columns: 1fr 116px;
    grid-template-areas:
      "title mascot"
      "lead  lead"
      "check check";
  }
  .hero-mascot { width: 116px; margin-bottom: 10px; }
  .lead { font-size: 17px; }

  .coupon { grid-template-columns: 1fr; }
  .coupon-main {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 16px 16px 0 0;
  }
  .coupon-bonus strong { font-size: 28px; }

  .coupon-stub {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 10px;
    padding: 12px 16px 14px;
    border-left: 0;
    border-top: 2px dashed var(--ink);
    border-radius: 0 0 16px 16px;
  }
  .stub-label { grid-column: 1 / -1; }
  .coupon-stub::before { top: -12px; left: -12px; }
  .coupon-stub::after { top: -12px; bottom: auto; left: auto; right: -12px; }

  .steps-row { grid-template-columns: 1fr; }
  .steps-row li { grid-template-columns: 40px 1fr; gap: 14px; }
  .steps-row strong { margin-top: 8px; }

  .facts { grid-template-columns: 1fr; }
  .facts dt {
    padding-bottom: 0;
    background: none;
    border-bottom: 0;
    font-size: 14px;
    color: var(--ink-soft);
  }
  .facts dd { padding-top: 2px; }
  .facts > dt:last-of-type { border-bottom: 0; }
}

@media (max-width: 360px) {
  .coupon-stub { grid-template-columns: 1fr; }
}

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