/* ============================================================
   247toegang — Face terminal productpagina
   Dark techy theme, emerald accent (matches 247toegang logo)
   ============================================================ */

:root {
  --bg: #07090c;
  --bg-2: #0a0d11;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #10141a;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #eef2f3;
  --muted: #97a1a6;
  --accent: oklch(0.7 0.142 163);
  --accent-dim: oklch(0.6 0.13 163);
  --accent-glow: oklch(0.7 0.142 163 / 0.28);
  --chip-bg: #ffffff;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f4f6f6;
  --surface: rgba(30, 44, 42, 0.035);
  --surface-solid: #ffffff;
  --line: rgba(30, 44, 42, 0.12);
  --ink: #2c3735;
  --muted: #61706d;
  --accent: oklch(0.655 0.142 163);
  --accent-dim: oklch(0.57 0.13 163);
  --accent-glow: oklch(0.655 0.142 163 / 0.16);
  --chip-bg: transparent;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent); color: #06281d; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-logo-chip {
  background: var(--chip-bg);
  border-radius: 10px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.nav-logo-chip img { height: 22px; width: auto; display: block; }

/* product switcher (Face terminal <-> Speedgate) */
.nav-left { display: flex; align-items: center; gap: 16px; }

.nav-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.nav-switch a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-switch a:hover { color: var(--ink); }
.nav-switch a.is-active { background: var(--accent); color: #fff; }

@media (max-width: 720px) { .nav-switch { display: none; } }

.nav-links { display: flex; align-items: center; gap: 28px; }

/* Header light/dark toggle (shared by both product pages) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- Embed mode: show ONLY the centred 3D model (used by landing cards) ---- */
html.embed, html.embed body { height: 100%; overflow: hidden; background: transparent !important; }
html.embed .site-nav,
html.embed .hero-copy,
html.embed .chapter-card,
html.embed .stage-bg,
html.embed .scroll-hint,
html.embed #scroll-next,
html.embed #door-control,
html.embed #tweaks-root,
html.embed .section,
html.embed .footer { display: none !important; }
html.embed #scrolly { height: 100vh !important; min-height: 0 !important; }
html.embed .stage { position: fixed !important; inset: 0 !important; height: 100vh !important; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Scrolly stage ---------- */
#scrolly { position: relative; height: 540vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.stage-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.14;
  will-change: transform;
}

.orb-1 { width: 640px; height: 640px; top: -16%; left: -12%; background: var(--accent-glow); }
.orb-2 { width: 460px; height: 460px; bottom: -16%; right: -10%; background: var(--accent-glow); opacity: 0.08; }
.orb-3 { width: 320px; height: 320px; top: 44%; right: 26%; background: var(--accent-glow); opacity: 0.06; }

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 68% 56% at 50% 50%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 68% 56% at 50% 50%, #000 0%, transparent 78%);
  opacity: 0.32;
}

.t3d-anchor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

/* ---------- Hero copy (chapter 0) ---------- */
.hero-copy {
  position: absolute;
  left: max(5vw, calc(50vw - 660px));
  top: 50%;
  transform: translateY(calc(-50% + var(--heroShift, 0px)));
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  pointer-events: none;
  z-index: 5;
}

.hero-copy h1 {
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 46ch;
}

.hero-title-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.scroll-hint {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: hintDrop 2s ease-in-out infinite;
}

@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Chapter cards ---------- */
.chapter-card {
  position: absolute;
  top: 50%;
  width: min(400px, 38vw);
  transform: translateY(calc(-50% + var(--drift, 0px)));
  background: color-mix(in oklab, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 34px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  opacity: var(--vis, 0);
  pointer-events: none;
  z-index: 6;
  will-change: opacity, transform;
}

html[data-theme="light"] .chapter-card { box-shadow: 0 18px 44px rgba(20, 30, 30, 0.08); }

.chapter-card.is-left { left: max(5vw, calc(50vw - 660px)); }
.chapter-card.is-right { right: max(5vw, calc(50vw - 660px)); }

.chapter-card h2 { font-size: 27px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.chapter-card p { color: var(--muted); font-size: 15.5px; }

.chapter-stat {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chapter-stat div { display: flex; flex-direction: column; gap: 2px; }

.chapter-stat strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  white-space: nowrap;
}

.chapter-stat span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

.auth-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}

.auth-dot {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

/* ---------- Generic sections ---------- */
.section {
  position: relative;
  padding: 150px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.015em; }
.section-head p { margin-top: 14px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }
.reveal.inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint-line { animation: none; }
}

/* ---------- Specs ---------- */
#specs { border-top: 1px solid var(--line); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.spec-cell {
  background: var(--bg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s ease;
}

.spec-cell:hover { background: var(--surface-solid); }

.spec-cell dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec-cell dd { font-weight: 600; font-size: 16px; line-height: 1.45; }
.spec-cell dd small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- Use cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }

