/* =========================================================
   Jarl-lotteriet – skjarllotteriet.no
   Ren HTML/CSS. Farger basert på klubbens brune drakter.
   ========================================================= */

:root {
  --brown-900: #2b170a;
  --brown-800: #3d2210;
  --brown-700: #5a3418;
  --brown-500: #8a5a33;
  --gold: #e3a72f;
  --gold-dark: #c48a16;
  --cream: #f7efe2;
  --cream-2: #efe3cf;
  --white: #ffffff;
  --ink: #23170e;
  --muted: #6e5c4d;
  --line: #e2d4bf;
  --green: #2f7a4a;
  --red: #b23a2e;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(43, 23, 10, .10);
  --shadow-lg: 0 24px 60px rgba(43, 23, 10, .18);
  --max: 1180px;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown-700); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--brown-900); box-shadow: 0 8px 20px rgba(227,167,47,.35); }
.btn-gold:hover { background: #f0b843; color: var(--brown-900); }
.btn-brown { background: var(--brown-700); color: var(--cream); }
.btn-brown:hover { background: var(--brown-800); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--brown-700); background: transparent; }
.btn-ghost-light { border-color: rgba(247,239,226,.5); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(247,239,226,.1); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brown-900); color: var(--cream-2); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 20px; }
.topbar-license { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,122,74,.3); }

/* ---------- Header ---------- */
.site-header { background: var(--brown-700); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 var(--gold); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand img { width: 46px; height: auto; }
.brand-text { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: 1.55rem; letter-spacing: .02em; }
.brand-text small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .18em; color: var(--gold); margin-top: 4px; }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { display: block; width: 24px; height: 2.5px; background: var(--cream); border-radius: 2px; position: relative; content: ""; }
.nav-burger span::before { position: absolute; top: -8px; }
.nav-burger span::after { position: absolute; top: 8px; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.main-nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.btn, .brand-text { white-space: nowrap; }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(227,167,47,.22), transparent 60%),
    linear-gradient(160deg, var(--brown-700) 0%, var(--brown-900) 100%);
  color: var(--cream);
  padding: 80px 0 110px;
}
.hero::before { /* banemerking */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 55%, transparent 150px, rgba(247,239,226,.07) 151px, rgba(247,239,226,.07) 153px, transparent 154px),
    linear-gradient(90deg, transparent calc(78% - 1px), rgba(247,239,226,.07) calc(78% - 1px), rgba(247,239,226,.07) calc(78% + 1px), transparent calc(78% + 1px));
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero h1 span { color: var(--gold); }
.hero-lead { font-size: 1.15rem; color: var(--cream-2); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hero-facts li { border-left: 3px solid var(--gold); padding-left: 12px; }
.hero-facts strong { display: block; font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--white); }
.hero-facts span { font-size: .85rem; color: var(--cream-2); }

/* Lodd-kort i hero */
.ticket {
  position: relative; background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.ticket::before, .ticket::after { /* perforering */
  content: ""; position: absolute; top: 62%; width: 30px; height: 30px; border-radius: 50%; background: var(--brown-800);
}
.ticket::before { left: -15px; }
.ticket::after { right: -15px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ticket-head img { width: 54px; }
.ticket-tag { background: var(--brown-700); color: var(--gold); font-family: var(--font-head); font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .08em; font-size: .9rem; }
.ticket h3 { font-size: 2rem; margin-bottom: 4px; }
.ticket-price { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; color: var(--brown-700); line-height: 1; }
.ticket-price small { font-size: 1.2rem; color: var(--muted); }
.ticket-cut { border-top: 2px dashed var(--line); margin: 22px -30px 18px; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .88rem; }
.ticket-meta b { display: block; font-size: 1rem; }
.ticket-no { font-family: "Courier New", monospace; letter-spacing: .2em; color: var(--muted); font-size: .8rem; margin-top: 16px; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--brown-800); color: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--cream-2); }

/* Statusbånd */
.status-strip { margin-top: -54px; position: relative; z-index: 2; }
.status-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.status-card > div { padding: 24px 26px; border-right: 1px solid var(--line); }
.status-card > div:last-child { border-right: 0; }
.status-card small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.status-card strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--brown-700); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .card { background: var(--cream); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.step { position: relative; padding-top: 60px; }
.step-num { position: absolute; top: 22px; left: 28px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--brown-900); display: flex; align-items: center; justify-content: center; }
.step { padding-top: 82px; }

