/* ============================================================
   SJØLAPPEN — NETTKURS
   Friskere, Kurzgesagt-inspirert palett.
   Beholder navy/teal som bro til markedssiden.
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Bro-farger (samme som markedsside) */
  --navy:        #0d2137;
  --navy-mid:    #163350;
  --navy-light:  #1e4a73;
  --teal:        #2a9d8f;
  --teal-dark:   #1f7268;

  /* Nye, energiske aksenter (Kurzgesagt-vibe) */
  --coral:       #FF6B6B;
  --coral-dark:  #C92A2A; /* dypere — hvit tekst gir 5.4:1 (WCAG AA), brukes på primærknapp */
  --sunshine:    #FFD93D;
  --golden:      #FFB347;
  --mint:        #4ECDC4;
  --sky:         #7CB6E0;
  --plum:        #6A4C93;
  --teak:        #a0683f;

  /* Bakgrunner */
  --sail-white:  #fafaf6;
  --cream:       #f3ebd9;
  --paper:       #FFFDF7;
  --ink:         #1a2332;

  /* Surface tokens */
  --surface:        #ffffff;
  --surface-warm:   var(--cream);
  --surface-dark:   var(--navy);

  /* Tekst */
  --text:          var(--ink);
  --text-muted:    #5a6b7a;
  --text-on-dark:  var(--sail-white);

  /* Form & motion */
  --radius:       14px;
  --radius-lg:    22px;
  --radius-pill:  999px;
  --shadow-card:  0 8px 24px rgba(13, 33, 55, 0.08), 0 2px 6px rgba(13, 33, 55, 0.06);
  --shadow-pop:   0 18px 40px rgba(13, 33, 55, 0.12), 0 4px 10px rgba(13, 33, 55, 0.08);
  --bounce:       cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-width: 1200px;
}

/* ---------- BASE ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--sail-white);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--text); max-width: 60ch; }

a { color: var(--teal-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--coral-dark); }

img, svg { max-width: 100%; display: block; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(64px, 8vw, 120px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow--teal { color: var(--teal-dark); }
.eyebrow--plum { color: var(--plum); }

/* ---------- HEADER ---------- */
.k-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, 0.85);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(13, 33, 55, 0.08);
}

.k-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.k-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.k-logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--sunshine);
}

/* Ekte Sjølappen-logo (rød redningsbøye + Playfair-wordmark). Brukes på alle
   sider for konsistens — erstatter den gamle generiske bølge-marken. */
.k-logo__img {
  height: 30px;
  width: auto;
  display: block;
}
@media (max-width: 560px) { .k-logo__img { height: 26px; } }

.k-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
/* Tekst-lenker i nav (f.eks. «Profil») hadde ingen regel → 26px. Sikre tap-mål. */
.k-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.k-nav__link:hover { color: var(--teal-dark); }

/* Header-CTAs i .k-nav har inline `padding: 9px 16px` for desktop. På mobile
   trenger vi minst 44×44px touch — override her, fortsatt visuelt diskret. */
