@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #4a4a4a;      /* secondary text, 9:1 on white */
  --rule: #e4e4e4;
  --panel: #f5f5f5;
  --accent: #10b981;     /* NetOS emerald: connected state, primary action */
  --accent-ink: #047857; /* emerald text on white, AA */
  --on-accent: #000000;
  --band: #000000;       /* download band */
  --on-band: #ffffff;
  --on-band-2: #a3a3a3;
  --band-rule: #262626;
  --band-accent: #10b981;

  --measure: 34rem;
  --wide: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --col: min(var(--wide), 100% - 2 * var(--gutter));
  --radius: 12px;
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --ink: #ffffff;
    --ink-2: #b3b3b3;
    --rule: #262626;
    --panel: #121212;
    --accent-ink: #34d399;
    --band: #ffffff;
    --on-band: #000000;
    --on-band-2: #525252;
    --band-rule: #e4e4e4;
    --band-accent: #047857;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --ink: #ffffff; --ink-2: #b3b3b3; --rule: #262626; --panel: #121212;
  --accent-ink: #34d399; --band: #ffffff; --on-band: #000000; --on-band-2: #525252; --band-rule: #e4e4e4; --band-accent: #047857;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

/* Top bar */
.bar {
  width: var(--col); margin: 0 auto; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.mark { width: 26px; height: 26px; color: var(--ink); flex: none; }
.brand.small .mark { width: 20px; height: 20px; }
.bar nav { display: flex; gap: 24px; font-size: 0.9375rem; }
.bar nav a { text-decoration: none; color: var(--ink-2); }
.bar nav a:hover { color: var(--ink); }

/* Hero: the ID a customer reads aloud is the subject */
.hero { width: var(--col); margin: 0 auto; padding: clamp(48px, 10vw, 120px) 0 clamp(64px, 10vw, 128px); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; max-width: 14ch;
}
.lede { margin-top: 24px; max-width: var(--measure); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); }

.session { margin: clamp(40px, 7vw, 72px) 0 0; }
.id {
  display: flex; flex-wrap: wrap; gap: 0 0.28em;
  font-size: clamp(3.5rem, 15vw, 11.5rem); line-height: 0.9; font-weight: 500;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.id span { display: inline-block; }
.status { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--accent-ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.actions { margin-top: clamp(40px, 6vw, 56px); display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.button.quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.button.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.disabled { color: var(--on-band-2); box-shadow: inset 0 0 0 1.5px var(--band-rule); cursor: default; }

/* Shared section rhythm */
.call, .does, .source { width: var(--col); margin: 0 auto; padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
section h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; max-width: 20ch; }
.section-lede { margin-top: 16px; max-width: var(--measure); color: var(--ink-2); }

/* The call is a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 40px 48px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 16px;
  font-size: 2.75rem; line-height: 1; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.steps h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 1.0625rem; }

/* What it does: a definition list, two columns on wide screens */
.facts { margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 56px; }
.facts div { padding: 22px 0; border-top: 1px solid var(--rule); }
.facts dt { font-weight: 700; font-size: 1.125rem; }
.facts dd { margin: 6px 0 0; color: var(--ink-2); font-size: 1.0625rem; max-width: 30rem; }

/* Download band: inverted */
.download { background: var(--band); color: var(--on-band); padding: clamp(64px, 9vw, 112px) 0; }
.download .inner { width: var(--col); margin: 0 auto; }
.download .section-lede { color: var(--on-band-2); }
.platforms { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 56px); }
.platforms li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 32px;
  padding: 22px 0; border-top: 1px solid var(--band-rule);
}
.platforms li:last-child { border-bottom: 1px solid var(--band-rule); }
.platforms h3 { font-size: 1.1875rem; }
.platforms p { color: var(--on-band-2); font-size: 1rem; margin-top: 2px; }
.state { font-size: 0.9375rem; font-weight: 600; color: var(--on-band-2); min-width: 7rem; }
.platforms li[data-state="ready"] .state { color: var(--band-accent); }
.platforms li.yours h3::after { content: "Your device"; display: inline-block; white-space: nowrap; margin-left: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--on-band-2); vertical-align: 2px; }

.download .help { margin-top: 32px; color: var(--on-band-2); font-size: 1rem; }
.help summary { cursor: pointer; color: var(--on-band); font-weight: 600; }
.help p { margin-top: 12px; max-width: 40rem; }

/* Source */
.source p { margin-top: 16px; max-width: var(--measure); color: var(--ink-2); }
.source p:first-of-type { margin-top: 20px; }
.text-link { color: var(--ink); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--accent); }
.muted { color: var(--ink-2); }
.muted .text-link { color: var(--ink-2); font-weight: 500; }

.foot { width: var(--col); margin: 0 auto; padding: 40px 0 56px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 0.9375rem; }
.foot .brand { color: var(--ink); }

/* The one motion moment: digits arrive as they're read out, then the session connects. CSS only,
   so the ID is always visible when scripts are off. */
@keyframes read-in { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }
@keyframes connect { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .id span { animation: read-in .5s cubic-bezier(.2,.7,.2,1) both; }
  .id span:nth-child(1) { animation-delay: .25s; }
  .id span:nth-child(2) { animation-delay: .75s; }
  .id span:nth-child(3) { animation-delay: 1.25s; }
  .status { animation: connect .4s ease 1.9s both; }
}

@media (max-width: 640px) {
  .bar nav { display: none; }
  .platforms li { grid-template-columns: 1fr auto; }
  .platforms li .button { grid-column: 1 / -1; width: 100%; }
  .state { min-width: 0; text-align: right; }
}
