/* Skanlio – farger hentet fra logoen: dyp marineblå, elektrisk blå og lysende cyan. */
:root {
    --navy: #081438;
    --blue: #177af9;
    --cyan: #33d6ff;
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --text: #0b1530;
    --muted: #55607a;
    --border: rgba(11, 21, 48, 0.08);
    --gradient: linear-gradient(135deg, var(--blue), var(--cyan));
    --radius: 22px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #060f2a;
        --surface: rgba(18, 32, 72, 0.6);
        --text: #eef3ff;
        --muted: #a3b0cf;
        --border: rgba(255, 255, 255, 0.08);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(60rem 40rem at 85% -10%, rgba(23, 122, 249, 0.22), transparent 60%),
        radial-gradient(50rem 35rem at -10% 30%, rgba(51, 214, 255, 0.14), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Topp */
header.site {
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .name span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.links { display: flex; gap: 22px; font-size: 15px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }

/* Helt øverst */
.hero { text-align: center; padding: 96px 0 72px; }
.hero img.icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 20px 60px rgba(23, 122, 249, 0.35); }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.035em; margin: 28px 0 16px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }

.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    background: var(--gradient); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 30px rgba(51, 214, 255, 0.35);
}
.button.secondary { background: var(--surface); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Seksjoner */
section { padding: 56px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; text-align: center; }
section p.sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.card .emoji { font-size: 28px; line-height: 1; }
.card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Sammenligning */
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare tr:last-child td { border-bottom: none; }
table.compare th { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
table.compare td:last-child { font-weight: 500; }

/* Priser */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plans ul { padding-left: 20px; margin: 12px 0 0; color: var(--muted); }
.plans li { margin: 6px 0; }
.plans .pro { border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gradient); color: #fff; }

/* Spørsmål og svar */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Juridiske sider */
article.legal { padding: 56px 0 40px; }
article.legal h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
article.legal h2 { font-size: 22px; margin-top: 40px; letter-spacing: -0.01em; }
article.legal .updated { color: var(--muted); margin-top: 0; }
article.legal .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
article.legal li { margin: 6px 0; }

/* Kontaktskjema */
form.contact { display: grid; gap: 6px; margin-top: 28px; }
form.contact label { font-weight: 600; margin-top: 12px; }
form.contact .optional, form.contact small { font-weight: 400; color: var(--muted); font-size: 14px; }
form.contact input[type=text], form.contact input[type=email], form.contact select, form.contact textarea {
    font: inherit; color: var(--text); width: 100%;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--bg);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
form.contact textarea { resize: vertical; }
form.contact select {
    -webkit-appearance: none; appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23177af9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
form.contact .consent { font-weight: 400; font-size: 15px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
form.contact .consent input { margin-top: 5px; }
form.contact button { justify-self: start; margin-top: 18px; border: none; font: inherit; font-weight: 600; cursor: pointer; }
.hidden-field { position: absolute; left: -10000px; }

/* Skjermbilder */
.gallery { padding-top: 8px; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.phones figure { margin: 0; text-align: center; }
.phones img {
    width: 100%; height: auto; display: block;
    border-radius: 34px; border: 7px solid #0b0f1a;
    box-shadow: 0 24px 60px rgba(23, 122, 249, 0.28);
    background: #0b0f1a;
}
.phones figure:nth-child(even) { margin-top: 48px; }
.phones figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--muted); }
@media (max-width: 820px) {
    .phones { grid-template-columns: repeat(4, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
    .phones figure { scroll-snap-align: center; }
    .phones figure:nth-child(even) { margin-top: 0; }
}

footer.site { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
    nav.links a.hide-sm { display: none; }
    .hero { padding: 64px 0 48px; }
}
