/* attvinsekken.no – sideskal i Attvin-stil.
   Bygger på css/attvin.css (fonter + tokens). Hovedfarge: blå.
   Bestillingsflyten (checkout.css) og kvittering (receipt.css) deler samme grunnlag. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1100px 420px at 15% -6%, #EAF3FC 0%, rgba(234,243,252,0) 60%),
    radial-gradient(900px 360px at 92% 2%, #E7F7EE 0%, rgba(231,247,238,0) 62%),
    var(--page-bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(0, 101, 193, 0.12);
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--attvin-blue-dark);
}
.site-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--attvin-blue); color: #fff;
  font-family: var(--font-serif); font-weight: 700; font-size: 20px; line-height: 1;
}
.site-logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > a {
  color: var(--attvin-blue-dark); text-decoration: none; font-weight: 600; font-size: 15px;
}
.site-nav > a:hover { color: var(--attvin-blue); text-decoration: underline; }
.hdr-account { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--attvin-blue-dark); }

/* ---------- Pill-knappar (Attvin) ---------- */
.attv-pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 700; font-size: 16px; line-height: 1;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .06s ease, box-shadow .18s ease;
}
.attv-pill:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.attv-pill:active { transform: translateY(1px); }
.attv-pill-blue { background: var(--attvin-blue); color: #fff; box-shadow: var(--shadow-blue); }
.attv-pill-blue:hover { background: var(--attvin-blue-dark); }
.attv-pill-green { background: var(--attvin-green); color: #06341a; }
.attv-pill-green:hover { background: var(--attvin-green-dark); color: #fff; }
.attv-pill-purple { background: var(--attvin-purple); color: #fff; }
.attv-pill-purple:hover { background: var(--attvin-purple-dark); }
.attv-pill-ghost {
  background: #fff; color: var(--attvin-blue-dark);
  border-color: rgba(0, 101, 193, 0.35);
}
.attv-pill-ghost:hover { border-color: var(--attvin-blue); background: var(--attvin-blue-light); }

/* ---------- Hero ---------- */
.hero { padding: 84px 24px 52px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 700;
  color: var(--attvin-blue-dark);
  font-size: var(--fs-display);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px;
  text-wrap: balance;
}
.hero-sub {
  font-family: var(--font-serif); font-weight: 400; color: var(--attvin-blue);
  font-size: var(--fs-lead);
  line-height: 1.3;
  margin: 0 auto 30px; max-width: 560px;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Slik fungerer det (3 pastellkort) ---------- */
.steps { max-width: 1180px; margin: 0 auto; padding: 28px 20px 8px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.step-card {
  position: relative;
  border-radius: 24px; padding: 26px 26px 30px; text-align: center;
  overflow: hidden;
}
/* nummer-merke som gir rekkefølgen visuell tyngde */
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 16px; left: 18px;
  width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 800; font-size: 14px;
  color: #fff; background: var(--attvin-blue);
  box-shadow: var(--shadow-sm);
}
.steps-grid { counter-reset: step; }
.step-card-yellow { background: var(--attvin-yellow-light); }
.step-card-green  { background: var(--attvin-green-light); }
.step-card-purple { background: var(--attvin-purple-light); }
.step-media {
  height: 190px; border-radius: 16px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.step-media i { font-size: 66px; color: var(--attvin-blue); opacity: 0.9; }
.step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-card h2 {
  font-family: var(--font-serif); font-weight: 700; color: var(--attvin-blue-dark);
  font-size: 1.7rem; line-height: 1.1; margin: 0 0 12px;
  text-wrap: balance;
}
.step-card p {
  font-family: var(--font-sans); font-weight: 400; color: #26405c;
  font-size: 1rem; line-height: 1.55; margin: 0 0 12px;
}
.step-card p:last-child { margin-bottom: 0; }
.steps-cta { display: flex; justify-content: center; margin: 38px 0 8px; }

/* ---------- Checkout-wrapper (flyten er ellers urørt) ---------- */
/* Bestillingsmodulen flukter i bredde med de tre stegkortene (.steps). */
.checkout-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; padding: 28px 20px 72px; }
.faq h2 {
  font-family: var(--font-serif); font-weight: 700; color: var(--attvin-blue-dark);
  font-size: var(--fs-h2); margin: 0 0 22px; text-align: center;
  letter-spacing: -0.01em;
}
.faq details {
  background: #fff; border: 1px solid rgba(0, 101, 193, 0.14); border-radius: 16px;
  padding: 4px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.faq details[open] { border-color: rgba(0, 101, 193, 0.28); box-shadow: var(--shadow-md); }
.faq summary {
  font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--attvin-blue-dark);
  list-style: none; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--attvin-blue); font-weight: 700; font-size: 1.4rem;
  line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.faq a { color: var(--attvin-blue); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 32px 28px; font-size: 14px;
  color: var(--attvin-blue-dark);
  border-top: 1px solid rgba(0, 101, 193, 0.12);
  background: rgba(255, 255, 255, 0.6);
}
.site-footer a { color: var(--attvin-blue); }

.is-hidden { display: none !important; }

@media (max-width: 640px) {
  .site-nav > a { display: none; }
  .hero { padding: 56px 18px 36px; }
}
