/* Nonstop Hosting, brand C+ "De ronde". One family (Archivo), black and white, one green signal. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Theme tokens. Light is the base; dark follows the system unless the visitor picked light,
   and applies whenever the visitor picked dark. The runner (#8ACA44) and its rim (#111111) never change. */
:root {
  --bg: #FFFFFF;
  --surface: #F1F1EF;
  --ink: #111111;
  --muted: #5E5E5A;
  --line: #D8D8D4;
  --green-text: #3A7010;
  --error: #B42318;
  --btn-bg: #111111;
  --btn-ink: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111;
    --surface: #1B1B1A;
    --ink: #F4F4F2;
    --muted: #A3A39E;
    --line: #2E2E2B;
    --green-text: #8ACA44;
    --error: #FF8A80;
    --btn-bg: #F4F4F2;
    --btn-ink: #111111;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111;
  --surface: #1B1B1A;
  --ink: #F4F4F2;
  --muted: #A3A39E;
  --line: #2E2E2B;
  --green-text: #8ACA44;
  --error: #FF8A80;
  --btn-bg: #F4F4F2;
  --btn-ink: #111111;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 {
  margin: 0;
  line-height: 1;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 30;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border: 2px solid var(--btn-bg);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.text-link { font-weight: 600; text-underline-offset: 5px; }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; flex: none; }
.brand-word { display: grid; font-weight: 800; font-stretch: 125%; font-size: 14px; line-height: .98; letter-spacing: .02em; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Theme switch: a small loop with the runner as knob. Left = light, right = dark. */
.theme-switch {
  appearance: none; background: none; border: 0; margin: 0; padding: 6px;
  color: var(--ink); cursor: pointer; border-radius: 999px; display: inline-grid;
}
.theme-switch svg { display: block; }
.theme-knob { transition: transform .25s ease; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-knob { transform: translateX(18px); }
}
:root[data-theme="dark"] .theme-knob { transform: translateX(18px); }

/* Small screens: no hamburger, the menu moves to its own row under the logo. */
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding-block: 14px 10px; min-height: 0; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding-bottom: 4px; }
  .theme-switch { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
}

/* Sections */
.section { border-top: 2px solid var(--ink); padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.005em; }
.section-lead { color: var(--muted); max-width: 52ch; }
.kicker { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 104px); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -.01em; margin-block: 16px 20px; }
.lead { max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }

/* The loop. Checkpoints light up as the runner passes (site.js starts both clocks together). */
.loop { width: 100%; max-width: 560px; justify-self: end; color: var(--ink); overflow: visible; }
.loop-track { fill: none; stroke: currentColor; stroke-width: 9; }
.cp { fill: var(--bg); stroke: currentColor; stroke-width: 3; }
.loop.is-running .cp { animation: cp-flash 9s linear infinite; animation-delay: var(--d); }
@keyframes cp-flash {
  0%, 11% { fill: #8ACA44; }
  23%, 100% { fill: var(--bg); }
}
.cp-label { fill: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .06em; }
.loop-runner { fill: #8ACA44; stroke: #111111; stroke-width: 3; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .loop { justify-self: start; max-width: 480px; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.services-grid article { padding: 24px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.services-grid article + article { border-left: 1px solid var(--line); padding-left: 24px; }
.services-grid h3, .steps h3, .promises h3 { font-size: 15px; letter-spacing: .02em; line-height: 1.15; }
.services-grid p, .steps p, .promises p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .services-grid article:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 16px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid article + article { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 16px; }
}

/* Steps: a real sequence, so the numbers carry meaning */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n { font-weight: 800; font-stretch: 125%; font-size: 44px; line-height: 1; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Promises: the runner is the bullet */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.promises li { display: grid; gap: 8px; align-content: start; padding-left: 26px; position: relative; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #8ACA44; box-shadow: 0 0 0 2px #111111;
}
@media (max-width: 860px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

/* In beheer: sites we manage, one row per site like a status page (works for any number of sites).
   Names in the brand face, the scope column carries the runner as marker. */
.showcase { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.showcase li { border-top: 1px solid var(--line); }
.showcase a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 6px clamp(16px, 3vw, 40px); align-items: baseline; padding: 18px 0; color: var(--ink); text-decoration: none;
}
.showcase-name { font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.05; }
.showcase-name::after { content: " \2197"; font-weight: 600; font-size: .8em; }
.showcase a:hover .showcase-name, .showcase a:focus-visible .showcase-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.showcase-meta { color: var(--muted); font-size: 15px; }
.showcase-scope { position: relative; padding-left: 20px; font-size: 15px; font-weight: 500; }
.showcase-scope::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 10px; height: 10px; border-radius: 50%;
  background: #8ACA44; box-shadow: 0 0 0 2px #111111;
}
.showcase-intro { color: var(--muted); margin: 32px 0 14px; }
@media (max-width: 760px) { .showcase a { grid-template-columns: 1fr; } }

/* Price */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); align-items: end; }
.price .section-head { margin-bottom: 0; }
.price-body { display: grid; gap: 22px; justify-items: start; }
.price-body p { color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; font-stretch: 125%; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 0; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border: 2px solid var(--line); font-weight: 500; font-size: 15px;
}
.chip input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-privacy { color: var(--muted); font-size: 14px; max-width: 42ch; }
.form-note { border: 2px solid var(--ink); padding: 16px 18px; display: grid; gap: 4px; margin-bottom: 18px; }
.form-note p { color: var(--muted); }
.form-note .form-note-title { color: var(--ink); font-weight: 700; }
.form-note.is-ok { border-color: var(--green-text); }
.form-note.is-error { border-color: var(--error); }

