/* KnowAI Marketing Site — design tokens (lifted from app, recalibrated for marketing) */

/* Selbst gehostete Schriften (Inter, JetBrains Mono) — kein Abruf von Google-Servern (DSGVO) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-300-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: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/inter-300-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/inter-800-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: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/inter-800-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-400-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-400-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-500-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrainsmono-500-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;
}

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --accent-h: 248;
  --accent-c: 0.18;
  --accent: oklch(0.62 var(--accent-c) var(--accent-h));
  --accent-strong: oklch(0.55 var(--accent-c) var(--accent-h));
  --accent-soft: oklch(0.62 var(--accent-c) var(--accent-h) / 0.14);
  --accent-fg: #ffffff;

  --ok: oklch(0.62 0.14 155);
  --warn: oklch(0.72 0.14 75);
  --err: oklch(0.60 0.20 25);

  --maxw: 1200px;
}

[data-theme="light"], :root {
  --bg-base:      oklch(0.985 0.003 260);
  --bg-canvas:    #ffffff;
  --bg-surface:   #ffffff;
  --bg-raised:    oklch(0.965 0.004 260);
  --bg-hover:     oklch(0.945 0.005 260);
  --bg-inverse:   oklch(0.18 0.010 260);
  --border:       oklch(0.91 0.006 260);
  --border-soft:  oklch(0.94 0.005 260);
  --text:         oklch(0.18 0.010 260);
  --text-2:       oklch(0.34 0.010 260);
  --text-3:       oklch(0.50 0.010 260);
  --text-4:       oklch(0.65 0.010 260);
  --shadow-1: 0 1px 2px rgba(20,30,50,.05), 0 0 0 0.5px rgba(20,30,50,.04);
  --shadow-2: 0 12px 32px -12px rgba(20,30,50,.16), 0 1px 2px rgba(20,30,50,.05);
  --shadow-3: 0 28px 60px -24px rgba(20,30,50,.22), 0 2px 6px rgba(20,30,50,.06);
  --grid-line: rgba(20,30,50,.05);
}

[data-theme="dark"] {
  --bg-base:      oklch(0.18 0.008 260);
  --bg-canvas:    oklch(0.155 0.008 260);
  --bg-surface:   oklch(0.215 0.009 260);
  --bg-raised:    oklch(0.255 0.010 260);
  --bg-hover:     oklch(0.295 0.010 260);
  --bg-inverse:   oklch(0.96 0.005 260);
  --border:       oklch(0.32 0.010 260);
  --border-soft:  oklch(0.265 0.010 260);
  --text:         oklch(0.97 0.005 260);
  --text-2:       oklch(0.82 0.008 260);
  --text-3:       oklch(0.62 0.010 260);
  --text-4:       oklch(0.50 0.010 260);
  --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 0 0 0.5px rgba(255,255,255,.04);
  --shadow-2: 0 8px 24px -8px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
  --shadow-3: 0 28px 60px -24px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.4);
  --grid-line: rgba(255,255,255,.04);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg-base); }
::selection { background: var(--accent-soft); color: var(--text); }

/* ------------------------------ Layout helpers ----------------------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.gap-2 { gap: 8px; }
.row.gap-4 { gap: 16px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ---------------------------------- Type ----------------------------------- */

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.muted { color: var(--text-3); }
.muted-2 { color: var(--text-4); }
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--text-2);
  border: 1px solid var(--border);
}
code, .mono { font-family: var(--font-mono); }

/* --------------------------------- Buttons --------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-weight: 500; font-size: 14px;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, transform .05s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; box-shadow: 0 1px 0 oklch(0.45 0.18 248 / .4) inset, var(--shadow-1); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-lg); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --------------------------------- Inputs ---------------------------------- */

.input, .select, .textarea {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.field { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---------------------------------- Surfaces -------------------------------- */

.surface {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.surface.flat { box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  color: var(--text-2);
  font-size: 12px; font-weight: 500;
}
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.divider { height: 1px; background: var(--border); margin: 0; border: 0; }

/* --------------------------- Top nav --------------------------- */

.topnav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--bg-base) 75%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.topnav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 17px;
}
.brand .badge {
  width: 30px; height: 30px;
  display: grid; place-items: center;
}
.brand .badge img { width: 26px; height: 22px; object-fit: contain; }
.brand b { color: var(--accent); font-weight: 700; }
.brand-cursor { color: var(--text-4); font-weight: 400; font-style: normal; }

.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2);
  font-size: 14px; font-weight: 500;
}
.nav-links a:hover { background: var(--bg-hover); color: var(--text); }
.nav-links a.active { color: var(--text); }

