/* The front page before login. Dark top and bottom like the system, a light page to read in between. */
@font-face {
    font-family: "Schibsted Grotesk";
    src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    --ink: #101015;
    --panel: #16161d;
    --surface: #1c1c25;
    --raised: #262631;
    --line-dark: #2e2e3b;
    --text-dark: #f2f1f6;
    --muted-dark: #a3a1b3;
    --violet: #b07bff;
    --violet-deep: #7b4dff;
    --violet-soft: rgba(176, 123, 255, 0.14);
    --mint: #63d6a4;
    --amber: #f2b65c;
    --paper: #ffffff;
    --paper-tint: #f6f5fa;
    --text: #17171f;
    --muted: #5f5e6f;
    --line: #e4e2ec;
    --radius: 14px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.front {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}
a { color: var(--violet-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 760; letter-spacing: -0.03em; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 720; max-width: 24ch; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; max-width: 68ch; }
p.big { font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--muted); }
.intro { color: var(--muted); max-width: 62ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons: the same shapes as in the system ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--violet-deep), #a66bff); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 160, 0.12); }
.btn-big { min-height: 50px; padding: 0 24px; font-size: 1.05rem; }

/* ---------- Head ---------- */
.site-head { background: var(--ink); color: var(--text-dark); border-bottom: 1px solid var(--line-dark); }
.site-head-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dark); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text-dark); }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--muted-dark); text-decoration: none; font-weight: 550; }
.site-nav a:hover { color: var(--text-dark); }
.site-head-actions { margin-left: auto; display: flex; gap: 10px; }
.site-head .btn-ghost { color: var(--text-dark); border-color: var(--line-dark); }
@media (max-width: 820px) {
    .site-nav { display: none; }
    .site-head .btn { min-height: 38px; padding: 0 14px; font-size: 0.95rem; }
}
@media (max-width: 480px) {
    /* Two buttons do not fit next to the logo on a phone: the request button lives in the hero. */
    .site-head-actions .btn-primary { display: none; }
}

/* ---------- Hero: the text and the system's own dashboard ---------- */
.hero { background: var(--ink); color: var(--text-dark); padding: 56px 0 72px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted-dark); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-note { color: var(--muted-dark); font-size: 0.95rem; max-width: 52ch; }
.hero-panel { margin: 0; background: var(--panel); border: 1px solid var(--line-dark); border-radius: 20px; padding: 18px 18px 14px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-site { font-weight: 700; font-size: 1.05rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--raised); color: var(--muted-dark); }
.pill-ok { background: rgba(99, 214, 164, 0.14); color: var(--mint); }
.pill-run { background: var(--violet-soft); color: var(--violet); }
.panel-caption { color: var(--muted-dark); font-size: 0.85rem; margin: 12px 4px 0; }
@media (max-width: 900px) {
    .hero { padding: 40px 0 52px; }
    .hero-row { grid-template-columns: 1fr; gap: 36px; }
    h1 { max-width: none; }
}
@media (max-width: 480px) {
        }

/* The list in the hero: what the tool can. */
.hero-panel .panel-site { margin: 0 0 12px; color: var(--muted-dark); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; }
.can { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.can li { position: relative; padding: 11px 14px 11px 40px; background: var(--surface); border: 1px solid var(--line-dark); border-radius: 12px; font-size: 1rem; line-height: 1.4; }
.can li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: rgba(99, 214, 164, 0.18); }
.can li::after { content: ""; position: absolute; left: 19px; top: 17px; width: 4px; height: 7px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* The numbers under the hero. */
.numbers { margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; }
.numbers dt { font-size: 1.9rem; font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; }
.numbers dd { margin: 6px 0 0; color: var(--muted-dark); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 820px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .numbers { grid-template-columns: 1fr; } }

/* ---------- Bands ---------- */
.band { padding: 72px 0; }
.band-tint { background: var(--paper-tint); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px 64px; align-items: start; }
.two-col-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) {
    .band { padding: 52px 0; }
    .two-col, .two-col-even { grid-template-columns: 1fr; gap: 28px; }
}

/* The request form. */
.access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.access-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.access-form .field-wide { grid-column: 1 / -1; }
.access-form label { font-weight: 600; font-size: 0.95rem; }
.access-form input, .access-form textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); width: 100%; }
.access-form input:focus, .access-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .access-form { grid-template-columns: 1fr; } }

/* ---------- Foot ---------- */
.site-foot { background: var(--ink); color: var(--muted-dark); padding: 44px 0 36px; margin-top: 20px; }
.site-foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.site-foot-text { margin: 10px 0 0; max-width: 40ch; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot-links a { color: var(--text-dark); text-decoration: none; font-weight: 550; }
.site-foot-links a:hover { color: var(--violet); }
.site-foot-meta { grid-column: 1 / -1; margin: 10px 0 0; font-size: 0.9rem; border-top: 1px solid var(--line-dark); padding-top: 16px; }
@media (max-width: 640px) { .site-foot-row { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.hero-about { padding: 56px 0 60px; }
.hero-about h1 { max-width: 20ch; }
.hero-about .hero-lead { max-width: 62ch; }
.person { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 36px 56px; margin-top: 28px; align-items: start; }
.portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; }
.person-name { font-size: 1.6rem; margin-bottom: 0.2em; }
.person-role { margin-top: 0; }
.stats-light { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.stats-light div { border-top: 1px solid var(--line); padding-top: 12px; }
.stats-light dt { font-size: 1.3rem; font-weight: 740; letter-spacing: -0.02em; }
.stats-light dd { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.person-side { background: var(--paper-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.person-side h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.person-side h3 + .roles + h3 { margin-top: 26px; }
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.roles li:first-child { border-top: 0; padding-top: 0; }
.roles .muted { white-space: nowrap; font-size: 0.9rem; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a { font-weight: 550; }
.cta-wide { text-align: center; max-width: 760px; }
.cta-wide h2 { max-width: none; margin: 0 auto 22px; }
.cta-wide .muted { margin: 14px 0 0; }
@media (max-width: 820px) {
    .person { grid-template-columns: 1fr; }
    .stats-light { grid-template-columns: 1fr; }
    .roles li { flex-direction: column; gap: 2px; }
}
/* Four points, wide and calm. */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.point { padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.point h3 { margin: 0 0 0.45em; font-size: 1.25rem; }
.point p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
    .points { grid-template-columns: 1fr; }
    .point { padding: 22px 20px; }
}