@media (max-width: 600px) {
  .k-nav .btn {
    padding: 11px 16px !important;
    font-size: 0.92rem !important;
    min-height: 44px;
  }
  .k-header__inner { padding: 14px 18px; }
  .k-logo { font-size: 1.1rem; gap: 8px; min-height: 44px; }
  .k-logo__mark { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  /* Skjul " — Nettkurs"-spannet (har inline color: var(--teal-dark)) — men
     IKKE .k-logo__mark (SVG-ikonet). Hevet 380→480: tekst-logo + nav-knapp
     overflowet på iPhone 12–15 (390/393px). */
  .k-logo span[style*="teal-dark"],
  .k-logo span:not(.k-logo__mark):last-child { display: none; }
  .k-nav .btn { padding: 11px 12px !important; font-size: 0.88rem !important; }
}
@media (max-width: 360px) {
  /* Smaleste skjermer (iPhone SE 1.gen): stram header så logo + nav alltid får plass. */
  .k-header__inner { padding: 12px 12px; }
  .k-nav { gap: 6px; }
  .k-nav .btn { padding: 9px 10px !important; font-size: 0.82rem !important; min-height: 40px; }
  .k-logo { font-size: 1rem; gap: 6px; }
}

/* ---------- KNAPPER ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
  font-family: inherit;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--coral-dark);
  color: white;
  box-shadow: 0 6px 0 #9e2120, 0 12px 24px rgba(201, 42, 42, 0.25);
}
.btn--primary:hover {
  background: #a52220;
  color: white;
}

.btn--secondary {
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 0 var(--navy-mid), 0 10px 22px rgba(13, 33, 55, 0.18);
}
.btn--secondary:hover { background: var(--navy-mid); color: white; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(13, 33, 55, 0.15);
}
.btn--ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--navy); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- HERO (full-bleed) ---------- */
.k-hero {
  position: relative;
  min-height: clamp(560px, 86vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(96px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  background-image: url('img/fjord-vista.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Lett "morning haze" scrim — varm cream, kun på venstre side for å gi tekstkontrast uten å mørke bildet. */
.k-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(255, 253, 247, 0.94) 0%,
    rgba(255, 253, 247, 0.82) 18%,
    rgba(255, 253, 247, 0.40) 34%,
    rgba(255, 253, 247, 0.05) 48%,
    rgba(255, 253, 247, 0) 56%
  );
  pointer-events: none;
}

.k-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.k-hero__copy {
  max-width: 540px;
}

.k-hero__copy h1 {
  margin-bottom: 22px;
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.45);
}
.k-hero__lede {
  font-size: 1.18rem;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 42ch;
  text-shadow: 0 1px 0 rgba(255, 253, 247, 0.5);
}

.k-hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.k-hero__meta {
  display: flex;
  gap: 22px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.k-hero__meta span { display: flex; align-items: center; gap: 8px; }
.k-hero__meta svg { color: var(--teal-dark); }

/* Mobil: lavere intensitet på venstre-scrim siden bildet uansett vises mer komprimert. */
@media (max-width: 720px) {
  .k-hero {
    min-height: 88vh;
    background-position: 70% center;
  }
  .k-hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 253, 247, 0.96) 0%,
      rgba(255, 253, 247, 0.80) 40%,
      rgba(255, 253, 247, 0.45) 65%,
      rgba(255, 253, 247, 0) 88%
    );
  }
  .k-hero__copy { max-width: none; }
}

/* ---------- DIFFERENSIATOR-GRID ---------- */
.differs {
  background: var(--sail-white);
}

.differs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
  margin-top: 48px;
}

.diff-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(13, 33, 55, 0.06);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-pop);
}

.diff-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: white;
}
.diff-card--coral  .diff-card__icon { background: var(--coral); }
.diff-card--teal   .diff-card__icon { background: var(--mint); }
.diff-card--gold   .diff-card__icon { background: var(--golden); color: var(--navy); }
.diff-card--sky    .diff-card__icon { background: var(--sky); }
.diff-card--plum   .diff-card__icon { background: var(--plum); }
.diff-card--navy   .diff-card__icon { background: var(--navy); color: var(--sunshine); }

