/* nextnett.no landing page. Self-contained: fonts are served from this site, no CDNs.
   One bold element: the ticket and the FortiOS console in the hero. Everything else stays quiet and left-aligned. */
@font-face { font-family: 'NN Atkinson'; src: url('/fonts/atkinson.woff') format('woff'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'NN Mono'; src: url('/fonts/jetbrains-mono.woff') format('woff'); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #eef2f8;     /* page */
  --surface: #ffffff;   /* form, ticket base */
  --ink: #0c1120;       /* brand navy: text and the header */
  --ink-2: #4a5470;     /* secondary text, 7.0:1 on paper */
  --rule: #cfd7e6;
  --accent: #3349d1;    /* actions only */
  --accent-ink: #ffffff;
  --ticket: #fff4d6;
  --ticket-edge: #d9a521;
  --con-bg: #000;
  --con-text: #e6e6e6;
  --con-bright: #ffffff;
  --con-mark: #ffcc00;
  --ok: #1f7a4a;
  --bad: #b3261e;
  --font: 'NN Atkinson', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'NN Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0c1120; --surface: #141b31; --ink: #eef1f8; --ink-2: #a9b2ca; --rule: #2a3558;
    --accent: #8ea6ff; --accent-ink: #0c1120; --ticket: #2a2410; --ticket-edge: #c9971d; --ok: #6fd39b; --bad: #ff8a80;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.muted { color: var(--ink-2); }

/* header: a navy strip in both modes, like the app */
.top { background: #0c1120; color: #eef1f8; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.mark-bg { fill: #161d33; stroke: #7f9eff; stroke-width: 2; }
.mark-n { fill: none; stroke: #7f9eff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.top .btn-small { background: transparent; color: #eef1f8; border: 1px solid #36446f; }
.top .btn-small:hover { border-color: #7f9eff; }

/* type */
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 780; margin: 0 0 24px; max-width: 13ch; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 720; margin: 0 0 20px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 16px; max-width: 64ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 52ch; }

/* buttons and form */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.wl { margin-top: 28px; max-width: 560px; }
.wl-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.wl label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.wl input[type=email], .wl select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 17px/1.2 var(--font); }
.wl input[type=email]:focus, .wl select:focus { border-color: var(--accent); }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-note { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }
.wl-msg { margin: 12px 0 0; font-weight: 600; }
.wl-msg:empty { display: none; }
.wl-msg.ok { color: var(--ok); }
.wl-msg.err { color: var(--bad); }
@media (min-width: 640px) {
  .wl-row { grid-template-columns: 1fr auto; align-items: end; }
  .wl-row > div:first-child { grid-column: 1 / -1; }
}

/* hero */
.hero { display: grid; gap: 48px; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 1000px) { .hero { grid-template-columns: 1.02fr 1fr; align-items: center; } }
.artefact { margin: 0; position: relative; }
.ticket { background: var(--ticket); border-left: 6px solid var(--ticket-edge); border-radius: 6px; padding: 16px 20px; max-width: 420px; position: relative; z-index: 2; box-shadow: 0 1px 0 var(--rule); transform: rotate(-1.2deg); margin: 0 0 -18px 12px; }
.ticket p { margin: 0; max-width: none; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 15px; margin-bottom: 6px !important; }
.prio { color: #8a5a00; }
@media (prefers-color-scheme: dark) { .prio { color: var(--ticket-edge); } }
.ticket-text { font-size: 17px; line-height: 1.45; }
.ticket-meta { font-size: 14px; color: var(--ink-2); margin-top: 8px !important; }
.console { background: var(--con-bg); color: var(--con-text); border-radius: 10px; overflow: hidden; border: 1px solid #3a3f45; position: relative; z-index: 1; }
.console-bar { display: flex; justify-content: flex-end; gap: 16px; background: #2b3035; color: #d9dde1; font: 600 13px/1 var(--font); padding: 10px 14px; }
.console-body { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; margin: 0; padding: 34px 16px 18px; font: 400 13.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; min-height: 300px; }
.console .p { color: var(--con-bright); }
.console .hl { color: #000; background: var(--con-mark); }
.cursor::after { content: '\2588'; animation: blink 1.1s steps(1) infinite; color: var(--con-bright); }
@keyframes blink { 50% { opacity: 0; } }
.artefact figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
/* the one orchestrated moment: the console prints its lines once on load (site.js adds .play) */
.console.play .l { opacity: 0; animation: line .01s linear forwards; }
@keyframes line { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .console.play .l { opacity: 1; animation: none; } .cursor::after { animation: none; } }

/* sections */
section.steps, section.practice, section.exams, section.teams, section.faq, section.join { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--rule); }
.step-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 800px) { .step-list { grid-template-columns: repeat(4, 1fr); } }
.step-list li { counter-increment: step; }
.step-list li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; margin-bottom: 12px; }
.step-list p { color: var(--ink-2); font-size: 17px; }
.two { display: grid; gap: 32px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }
.big { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 12px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.levels { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 700px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.levels h3 { padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.levels ul { list-style: none; margin: 8px 0 0; padding: 0; }
.levels li { padding: 6px 0; font-size: 17px; }
.levels .tag { font-size: 14px; color: var(--ink-2); }
.teams-side { border-left: 3px solid var(--accent); padding-left: 20px; }
.faq details { border-bottom: 1px solid var(--rule); max-width: 760px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-2); }
.join { padding-bottom: 72px !important; }
.banner { background: var(--surface); border-left: 4px solid var(--ok); padding: 14px 18px; border-radius: 6px; margin: 16px 0 0; font-weight: 600; max-width: 640px; }
.banner.warn { border-left-color: var(--bad); }

/* footer */
.foot { background: #0c1120; color: #c3cadb; font-size: 15px; }
.foot-row { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 14px; }
.foot p { margin: 0; max-width: 80ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: #c9d4ff; }

/* plain pages (privacy, 404) */
.doc { padding-top: 48px; padding-bottom: 72px; max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); max-width: none; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc li { margin-bottom: 6px; }
