/* ---------- Theme tokens ---------- */
:root {
    --bg: #F6F8FC;
    --surface: #FFFFFF;
    --surface-2: #EDF2FA;
    --text: #0B1A33;
    --text-2: #46546E;
    --text-3: #6B7890;
    --border: #DCE3EF;
    --primary: #1F4FA8;
    --primary-hover: #183F88;
    --primary-ink: #FFFFFF;
    --accent: #002B5C;
    --tint: #E3EBF9;
    --facet-a: #1F4FA8;
    --facet-b: #6C9BF0;
    --facet-c: #002B5C;
    --shadow: 0 1px 2px rgba(11, 26, 51, 0.04), 0 12px 32px rgba(11, 26, 51, 0.07);
    --nav-bg: rgba(246, 248, 252, 0.85);
    --cta-bg: #002B5C;
    --cta-text: #FFFFFF;
    --cta-sub: #C5D3EC;
    color-scheme: light;

    --font-display: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
    --radius: 14px;
    --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #050D1F;
        --surface: #0A1A38;
        --surface-2: #081530;
        --text: #F2F5FB;
        --text-2: #AEBBD1;
        --text-3: #7D8BA5;
        --border: #1C3157;
        --primary: #4A82E6;
        --primary-hover: #6C9BF0;
        --primary-ink: #FFFFFF;
        --accent: #9DBCF5;
        --tint: rgba(108, 155, 240, 0.12);
        --facet-a: #4A82E6;
        --facet-b: #9DBCF5;
        --facet-c: #2459B8;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
        --nav-bg: rgba(5, 13, 31, 0.8);
        --cta-bg: #0F2A5C;
        --cta-text: #FFFFFF;
        --cta-sub: #B7C6E4;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #050D1F;
    --surface: #0A1A38;
    --surface-2: #081530;
    --text: #F2F5FB;
    --text-2: #AEBBD1;
    --text-3: #7D8BA5;
    --border: #1C3157;
    --primary: #4A82E6;
    --primary-hover: #6C9BF0;
    --primary-ink: #FFFFFF;
    --accent: #9DBCF5;
    --tint: rgba(108, 155, 240, 0.12);
    --facet-a: #4A82E6;
    --facet-b: #9DBCF5;
    --facet-c: #2459B8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
    --nav-bg: rgba(5, 13, 31, 0.8);
    --cta-bg: #0F2A5C;
    --cta-text: #FFFFFF;
    --cta-sub: #B7C6E4;
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font: 600 0.98rem/1 var(--font-body);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .theme-toggle:focus-visible, summary:focus-visible { outline: 3px solid var(--facet-b); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #FFFFFF; color: #002B5C; }
.btn-light:hover { background: #E3EBF9; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; }
.brand-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 0.94rem; font-weight: 500; color: var(--text-2); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 640px; height: 640px;
    background: radial-gradient(closest-side, var(--tint), transparent);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 1.14rem; color: var(--text-2); max-width: 36em; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
    margin-top: 22px;
    background: none;
    border: 0;
    padding: 0;
    font: 600 0.95rem var(--font-body);
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link span { display: inline-block; transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(3px); }
.text-link:focus-visible { outline: 3px solid var(--facet-b); outline-offset: 3px; border-radius: 4px; }

/* Floating hero cards */
.hero-visual { position: relative; height: 440px; opacity: 0; animation: fadeIn 1s ease 0.3s forwards; }
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px 18px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.12rem;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}
.card-1 { top: 6%; left: 0; animation-delay: 0s; }
.card-2 { top: 40%; right: 0; animation-delay: 1s; }
.card-3 { bottom: 8%; left: 12%; animation-delay: 2s; }
.float-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.float-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes floatSm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fadeIn { to { opacity: 1; } }

/* Assessment pop-up */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--tint); }
.assess-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.assess-list { list-style: none; margin: 18px 0 0; }
.assess-list li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.assess-list span { font-family: var(--font-display); font-weight: 600; color: var(--primary); }
.assess-foot { padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-3); margin-bottom: 20px; }

