@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }

:root {
  --fjord: #123b5c;
  --fjord-deep: #0d2436;
  --signal: #e8601c;
  --signal-ink: #fff;
  --surface: #f3f5f6;
  --panel: #fff;
  --ink: #1b2126;
  --muted: #56616b;
  --line: #d3dae0;
  --ok: #2f7d4e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fjord: #8fc1e8;
    --signal: #ff7a33;
    --signal-ink: #1a0c04;
    --surface: #15191c;
    --panel: #1f2428;
    --ink: #e8ecef;
    --muted: #9aa6b0;
    --line: #333b42;
    --ok: #6cc28f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 18px/1.55 "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 5vw, 46px); line-height: 1.02; margin: 0 0 28px; }
h3 { font-size: 20px; margin: 0 0 6px; }
p { margin: 0; }

/* Topp – innloggingen er alltid synlig */
.top { position: sticky; top: 0; z-index: 10; background: var(--fjord-deep); color: #fff; }
.bar { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 26px/1 "Barlow Condensed", sans-serif; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; opacity: .85; font-weight: 500; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.login { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 10px; background: var(--signal); color: #fff; font-weight: 600; text-decoration: none; }
.login:hover { filter: brightness(1.08); }
@media (max-width: 720px) {
  .top nav { display: none; }
  .login { margin-left: auto; }
}

/* Hero */
.hero { background: var(--fjord-deep); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: .9; margin: 0 0 24px; }
.burst {
  position: absolute; left: -58px; top: -54px; z-index: 2; width: 132px; height: 132px; display: grid; place-items: center;
  background: #ffd23f; color: #1b2126; transform: rotate(-12deg); text-align: center;
  clip-path: polygon(50% 0%, 59% 13%, 75% 7%, 77% 23%, 93% 25%, 87% 41%, 100% 50%, 87% 59%, 93% 75%, 77% 77%, 75% 93%, 59% 87%, 50% 100%, 41% 87%, 25% 93%, 23% 77%, 7% 75%, 13% 59%, 0% 50%, 13% 41%, 7% 25%, 23% 23%, 25% 7%, 41% 13%);
}
.burst span { width: 80px; font: 600 19px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
@media (max-width: 520px) { .burst { left: -12px; top: -44px; width: 112px; height: 112px; } .burst span { width: 68px; font-size: 16px; } }
.kicker { margin: 0 0 14px; font: 600 15px/1 "Barlow", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.lead { font-size: 20px; max-width: 34em; color: rgba(255,255,255,.86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--signal); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.plain { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn.plain:hover { border-color: #fff; }
.note { font-size: 15px; color: rgba(255,255,255,.65); max-width: 34em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Telefonutsnitt bygget i HTML – samme uttrykk som appen */
.phone {
  margin: 0; justify-self: center; width: min(340px, 100%); background: #f3f5f6; color: #1b2126;
  border-radius: 34px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 10px #0a1b29;
  transform: rotate(-2deg); position: relative;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; background: #123b5c; color: #fff; border-radius: 20px 20px 8px 8px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.pill { font-weight: 500; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); }
.strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.strip li { display: grid; justify-items: center; background: #fff; border: 1px solid #d3dae0; border-radius: 6px; padding: 5px 0; }
.strip b { font-weight: 400; font-size: 11px; color: #5b6670; }
.strip i { font: normal 600 17px/1.1 "Barlow Condensed", sans-serif; }
.strip s { text-decoration: none; font: 500 12px/1.2 "Barlow Condensed", sans-serif; color: #5b6670; }
.strip .sel { background: #123b5c; border-color: #123b5c; color: #fff; }
.strip .sel b, .strip .sel s { color: rgba(255,255,255,.8); }
.sum { display: flex; align-items: baseline; gap: 8px; padding: 16px 4px 6px; }
.sum .big { font: 600 86px/.85 "Barlow Condensed", sans-serif; letter-spacing: -0.02em; }
.sum .unit { font: 500 22px/1 "Barlow Condensed", sans-serif; color: #5b6670; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid #d3dae0; }
.rows li { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; padding: 10px 2px; border-bottom: 1px solid #d3dae0; font-size: 14px; }
.rows .t { font: 500 14px/1.3 "Barlow Condensed", sans-serif; color: #5b6670; }
.rows .p { display: flex; flex-direction: column; }
.rows small { color: #5b6670; font-size: 12px; }
.rows .h { font: 600 20px/1 "Barlow Condensed", sans-serif; }
.cta { margin: 14px auto 2px; width: 70%; text-align: center; background: #e8601c; color: #fff; font-weight: 600; border-radius: 14px; padding: 12px 0; }

/* Funksjoner: to spalter med tekst, ikke kortstabel */
.features { padding: 80px 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.feature-list article { padding: 22px 0; border-top: 2px solid var(--ink); }
.tag { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--signal); color: #fff; }
.feature-list p { color: var(--muted); max-width: 32em; }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }

/* Stegene er en faktisk rekkefølge, derfor nummerert */
.steps { padding: 80px 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 600 64px/1 "Barlow Condensed", sans-serif; color: var(--signal); margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps ol { grid-template-columns: 1fr; gap: 28px; } }

.security { padding: 80px 0; }
.security-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.security ul { list-style: none; margin: 0; padding: 0; }
.security li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.security li strong { color: var(--ink); display: block; font-size: 19px; }
@media (max-width: 860px) { .security-grid { grid-template-columns: 1fr; gap: 0; } }

.install { background: var(--fjord-deep); color: #fff; padding: 56px 0; }
.install-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.install h2 { margin-bottom: 10px; }
.install p { color: rgba(255,255,255,.8); max-width: 36em; }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Hjelp: innloggingsguide */
.top nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.help-hero { background: var(--fjord-deep); color: #fff; padding: 48px 0 56px; }
.help-hero h1 { font-size: clamp(46px, 8vw, 84px); line-height: .92; margin: 0 0 18px; }
.need { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.need li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; font-size: 16px; color: rgba(255,255,255,.85); }
.need strong { color: #fff; }

.guide { padding: 64px 0; }
.guide.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: g; display: grid; gap: 56px; }
.guide-steps > li { counter-increment: g; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; }
.guide-steps .txt h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }
.guide-steps .txt h2::before { content: counter(g) ". "; color: var(--signal); }
.guide-steps .txt p { color: var(--muted); max-width: 34em; }
.guide-steps .txt p + p { margin-top: 10px; }
.tip { border-left: 3px solid var(--signal); padding-left: 12px; }
@media (max-width: 720px) { .guide-steps > li { grid-template-columns: 1fr; gap: 18px; } .shot { order: 2; } }

/* Skjermskisser: tegnet i HTML, alltid lyse som en ekte telefon */
.shot { justify-self: center; width: 260px; background: #0a1b29; border-radius: 30px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.screen { height: 300px; border-radius: 22px; overflow: hidden; background: #fff; color: #1b2126; font-size: 14px; display: flex; flex-direction: column; }
.screen.app { background: #f3f5f6; }
.s-bar { display: flex; align-items: center; gap: 8px; background: #123b5c; color: #fff; font-weight: 600; padding: 14px; }
.s-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #e8601c; font: 600 15px/1 "Barlow Condensed", sans-serif; }
.s-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.s-body.center { align-items: center; justify-content: center; text-align: center; }
.s-title { margin: 0; font: 600 26px/1.1 "Barlow Condensed", sans-serif; }
.s-title.dark { color: #1b1b1b; font-family: "Segoe UI", system-ui, sans-serif; font-size: 22px; }
.s-muted { margin: 0; color: #5b6670; font-size: 13px; }
.s-btn { display: inline-block; padding: 9px 18px; border-radius: 10px; font-weight: 600; color: #fff; }
.s-btn.orange { background: #e8601c; }
.s-btn.blue { background: #0067b8; border-radius: 2px; }
.s-btn.right { align-self: flex-end; margin-top: 8px; }
.s-btn.wide { align-self: stretch; text-align: center; margin-top: auto; }
.s-big { margin: 0; font: 600 64px/1 "Barlow Condensed", sans-serif; }
.s-big small { font-size: 18px; color: #5b6670; }
.screen.ms { padding: 26px 22px; gap: 12px; font-family: "Segoe UI", system-ui, sans-serif; }
.ms-brand { margin: 0; display: flex; align-items: center; gap: 8px; color: #5e5e5e; font-weight: 600; }
.sq { width: 18px; height: 18px; background: #8a8a8a; border-radius: 2px; }
.s-input { display: block; border-bottom: 1px solid #666; padding: 6px 2px; color: #1b1b1b; }
.s-number { align-self: center; margin-top: 8px; font: 600 54px/1 "Segoe UI", system-ui, sans-serif; color: #1b1b1b; }
.hl { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e8601c; border-radius: 8px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(232,96,28,.55); } }
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } }

.sec { margin-bottom: 8px; }
.sec-lead { color: var(--muted); margin-bottom: 32px; }
.os { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.os h3 { font-size: 22px; margin-bottom: 14px; }
.mini { background: #f3f5f6; color: #1b2126; border: 1px solid #d3dae0; border-radius: 14px; padding: 14px; margin-bottom: 18px; max-width: 320px; }
.m-url { display: block; background: #fff; border: 1px solid #d3dae0; border-radius: 8px; padding: 6px 10px; font-size: 14px; flex: 1; }
.m-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 22px; color: #0067b8; }
.m-tools.top { margin-top: 0; gap: 12px; color: #1b2126; }
.m-tools .hl { padding: 0 8px; }
.num { margin: 0; padding-left: 22px; }
.num li { padding: 4px 0; color: var(--muted); }
.num strong { color: var(--ink); }
@media (max-width: 720px) { .os { grid-template-columns: 1fr; } }

.faq { padding: 64px 0; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); padding: 0 0 16px; max-width: 40em; }
