/* ------------------------------------------------------------------
   WerkLens Support — design tokens lifted from the iOS app (WLTheme)
   Accent stays orange #FF9F0A in both light + dark. Background and
   surface colors swap. Mobile-first; expands at 720px and 1024px.
   ------------------------------------------------------------------ */

:root {
  --wl-accent: #FF9F0A;
  --wl-accent-bright: #FFB340;
  --wl-accent-soft: rgba(255, 159, 10, 0.14);

  --wl-bg: #FFFFFF;
  --wl-bg-deep: #F4F4F7;
  --wl-surface: rgba(247, 247, 250, 0.92);
  --wl-surface-hi: #EEEEF2;
  --wl-text-primary: #0A0A0C;
  --wl-text-secondary: rgba(0, 0, 0, 0.62);
  --wl-text-muted: rgba(0, 0, 0, 0.42);
  --wl-separator: rgba(0, 0, 0, 0.08);
  --wl-hairline: rgba(0, 0, 0, 0.12);

  --wl-radius-sm: 10px;
  --wl-radius: 16px;
  --wl-radius-lg: 22px;

  --wl-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);
  --wl-shadow-soft: 0 4px 16px -4px rgba(0, 0, 0, 0.08);

  --wl-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;

  --wl-max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wl-bg: #1F1F22;
    --wl-bg-deep: #141416;
    --wl-surface: rgba(42, 42, 46, 0.85);
    --wl-surface-hi: #33333A;
    --wl-text-primary: #FFFFFF;
    --wl-text-secondary: rgba(255, 255, 255, 0.7);
    --wl-text-muted: rgba(255, 255, 255, 0.45);
    --wl-separator: rgba(255, 255, 255, 0.08);
    --wl-hairline: rgba(255, 255, 255, 0.18);

    --wl-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
    --wl-shadow-soft: 0 4px 16px -4px rgba(0, 0, 0, 0.35);
  }
}

[data-theme="dark"] {
  --wl-bg: #1F1F22;
  --wl-bg-deep: #141416;
  --wl-surface: rgba(42, 42, 46, 0.85);
  --wl-surface-hi: #33333A;
  --wl-text-primary: #FFFFFF;
  --wl-text-secondary: rgba(255, 255, 255, 0.7);
  --wl-text-muted: rgba(255, 255, 255, 0.45);
  --wl-separator: rgba(255, 255, 255, 0.08);
  --wl-hairline: rgba(255, 255, 255, 0.18);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--wl-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--wl-text-primary);
  background:
    radial-gradient(circle at 80% -10%, var(--wl-accent-soft), transparent 60%),
    linear-gradient(180deg, var(--wl-bg-deep) 0%, var(--wl-bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a {
  color: var(--wl-accent);
  text-decoration: none;
  transition: opacity 0.18s ease;
}
a:hover { opacity: 0.8; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--wl-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
@media (min-width: 720px) { section { padding: 96px 0; } }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--wl-bg) 78%, transparent);
  border-bottom: 1px solid var(--wl-separator);
}
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--wl-text-primary);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-spacer { flex: 1; }
.nav-links {
  display: none;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: var(--wl-text-secondary);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover {
  background: var(--wl-accent-soft);
  color: var(--wl-text-primary);
  opacity: 1;
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
}

.lang-toggle {
  display: inline-flex;
  background: var(--wl-surface-hi);
  border: 1px solid var(--wl-hairline);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wl-text-secondary);
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--wl-accent);
  color: #FFFFFF;
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  padding-top: 56px;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--wl-accent-soft);
  color: var(--wl-accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--wl-accent); }
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--wl-text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary {
  background: var(--wl-accent);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(255, 159, 10, 0.55);
}
.btn-primary:hover { background: var(--wl-accent-bright); }
.btn-ghost {
  background: var(--wl-surface);
  color: var(--wl-text-primary);
  border-color: var(--wl-hairline);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------------- Glass card ---------------- */
.glass {
  background: var(--wl-surface);
  border: 1px solid var(--wl-hairline);
  border-radius: var(--wl-radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--wl-shadow-soft);
}

/* ---------------- Sections ---------------- */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section-head p {
  color: var(--wl-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--wl-accent);
  margin-bottom: 12px;
}

/* ---------------- Features grid ---------------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  padding: 24px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-hairline);
  border-radius: var(--wl-radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--wl-accent);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--wl-accent-soft);
  display: grid; place-items: center;
  color: var(--wl-accent);
  font-size: 22px;
  margin-bottom: 4px;
}
.feature h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--wl-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------------- FAQ ---------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--wl-surface);
  border: 1px solid var(--wl-hairline);
  border-radius: var(--wl-radius);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--wl-text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-size: 22px;
  color: var(--wl-accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-summary::after { content: "−"; }
.faq-body {
  padding: 0 22px 18px;
  color: var(--wl-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}
.faq-body p { margin: 0 0 10px; }
.faq-body p:last-child { margin: 0; }

/* ---------------- Contact ---------------- */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: var(--wl-surface);
  border: 1px solid var(--wl-hairline);
  border-radius: var(--wl-radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.contact-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.contact-card p {
  color: var(--wl-text-secondary);
  margin: 0 0 22px;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--wl-accent);
  color: #FFFFFF;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(255, 159, 10, 0.55);
  transition: transform 0.12s ease, background 0.18s ease;
}
.email-pill:hover { background: var(--wl-accent-bright); transform: translateY(-1px); opacity: 1; }

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 60px;
  padding: 36px 0;
  border-top: 1px solid var(--wl-separator);
  color: var(--wl-text-muted);
  font-size: 13px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-row .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: var(--wl-text-secondary);
  font-weight: 500;
}
.footer-spacer { flex: 1; }

/* ---------------- Legal pages (privacy/terms) ---------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.legal .updated {
  color: var(--wl-text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  font-weight: 700;
}
.legal h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  font-weight: 600;
}
.legal p, .legal li {
  color: var(--wl-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal a { font-weight: 500; }
.legal-card {
  padding: 28px;
  margin: 24px 0;
  background: var(--wl-surface);
  border: 1px solid var(--wl-hairline);
  border-radius: var(--wl-radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* ---------------- i18n visibility ---------------- */
html[lang="nl"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="nl"] { display: none; }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- Print (privacy/terms readable) ---------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .lang-toggle { display: none; }
  .glass, .feature, .faq-item, .contact-card, .legal-card {
    background: #fff; border-color: #ccc; box-shadow: none; backdrop-filter: none;
  }
}