.proof {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 72px;
    border-top: 1px solid var(--border);
}
.proof li { padding: 22px 20px 0 0; display: flex; flex-direction: column; gap: 2px; }
.proof strong { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.proof span { color: var(--text-3); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2, .why-copy h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.section-sub { color: var(--text-2); font-size: 1.06rem; margin-top: 16px; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--text); }
.problem { padding: 28px 28px 0 0; }
.problem + .problem { padding-left: 28px; border-left: 1px solid var(--border); }
.problem h3 { font-size: 1.3rem; margin-bottom: 10px; }
.problem p { color: var(--text-2); }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.help-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 22px; }
.help-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.help-card p { color: var(--text-2); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 26px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--facet-b)); opacity: 0.85; }
.step-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--text-2); }

.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.why-feature {
    aspect-ratio: 1;
    border-radius: 50% 50% 50% 18%;
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: #FFFFFF;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 24px;
    box-shadow: var(--shadow);
}
:root[data-theme="dark"] .why-feature { background: linear-gradient(145deg, #2459B8, #0F2A5C); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .why-feature { background: linear-gradient(145deg, #2459B8, #0F2A5C); } }
.why-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 12vw, 9rem); line-height: 0.9; }
.why-caption { font-size: 1.05rem; opacity: 0.9; margin-top: 10px; max-width: 12em; }
.why-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.why-list li { padding-left: 28px; position: relative; color: var(--text-2); }
.why-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; background: var(--primary); clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%); }
.why-list strong { color: var(--text); }

.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 40px 22px 0;
    font-weight: 600;
    font-size: 1.08rem;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 40px 22px 0; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 100px; }
.cta-inner {
    background: var(--cta-bg);
    color: var(--cta-text);
    border-radius: 28px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-inner::after {
    content: "";
    position: absolute;
    width: 360px; height: 360px;
    right: -120px; bottom: -160px;
    background: rgba(255, 255, 255, 0.06);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 18em; margin: 0 auto 16px; }
.cta p { color: var(--cta-sub); max-width: 38em; margin: 0 auto 30px; font-size: 1.06rem; }
.cta .cta-note { font-size: 0.88rem; margin: 18px auto 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand p { color: var(--text-3); font-size: 0.9rem; margin-top: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-2); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-3); font-size: 0.85rem; width: 100%; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(5, 13, 31, 0.6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%; max-width: 480px;
    max-height: calc(100vh - 32px); overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--text-3); cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-title { font-size: 1.7rem; margin-bottom: 8px; }
.modal-subtitle { color: var(--text-2); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.required { color: var(--primary); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: 400 1rem var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.form-group textarea { resize: vertical; }
.modal-submit { width: 100%; margin-top: 6px; }
.modal-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.modal-error { display: none; color: #C2413B; background: rgba(194, 65, 59, 0.1); border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; margin-bottom: 12px; }
.modal-error.visible { display: block; }
.modal-success { text-align: center; padding: 16px 0; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 1.8rem; display: grid; place-items: center; margin: 0 auto 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .float-card { animation: none; }
    .hero-visual { animation: none; opacity: 1; }
    .btn, .help-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .hero-grid, .why-grid { grid-template-columns: 1fr; gap: 44px; }
    .why-feature { max-width: 300px; }
    .hero-visual { height: auto; display: flex; flex-wrap: wrap; gap: 12px; }
    .hero-visual { gap: 16px; }
    .float-card { position: static; font-size: 1rem; padding: 12px 18px 12px 12px; animation-name: floatSm; }
    .float-icon { width: 40px; height: 40px; border-radius: 12px; }
    .help-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 56px 0 40px; }
    .section { padding: 72px 0; }
    .problem-grid { grid-template-columns: 1fr; }
    .problem, .problem + .problem { padding: 24px 0; border-left: 0; }
    .problem + .problem { border-top: 1px solid var(--border); }
    .steps { grid-template-columns: 1fr; }
    .proof { margin-top: 48px; }
    .proof strong { font-size: 1.1rem; }
    .cta-inner { padding: 52px 22px; border-radius: 22px; }
    .modal { padding: 28px 20px; }
    .nav-actions .btn-sm { padding: 9px 14px; }
    .nav .brand-name { font-size: 0.86rem; }
    .nav .brand-name span { display: block; }
    .nav .brand { gap: 10px; }
    .nav .brand-mark { width: 34px; height: 34px; }
}
