/* BeFit. website — shared styles. Built by site-src/build.mjs (pages), this file is hand-written. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 600 1000;
  font-style: normal;
  font-display: swap;
  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;
}
/* metric-matched fallback keeps headline height stable while Nunito loads */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Rounded MT Bold"), local("Arial");
  size-adjust: 101%;
  ascent-override: 100%;
  descent-override: 35%;
}

:root {
  --night: #0d0717;
  --night-2: #140a22;
  --plum: #241038;
  --plum-2: #2f1650;
  --violet: #7c3aed;
  --orchid: #a855f7;
  --lilac: #c084fc;
  --mint: #5eead4;
  --ink: #f6f0ff;
  --ink-2: #cdbfe6;
  --ink-3: #9f8fbd;
  --line: rgba(192, 132, 252, 0.16);
  --line-2: rgba(192, 132, 252, 0.28);
  --glass: rgba(36, 16, 56, 0.55);
  --display: "Nunito", "Nunito Fallback", ui-rounded, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────────── */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 12.5vw, 124px); font-weight: 950; letter-spacing: -0.045em; line-height: 0.9; }
h2 { font-size: clamp(36px, 6vw, 80px); letter-spacing: -0.04em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36ch; line-height: 1.5; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(124, 58, 237, 0.16); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.pill b { background: var(--violet); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800; }
.kicker { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--lilac); margin-bottom: 14px; }
.ai-note { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); }
.ai-note::before { content: "KI"; font: 800 11px/1 var(--display); color: var(--night); background: var(--lilac); padding: 4px 6px; border-radius: 6px; }
:lang(en) .ai-note::before { content: "AI"; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 16px; border: 0; cursor: pointer;
  font: 800 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--orchid) 60%, var(--lilac));
  box-shadow: 0 10px 40px -8px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 16px 60px -6px rgba(168, 85, 247, 0.85), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(192,132,252,0.1); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }

