@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap");

:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --surface: #161616;
  --line: #262626;
  --line-2: #3A3A3A;
  --text: #F5F5F0;
  --text-2: #D4D4CC;
  --muted: #A8A8A0;
  --faint: #8A8A82;
  --yellow: #FFD21F;
  --yellow-hover: #FFE57A;
  --warn-bg: #1F1A05;
  --warn-line: #5C4C0A;
  --ok-bg: #183A1F;
  --ok: #9BE7A8;
  --pend-bg: #3D2A08;
  --pend: #FFC266;
  --err-bg: #3A1212;
  --err: #FFAAAA;
  --vipps: #FF5B24;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.5; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hover); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* Topp */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand-badge { background: var(--yellow); color: var(--bg); font-family: var(--display); font-weight: 800; font-size: 15px; padding: 4px 8px; border-radius: 4px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--bg); font-weight: 700; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--yellow); color: var(--bg); }
.btn-primary:hover { background: var(--yellow-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-vipps { background: var(--vipps); color: #141414; }
.btn-vipps:hover { background: #FF7447; color: #141414; }
.btn-lg { min-height: 56px; font-size: 18px; padding: 0 28px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Typografi */
.kicker { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.h-display { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; text-transform: uppercase; line-height: 1; }
.muted { color: var(--muted); }

/* Kort */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tag { display: inline-block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 6px; background: var(--text); color: var(--bg); }
.tag-yellow { background: var(--yellow); }

/* Skjema */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .legend { font-weight: 600; }
.input { height: 52px; width: 100%; padding: 0 16px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; font-size: 17px; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--yellow); outline: none; }
.input[aria-invalid="true"] { border-color: #FF8A8A; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg { display: grid; gap: 8px; }
.seg button { height: 52px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--text); font: inherit; font-weight: 800; font-size: 19px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.choice { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 16px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--yellow); }
.choice input { width: 20px; height: 20px; accent-color: var(--yellow); margin: 0; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--yellow); margin: 2px 0 0; flex: none; }
.hint { font-size: 14px; color: var(--muted); }
.notice { border-radius: 12px; padding: 14px 16px; line-height: 1.45; }
.notice-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.notice-err { background: var(--err-bg); border: 1px solid #6A2A2A; color: var(--err); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-pend { background: var(--pend-bg); color: var(--pend); }
.badge-off { background: #2A2A2A; color: var(--muted); }

.footer { border-top: 1px solid var(--line); margin-top: 48px; }
.footer .wrap { padding-top: 32px; padding-bottom: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