.case-card {
  padding: 40px 34px;
  background: var(--bg);
  transition: background 0.25s ease;
}

.case-card:hover { background: var(--surface-solid); }

.case-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--accent);
}

.case-card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.01em; }
.case-card p { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .chapter-card { width: min(400px, 86vw); left: 7vw !important; right: auto !important; top: auto; bottom: 5vh; padding: 24px 22px; transform: translateY(var(--drift, 0px)); }
  /* statregel niet buiten de kaart laten lopen op smal scherm */
  .chapter-stat { gap: 14px 18px; flex-wrap: wrap; }
  .chapter-stat div { flex: 1 1 40%; min-width: 0; }
  .chapter-stat strong { font-size: 19px; white-space: normal; }
  .hero-copy {
    left: 0;
    right: 0;
    max-width: none;
    top: auto;
    bottom: 0;
    padding: 52px 7vw calc(5vh + 30px);
    background: linear-gradient(to top, var(--bg) 92%, transparent);
    transform: translateY(var(--heroShift, 0px));
  }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 48px); }
  /* model in de bovenste helft op mobiel, tekst leest eronder */
  .t3d-anchor { align-items: start; padding-top: 8vh; }
}

/* ---------- CTA / footer ---------- */
#contact {
  border-top: 1px solid var(--line);
  text-align: center;
  padding-bottom: 60px;
}

#contact .section-head { margin: 0 auto 36px; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Quote form ---------- */
.quote-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  background: var(--surface-solid);
  box-shadow: 0 18px 44px color-mix(in oklab, var(--accent) 6%, transparent);
}

html[data-theme="dark"] .quote-form {
  background: color-mix(in oklab, var(--surface-solid) 80%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.qf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.qf-field { display: flex; flex-direction: column; gap: 7px; }
.qf-field.qf-full { grid-column: 1 / -1; }

.qf-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.qf-field > span i { color: var(--accent); font-style: normal; margin-left: 2px; }

.qf-field input,
.qf-field select,
.qf-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.qf-field textarea { resize: vertical; min-height: 96px; }

.qf-field input::placeholder,
.qf-field textarea::placeholder { color: color-mix(in oklab, var(--muted) 72%, transparent); }

.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.qf-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.qf-foot .btn-accent { padding: 13px 28px; font-size: 15px; }

.qf-note { font-size: 14px; color: var(--muted); }
.qf-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.qf-note a:hover { text-decoration: underline; }
.qf-note.is-error { color: oklch(0.6 0.17 25); }

.qf-success { text-align: center; padding: 22px 8px; }
.qf-success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 30px var(--accent-glow);
}
.qf-success-mark svg { width: 28px; height: 28px; }
.qf-success h3 { font-size: 22px; margin-bottom: 8px; }
.qf-success p { color: var(--muted); font-size: 15px; max-width: 42ch; margin: 0 auto; }

/* ---------- Scroll-next arrow ---------- */
.scroll-next {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg) 66%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}

.scroll-next:hover { border-color: var(--accent); color: var(--accent); }
.scroll-next svg { width: 22px; height: 22px; animation: bobArrow 1.9s ease-in-out infinite; }

.scroll-next.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

@keyframes bobArrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-next svg { animation: none; }
}

@media (max-width: 640px) {
  .quote-form { padding: 24px; }
  .qf-grid { grid-template-columns: 1fr; }
}

.footer {
  margin-top: 110px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo-chip {
  background: var(--chip-bg);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 0;
}

.footer-logo-chip img { height: 18px; width: auto; display: block; }

.footer p { font-size: 13px; color: var(--muted); }