.store {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 24px 0 18px; border-radius: 18px;
  background: #fff; color: #0d0717; text-decoration: none;
  box-shadow: 0 10px 50px -10px rgba(192, 132, 252, 0.65);
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.store:hover { box-shadow: 0 16px 70px -8px rgba(192, 132, 252, 0.9); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 12px; font-weight: 600; color: #4b3a63; }
.store strong { font: 900 20px/1.05 var(--display); letter-spacing: -0.02em; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 7, 23, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(13, 7, 23, 0.82); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 20px -6px var(--violet); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(192,132,252,0.08); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); }
.lang:hover { color: var(--ink); border-color: var(--line-2); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 359px) { .brand span { display: none; } }

/* ── Phone frame ──────────────────────────────────────── */
.phone {
  --w: 300px;
  position: relative; width: var(--w); max-width: 100%;
  aspect-ratio: 0.4611 / 1;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(145deg, #3a2a52, #120a1d 40%, #2a1d3d 70%, #0d0717);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #05030a,
    0 40px 90px -30px rgba(0,0,0,0.9),
    0 0 120px -30px rgba(124,58,237,0.55);
  flex: none;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: #000;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .screen::after { /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 32%);
}

/* ── Sections ─────────────────────────────────────────── */
main { display: block; }
.section { position: relative; padding-block: clamp(80px, 12vw, 160px); overflow-x: clip; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; }
.glow { position: absolute; pointer-events: none; border-radius: 50%; opacity: .5; z-index: -1; background: radial-gradient(closest-side, rgba(124,58,237,0.7), transparent) !important; }

/* Hero */
.hero { position: relative; isolation: isolate; padding-top: clamp(28px, 6vw, 80px); padding-bottom: clamp(60px, 8vw, 120px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 40%, rgba(124,58,237,0.55), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, rgba(168,85,247,0.22), transparent 70%),
    radial-gradient(50% 40% at 60% 100%, rgba(36,16,56,0.9), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 .line { display: block; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-2); font-size: 15px; align-items: center; }
.stars { display: inline-flex; gap: 2px; color: #ffd36e; }
.stars svg { width: 16px; height: 16px; }
.proof strong { color: var(--ink); }

.stage { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 560px; }
.tilt {
  --rx: 6deg; --ry: -16deg; --rz: 2deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
  will-change: transform;
}
.stage .phone { --w: clamp(240px, min(26vw, 36vh), 340px); }
.float {
  position: absolute; width: clamp(76px, 9vw, 124px); height: auto;
  transform: translate3d(0, calc(var(--sy, 0) * var(--depth, 40px)), 0);
}
.float.f1 { top: 6%; left: 2%; --depth: -60px; }
.float.f2 { bottom: 12%; left: -2%; --depth: 50px; }
.float.f3 { top: 18%; right: 0; --depth: -30px; }
.chip {
  position: absolute; z-index: 2;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(24, 12, 40, 0.92); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.8);
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.chip strong { display: block; font: 900 22px/1.05 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.hero .chip.c1 { right: -2%; bottom: 22%; }
.hero .chip.c2 { left: 4%; top: 54%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding-block: 24px 8px; }
  .stage .phone { --w: min(68vw, 300px); }
  .hero .chip.c2 { left: 0; }
  .hero .chip.c1 { right: 0; }
}
@media (max-width: 380px) { .chip { font-size: 12px; padding: 8px 10px; } .chip strong { font-size: 18px; } }

/* Marquee */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: rgba(36,16,56,0.35); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font: 900 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 16px var(--orchid); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Scan story (pinned) */
.scan { position: relative; }
.scan-pin { position: relative; }
.js .scan { height: 340vh; }
.js .scan-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 64px; }
.scan-copy h2 { font-size: clamp(36px, 5vw, 68px); }
.rig { position: relative; }
@media (max-height: 780px) and (min-width: 901px) { .scan-copy .lead { display: none; } }
.scan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; width: 100%; }
.scan-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; counter-reset: s; }
.scan-steps li {
  counter-increment: s; position: relative; padding: 12px 18px 12px 62px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(36,16,56,0.3);
  color: var(--ink-3); transition: color .4s, background-color .4s, border-color .4s, transform .5s var(--ease);
}
.scan-steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font: 900 16px/1 var(--display); background: rgba(192,132,252,0.12); color: var(--lilac);
}
.scan-steps li strong { display: block; font: 900 20px/1.2 var(--display); color: var(--ink-2); letter-spacing: -0.01em; }
.scan-steps li.on { color: var(--ink-2); border-color: var(--line-2); background: rgba(124,58,237,0.18); transform: translateX(6px); }
.scan-steps li.on strong { color: var(--ink); }
.scan-steps li.on::before { background: var(--violet); color: #fff; }
.scan-device { position: relative; display: grid; place-items: center; }
.scan-device .phone { --w: min(330px, 34vh, 72vw); }
.scan .layer { position: absolute; inset: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.scan .layer.result { opacity: 0; transform: scale(1.03); }
.scan[data-step="3"] .layer.result { opacity: 1; transform: none; }
.no-js .scan .layer.result, .scan.static .layer.result { opacity: 1; transform: none; }
.scanline {
  position: absolute; left: 4.2%; right: 4.2%; top: 14.6%; height: 31.6%;
  border-radius: 7% / 14%; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s;
}
.scanline::before {
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: calc(var(--scan, 0) * 100% - 15%);
  background: linear-gradient(180deg, transparent, rgba(192,132,252,0.55) 70%, #fff 71%, rgba(192,132,252,0.0) 73%);
  mix-blend-mode: screen;
}
.scanline::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(192,132,252,0.9); border-radius: inherit; box-shadow: inset 0 0 40px rgba(124,58,237,0.6); }
.scan[data-step="1"] .scanline, .scan[data-step="2"] .scanline { opacity: 1; }
.scan .chip { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.scan[data-step="2"] .chip, .scan[data-step="3"] .chip { opacity: 1; transform: none; }
.no-js .scan .chip, .scan.static .chip { opacity: 1; transform: none; }
.scan .chip:nth-of-type(2) { transition-delay: .08s; } .scan .chip:nth-of-type(3) { transition-delay: .16s; } .scan .chip:nth-of-type(4) { transition-delay: .24s; }
.scan .k1 { top: 8%; left: -38%; } .scan .k2 { top: 34%; right: -42%; } .scan .k3 { top: 58%; left: -30%; } .scan .k4 { bottom: 12%; right: -36%; }
.scan-limits { margin-top: 22px; font-size: 15px; color: var(--ink-3); max-width: 44ch; }
.scan-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.scan-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet), var(--lilac)); }
.no-js .scan-progress, .scan.static .scan-progress { display: none; }
.js .scan.static { height: auto; }
.js .scan.static .scan-pin { position: relative; height: auto; padding-block: clamp(80px, 12vw, 160px); }
@media (max-width: 900px) {
  .scan-grid { grid-template-columns: 1fr; gap: 18px; }
  .js .scan-pin { align-items: flex-start; padding-top: 80px; }
  .scan-copy h2 { font-size: clamp(30px, 8vw, 44px); }
  .scan-copy .lead, .scan-limits { display: none; }
  .scan-steps { margin-top: 14px; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .scan-steps li { padding: 46px 8px 10px; font-size: 0; text-align: center; transform: none !important; }
  .scan-steps li::before { left: 50%; transform: translateX(-50%); top: 8px; width: 28px; height: 28px; }
  .scan-steps li strong { font-size: 14px; }
  .scan-device .phone { --w: min(56vw, 30svh, 260px); }
  .scan .k1 { left: -24%; top: 4%; } .scan .k3 { left: -22%; } .scan .k2 { right: -26%; } .scan .k4 { right: -24%; }
  .no-js .scan-copy .lead, .scan.static .scan-copy .lead { display: block; }
}

/* Split feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.flip .feature-media { order: -1; }
.feature-copy .lead { margin-top: 20px; }
.feature-copy ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-copy li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.feature-copy li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 7px; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.feature-media { position: relative; display: grid; place-items: center; }
.feature-media .phone { --w: min(320px, 72vw); }
.art { width: 72px; height: 72px; margin-bottom: 18px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* Vita chat */
.chat {
  position: absolute; z-index: 2; right: -6%; bottom: 8%; width: min(340px, 86%);
  display: grid; gap: 10px; padding: 16px; border-radius: 24px;
  background: rgba(20, 10, 34, 0.95); border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.9);
  font-size: 15px; line-height: 1.45;
}
.bubble { padding: 10px 14px; border-radius: 18px; max-width: 92%; }
.bubble.me { justify-self: end; background: linear-gradient(135deg, var(--violet), var(--orchid)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.vita { justify-self: start; background: rgba(192,132,252,0.12); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.tool { justify-self: start; font-size: 13px; color: var(--lilac); background: none; padding: 0 4px; display: flex; gap: 8px; align-items: center; }
.bubble.tool::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 10px var(--lilac); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.js .chat [data-seq] { display: none; }
.js .chat [data-seq].shown { display: block; animation: pop .5s var(--ease) both; }
.js .chat .typing.shown { display: inline-flex; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.exercises { display: grid; gap: 8px; margin-top: 26px; }
.exercise { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(36,16,56,0.35); font-weight: 600; color: var(--ink); font-size: 15px; }
.exercise small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.exercise svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(124,58,237,0.25); color: var(--lilac); }
@media (max-width: 900px) { .chat { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -60px; } }

/* Rest voice */
.voice { text-align: center; }
.voice .section-head { margin-inline: auto; }
.voice .lead { margin-inline: auto; }
.wave { display: flex; align-items: center; justify-content: center; gap: clamp(3px, 0.6vw, 7px); height: clamp(120px, 18vw, 220px); margin: 20px auto 0; max-width: 980px; }
.wave i {
  display: block; flex: 1 1 0; max-width: 12px; min-width: 2px; height: 100%; border-radius: 99px;
  background: linear-gradient(180deg, var(--lilac), var(--violet));
  transform: scaleY(var(--h, .2)); transform-origin: center;
}
.wave.play i { animation: wave 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -73ms); }
@keyframes wave { from { transform: scaleY(calc(var(--h) * .25)); } to { transform: scaleY(var(--h)); } }
.voice-quote { font: 950 clamp(32px, 6vw, 84px)/1 var(--display); letter-spacing: -0.04em; margin-top: 26px; }
.voice-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.voice-meta span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.voice-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 6vw, 80px); text-align: left; }
.voice-row .phone { --w: min(300px, 70vw); }
.voice-row .note { color: var(--ink-2); max-width: 34ch; }
.voice-row .note h3 { margin-bottom: 10px; }
.voice-row .note.right { justify-self: start; }
.voice-row .note.left { justify-self: end; }
@media (max-width: 900px) { .voice-row { grid-template-columns: 1fr; justify-items: center; text-align: center; } .voice-row .note { justify-self: center !important; } }