.icon-circle { width: 54px; height: 54px; border-radius: 14px; background: var(--brown-700); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-circle svg { width: 26px; height: 26px; }

/* Premier */
.prize-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.prize { position: relative; border-radius: var(--radius-lg); padding: 30px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.prize-rank { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: .95rem; letter-spacing: .1em; color: var(--muted); }
.prize-value { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--brown-700); margin: 10px 0 6px; }
.prize-main { background: linear-gradient(150deg, var(--brown-700), var(--brown-900)); color: var(--cream); border: 0; }
.prize-main .prize-rank { color: var(--gold); }
.prize-main .prize-value { color: var(--white); font-size: 3.6rem; }
.prize-main::after { content: "★"; position: absolute; right: -10px; bottom: -40px; font-size: 180px; color: rgba(227,167,47,.12); line-height: 1; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--cream-2); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 800; background: var(--cream); }
.num { text-align: right; white-space: nowrap; }

.note { background: #fff6e0; border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; font-size: .92rem; color: var(--brown-800); }

/* Formål-blokk */
.purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.purpose-visual { position: relative; border-radius: var(--radius-lg); background: var(--gold); padding: 44px; color: var(--brown-900); }
.purpose-visual strong { font-family: var(--font-head); font-size: 5rem; line-height: .9; display: block; }
.purpose-visual p { font-weight: 700; font-size: 1.1rem; margin: 10px 0 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--brown-900); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.section-dark .checklist li::before { background: var(--gold); }

/* Lisens */
.license { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: start; background: var(--white); border: 2px solid var(--brown-700); border-radius: var(--radius-lg); padding: 34px; }
.license-badge { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--brown-700); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--font-head); text-transform: uppercase; font-weight: 800; color: var(--brown-700); line-height: 1.05; font-size: .95rem; }
.license-badge b { font-size: 1.8rem; color: var(--gold-dark); }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 28px; margin: 0; }
.dl div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.dl dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.dl dd { margin: 2px 0 0; font-weight: 700; }

/* FAQ (details/summary – ingen JS) */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--gold); color: var(--brown-900); padding: 60px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; font-weight: 600; }

/* Page hero (undersider) */
.page-hero { background: linear-gradient(160deg, var(--brown-700), var(--brown-900)); color: var(--cream); padding: 64px 0 70px; }
.page-hero p { color: var(--cream-2); max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: var(--cream-2); }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 38px; border: 1px solid var(--line); }
.form-card h2 { font-size: 2rem; }
.form-sub { color: var(--muted); margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.req { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fffdf9;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brown-500); box-shadow: 0 0 0 4px rgba(227,167,47,.25); }
input:user-invalid { border-color: var(--red); }

.check { display: block; position: relative; padding-left: 30px; font-size: .92rem; margin-bottom: 12px; cursor: pointer; }
.check input { position: absolute; left: 0; top: 2px; margin: 0; width: 19px; height: 19px; accent-color: var(--brown-700); }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-vipps { background: #ff5b24; color: #fff; }
.btn-vipps:hover { background: #e94d18; color: #fff; }
.btn-bankid { background: #39134c; color: #fff; }
.btn-bankid:hover { background: #2a0d39; color: #fff; }

.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); }
.auth-side { background: linear-gradient(160deg, var(--brown-700), var(--brown-900)); color: var(--cream); padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 380px; height: 380px; border: 2px solid rgba(247,239,226,.08); border-radius: 50%; right: -120px; bottom: -120px; }
.auth-side img { width: 80px; margin-bottom: 26px; }
.auth-side p { color: var(--cream-2); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.auth-main .form-card { width: 100%; max-width: 480px; }
.auth-foot { text-align: center; font-size: .92rem; margin-top: 20px; color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.row-between .check { margin: 0; }

/* Rolle-velger (radio som kort) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 700; margin: 0; transition: .15s; }
.choice label small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.choice input:checked + label { border-color: var(--brown-700); background: #fbf3e6; box-shadow: inset 0 0 0 1px var(--brown-700); }
.choice input:focus-visible + label { box-shadow: 0 0 0 4px rgba(227,167,47,.35); }

/* Kjøp lodd – pakker */
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.pkg { position: relative; }
.pkg input { position: absolute; opacity: 0; }
.pkg label { display: block; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 18px 10px; cursor: pointer; transition: .15s; background: #fffdf9; margin: 0; }
.pkg label b { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: var(--brown-700); }
.pkg label span { display: block; font-size: .8rem; color: var(--muted); }
.pkg label em { display: block; font-style: normal; font-weight: 800; margin-top: 8px; }
.pkg input:checked + label { border-color: var(--brown-700); background: var(--brown-700); }
.pkg input:checked + label b, .pkg input:checked + label em { color: var(--gold); }
.pkg input:checked + label span { color: var(--cream-2); }
.pkg .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--brown-900); font-size: .68rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; z-index: 1; white-space: nowrap; }
.form-step { font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin: 30px 0 16px; }
.form-step:first-of-type { margin-top: 0; }
.form-step i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--brown-900); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

.summary { position: sticky; top: 100px; background: var(--brown-800); color: var(--cream); border-radius: var(--radius-lg); padding: 30px; }
.summary h3 { color: var(--white); }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(247,239,226,.12); font-size: .95rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 20px; }
.summary-total strong { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); }
.summary small { color: var(--cream-2); display: block; font-size: .8rem; margin-top: 14px; }