/* Text pages */
.prose { padding-block: clamp(40px, 6vw, 80px); max-width: 820px; }
.prose h1 { font-size: clamp(28px, 4vw, 44px); margin-block: 14px 10px; }
.prose h2 { font-size: 17px; letter-spacing: .02em; margin-top: 36px; margin-bottom: 10px; }
.prose p { color: var(--muted); max-width: 68ch; }
.prose p + p { margin-top: 12px; }
.prose code { font-size: .92em; }
.updated { font-size: 14px; }
.legal .art h2 { margin-top: 38px; }
.legal .clauses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legal .clauses li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 6px; color: var(--muted); max-width: 74ch; }
.legal .clause-n { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.legal .clauses strong { color: var(--ink); }
.legal-contact { margin-top: 40px; }
.legal-actions { margin-top: 18px; }

/* Print (legal pages are saved as PDF from the browser): content only, black on white. */
@media print {
  :root { --bg: #FFFFFF; --ink: #000000; --muted: #222222; --line: #BBBBBB; color-scheme: light; }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; }
  .skip, .site-nav, .theme-switch, .header-cta, .site-footer, .consent, .legal-actions { display: none !important; }
  .site-header { border-bottom: 1px solid #000000; }
  .header-inner { min-height: 0; padding-block: 8px; }
  .prose { padding-block: 16px; max-width: none; }
  .legal .art > h2 { break-after: avoid; }
  .legal .clauses li { break-inside: avoid; }
  a { color: #000000; text-decoration: none; }
}

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding-block: 22px 28px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.endorse { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.endorse:hover .xd-word { text-decoration: underline; text-underline-offset: 4px; }
.xd-mark { display: block; flex: none; }
.xd-word { font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink); text-underline-offset: 4px; }
.link-btn {
  appearance: none; background: none; border: 0; padding: 0;
  font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.theme-status .link-btn { margin-left: 6px; }

/* Consent banner: both choices carry equal weight (refusing must be as easy as accepting). */
.consent {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px));
  display: grid; gap: 12px; padding: 20px 22px;
  background: var(--bg); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.consent[hidden] { display: none; }
.consent p { font-size: 15px; color: var(--muted); }
.consent .consent-title { color: var(--ink); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.consent-actions .btn { flex: 1 1 150px; }

@media (prefers-reduced-motion: reduce) {
  .theme-knob, .btn { transition: none; }
  .loop.is-running .cp { animation: none; }
}
