/* patchitfast.eu — Fase 0 one-pager
   Signatuur: de patch-als-diff. Context-regels (grijs) tot de regel die
   het fixt (oranje "+"). Gebruikt waar het echt een sequentie is. */

:root {
  --bg: #0E0F12;
  --bg-surface: #16181D;
  --bg-surface-2: #1D2027;
  --border: #2A2E37;
  --text: #F5F6F8;
  --text-dim: #A7ACB6;
  --text-mute: #6B7280;
  --accent: #FF5A1F;
  --accent-tint: rgba(255, 90, 31, 0.14);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(3.5rem, 9vw, 6.5rem);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }

p { margin: 0 0 1rem; max-width: 60ch; }

.mono { font-family: var(--font-mono); }

.accent { color: var(--accent); }

a { color: inherit; }

a.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

a.link:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: var(--gutter); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- sticky top bar --- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.bar__mark {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
}

/* --- route-pad als nav: leest als een terminal-cd, geen generieke navbar --- */
.route {
  order: 3;
  flex-basis: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
}
@media (min-width: 40rem) {
  .route { order: 0; flex-basis: auto; }
}
.route__seg { color: var(--text-mute); text-decoration: none; }
.route__seg:hover { color: var(--accent); }
.route__seg--active { color: var(--accent); }
.route__sep { color: var(--border); }

.bar__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.bar__cta:hover { border-color: var(--accent); color: var(--accent); }

section, .footer {
  padding: var(--section-gap) var(--gutter);
  max-width: 64rem;
  margin: 0 auto;
}

/* --- kicker / terminal line --- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.25rem;
}
.kicker code { color: var(--text-dim); text-transform: none; letter-spacing: normal; }

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

/* --- hero --- */
.hero { padding-top: clamp(3rem, 10vw, 7rem); }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-dim); }

/* --- buttons --- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- case-strip (diff) --- */
.case {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.case > * { max-width: 64rem; margin-left: auto; margin-right: auto; }

.diff {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 28rem;
}
.diff__line {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.diff__line:last-child { border-bottom: none; }
.diff__line--ctx { color: var(--text-mute); }
.diff__line--add { color: var(--accent); background: var(--accent-tint); font-weight: 700; }
.diff__gutter { color: inherit; opacity: 0.7; width: 1.25rem; flex: none; }

/* --- probleem --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}
.tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

/* --- ladder --- */
.ladder__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .ladder__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1.5rem;
}
.plan--featured { border-color: var(--accent); background: var(--bg-surface-2); }
.plan__name { color: var(--text); font-weight: 700; font-size: 1.1rem; margin: 0; }
.plan__price { color: var(--text); font-size: 1.4rem; margin: 0; }
.plan__unit { font-size: 0.8rem; color: var(--text-mute); font-weight: 400; }
.plan__desc { font-size: 0.9rem; margin: 0 0 0.75rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* --- CRA --- */
.cra__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

/* --- lead form --- */
.lead { max-width: 36rem; }
.lead__sub { color: var(--text-dim); }
form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { color: var(--text); font-size: 0.9rem; font-weight: 600; }
.field input[type="email"],
.field input[type="text"] {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.9rem;
}
.field input::placeholder { color: var(--text-mute); }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--check label { font-weight: 400; font-size: 0.9rem; }
.field--check input { margin-top: 0.3rem; accent-color: var(--accent); }
form .btn--primary { align-self: flex-start; }
[data-status] { min-height: 1.2em; font-size: 0.9rem; color: var(--text-mute); margin: 0; }

/* --- faq --- */
.faq__list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
.faq summary {
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0.75rem 0 0; }

/* --- CVE-ticker: dunne stocktracker-balk boven de header --- */
.ticker {
  display: flex;
  align-items: center;
  height: 2.1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.ticker[hidden] { display: none; }
.ticker__label {
  flex: none;
  margin: 0;
  padding: 0 0.9rem;
  border-right: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.ticker__rail {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding-left: 0.9rem;
  animation: ticker-scroll 42s linear infinite;
}
.ticker__rail:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker__item a { text-decoration: none; }
.ticker__item a:hover { color: var(--accent); }
.ticker__item--kev { color: var(--accent); }
.ticker__source { color: var(--text-mute); }
.ticker__tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.ticker__sep { color: var(--border); margin: 0 1rem; }

/* --- footer --- */
.footer {
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-mute);
}
.footer p { margin: 0 0 0.4rem; max-width: none; }
