/* ============================================
   ToolTool — publieke/marketing pagina's
   Gedeelde laag bovenop css/style.css (tokens + .btn komen daarvandaan).
   Geladen door: index, pricing, login, register, join, 404, privacy, terms,
   roadmap, wensen, w. Niet door het dashboard.
   ============================================ */

:root {
  --site-max: 1120px;
  --site-gutter: 24px;
  --site-nav-h: 64px;
  --site-radius: 16px;
}
@media (max-width: 640px) {
  :root { --site-gutter: 20px; --site-nav-h: 60px; }
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--th-sans); font-feature-settings: 'ss01' 0; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-weight: 600; color: var(--th-text); }
img { max-width: 100%; }

.site-container { max-width: var(--site-max); margin: 0 auto; padding-left: var(--site-gutter); padding-right: var(--site-gutter); }

/* ---------- Knoppen: rustiger dan de app-variant (radius 10, geen gloed, geen sprong) ---------- */
.btn {
  border-radius: 10px;
  font-weight: 500;
  min-height: 40px;
  padding: 9px 16px;
  letter-spacing: -0.005em;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--th-primary);
  color: var(--th-on-accent);
  box-shadow: 0 1px 2px oklch(0.3 0.06 32 / 0.18), inset 0 1px 0 oklch(1 0 0 / 0.12);
}
.btn--primary:hover { background: var(--th-primary-hover); transform: none; box-shadow: 0 1px 2px oklch(0.3 0.06 32 / 0.22), inset 0 1px 0 oklch(1 0 0 / 0.12); }
.btn--primary:active { transform: none; box-shadow: none; }
.btn--secondary {
  background: var(--th-card);
  color: var(--th-text);
  border-color: var(--th-border);
  box-shadow: var(--th-shadow-sm);
}
.btn--secondary:hover {
  background: var(--th-panel2);
  color: var(--th-text);
  border-color: color-mix(in srgb, var(--th-text) 18%, var(--th-border));
  transform: none;
  box-shadow: var(--th-shadow-sm);
}
.btn--secondary:active { transform: none; }
.btn--ghost { color: var(--th-text-secondary); }
.btn--ghost:hover { background: var(--th-panel2); color: var(--th-text); }
.btn--large { min-height: 48px; padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn .btn-arrow { width: 16px; height: 16px; transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ---------- Navigatie ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--th-bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color .2s ease, background-color .2s ease;
}
.site-nav.scrolled, .site-nav--bordered { border-bottom-color: var(--th-border); }
.site-nav__inner {
  max-width: var(--site-max); margin: 0 auto; height: var(--site-nav-h);
  padding: 0 var(--site-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--th-text); text-decoration: none; font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em;
}
.site-brand:hover { text-decoration: none; }
.site-brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--th-primary); color: var(--th-on-accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14);
}
.site-brand__text span { color: var(--th-primary); }
.site-nav__links { display: flex; align-items: center; gap: 2px; margin-left: 24px; margin-right: auto; }
.site-nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--th-text-secondary); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav__links a:hover { color: var(--th-text); background: var(--th-panel2); text-decoration: none; }
.site-nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.site-nav__back { font-size: 14px; font-weight: 500; color: var(--th-text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; }
.site-nav__back:hover { color: var(--th-text); text-decoration: none; }
.site-nav__back svg { width: 16px; height: 16px; }

.theme-toggle {
  width: 40px; height: 40px; flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--th-text-secondary); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.theme-toggle:hover { color: var(--th-text); background: var(--th-panel2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

@media (max-width: 820px) {
  .site-nav__links { display: none; }
}
@media (max-width: 400px) {
  .site-nav__actions { gap: 4px; }
  .site-nav__actions .btn { padding-left: 12px; padding-right: 12px; }
  .site-nav .hide-xs { display: none; }
}

/* ---------- Sectie-typografie ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--th-primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
  color: var(--th-text); text-wrap: balance;
}
.section-lead {
  font-size: 17px; line-height: 1.6; color: var(--th-text-secondary); max-width: 60ch; text-wrap: pretty;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .section-lead { margin: 14px auto 0; }

/* ---------- Scroll-reveal ----------
   Bewust uitgeschakeld: content wordt nooit verborgen tot er gescrold wordt
   (dat gaf lege vlakken in full-page screenshots, print en bij haperende observers).
   De class .reveal blijft in de markup staan als haak, maar doet niets. */

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--th-border);
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--th-text-secondary); font-size: 14px;
}
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer__about p { margin-top: 12px; max-width: 34ch; line-height: 1.55; }
.site-footer h4 { font-size: 13px; font-weight: 600; color: var(--th-text); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--th-text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--th-text); text-decoration: none; }
.site-footer .site-brand { color: var(--th-text); }
.site-footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--th-border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--th-ink3);
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer__about { grid-column: 1 / -1; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding: 8px 0; }
}

/* ---------- Auth-pagina's (login, register, join) ---------- */
.auth-page { padding-left: 20px; padding-right: 20px; }
.auth-page::before, .auth-page::after { display: none; }
.auth-card {
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--th-shadow-sm);
  animation: none;
}
.auth-logo { gap: 10px; margin-bottom: 28px; text-decoration: none; }
a.auth-logo:hover { text-decoration: none; }
.auth-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--th-primary); color: var(--th-on-accent);
  font-size: 14px; font-weight: 600; box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14);
}
.auth-logo-text { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.auth-title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-subtitle { font-size: 14.5px; line-height: 1.5; margin-bottom: 28px; }
.auth-card .form-label { font-weight: 500; }
.auth-card .form-input { border-radius: 10px; min-height: 44px; font-size: 15px; box-shadow: none; }
.auth-card .form-input:focus { background: var(--th-card); box-shadow: var(--th-focus); }
.auth-card .btn { min-height: 44px; font-size: 14.5px; }
.auth-footer { font-size: 14px; margin-top: 24px; }
.auth-footer a { font-weight: 500; }
.auth-divider-row { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12.5px; color: var(--th-ink3); }
.auth-divider-row::before, .auth-divider-row::after { content: ''; flex: 1; height: 1px; background: var(--th-border); }
.auth-home {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); left: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px;
  font-size: 14px; font-weight: 500; color: var(--th-text-secondary); text-decoration: none; border-radius: 8px;
}
.auth-home:hover { color: var(--th-text); text-decoration: none; }
.auth-home svg { width: 16px; height: 16px; }
.auth-msg-success {
  background: color-mix(in srgb, var(--th-success) 12%, var(--th-card));
  color: var(--th-success); border: 1px solid color-mix(in srgb, var(--th-success) 30%, transparent);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 12px;
}
@media (max-width: 480px) {
  .auth-page:has(.auth-home) { align-items: flex-start; padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
  .auth-card { padding: 28px 20px; }
}
.form-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.form-label-row a { font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--th-primary); }
.form-check label { font-size: 13.5px; line-height: 1.5; color: var(--th-text-secondary); }