/* Run */
.route { position: absolute; inset: -6% -14%; z-index: 0; pointer-events: none; }
.route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route .trail { stroke: url(#routeGrad); stroke-width: 6; stroke-dasharray: var(--len, 2000); stroke-dashoffset: calc(var(--len, 2000) * (1 - var(--p, 1))); }
.route .ghost { stroke: rgba(192,132,252,0.14); stroke-width: 2; stroke-dasharray: 2 10; }
.route circle { fill: #fff; }
.feature-media .phone { position: relative; z-index: 1; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.number { padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.number:first-child { border-left: 0; }
.number strong { display: block; font: 950 clamp(40px, 6vw, 84px)/1 var(--display); letter-spacing: -0.045em; }
.number span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 22ch; }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr 1fr; } .number:nth-child(3) { border-left: 0; } .number:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 2; min-height: 320px; padding: 26px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(47,22,80,0.75), rgba(20,10,34,0.9));
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile::before { /* cursor light */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(168,85,247,0.22), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: clamp(22px, 2vw, 28px); }
.tile p { color: var(--ink-2); margin-top: 10px; font-size: 16px; max-width: 40ch; }
.tile .shot {
  margin-top: auto; align-self: center; width: min(250px, 80%); aspect-ratio: 0.4611 / 0.62; overflow: hidden;
  border-radius: 26px 26px 0 0; margin-bottom: -26px; translate: 0 18px;
  box-shadow: 0 -10px 60px -20px rgba(124,58,237,0.7), inset 0 0 0 1px var(--line-2);
  transition: translate .7s var(--ease);
}
.tile:hover .shot { translate: 0 6px; }
.tile .shot img { width: 100%; height: auto; }
.tile.wide { grid-column: span 3; }
.tile.wide.row { flex-direction: row; gap: 24px; align-items: stretch; }
.tile.wide.row .shot { margin-top: 0; margin-bottom: -26px; align-self: flex-end; width: 44%; flex: none; }
.tile .art { width: 64px; height: 64px; margin-bottom: 14px; }
.tile .tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(94,234,212,0.14); color: var(--mint); border: 1px solid rgba(94,234,212,0.3); }
@media (max-width: 1000px) { .tile, .tile.wide { grid-column: span 3; } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: auto; min-height: 0; }
  .tile.wide.row { flex-direction: column; }
  .tile.wide.row .shot { width: min(250px, 80%); align-self: center; margin-top: 22px; }
  .tile .shot { margin-top: 22px; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(36,16,56,0.3); }
.steps li::before { content: counter(st); display: block; font: 950 64px/1 var(--display); letter-spacing: -0.05em; margin-bottom: 18px; color: var(--lilac); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line); background: rgba(36,16,56,0.3); }
.plan.pro {
  background: radial-gradient(120% 80% at 100% 0%, rgba(124,58,237,0.45), transparent 60%), linear-gradient(160deg, #2a1248, #170b28);
  border-color: rgba(192,132,252,0.45);
  box-shadow: 0 30px 100px -40px rgba(124,58,237,0.9);
}
.plan h3 { font-size: clamp(28px, 3vw, 40px); }
.plan .price { font: 950 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -0.04em; margin-top: 16px; }
.plan .price small { font-size: 18px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; color: var(--ink-2); }
.plan li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 7px; background: rgba(192,132,252,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23C084FC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan li strong { color: var(--ink); }
.plan.pro li::before { background-color: var(--violet); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.opt { padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(13,7,23,0.45); }
.opt.best { border-color: var(--lilac); background: rgba(124,58,237,0.22); box-shadow: inset 0 0 0 1px var(--lilac); }
.opt b { display: block; font: 800 15px/1.2 var(--display); color: var(--ink-2); }
.opt strong { display: block; font: 950 26px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 6px; }
.opt span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.opt em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--night); background: var(--mint); padding: 3px 8px; border-radius: 999px; margin-top: 8px; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font: 800 clamp(18px, 2vw, 22px)/1.3 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23C084FC' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(124,58,237,0.3); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p + p { margin-top: 10px; }

/* Final CTA */
.final { text-align: center; position: relative; overflow: clip; isolation: isolate; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; background: radial-gradient(closest-side, rgba(124,58,237,0.55), rgba(124,58,237,0.12) 55%, transparent 75%); }
.final .icon { width: clamp(96px, 12vw, 148px); height: auto; border-radius: 24%; margin: 0 auto 32px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 90px -20px var(--violet); }
.final h2 { font-size: clamp(48px, 10vw, 140px); }
.final .lead { margin: 22px auto 0; text-align: center; }
.final .hero-cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav b { color: var(--ink); font-family: var(--display); font-weight: 800; margin-bottom: 4px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ── Doc pages (legal, contact) ───────────────────────── */
.doc-hero { padding-block: clamp(48px, 8vw, 110px) clamp(24px, 4vw, 48px); position: relative; isolation: isolate; overflow-x: clip; }
.doc-hero::before { content: ""; position: absolute; inset: 0 -20% -40%; z-index: -1; background: radial-gradient(40% 60% at 80% 0%, rgba(124,58,237,0.4), transparent 70%); }
.doc-hero h1 { font-size: clamp(40px, 7vw, 88px); }
.doc-hero p { margin-top: 18px; color: var(--ink-2); max-width: 60ch; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-bottom: clamp(64px, 10vw, 140px); }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-3); border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--ink); background: rgba(192,132,252,0.08); border-left-color: var(--lilac); }
.prose { max-width: 72ch; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); color: var(--ink); margin: 56px 0 14px; scroll-margin-top: 90px; letter-spacing: -0.025em; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 30px 0 8px; line-height: 1.3; }
.prose p, .prose ul, .prose ol, .prose table, .prose dl { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--lilac); }
.prose strong { color: var(--ink); }
.prose a { color: var(--lilac); text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose .box { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(124,58,237,0.1); margin: 18px 0; }
.prose .warn { border-color: rgba(255, 196, 92, 0.5); background: rgba(255, 196, 92, 0.08); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: 16px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; background: rgba(36,16,56,0.6); }
.prose tr:last-child td { border-bottom: 0; }
.prose .check { color: var(--ink-3); background: rgba(255,196,92,0.1); border-radius: 6px; padding: 0 4px; font-size: .92em; }
.addr { font-style: normal; }
.stand { margin-top: 40px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.doc-layout > *, .contact-grid > * { min-width: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(64px, 10vw, 140px); }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(47,22,80,0.6), rgba(20,10,34,0.85)); }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px;
  background: rgba(13,7,23,0.7); border: 1px solid var(--line-2); color: var(--ink); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23C084FC' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 44px; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(192,132,252,0.22); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--violet); }