/* ------------------------------------ Hero --------------------------------- */

.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero h1 .accent-text {
  color: var(--accent);
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-2);
  margin-top: 20px;
  text-wrap: pretty;
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-trust .chip { padding: 6px 12px; }

/* App preview mock */
.preview {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform: perspective(1500px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
}
.preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raised);
}
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-bar .url { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: 12px; }
.preview-body { display: grid; grid-template-columns: 56px 1fr; min-height: 380px; }
.preview-side { background: var(--bg-canvas); border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.preview-side .icon-slot { width: 32px; height: 32px; border-radius: 9px; background: var(--bg-raised); display: grid; place-items: center; color: var(--text-3); }
.preview-side .icon-slot.active { background: var(--accent-soft); color: var(--accent); }
.preview-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 13px;
  max-width: 80%;
  line-height: 1.5;
}
.bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-fg); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--bg-raised); color: var(--text); border-bottom-left-radius: 4px; }
.bubble.bot .citation {
  display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px;
  margin: 0 2px;
}

/* ------------------------------- Sections ---------------------------------- */

section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 40px; letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 17px; text-wrap: pretty; }

/* Feature grid */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  transition: border-color .12s ease, transform .12s ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* Comparison row */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare > div { padding: 28px; }
.compare > div + div { border-left: 1px solid var(--border); }
.compare h3 { margin-bottom: 14px; font-size: 17px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.compare li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.compare li .ic { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.compare .bad { background: oklch(0.65 0.20 25 / 0.05); }
.compare .good { background: var(--accent-soft); }
.compare .bad .ic { color: var(--err); }
.compare .good .ic { color: var(--accent); }

/* Pricing card */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; }
.pricing-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-surface);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  box-shadow: var(--shadow-1);
}
.pricing-card.featured {
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-2);
}
.pricing-card .price { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; }
.pricing-card .price small { font-size: 16px; font-weight: 500; color: var(--text-3); margin-left: 6px; }
.pricing-card .features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-card .features-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.pricing-card .features-list li .ic { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

/* Stripe mock */
.stripe-input {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  background: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.stripe-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.stripe-input input { flex: 1; border: none; background: transparent; outline: none; font: inherit; color: inherit; min-width: 0; }
.stripe-input .brand-mark { color: var(--text-4); }

.stepper {
  display: flex; align-items: center; gap: 0; margin-bottom: 32px;
  background: var(--bg-raised);
  padding: 6px;
  border-radius: var(--r-pill);
}
.stepper .step {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.stepper .step.active { background: var(--bg-surface); color: var(--text); box-shadow: var(--shadow-1); }
.stepper .step.done { color: var(--accent); }
.stepper .step .num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-base); color: var(--text-3);
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.stepper .step.active .num { background: var(--accent); color: var(--accent-fg); }
.stepper .step.done .num { background: var(--accent-soft); color: var(--accent); }

/* Tabs */
.tabs { display: inline-flex; padding: 4px; background: var(--bg-raised); border-radius: var(--r-md); gap: 0; }
.tabs button {
  padding: 8px 16px; border-radius: var(--r-sm);
  background: transparent; border: none;
  font-size: 13px; font-weight: 500; color: var(--text-3);
}
.tabs button.active { background: var(--bg-surface); color: var(--text); box-shadow: var(--shadow-1); }

/* Trust badges row */
.trust-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-canvas);
}
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.trust-badge .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

/* Footer */
.footer { padding: 56px 0 36px; border-top: 1px solid var(--border-soft); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul li a { color: var(--text-2); font-size: 14px; }
.footer ul li a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; gap: 16px; flex-wrap: wrap; }

/* Modals & toasts */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  width: 100%; max-width: 520px;
  padding: 32px;
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 22px; margin-bottom: 8px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 12px;
  animation: slideUp .25s ease;
  max-width: 380px;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Mock email */
