/*
 * NOVER website. Colours, radii and motion come from brand/tokens.json; the
 * web scale is larger than the apps' (marketing pages are read at arm's
 * length), on a 4 px spacing grid. No web fonts: system-ui, like the apps.
 */
:root {
  --bg: #080808;
  --surface: #111111;
  --card: #171717;
  --card-hover: #1c1c1c;
  --border: #292929;
  --border-strong: #3a3a3a;
  --text: #ffffff;
  --text-2: #a3a3a3;
  --text-3: #7a7a7a;
  --accent: #f2f2f2;
  --accent-pressed: #d6d6d6;
  --on-accent: #080808;
  --success: #5bb98c;
  --warning: #d9a441;
  --danger: #e5484d;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--text-2); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.1em 0.4em; }
::selection { background: #ffffff; color: #080808; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 16px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 8, 8, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid #1a1a1a;
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 118px; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 15px; text-decoration: none;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 8px; row-gap: 8px; }
  .brand { margin-right: auto; }
  .nav { order: 3; width: 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ffffff; }
.btn-primary:active { background: var(--accent-pressed); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: #4a4a4a; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ------------------------------------------------------------- type */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(17, 17, 17, 0.8);
  color: var(--text-2); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot-warning { background: var(--warning); }
.dot-success { background: var(--success); box-shadow: 0 0 0 4px rgba(91, 185, 140, 0.15); }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 640px; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.55; color: var(--text-3); }
.overline { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  padding: 112px 0 96px;
  background: var(--bg) url("hero-bg.webp") center top / max(100%, 1280px) auto no-repeat;
  border-bottom: 1px solid #141414;
}
.hero::after {
  /* Fades the banner into the page so the swooshes never meet the edge hard. */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin-top: 28px; max-width: 880px; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .actions { justify-content: center; }
.hero .small { margin-top: 20px; }
@media (max-width: 760px) { .hero { padding: 72px 0 64px; background-size: 220% auto; } }

.facts { border-bottom: 1px solid #141414; }
.facts ul {
  list-style: none; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.facts li { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.facts strong { font-size: 16px; font-weight: 600; }
.facts span { font-size: 14px; color: var(--text-3); }
@media (max-width: 760px) { .facts ul { grid-template-columns: 1fr; gap: 16px; } }

/* ------------------------------------------------------------- sections */

.section { padding: 112px 0; }
.section + .section { border-top: 1px solid #141414; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 + .lead, .section-head h2 + p { margin-top: 16px; }
.section-head .overline { display: block; margin-bottom: 16px; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid #1f1f1f; border-radius: var(--r-lg);
  padding: 28px;
}
.card h3 { margin-top: 20px; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border);
}
.icon svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------- servers */

.servers-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; color: var(--text-2); font-size: 15px; }
.map {
  position: relative; aspect-ratio: 2160 / 852;
  background: url("world-map.webp") center / 100% 100% no-repeat;
}
.map-panel { background: var(--surface); border: 1px solid #1f1f1f; border-radius: var(--r-lg); padding: clamp(16px, 3vw, 40px); }
.map::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, var(--surface) 100%); pointer-events: none; }
.marker {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--text-3); border: 2px solid var(--surface);
}
.marker.is-online { background: var(--success); }
.marker.is-online::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(91, 185, 140, 0.55);
  animation: ping 2.4s var(--ease) infinite;
}
.marker.is-maintenance { background: var(--warning); }
.marker-label {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--text);
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marker.is-online::after { animation: none; opacity: 0.6; } }
@media (max-width: 640px) { .marker-label { display: none; } }

.server-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.server {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid #1f1f1f;
}
.cc {
  display: grid; place-items: center; width: 40px; height: 28px; flex: none;
  border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--border);
  font: 600 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--text-2);
}
.server-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.server-country { color: var(--text-3); font-size: 14px; line-height: 1.3; }
.server .status { margin-left: auto; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.status.is-online { color: var(--success); border-color: rgba(91, 185, 140, 0.35); }
.status.is-online .dot { background: var(--success); }
.status.is-maintenance { color: var(--warning); border-color: rgba(217, 164, 65, 0.35); }
.status.is-maintenance .dot { background: var(--warning); }
.servers-message { padding: 20px; border-radius: var(--r-md); border: 1px dashed var(--border-strong); color: var(--text-2); }

/* ------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px 28px 28px 92px; border-top: 1px solid #1f1f1f; }
.steps li:last-child { border-bottom: 1px solid #1f1f1f; }
.steps li::before {
  content: counter(step); position: absolute; left: 28px; top: 26px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); font-weight: 600; font-size: 16px;
}
.steps p { color: var(--text-2); margin-top: 6px; }
@media (max-width: 640px) { .steps li { padding: 24px 0 24px 60px; } .steps li::before { left: 0; top: 22px; } }

/* ------------------------------------------------------------- notice / pricing */

.notice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 32px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #151515, #0f0f0f); border: 1px solid var(--border);
}
.notice h3 { font-size: 22px; }
.notice p { color: var(--text-2); margin-top: 6px; }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } }

.honest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.honest li { padding: 28px 0; border-top: 1px solid #1f1f1f; }
.honest h3 { display: flex; align-items: baseline; gap: 12px; }
.honest h3::before { content: "—"; color: var(--text-3); }
.honest p { margin-top: 8px; color: var(--text-2); }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- page header */

.page-head { padding: 96px 0 56px; border-bottom: 1px solid #141414; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head .lead { margin-top: 20px; }
@media (max-width: 760px) { .page-head { padding: 64px 0 40px; } }

/* ------------------------------------------------------------- downloads */

.platform { display: flex; flex-direction: column; gap: 16px; }
.platform-head { display: flex; align-items: center; gap: 16px; }
.platform-head h2 { font-size: 24px; letter-spacing: -0.015em; }
.platform-head p { color: var(--text-3); font-size: 15px; margin-top: 2px; }
.platform .actions { margin-top: 4px; }
.platform.is-unavailable { background: transparent; border-style: dashed; }
.platform.is-unavailable .platform-head h2 { color: var(--text-2); }
.file-meta { display: grid; gap: 4px; font-size: 14px; color: var(--text-3); }
.file-meta .mono { color: var(--text-2); word-break: break-all; }

/* ------------------------------------------------------------- prose (FAQ, privacy) */

.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 64px 0 16px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid #1f1f1f; border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid #1f1f1f; }
th { color: var(--text-3); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface); }
td { color: var(--text-2); }
td:first-child { color: var(--text); }
tr:last-child td { border-bottom: 0; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid #1f1f1f; }
.faq details:last-of-type { border-bottom: 1px solid #1f1f1f; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.6px solid var(--text-2); border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg) translateY(-3px); transition: transform 150ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .answer { padding: 0 0 24px; color: var(--text-2); max-width: 720px; }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 12px; }
.faq .answer ul { margin: 0; padding-left: 20px; }
.faq .answer a { color: var(--text); }

/* ------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid #141414; padding: 56px 0 48px; color: var(--text-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { width: 108px; margin-bottom: 16px; }
.footer-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #141414; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.servers-note { margin-top: 20px; }
body[data-page="faq"] .nav a[href="/faq"],
body[data-page="privacy"] .nav a[href="/privatliv"] { color: var(--text); background: var(--surface); }
.page-head .eyebrow + h1 { margin-top: 24px; }