.consent a { color: var(--lilac); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: #ff9db0; }
.form.sent .field, .form.sent .row2, .form.sent .consent, .form.sent button { display: none; }
.form .done { display: none; text-align: center; padding: 30px 0; }
.form.sent .done { display: block; }
.form .done h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.contact-side { display: grid; gap: 14px; align-content: start; }
.card { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(36,16,56,0.3); color: var(--ink-2); }
.card h2, .card h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.02em; line-height: 1.2; }
.card a { color: var(--lilac); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* ── Motion: initial states only with JS + motion allowed ─ */
.js.motion .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js.motion .rise.in { opacity: 1; transform: none; }
.js.motion .hero h1 .line { opacity: 0; transform: translateY(0.5em) rotate(2deg); transform-origin: left bottom; animation: lineIn 1.1s var(--ease) forwards; animation-delay: calc(0.1s + var(--i) * 0.09s); }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.js.motion .hero .stage { animation: stageIn 1.6s var(--ease) both .25s; }
@keyframes stageIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 12px 32px; }
  .ticker-track > div { flex-wrap: wrap; justify-content: center; gap: 12px 32px !important; }
  .ticker-track > div + div { display: none !important; }
  .wave i { transform: scaleY(var(--h)); }
  .tilt { transform: rotateY(-10deg) rotateX(4deg); }
}