.email {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-canvas);
  overflow: hidden;
}
.email-header { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); background: var(--bg-raised); }
.email-header .from { font-size: 13px; color: var(--text-2); }
.email-header .from b { color: var(--text); }
.email-header .subject { font-size: 17px; font-weight: 600; margin-top: 4px; }
.email-body { padding: 24px 20px; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.email-body .license-key {
  background: var(--bg-raised);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  margin: 16px 0;
  word-break: break-all;
  position: relative;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
  cursor: pointer;
}
.faq-item summary {
  font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .toggle { width: 22px; height: 22px; color: var(--text-3); transition: transform .2s; }
.faq-item[open] summary .toggle { transform: rotate(45deg); color: var(--accent); }
.faq-item p { color: var(--text-2); font-size: 14px; line-height: 1.65; margin-top: 10px; }
.faq-item .faq-answer { color: var(--text-2); font-size: 14px; line-height: 1.65; margin-top: 10px; }
.faq-item .faq-answer ul { margin: 0; padding-left: 18px; }
.faq-item .faq-answer li { margin: 3px 0; }

/* Legal page */
.legal-content {
  max-width: 760px; margin: 0 auto;
  font-size: 15px; line-height: 1.7; color: var(--text-2);
}
.legal-content h1 { font-size: 36px; margin-bottom: 12px; color: var(--text); }
.legal-content h2 { font-size: 22px; margin-top: 36px; margin-bottom: 10px; color: var(--text); }
.legal-content p, .legal-content ul { margin: 10px 0; }
.legal-content ul { padding-left: 22px; }
.legal-content .meta { color: var(--text-3); font-size: 13px; margin-bottom: 28px; }

/* Customer area */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.dash-side { display: flex; flex-direction: column; gap: 4px; }
.dash-side a {
  padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 500; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.dash-side a:hover { background: var(--bg-hover); color: var(--text); }
.dash-side a.active { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .features { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row, .field-row.cols-3 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .preview { transform: none; }
  .section-head h2 { font-size: 30px; }
  section { padding: 56px 0; }
}

/* ========================================================================== */
/*  Static-site additions (vanilla HTML/CSS/JS port)                          */
/* ========================================================================== */

/* Generic link style used across forms / legal text */
.lnk { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.lnk:hover { text-decoration-thickness: 2px; }

/* Loading spinner (checkout payment button) */
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid color-mix(in oklch, currentColor 30%, transparent);
  border-top-color: currentColor;
  display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Page header used on sub-pages (download, license, support, legal …) */
.page-head { padding: 56px 0 8px; }
.page-head .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3); margin-bottom: 18px;
}
.page-head .back-link:hover { color: var(--text); }
.page-head h1 { font-size: 44px; letter-spacing: -0.03em; margin-top: 12px; }
.page-head p.lead { font-size: 17px; color: var(--text-3); margin-top: 14px; max-width: 620px; text-wrap: pretty; }
@media (max-width: 900px) { .page-head h1 { font-size: 32px; } }

/* Helper: hidden until JS reveals it */
[hidden] { display: none !important; }

/* Theme / language toggle buttons in the nav */
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-2);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.lang-btn { width: auto; padding: 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; gap: 6px; display: flex; align-items: center; }

/* Language picker dropdown */
.lang-picker { position: relative; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 4px;
  min-width: 148px; z-index: 300;
  box-shadow: var(--shadow-2);
}
.lang-option {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 10px; border-radius: var(--r-sm); font-size: 13px;
  background: transparent; border: none; color: var(--text); cursor: pointer;
  white-space: nowrap;
}
.lang-option:hover { background: var(--bg-hover); }
.lang-option.active { color: var(--accent); font-weight: 600; }

/* Mobile nav */
.nav-toggle { display: none; }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-base);
  padding: 12px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a, .mobile-nav button {
  text-align: left;
  padding: 12px 14px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 15px; font-weight: 500;
  background: transparent; border: none;
}
.mobile-nav a:hover, .mobile-nav button:hover { background: var(--bg-hover); color: var(--text); }
.mobile-nav .row { padding: 8px 14px 0; gap: 10px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .topnav .desktop-only { display: none; }
  .nav-toggle { display: grid; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none !important; }
}

/* Step panels in checkout (shown/hidden via JS) */
.checkout-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.checkout-cols.single { grid-template-columns: 1fr; }
.step-panel[hidden] { display: none; }
.type-option {
  text-align: left; width: 100%; padding: 20px;
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-canvas);
  display: flex; gap: 16px; align-items: center;
  transition: border-color .12s ease, background .12s ease;
}
.type-option .ic-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-surface); color: var(--text-3);
  display: grid; place-items: center; border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.type-option .radio {
  width: 22px; height: 22px; border-radius: 999px;
  border: 1.5px solid var(--border); display: grid; place-items: center; flex-shrink: 0;
}
.type-option .radio::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.type-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.type-option.selected .ic-box { color: var(--accent); }
.type-option.selected .radio { border-color: var(--accent); }
.type-option.selected .radio::after { background: var(--accent); }
.type-option .t-title { font-weight: 600; color: var(--text); }
.type-option .t-desc { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* Generic surface helper for sub-page boxes */
.box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

@media (max-width: 900px) {
  .checkout-cols { grid-template-columns: 1fr; }
}

/* ----------------------- Feature showcase (slider) ------------------------- */
.showcase-shell { max-width: 1080px; margin: 0 auto; }

.showcase-tabs {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.showcase-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--bg-surface);
  color: var(--text-2); font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.showcase-tab .ic { display: grid; place-items: center; color: var(--text-3); transition: color .15s ease; }
.showcase-tab:hover { border-color: var(--accent); color: var(--text); }
.showcase-tab:active { transform: translateY(1px); }
.showcase-tab.active { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.showcase-tab.active .ic { color: var(--accent); }
.showcase-expand {
  margin-left: auto;
  width: 26px; height: 26px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: transparent; border: none; color: var(--text-3); cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.showcase-expand:hover { background: var(--bg-hover); color: var(--accent); }

.showcase-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
}

/* Bühne / Browser-Rahmen */
.showcase-stage { min-width: 0; }
.showcase-frame {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-canvas);
  box-shadow: var(--shadow-3);
}
.showcase-frame-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raised);
}
.showcase-frame-bar .dots { display: flex; gap: 6px; }
.showcase-frame-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.showcase-frame-bar .url { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

.showcase-screens {
  position: relative; width: 100%;
  aspect-ratio: 1440 / 960;     /* entspricht dem Aufnahme-Viewport (3:2) */
  background: var(--bg-raised);
  cursor: zoom-in;
}
.showcase-screen {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease;
}
.showcase-screen.active { opacity: 1; visibility: visible; }
.showcase-screen video {
  width: 100%; height: 100%; display: block; object-fit: cover; background: var(--bg-raised);
}

/* Text-Spalte */
.showcase-copy { position: relative; min-height: 230px; }
.showcase-panel {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.showcase-panel.active { opacity: 1; visibility: visible; transform: none; position: relative; }
.showcase-panel h3 { font-size: 26px; letter-spacing: -0.02em; }
.showcase-panel p { color: var(--text-2); font-size: 16px; line-height: 1.65; text-wrap: pretty; }

/* Steuerung */
.showcase-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 32px;
}
.showcase-nav {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.showcase-nav:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-hover); }
.showcase-dots { display: flex; align-items: center; gap: 8px; }
.showcase-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer; padding: 0;
  transition: background .2s ease, width .2s ease, border-radius .2s ease;
}
.showcase-dot:hover { background: var(--text-4); }
.showcase-dot.active { background: var(--accent); width: 22px; border-radius: var(--r-pill); }

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 24px; }
  .showcase-copy { min-height: 0; }
  .showcase-panel { position: relative; }
  .showcase-panel:not(.active) { display: none; }
  .showcase-tabs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  }
  .showcase-tab { flex: 0 0 auto; }
  .showcase-panel h3 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-screen, .showcase-panel { transition: none; }
}

/* Showcase-Lightbox (vergrößerte Clip-Ansicht als Slider im Modal) */
.showcase-modal {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; max-width: 1040px;
  max-height: calc(100vh - 40px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  padding: 14px;
}
.showcase-modal-cap {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--text);
  padding: 2px 4px;
}
.showcase-modal-cap .ic { color: var(--accent); display: grid; place-items: center; }
.showcase-modal-stage {
  position: relative; width: 100%;
  aspect-ratio: 1440 / 960;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-raised);
}
.showcase-modal-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease;
}
.showcase-modal-slide.active { opacity: 1; visibility: visible; }
.showcase-modal-slide video {
  width: 100%; height: 100%; display: block;
  object-fit: contain; background: var(--bg-raised);
}
.showcase-modal-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
@media (prefers-reduced-motion: reduce) { .showcase-modal-slide { transition: none; } }
.showcase-modal-close {
  position: absolute; top: -16px; right: -16px; z-index: 1;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--bg-surface); color: var(--text-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-2);
  cursor: pointer; transition: color .12s ease, border-color .12s ease;
}
.showcase-modal-close:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) {
  .showcase-modal-close { top: 8px; right: 8px; }
}