.diff-card h3 { margin-bottom: 10px; }
.diff-card p  { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- "Slik fungerer det" ---------- */
.steps {
  background: var(--cream);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step__num {
  position: absolute;
  top: -22px;
  left: 24px;
  width: 48px; height: 48px;
  background: var(--coral);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 600;
  box-shadow: 0 4px 0 var(--coral-dark);
}

.step h3 { margin: 12px 0 10px; }
.step p { color: var(--text-muted); }

/* ---------- PAKKER (CTA-blokk) ---------- */
.packages { background: var(--paper); }

.pack-grid {
  display: grid;
  /* min(300px,100%) → kolonnen krymper på skjermer < 300px (iPhone SE) i stedet
     for å tvinge horisontal scroll. Null endring på bredere skjermer. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  margin-top: 48px;
}

.pack {
  background: white;
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  border: 2px solid rgba(13, 33, 55, 0.08);
  position: relative;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s ease;
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.pack--featured {
  border-color: var(--coral);
  background: #fff;
}
.pack--featured::before {
  content: "Mest valgt";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 0 var(--coral-dark);
}

.pack__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.pack__price {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 16px 0 6px;
  font-variant-numeric: tabular-nums;
}
.pack__price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }

.pack__lede { color: var(--text-muted); margin-bottom: 20px; }

.pack__features {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
}
.pack__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.96rem;
  color: var(--text);
}
.pack__features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--mint);
}

/* ---------- FAQ ---------- */
.faq { background: var(--sail-white); }

.faq__list {
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq details {
  background: white;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--coral);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > p {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

/* ---------- FOOTER ---------- */
.k-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 56px 0 32px;
  margin-top: 0;
}

.k-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .k-footer__grid { grid-template-columns: 1fr; }
  .k-footer a { padding: 9px 0; }   /* større tap-mål på touch (stablet, full bredde) */
}

.k-footer h3, .k-footer h4 {
  color: var(--sail-white);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.k-footer a { color: rgba(250,250,246,0.78); display: block; padding: 4px 0; }
.k-footer a:hover { color: white; }

.k-footer__copy {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(250,250,246,0.6);
  font-size: 0.88rem;
}

/* ---------- MISC ---------- */
.section-title { margin-bottom: 16px; }
.section-lede  { color: var(--text-muted); max-width: 56ch; font-size: 1.05rem; }

.center { text-align: center; }
.center-narrow { max-width: 720px; margin: 0 auto; text-align: center; }
.center-narrow .section-lede { margin-left: auto; margin-right: auto; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------- PAKKER-SIDE ---------- */
.page-pakker { background: var(--sail-white); }

.pakker-intro {
  padding: clamp(72px, 10vh, 120px) 0 clamp(24px, 4vh, 48px);
  background: var(--paper);
}
.pakker-intro h1 { margin-bottom: 18px; }

.pakker-grid {
  padding: clamp(40px, 6vh, 80px) 0 clamp(48px, 8vh, 96px);
  background: var(--paper);
}

/* Pakke-kort utvidelser */
.pack { position: relative; padding-top: 52px; }

.pack__tag {
  position: absolute;
  top: 22px;
  left: 32px;
  background: rgba(13, 33, 55, 0.06);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.pack--featured .pack__tag {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 0 var(--coral-dark);
}
.pack--featured::before { display: none; }  /* erstatt "Mest valgt"-pill med pack__tag */

.pack__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}
.pack__price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.pack__price-detail {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pack__features svg.check,
.pack__features svg.dash {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 4px;
}
.pack__features svg.check--coral { stroke: var(--coral); }
.pack__features svg.dash { stroke: rgba(13, 33, 55, 0.25); }
.pack__features li.muted { color: var(--text-muted); }
.pack__features li.strong { font-weight: 600; }

.pack__cta { width: 100%; margin-top: 8px; }

.garanti-note {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 28px;
  margin-top: 2px;
}

.disclaimer {
  margin-top: 32px;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.55;
}
.disclaimer strong { color: var(--navy); font-weight: 600; }

/* ---------- SAMMENLIGNING-TABELL ---------- */
.compare {
  background: var(--sail-white);
  padding: clamp(72px, 10vh, 120px) 0;
}

.compare__table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(13, 33, 55, 0.06);
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 600px;
}
.compare__table thead th {
  padding: 22px 24px;
  text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  background: var(--cream);
  border-bottom: 2px solid rgba(13, 33, 55, 0.08);
}
.compare__table th.compare__featured {
  background: var(--coral);
  color: white;
}
.compare__table tbody th {
  text-align: left;
  font-weight: 500;
  padding: 16px 24px;
  color: var(--text);
  border-bottom: 1px solid rgba(13, 33, 55, 0.06);
  width: 50%;
}
.compare__table tbody td {
  padding: 16px 24px;
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid rgba(13, 33, 55, 0.06);
}
.compare__table tbody tr:last-child th,
.compare__table tbody tr:last-child td { border-bottom: none; }
.compare__table tbody tr:hover { background: rgba(255, 217, 61, 0.06); }

/* ---------- TRUST-GRID ---------- */
.trust {
  background: var(--cream);
  padding: clamp(72px, 10vh, 120px) 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}

.trust__item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.trust__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
}
.trust__icon--coral { background: var(--coral); }
.trust__icon--mint  { background: var(--mint); }
.trust__icon--gold  { background: var(--golden); color: var(--navy); }

.trust__item h3 { margin-bottom: 10px; }
.trust__item p  { color: var(--text-muted); }

/* ---------- AUTH-SIDER (registrer / login / glemt) ---------- */
.page-auth {
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 80px 24px calc(80px + env(safe-area-inset-bottom));
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-pop);
  border: 1px solid rgba(13, 33, 55, 0.05);
}

.auth-card__mascot {
  width: 96px;
  height: 96px;
  margin: -88px auto 16px;
  border-radius: 50%;
  background: var(--sunshine);
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-card h1 {
  font-size: 1.85rem;
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .auth-lede {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid rgba(13, 33, 55, 0.12);
  border-radius: var(--radius);
  background: var(--sail-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus {
  border-color: var(--coral);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
  /* outline håndteres av a11y.css :focus-visible */
}
.field input::placeholder { color: rgba(13, 33, 55, 0.58); }

.field--username input {
  padding-left: 34px;
}
.field--username {
  position: relative;
}
.field--username::before {
  content: "@";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(calc(-50% + 14px));
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.field-status {
  font-size: 0.86rem;
  margin-top: 6px;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-status--ok    { color: var(--teal-dark); }
.field-status--bad   { color: var(--coral-dark); }
.field-status--checking { color: var(--text-muted); }

.auth-submit {
  width: 100%;
  margin-top: 12px;
}

.auth-error {
  background: #fff2f2;
  border: 1px solid rgba(230, 57, 70, 0.25);
  color: var(--coral-dark);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.auth-success {
  background: #effaf3;
  border: 1px solid rgba(46, 160, 67, 0.25);
  color: #1f7d3a;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 24px 0 18px;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(13, 33, 55, 0.10);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-foot {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 24px;
}
.auth-foot a { color: var(--coral-dark); font-weight: 600; }
.auth-foot a:hover { color: var(--navy); }

/* Pakke-velger på registrer */
.pkg-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.pkg-toggle__option {
  border: 2px solid rgba(13, 33, 55, 0.12);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  cursor: pointer;
  background: var(--sail-white);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pkg-toggle__option:hover {
  border-color: var(--coral);
}
.pkg-toggle__option input { display: none; }
.pkg-toggle__option--active {
  border-color: var(--coral);
  background: #fff7f5;
}
.pkg-toggle__name { font-weight: 600; color: var(--navy); display: block; margin-bottom: 2px; font-size: 0.95rem; }
.pkg-toggle__price { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- DASHBOARD ---------- */
.page-dashboard {
  background: var(--sail-white);
  min-height: 100vh;
  min-height: 100dvh;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}
.user-pill__name { font-weight: 600; }

.dash { padding: 48px 0 96px; }

.dash-welcome {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--cream);
  border-top: 3px solid var(--teak);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.dash-welcome h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 4px;
}
.dash-welcome__lede { color: var(--text-muted); max-width: 50ch; }

.dash-stats {
  display: flex;
  gap: 18px;
}
.dash-stat {
  background: white;
  border-radius: var(--radius);
  padding: 14px 22px;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 4px 12px rgba(13, 33, 55, 0.06);
}
.dash-stat__num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
}
.dash-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-info-banner {
  background: var(--cream);
  border: 1px solid rgba(255, 179, 71, 0.4);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0 0 32px;
}
.dash-info-banner strong { font-weight: 700; }
.dash-info-banner em { font-style: normal; font-weight: 600; color: var(--coral-dark); }

.dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.dash-action {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s ease;
  border: 1px solid rgba(13, 33, 55, 0.05);
}
.dash-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  color: var(--navy);
}
.dash-action__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}
.dash-action--coral .dash-action__icon { background: var(--coral); }
.dash-action--gold  .dash-action__icon { background: var(--golden); color: var(--navy); }
.dash-action--mint  .dash-action__icon { background: var(--mint); }
.dash-action--plum  .dash-action__icon { background: var(--plum); }
.dash-action__title { font-weight: 600; font-size: 0.98rem; margin-bottom: 1px; }
.dash-action__sub   { color: var(--text-muted); font-size: 0.84rem; }

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-section-head h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.dash-section-sub { color: var(--text-muted); font-size: 0.92rem; }

.modul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.modul-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(13, 33, 55, 0.05);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s ease;
}
.modul-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.modul-card__num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-dark);
  margin-bottom: 6px;
}
.modul-card__title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.modul-card__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.modul-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(13, 33, 55, 0.05);
  border-radius: var(--radius-pill);
}
.modul-card--locked { opacity: 0.78; }

@media (max-width: 720px) {
  .dash-welcome { grid-template-columns: 1fr; }
  .dash-stats   { gap: 10px; }
  .dash-stat    { padding: 12px 14px; min-width: 0; flex: 1; }
}

/* ---------- Pakker-status / kjøps-banner ---------- */
.purchase-status {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 14px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  font-weight: 500;
  z-index: 100;
}
.purchase-status--warn {
  background: #fff2f2;
  color: var(--coral-dark);
  border: 1px solid rgba(230, 57, 70, 0.25);
}
.purchase-status--ok {
  background: #effaf3;
  color: #1f7d3a;
  border: 1px solid rgba(46, 160, 67, 0.25);
}