/* ── Embedded mode (?app=1): served by the backend with class "embed" on <html> ─ */
.embed .site-header, .embed .site-footer, .embed .skip, .embed .doc-hero::before, .embed .toc, .embed .no-embed { display: none !important; }
.embed body { font-size: 16px; }
.embed .doc-hero { padding: calc(20px + env(safe-area-inset-top)) var(--gutter) 8px; }
.embed .doc-hero h1 { font-size: clamp(30px, 8vw, 40px); }
.embed .doc-layout { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.embed .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.embed .prose { font-size: 16px; }
.embed .rise { opacity: 1 !important; transform: none !important; }
.embed[data-theme="light"] {
  color-scheme: light;
  --night: #ffffff; --night-2: #f7f3ff; --plum: #f1e9ff; --ink: #1a1026; --ink-2: #3d2f55; --ink-3: #6b5c86;
  --line: rgba(124, 58, 237, 0.16); --line-2: rgba(124, 58, 237, 0.3); --lilac: #7c3aed;
}
@media (prefers-color-scheme: light) {
  .embed:not([data-theme="dark"]) {
    color-scheme: light;
    --night: #ffffff; --night-2: #f7f3ff; --plum: #f1e9ff; --ink: #1a1026; --ink-2: #3d2f55; --ink-3: #6b5c86;
    --line: rgba(124, 58, 237, 0.16); --line-2: rgba(124, 58, 237, 0.3); --lilac: #7c3aed;
  }
}
.embed .prose th { background: var(--night-2); }
.embed .prose .box { background: var(--night-2); }
.embed .prose a:hover { color: var(--violet); }

@media print {
  .site-header, .site-footer, .toc { display: none; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, .prose h2, .prose h3 { color: #000; }
}
/* lange deutsche Wörter (Verbraucherstreitbeilegung, Datenschutzerklärung) auf 320 px umbrechen */
h1, h2, h3, .prose, .card { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