/* ---------- Min side ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.dash-nav { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 100px; }
.dash-nav a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.dash-nav a:hover { background: var(--cream); }
.dash-nav a.active { background: var(--brown-700); color: var(--cream); }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--brown-900); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.dash-user small { display: block; color: var(--muted); font-size: .8rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.kpi strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--brown-700); line-height: 1.1; }
.progress { height: 12px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 999px; }
.share-box { display: flex; gap: 10px; }
.share-box input { flex: 1; font-family: "Courier New", monospace; font-size: .9rem; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-ok { background: #e2f1e7; color: var(--green); }
.pill-wait { background: #fff2d6; color: var(--gold-dark); }

/* Nedtelling / trekning */
.draw-box { text-align: center; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 50px 30px; }
.draw-date { display: inline-flex; gap: 14px; margin: 20px 0 26px; }
.draw-date div { background: var(--brown-700); color: var(--cream); border-radius: 14px; padding: 16px 22px; min-width: 96px; }
.draw-date b { display: block; font-family: var(--font-head); font-size: 2.8rem; line-height: 1; color: var(--gold); }
.draw-date span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-circle { margin: 0; flex-shrink: 0; width: 46px; height: 46px; }
.contact-item small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); font-weight: 700; }
.contact-item a, .contact-item strong { font-weight: 700; font-size: 1.05rem; text-decoration: none; }

/* Prose (vilkår/personvern) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-900); color: var(--cream-2); padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: var(--gold); font-size: 1.1rem; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(247,239,226,.12); padding: 22px 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: .85rem; margin-right: 10px; vertical-align: middle; }

/* Grid-barn skal kunne krympe (hindrer horisontal scroll på mobil) */
.order-layout > *, .dash > *, .contact-grid > *, .purpose > *, .hero .container > *, .grid > * { min-width: 0; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 16px; }
  .main-nav a { font-size: .9rem; }
  .packages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1240px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brown-800); padding: 10px 20px 22px;
    display: none; box-shadow: 0 20px 40px rgba(0,0,0,.25);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(247,239,226,.1); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 16px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }

}
@media (max-width: 960px) {
  .hero .container, .purpose, .contact-grid, .order-layout, .auth-wrap, .dash { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 100px; }
  .ticket { max-width: 420px; transform: rotate(0); }
  .status-card { grid-template-columns: repeat(2, 1fr); }
  .status-card > div:nth-child(2) { border-right: 0; }
  .status-card > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-4, .prize-top, .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary, .dash-nav { position: static; }
  .auth-side { padding: 50px 28px; }
  .topbar-license { display: none; }
}
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; }
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .prize-top, .form-row, .choice-grid, .footer-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .status-card { grid-template-columns: 1fr 1fr; }
  .status-card > div { padding: 18px; }
  .form-card { padding: 26px 20px; }
  .license { grid-template-columns: 1fr; padding: 24px; }
  .draw-date div { min-width: 0; padding: 12px 14px; }
  .draw-date b { font-size: 2rem; }
  .share-box { flex-direction: column; }
  .brand-text { font-size: 1.3rem; }
  .topbar-links a:not(:first-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
