/* ============================================================
   IntelliLearn Landing — editorial minimal, teal accent
   ============================================================ */

:root {
  --teal: #009880;
  --teal-hover: #00a68c;
  --teal-soft: #d4f8f5;
  --teal-ink: #006b5a;

  --ink: #0f1420;
  --ink-2: #1a1d2e;
  --muted: #5b6272;
  --muted-2: #8a90a0;
  --line: #e7e9ef;
  --line-2: #f1f2f6;
  --bg: #ffffff;
  --bg-soft: #fafbfc;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --display:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  --body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  --mono:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 20, 32, 0.04), 0 1px 0 rgba(15, 20, 32, 0.03);
  --shadow-md:
    0 6px 24px -8px rgba(15, 20, 32, 0.1), 0 2px 6px rgba(15, 20, 32, 0.04);
  --shadow-lg:
    0 24px 60px -20px rgba(15, 20, 32, 0.18),
    0 8px 20px -8px rgba(15, 20, 32, 0.08);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: auto;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;

  line-height: 1.5;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
summary {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.ink {
  color: var(--teal);
}

/* ============ NAV ============ */
.nav {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition:
    top 0.45s var(--ease),
    left 0.45s var(--ease),
    right 0.45s var(--ease),
    width 0.45s var(--ease),
    max-width 0.45s var(--ease),
    margin 0.45s var(--ease),
    border-radius 0.45s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease);
  max-width: none;
  margin: 0 auto;
  border-radius: 0;
}
main {
  padding-top: 0;
}

/* morphed (scrolled) state: floating pill, centered */
.nav.scrolled {
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.nav.scrolled .nav-inner {
  padding: 10px 12px 10px 20px;
  gap: 20px;
}
.nav.scrolled .nav-links,
.nav.scrolled .ghost-link,
.nav.scrolled .brand-word {
  opacity: 0;
  width: 0;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}
.nav.scrolled .nav-links {
  display: none;
}
.nav.scrolled .ghost-link {
  display: none;
}
.nav.scrolled .brand-word {
  max-width: 0;
}
.nav.scrolled .nav-cta {
  margin-left: 0;
  gap: 0;
}
.nav.scrolled .brand-mark {
  width: 32px;
  height: 32px;
}
.nav.scrolled .btn-primary {
  padding: 12px 22px;
  font-size: 14px;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition:
    padding 0.45s var(--ease),
    gap 0.45s var(--ease);
}
.brand-word {
  transition:
    opacity 0.3s var(--ease),
    max-width 0.4s var(--ease);
  max-width: 200px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-word {
  font-size: 17px;
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--line-2);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ghost-link {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
}
.ghost-link:hover {
  color: var(--ink);
  background: var(--line-2);
}

/* ============ Buttons ============ */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-hover);
}
.btn-primary:active {
  transform: scale(0.97);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--line-2);
}
.btn-primary.lg,
.btn-ghost.lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* ============ HERO ============ */
.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 152, 128, 0.12);
  animation: pulseDot 2.4s infinite var(--ease);
}
@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(0, 152, 128, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 152, 128, 0.05);
  }
}

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.display .d-line {
  display: block;
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-sublink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition:
    color 0.15s ease,
    gap 0.15s ease;
}
.hero-sublink:hover {
  color: var(--ink);
  gap: 8px;
}
.hero-sublink svg {
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.hero-sublink:hover svg {
  transform: translateY(2px);
  opacity: 1;
}
.hero-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 23, 30, 0.04),
    0 4px 14px rgba(15, 23, 30, 0.06);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.hero-perks li:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(15, 23, 30, 0.05),
    0 8px 22px rgba(15, 23, 30, 0.09);
}
.hero-perks .perk-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(20, 166, 146, 0.12);
  flex-shrink: 0;
}

/* ============ Hero Demo (live tutor) ============ */
.hero-demo {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 540px;
  overflow: hidden;
  animation: floatDemo 7s infinite var(--ease);
}
@keyframes floatDemo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.demo-chrome {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.demo-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.demo-tab {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
}
.demo-tab.active {
  background: rgba(0, 152, 128, 0.1);
  color: var(--teal);
}
.demo-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 10px;
  background: var(--teal-soft);
  border-radius: 999px;
}
.demo-side {
  grid-row: 2;
  border-right: 1px solid var(--line);
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-soft);
}
.side-stat {
  text-align: center;
  color: var(--muted);
}
.side-stat b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.side-stat span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.side-stat.active b {
  color: var(--teal);
}

.demo-body {
  grid-row: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.task-card {
  margin: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.task-head .topic {
  color: var(--teal);
  font-weight: 600;
}
.task-head .diff {
  color: var(--muted);
  font-weight: 500;
}
.task-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.task-form {
  margin-top: 8px;
}
.task-var {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.task-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.task-hint summary {
  color: var(--teal);
  font-weight: 600;
  list-style: none;
}
.task-hint summary::-webkit-details-marker {
  display: none;
}
.task-hint summary::before {
  content: "›  ";
}
.task-hint[open] summary::before {
  content: "⌄  ";
}

.chat {
  padding: 0 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  animation: msgIn 0.25s var(--ease);
}
.msg.user {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.ai {
  align-self: flex-start;
  background: rgba(0, 152, 128, 0.06);
  color: var(--ink);
  border: 1px solid rgba(0, 152, 128, 0.12);
  border-bottom-left-radius: 4px;
}
.msg.ai .badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.msg.ai.typing {
  color: var(--muted);
}
.msg.ai.typing .dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 4px 0;
}
.msg.ai.typing .dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.4;
  animation: blink 1.2s infinite;
}
.msg.ai.typing .dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.msg.ai.typing .dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.composer input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--body);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.composer input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 152, 128, 0.12);
}
.hint-btn,
.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.15s var(--ease);
}
.hint-btn:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-soft);
}
.send-btn {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.send-btn:hover {
  background: var(--teal-hover);
}

.demo-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.chip-1 {
  top: 16%;
  left: -24px;
  animation: chipFloat1 6s infinite var(--ease);
}
.chip-2 {
  bottom: 14%;
  right: -30px;
  animation: chipFloat2 7s infinite var(--ease);
}
.chip-1 .chip-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
}
.chip-2 .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 152, 128, 0.12);
}
@keyframes chipFloat1 {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
@keyframes chipFloat2 {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

/* ============ Section scaffolding ============ */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.sec-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.sec-head.sec-head--center {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head.sec-head--center .sec-kicker {
  letter-spacing: 0.12em;
}
.sec-head.sec-head--center .h2 {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.sec-head.sec-head--center .sec-sub {
  font-size: clamp(20px, 2vw, 26px);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}
/* Mobile: zwei Sätze garantiert untereinander (iPhone 16 = 393px) */
@media (max-width: 600px) {
  .sec-head.sec-head--center .h2 .h2-line {
    display: block;
  }
}
.sec-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 16px;
  text-wrap: balance;
}
.sec-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
  text-wrap: pretty;
}

/* ============ Pillars ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pillar {
  display: grid;
  grid-template-rows: 260px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #dfe3ec;
}
.pillar-viz {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pillar-copy {
  padding: 26px 28px 30px;
}
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.pillar-copy h3 {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  font-weight: 600;
}
.pillar-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* viz: upload */
[data-viz="upload"] {
  display: grid;
  place-items: center;
}
.viz-paper {
  position: absolute;
  width: 140px;
  height: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  transition: transform 0.3s var(--ease);
}
.viz-paper .p-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
}
.viz-paper .p-lines {
  display: block;
  margin-top: 10px;
  height: calc(100% - 20px);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line-2) 0 1.5px,
    transparent 1.5px 10px
  );
}
.p1 {
  transform: translate(-40px, 10px) rotate(-6deg);
}
.p2 {
  transform: translate(0, -4px) rotate(2deg);
  z-index: 2;
}
.p3 {
  transform: translate(40px, 12px) rotate(7deg);
}
.pillar:hover .p1 {
  transform: translate(-52px, 4px) rotate(-9deg);
}
.pillar:hover .p3 {
  transform: translate(52px, 6px) rotate(10deg);
}
.viz-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 20px var(--teal);
  animation: scan 3.2s infinite var(--ease);
  opacity: 0.7;
}
@keyframes scan {
  0% {
    top: 10%;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

/* viz: lehrplan */
[data-viz="lehrplan"] {
  padding: 24px 28px;
}
.lp-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.lp-row.done {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: rgba(0, 152, 128, 0.4);
}
.lp-row.done .lp-dot {
  background: var(--teal);
}
.lp-row.active {
  color: var(--ink);
  border-color: var(--teal);
  background: rgba(0, 152, 128, 0.04);
}
.lp-row.active .lp-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 152, 128, 0.18);
  animation: pulseDot 2s infinite;
}
.pillar:hover .lp-row.active {
  transform: translateX(4px);
}
.lp-progress {
  margin-top: 14px;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lp-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}
.pillar:hover .lp-progress span {
  width: 56% !important;
}

/* viz: 24/7 tutor */
[data-viz="247"] {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}
.tut-bubble {
  max-width: 85%;
  font-size: 12.5px;
  padding: 10px 13px;
  border-radius: 14px;
  line-height: 1.45;
}
.tut-bubble .tut-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 3px;
}
.tut-bubble.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.tut-bubble.ai .tut-label {
  color: var(--teal);
  opacity: 1;
}
.tut-bubble.user {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tut-bubble.user .tut-label {
  opacity: 0.8;
}
.tut-bubble.typing {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.tut-dots {
  display: inline-flex;
  gap: 3px;
}
.tut-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.4;
  animation: blink 1.2s infinite;
}
.tut-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.tut-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

/* viz: 3D cube */
[data-viz="3d"] {
  display: grid;
  place-items: center;
  perspective: 800px;
}
.stage-3d {
  width: 160px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
}
.cube {
  position: absolute;
  inset: 30px;
  transform-style: preserve-3d;
  animation: cubeRot 18s infinite linear;
}
@keyframes cubeRot {
  0% {
    transform: rotateX(-20deg) rotateY(0);
  }
  100% {
    transform: rotateX(-20deg) rotateY(360deg);
  }
}
.face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--teal);
  background: rgba(0, 152, 128, 0.04);
}
.f1 {
  transform: translateZ(50px);
}
.f2 {
  transform: rotateY(180deg) translateZ(50px);
}
.f3 {
  transform: rotateY(90deg) translateZ(50px);
}
.f4 {
  transform: rotateY(-90deg) translateZ(50px);
}
.f5 {
  transform: rotateX(90deg) translateZ(50px);
}
.f6 {
  transform: rotateX(-90deg) translateZ(50px);
}
.orbit {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(0, 152, 128, 0.25);
  border-radius: 50%;
  animation: spin 22s infinite linear;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.lbl {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.l1 {
  top: 4px;
  right: -30px;
}
.l2 {
  bottom: 10px;
  left: -20px;
}

/* ============ Paradigma — vertical timeline ============ */
.paradigma {
  background: #fff;
  padding: 120px 0 160px;
}

.para-intro {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 80px;
}
.para-intro .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.para-intro h2.para-h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.para-intro .para-lead {
  display: block;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-weight: 600;
}
.para-intro .para-sub {
  display: block;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #4b5563;
  max-width: 820px;
  margin: 24px auto 0;
}
.para-intro .para-sub em {
  position: relative;
  font-style: italic;
  font-family: var(--display);
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}
.para-intro .para-sub em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.12em;
  background: var(--teal);
  opacity: 0.25;
  border-radius: 2px;
}

/* Timeline container */
.timeline-v {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* The central vertical line — only extends to the last node (set by JS) */
.timeline-v::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: var(--lineH, 100%);
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}
/* Progress fill overlay on the line */
.timeline-v .tl-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--teal);
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 12px rgba(0, 152, 128, 0.35);
}

/* Each row: text + graphic, alternating sides */
/* Timeline phase images — transparent PNGs with glow behind */
.tl-graphic {
  position: relative;
}
/* Radial teal glow sitting BEHIND the image */
.tl-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 75%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(0, 152, 128, 0.22) 0%,
    rgba(0, 152, 128, 0.12) 35%,
    rgba(0, 152, 128, 0) 70%
  );
  filter: blur(24px);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.tl-row.is-active .tl-graphic::before {
  opacity: 1;
  transform: scale(1.1);
}
.tl-row.is-passed .tl-graphic::before {
  opacity: 0.35;
  transform: scale(0.95);
}

.tl-graphic .tl-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.1));
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}
.tl-row.is-active .tl-img {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 22px 40px rgba(15, 23, 42, 0.12));
}
@media (max-width: 768px) {
  .tl-graphic .tl-img {
    max-width: 200px;
  }
}
@media (max-width: 520px) {
  .tl-graphic .tl-img {
    max-width: 150px;
  }
}

/* Focus-scroll: dim non-active rows, highlight the active one */
.tl-row {
  opacity: 0.28;
  filter: saturate(0.6);
  transition:
    opacity 0.55s var(--ease),
    filter 0.55s var(--ease),
    transform 0.55s var(--ease);
}
.tl-row.is-active {
  opacity: 1;
  filter: saturate(1);
  transform: translateZ(0);
}
.tl-row.is-passed {
  opacity: 0.55;
  filter: saturate(0.85);
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tl-row {
    opacity: 1;
    filter: none;
    transition: none;
  }
}

.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0;
  min-height: 380px;
  padding: 40px 0;
  z-index: 2;
}
/* Force single-row placement: node center, graphic + text on the sides */
.tl-row > * {
  grid-row: 1;
}
.tl-row .tl-node {
  grid-column: 2;
}

/* The marker on the line */
.tl-node {
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  z-index: 2;
  transition: all 0.4s var(--ease);
}
.tl-row.is-active .tl-node {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow:
    0 0 0 8px rgba(0, 152, 128, 0.15),
    0 0 20px rgba(0, 152, 128, 0.35);
  transform: scale(1.15);
}
.tl-row.is-passed .tl-node {
  background: var(--teal);
  border-color: var(--teal);
}

/* Year badge near node */
.tl-year-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -160%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  background: #fff;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.4s var(--ease);
  z-index: 3;
}
.tl-row.is-active .tl-year-badge {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  transform: translate(-50%, -200%) scale(1.05);
}

/* Text side */
.tl-text {
  padding: 0 48px;
  opacity: 0.22;
  filter: saturate(0.4);
  transform: translateY(8px);
  transition:
    opacity 0.6s var(--ease),
    filter 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.tl-row.is-active .tl-text,
.tl-row.is-passed .tl-text {
  opacity: 1;
  filter: saturate(1);
  transform: translateY(0);
}

/* Left side alignment for odd rows */
.tl-row.side-left .tl-text {
  grid-column: 1;
  text-align: right;
}
.tl-row.side-left .tl-graphic {
  grid-column: 3;
}
.tl-row.side-right .tl-text {
  grid-column: 3;
  text-align: left;
}
.tl-row.side-right .tl-graphic {
  grid-column: 1;
}

.tl-text h3 {
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.tl-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.tl-meta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* Graphic side */
.tl-graphic {
  padding: 0 48px;
  opacity: 0.2;
  filter: saturate(0.4) blur(1px);
  transition:
    opacity 0.6s var(--ease),
    filter 0.6s var(--ease);
}
.tl-row.is-active .tl-graphic,
.tl-row.is-passed .tl-graphic {
  opacity: 1;
  filter: saturate(1) blur(0);
}
.tl-graphic .canvas {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 340px;
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: 16px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* === Era graphics === */
/* Pfarrer */
.g-pfarrer .halo {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 152, 128, 0.22) 0%,
    rgba(0, 152, 128, 0) 68%
  );
}
.g-pfarrer .priest {
  position: relative;
  width: 38px;
  height: 70px;
  background: var(--ink);
  border-radius: 8px 8px 2px 2px;
}
.g-pfarrer .priest::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
}
.g-pfarrer .crowd {
  position: absolute;
  bottom: 18%;
  display: flex;
  gap: 10px;
}
.g-pfarrer .crowd i {
  width: 6px;
  height: 12px;
  background: var(--muted-2);
  opacity: 0.5;
  border-radius: 50% 50% 2px 2px;
}

/* Scholar */
.g-scholar .book {
  position: relative;
  width: 90px;
  height: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 2px 8px 8px 2px;
  box-shadow: 0 16px 40px -16px rgba(15, 20, 32, 0.3);
}
.g-scholar .book::after {
  content: "";
  position: absolute;
  inset: 14px 10px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--muted-2) 0 1.2px,
    transparent 1.2px 7px
  );
  opacity: 0.4;
}

/* Press */
.g-press {
  padding: 20px;
}
.g-press .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 240px;
}
.g-press .grid i {
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 2px solid var(--teal);
  border-radius: 1px 2px 2px 1px;
}

/* Classroom */
.g-class {
  padding: 20px;
}
.g-class .teacher {
  display: block;
  margin: 0 auto 16px;
  position: relative;
  width: 16px;
  height: 34px;
  background: var(--ink);
  border-radius: 4px 4px 2px 2px;
}
.g-class .teacher::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.g-class .kids {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px 5px;
  max-width: 220px;
  margin: 0 auto;
}
.g-class .kids i {
  aspect-ratio: 1;
  background: var(--muted-2);
  opacity: 0.55;
  border-radius: 50% 50% 20% 20%;
}

/* You */
.g-you {
  padding: 20px;
  display: grid;
  place-items: center;
}
.g-you-inner {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
}
.g-you .you {
  position: absolute;
  left: 20%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 50px;
  background: var(--ink);
  border-radius: 5px 5px 2px 2px;
}
.g-you .you::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}
.g-you .ring {
  position: absolute;
  right: 16%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
}
.g-you .ring-2 {
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(0, 152, 128, 0.4);
}
.g-you .core {
  position: absolute;
  right: 16%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  box-shadow:
    0 0 0 6px rgba(0, 152, 128, 0.12),
    0 10px 30px -8px rgba(0, 152, 128, 0.45);
}

@media (max-width: 800px) {
  /* Line stays centered — follows scroll */
  .timeline-v::before {
    left: 50%;
  }
  .timeline-v .tl-progress {
    left: 50%;
  }
  .tl-row {
    grid-template-columns: 1fr 36px 1fr;
    min-height: 0;
    padding: 70px 0;
    gap: 0;
    align-items: start;
  }
  .tl-node {
    grid-column: 2;
    justify-self: center;
    align-self: center;
  }
  /* Year badge sits ABOVE the node so it doesn't collide with headlines */
  .tl-year-badge {
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: 0.08em;
    transform: translate(-50%, -260%);
    background: #fff;
    z-index: 4;
  }
  .tl-row.is-active .tl-year-badge {
    transform: translate(-50%, -290%) scale(1.05);
  }
  /* Alternating checkerboard: side-left = text left / image right,
     side-right = image left / text right.
     Text sits at top, image offset downward (versetzt) — like desktop flow. */
  .tl-row.side-left .tl-text {
    grid-column: 1;
    text-align: left;
    padding: 0 40px 0 0;
    min-width: 0;
    align-self: start;
  }
  .tl-row.side-left .tl-graphic {
    grid-column: 3;
    padding: 0 0 0 40px;
    min-width: 0;
    align-self: start;
    margin-top: 60px;
  }
  .tl-row.side-right .tl-text {
    grid-column: 3;
    text-align: left;
    padding: 0 0 0 40px;
    min-width: 0;
    align-self: start;
  }
  .tl-row.side-right .tl-graphic {
    grid-column: 1;
    padding: 0 40px 0 0;
    min-width: 0;
    align-self: start;
    margin-top: 60px;
  }
  /* Hide meta pills on mobile — not enough horizontal room */
  .tl-meta {
    display: none;
  }
  .tl-text h3 {
    font-size: clamp(15px, 4.2vw, 20px);
    margin: 0 0 8px;
    line-height: 1.12;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .tl-text p {
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0 0 10px;
    overflow-wrap: break-word;
  }
  .tl-meta {
    font-size: 9px;
    padding: 4px 8px;
    letter-spacing: 0.04em;
  }
  .tl-graphic .canvas {
    max-width: 200px;
    margin: 0 auto;
  }
}
@media (max-width: 520px) {
  .tl-row {
    grid-template-columns: 1fr 28px 1fr;
    min-height: 0;
    padding: 60px 0;
  }
  .tl-row.side-left .tl-text {
    padding: 0 24px 0 0;
  }
  .tl-row.side-left .tl-graphic {
    padding: 0 0 0 24px;
    margin-top: 50px;
  }
  .tl-row.side-right .tl-text {
    padding: 0 0 0 24px;
  }
  .tl-row.side-right .tl-graphic {
    padding: 0 24px 0 0;
    margin-top: 50px;
  }
  .tl-text h3 {
    font-size: clamp(14px, 4vw, 18px);
  }
  .tl-text p {
    font-size: 11.5px;
  }
  .tl-graphic .canvas {
    max-width: 150px;
  }
}

/* ===== Finale block (IntelliLearn reveal) ===== */
/* The real .tl-row-end in the timeline is now just a line-terminator —
   the visible Heute-badge + pulsing dot live inside the sticky finale
   so they stay on screen as it pins. We keep the row in layout so the
   JS-driven progress line still extends to its position, but hide it. */
.tl-row.tl-row-end {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: visible;
}
.tl-row.tl-row-end .tl-node {
  grid-column: 1;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow:
    0 0 0 8px rgba(0, 152, 128, 0.15),
    0 0 24px rgba(0, 152, 128, 0.45);
  width: 16px;
  height: 16px;
}
.tl-row.tl-row-end .tl-year-badge {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  transform: translate(-50%, -200%) scale(1.05);
  font-weight: 600;
}

.para-finale {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 80px;
  text-align: center;
  background: transparent;
  overflow: visible;
}
.para-finale::before {
  display: none;
}

/* Big centered hero visual */
.finale-viz {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto 48px;
  display: grid;
  place-items: center;
}
.fv-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 152, 128, 0.18) 0%,
    rgba(0, 152, 128, 0) 65%
  );
  z-index: 0;
  animation: fvBreathe 4s infinite var(--ease);
}
@keyframes fvBreathe {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.fv-orbit {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(0, 152, 128, 0.25);
}
.fv-orbit-1 {
  width: 180px;
  height: 180px;
  animation: fvSpin 14s infinite linear;
}
.fv-orbit-2 {
  width: 250px;
  height: 250px;
  border-style: solid;
  border-color: rgba(0, 152, 128, 0.18);
  animation: fvSpin 22s infinite reverse linear;
}
.fv-orbit-3 {
  width: 320px;
  height: 320px;
  border-color: rgba(0, 152, 128, 0.12);
  animation: fvSpin 32s infinite linear;
}
@keyframes fvSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.fv-core {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 10px rgba(0, 152, 128, 0.12),
    0 20px 50px -12px rgba(0, 152, 128, 0.55);
}
.fv-you {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 32px;
  background: var(--ink);
  border-radius: 4px 4px 1px 1px;
  z-index: 1;
}
.fv-you::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
/* thin beam from "you" to core */
.fv-you::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--teal) 100%);
  transform-origin: left center;
  transform: translateY(-50%);
  animation: fvBeam 3s infinite var(--ease);
  opacity: 0.55;
}
@keyframes fvBeam {
  0% {
    transform: translateY(-50%) scaleX(0);
    opacity: 0;
  }
  40% {
    transform: translateY(-50%) scaleX(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-50%) scaleX(1);
    opacity: 0;
  }
}

.finale-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.finale-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 152, 128, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 152, 128, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 152, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 152, 128, 0);
  }
}
.finale-h {
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.finale-h .ink {
  color: var(--teal);
}
.finale-kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.finale-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 56px;
  text-wrap: pretty;
}
/* ============================================================
   Finale compare — Apple-style scroll-scrubbed sticky sequence
   ============================================================ */
/* Tall scroll stage — drives progress for every card */
.fc-stage {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  /* 1 intro viewport + 1vh per card = enough scroll to scrub 4 cards cleanly */
  height: 420vh;
}
.fc-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}
.finale-compare {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
/* Step progress indicator — 4 dots to the left of the active card */
.fc-rail {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.fc-rail .fc-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}
.fc-rail .fc-dot.active {
  background: var(--teal);
  transform: scale(1.6);
}
.fc-rail .fc-dot.done {
  background: var(--teal);
  opacity: 0.4;
}

.fc-card {
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  background: transparent;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  /* default hidden; JS sets --enter 0→1 and --exit 0→1 */
  opacity: calc(var(--enter, 0) - var(--exit, 0) * 0.9);
  transform: translateY(
    calc((1 - var(--enter, 0)) * 24px + var(--exit, 0) * -18px)
  );
  pointer-events: none;
  transition:
    opacity 0.2s linear,
    transform 0.2s linear;
}
.fc-card.is-active {
  pointer-events: auto;
}

/* Label */
.fc-card .fc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: calc(var(--enter, 0));
}

/* Old value — strikes through as --p grows 0→0.45 */
.fc-card .fc-old {
  position: relative;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  letter-spacing: -0.01em;
  display: inline-block;
  padding: 4px 0;
  text-decoration: none; /* replaced by ::after */
}
.fc-card .fc-old::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 1.5px;
  background: rgba(100, 116, 139, 0.7);
  transform-origin: left center;
  transform: scaleX(var(--strike, 0));
  transition: transform 0.1s linear;
}

/* Divider between old and new — grows down */
.fc-card .fc-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--line), transparent);
  opacity: var(--divider, 0);
  transform: scaleY(var(--divider, 0));
  transform-origin: top;
  transition:
    opacity 0.12s linear,
    transform 0.12s linear;
}

/* New value — slides up + fades in + teal glow */
.fc-card .fc-new {
  font-family: var(--display);
  font-size: clamp(56px, 7.5vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  opacity: var(--new, 0);
  transform: translateY(calc((1 - var(--new, 0)) * 18px));
  filter: drop-shadow(
    0 0 calc(var(--new, 0) * 24px) rgba(0, 152, 128, calc(var(--new, 0) * 0.22))
  );
  transition:
    opacity 0.12s linear,
    transform 0.12s linear,
    filter 0.2s linear;
}
.fc-card .fc-new .fc-sep {
  color: var(--teal);
  font-weight: 600;
  margin: 0 0.02em;
}
.fc-card.is-active .fc-new {
  color: color-mix(in oklab, var(--ink), var(--teal) calc(var(--new, 0) * 40%));
}

/* Caption — fades in last */
.fc-card .fc-caption {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
  opacity: var(--caption, 0);
  transform: translateY(calc((1 - var(--caption, 0)) * 8px));
  transition:
    opacity 0.12s linear,
    transform 0.12s linear;
}

@media (max-width: 640px) {
  .fc-stage {
    height: 360vh;
  }
  .fc-rail {
    left: -28px;
  }
  .fc-card .fc-new {
    font-size: clamp(44px, 14vw, 72px);
  }
}

/* ============ Vision — Focus Mode =============================
   Camera-through-fog foundation. Multiple absolutely-positioned
   layers at different --depth values. JS sets a single --cam-p
   (0 → 1) on the section; CSS calcs translate + scale per layer.
   Near layers (depth ~1) move fast, far layers (depth ~0.15)
   drift slowly — parallax gives the impression of flying through.
   Extendable: add more layers, tweak colors per beat, etc.
   ============================================================== */
.vision-focus {
  /* 4 beats × 75vh each + 1 viewport so sticky child has room to travel */
  height: 400vh;
  background: #03040a;
  color: #f4f5f8;
  position: relative;
  isolation: isolate;
  /* Camera progress — JS sets this on scroll (0 at entry → 1 at exit) */
  --cam-p: 0;
  /* How far nearest layer travels vertically over the full scroll */
  --cam-travel: 240px;
  /* How much nearest layer zooms in over full scroll */
  --cam-zoom: 0.18;
}
.vision-focus .vf-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Completed state: once user has reached the last beat, the section
   collapses to a normal 100vh block. Scrolling past (or back) no longer
   re-engages the pinned beat scrubbing — the last beat behaves like a
   regular static section. */
.vision-focus.is-completed {
  height: 100vh;
}
.vision-focus.is-completed .vf-stage {
  position: static;
}
.vision-focus.is-completed .vf-rail,
.vision-focus.is-completed .vf-hint {
  display: none;
}

/* ---------- Fog system ---------- */
.vf-fog {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.vf-fog-layer {
  position: absolute;
  /* Oversized so edges never show during scale/translate */
  inset: -25%;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  /* Parallax: farther layers translate less & zoom less.
     Negative Y = "moving toward camera" / upward drift. */
  transform: translate3d(
      0,
      calc(var(--cam-p) * var(--depth) * var(--cam-travel) * -1),
      0
    )
    scale(calc(1 + var(--cam-p) * var(--depth) * var(--cam-zoom)));
  transition: opacity 0.6s var(--ease);
}

/* Layer 1 — far cool mist, top-center */
.vf-fog-1 {
  background-image: radial-gradient(
    ellipse 60% 55% at 50% 30%,
    rgba(45, 80, 110, 0.55),
    rgba(10, 20, 35, 0) 70%
  );
  filter: blur(70px);
  opacity: 0.9;
}
/* Layer 2 — warm dim haze, bottom-left */
.vf-fog-2 {
  background-image: radial-gradient(
    ellipse 55% 50% at 20% 80%,
    rgba(80, 60, 95, 0.4),
    rgba(10, 20, 35, 0) 72%
  );
  filter: blur(55px);
  opacity: 0.85;
}
/* Layer 3 — teal breath, right side mid */
.vf-fog-3 {
  background-image: radial-gradient(
    ellipse 50% 48% at 78% 55%,
    rgba(0, 152, 128, 0.32),
    rgba(0, 80, 70, 0) 70%
  );
  filter: blur(45px);
  opacity: 0.9;
}
/* Layer 4 — nearest, sharpest — bloom at centre-bottom */
.vf-fog-4 {
  background-image: radial-gradient(
    ellipse 45% 40% at 55% 70%,
    rgba(0, 180, 150, 0.22),
    rgba(0, 40, 35, 0) 68%
  );
  filter: blur(30px);
  opacity: 0.85;
}

/* Subtle film grain — static, not parallaxed */
.vf-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Vignette — darkens edges, keeps focus centre */
.vf-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    transparent 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}
.vision-focus .vf-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 40px 56px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
}
.vf-rail {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}
.vf-rail-seg {
  height: 8px;
  width: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition:
    width 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.vf-rail-seg.is-past {
  width: 8px;
  background: var(--teal);
}
.vf-rail-seg.is-active {
  width: 40px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 168, 140, 0.18);
}
.vf-rail-seg.is-future {
  width: 16px;
  background: rgba(255, 255, 255, 0.22);
}

.vf-beats {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}
.vf-beat {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  max-width: 880px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    filter 0.55s var(--ease);
  filter: blur(6px);
  pointer-events: none;
  text-align: left;
}
.vf-beat.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.vf-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  margin-bottom: 28px;
}
.vf-headline {
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 28px;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.72);
}
.vf-headline .vf-ink {
  display: block;
  color: #ffffff;
}
.vf-body {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 640px;
  color: rgba(244, 245, 248, 0.72);
  margin: 0;
  text-wrap: pretty;
}
.vf-step {
  display: block;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

/* Portraits inside Beat 02 — placeholder circles, replace bg-image later */
.vf-portraits {
  display: flex;
  gap: 22px;
  margin: 36px 0 4px;
  align-items: flex-start;
}
.vf-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.vf-portrait-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(0, 152, 128, 0.35), rgba(0, 152, 128, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 0 0 3px rgba(0, 152, 128, 0),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s var(--ease);
}
.vf-portrait:hover .vf-portrait-img {
  box-shadow:
    0 0 0 3px rgba(0, 152, 128, 0.3),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
}
.vf-portrait figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Scroll-hint chip */
.vf-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.vision-focus.is-finished .vf-hint {
  opacity: 0;
}
.vf-hint-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0)
  );
}

/* Mobile — keep the pinned stage + beat cross-fade, just shrink the type
   and compact spacing so each beat fits inside 100vh on phone viewports. */
@media (max-width: 760px) {
  .vision-focus {
    --cam-travel: 160px;
  }
  .vision-focus .vf-inner {
    padding: 88px 22px 48px;
    gap: 20px;
    max-width: 560px;
  }
  .vf-rail {
    top: 22px;
    gap: 6px;
  }
  .vf-rail-seg {
    height: 6px;
    width: 6px;
  }
  .vf-rail-seg.is-active {
    width: 28px;
  }
  .vf-rail-seg.is-future {
    width: 12px;
  }
  .vf-tag {
    font-size: 10px;
    margin-bottom: 18px;
    padding: 5px 9px;
  }
  .vf-headline {
    font-size: clamp(30px, 9vw, 44px);
    margin: 0 0 18px;
  }
  .vf-headline-sm {
    font-size: clamp(24px, 7.5vw, 34px) !important;
    margin-bottom: 22px !important;
  }
  .vf-body {
    font-size: 15px;
    line-height: 1.5;
  }
  .vf-step {
    margin-top: 24px;
    font-size: 11px;
  }
  .vf-portraits {
    gap: 16px;
    margin: 22px 0 4px;
  }
  .vf-portrait-img {
    width: 44px;
    height: 44px;
    font-size: 11px;
  }
  .vf-portrait figcaption {
    font-size: 10px;
  }
  .vf-video {
    max-width: 100%;
    border-radius: 10px;
  }
  .vf-video-play {
    width: 54px;
    height: 54px;
  }
  .vf-video-meta {
    right: 10px;
    bottom: 8px;
    font-size: 10px;
    padding: 3px 6px;
  }
  .vf-hint {
    display: none;
  }
}

/* Reduced-motion — no scroll pinning, beats stack, no animations */
@media (prefers-reduced-motion: reduce) {
  .vision-focus {
    height: auto;
  }
  .vision-focus .vf-stage {
    position: relative;
    height: auto;
  }
  .vision-focus .vf-inner {
    padding: 80px 40px;
    gap: 40px;
  }
  .vf-beats {
    display: block;
  }
  .vf-beat {
    position: relative;
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    margin-bottom: 80px;
    transition: none;
  }
  .vf-rail {
    display: none;
  }
  .vf-hint {
    display: none;
  }
}

/* ============ Für wen — tabs ============ */
.who-tabs {
  position: relative;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 40px;
}
.who-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.who-tab-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  opacity: 0.7;
}
.who-tab.active {
  color: var(--ink);
}
.who-tab.active .who-tab-num {
  color: var(--teal);
  opacity: 1;
}
.who-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    width 0.35s var(--ease);
  z-index: 0;
}

.who-panels {
  position: relative;
}
.who-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 56px;
  align-items: center;
}
.who-panel.active {
  display: grid;
  animation: fadeIn 0.35s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.who-copy h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 600;
  text-wrap: balance;
}
.who-lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 520px;
  text-wrap: pretty;
}
.who-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.who-list li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.who-list .who-bullet {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.who-list li b {
  font-weight: 600;
  color: var(--ink);
}
.who-list li div {
  color: var(--muted);
}
.who-list li div b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
}

/* Mini cards */
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.mini-streak {
  color: var(--teal);
  font-weight: 600;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--muted);
}
.mini-row:last-of-type {
  border: 0;
}
.mini-row.active {
  color: var(--ink);
}
.mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.mini-dot.done {
  background: var(--teal);
}
.mini-row.active .mini-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 152, 128, 0.18);
  animation: pulseDot 2s infinite;
}
.mini-bar {
  margin-top: 14px;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.mini-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}

.mini-kpi {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.mini-kpi b {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mini-kpi span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-kpi.ok b {
  color: var(--teal);
}
.mini-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ Plans ============ */
.plans {
  padding-top: 120px;
  padding-bottom: 120px;
}
.plans-head {
  margin-bottom: 32px;
}

/* --- Controls (Billing) --- */
.plans-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  isolation: isolate;
}
.bt-opt {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.bt-opt.is-active {
  color: var(--ink);
}
.bt-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--ink);
  border-radius: 999px;
  z-index: 0;
  transition: transform 0.35s var(--ease);
}
.plans[data-billing="monthly"] .bt-indicator {
  transform: translateX(0);
}
.plans[data-billing="yearly"] .bt-indicator {
  transform: translateX(100%);
}
.plans[data-billing="yearly"] .bt-opt[data-billing-opt="monthly"] {
  color: var(--muted);
}
.plans[data-billing="yearly"] .bt-opt[data-billing-opt="yearly"] {
  color: #fff;
}
.plans[data-billing="monthly"] .bt-opt[data-billing-opt="monthly"] {
  color: #fff;
}
/* --- Grid --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.plans-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px;
  margin: 0 auto;
  gap: 18px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  background: #fff;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.plan:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -20px rgba(15, 20, 32, 0.18);
}
.plan-pro {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 30px 70px -25px rgba(15, 20, 32, 0.4);
}
.plan-pro:hover {
  transform: translateY(-11px);
  box-shadow: 0 40px 90px -25px rgba(15, 20, 32, 0.5);
  border-color: var(--ink);
}

.plan-top {
  min-height: 150px;
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
}
.plan-pro .plan-tag {
  background: rgba(38, 212, 196, 0.15);
  color: #26d4c4;
}
.plan-star {
  color: inherit;
  font-size: 10px;
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(0, 152, 128, 0.5);
}
.plan-guarantee {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}
.plan:not(.plan-pro) .plan-guarantee {
  color: var(--muted);
}
.plan-perhead {
  margin: -12px 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.plan-perhead b {
  color: var(--teal);
  font-weight: 600;
}
.plan-h {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
  font-weight: 600;
}
.plan-lede {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.plan-pro .plan-lede {
  color: rgba(255, 255, 255, 0.65);
}

.plan-price {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 4px;
  margin: 24px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pp-billnote {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 14px;
}
.plans[data-billing="monthly"] .pp-billnote {
  opacity: 0;
}
.plan-pro .pp-billnote {
  color: rgba(255, 255, 255, 0.55);
}
.plan-pro .plan-price {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.pp-amount {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: opacity 0.2s var(--ease);
}
.pp-amount.is-flipping {
  opacity: 0;
}
.pp-period {
  color: var(--muted);
  font-size: 13px;
}
.plan-pro .pp-period {
  color: rgba(255, 255, 255, 0.55);
}

.plan-feats {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-feats li {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.plan-pro .plan-feats li {
  color: rgba(255, 255, 255, 0.9);
}
.plan-pro .plan-feats li::before {
  border-color: #26d4c4;
}

.plan-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.plan-pro .btn-primary {
  background: var(--teal);
}
.plan-pro .btn-primary:hover {
  background: var(--teal-hover);
}
.plan-pro .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.plans-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 48px auto 0;
  padding: 20px 28px;
  max-width: 680px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.pt-lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.pt-cta {
  padding: 10px 20px;
  font-size: 14px;
}
.pt-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plans-fine {
  text-align: center;
  margin: 24px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .plans-grid,
  .plans-grid-3 {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 14px;
  }
  .plan {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top   price"
      "feats feats"
      "cta   cta"
      "guar  guar";
    column-gap: 18px;
    align-items: start;
  }
  .plan-top {
    grid-area: top;
    min-height: 0;
  }
  .plan-price {
    grid-area: price;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    row-gap: 2px;
  }
  .plan-pro .plan-price {
    border: 0;
  }
  .plan-feats {
    grid-area: feats;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin: 16px 0 18px;
  }
  .plan-cta {
    grid-area: cta;
  }
  .plan-guarantee {
    grid-area: guar;
  }
  .plan-perhead {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    font-size: 12px;
  }

  .plan-tag {
    font-size: 10px;
    padding: 3px 9px;
  }
  .plan-badge {
    font-size: 10px;
    padding: 3px 11px;
    top: -10px;
  }
  .plan-h {
    font-size: 17px;
    margin: 10px 0 6px;
  }
  .plan-lede {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
    max-width: 200px;
  }
  .pp-amount {
    font-size: 24px;
    white-space: nowrap;
  }
  .pp-period {
    font-size: 12px;
  }
  .pp-billnote {
    display: none;
  }
  .plan-feats li {
    font-size: 12px;
    line-height: 1.35;
    padding-left: 16px;
  }
  .plan-feats li::before {
    width: 9px;
    height: 5px;
    top: 6px;
  }
  .plan-cta {
    font-size: 13px;
    padding: 11px 14px;
  }
  .plan-guarantee {
    font-size: 11px;
    margin-top: 10px;
  }
  .plan-pro {
    transform: none;
  }
  .plan-pro:hover {
    transform: translateY(-3px);
  }
}

/* ============ Final CTA ============ */
.cta-block {
  padding: 140px 0 160px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(
      60% 80% at 50% 0%,
      rgba(0, 152, 128, 0.06),
      transparent 70%
    ),
    #fff;
  text-align: center;
}
.cta-inner {
  max-width: 720px;
}
.cta-h {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 36px;
}
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.cta-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--body);
  background: transparent;
  color: var(--ink);
}
.cta-sent {
  display: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  color: var(--teal);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cta-form.sent .cta-sent {
  display: grid;
  opacity: 1;
}
.cta-fine {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  background: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.foot-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 360px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.foot-col a {
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.foot-col a:hover {
  color: var(--teal);
}
.foot-h {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero {
    padding: 48px 0 32px;
  }
  .display {
    margin: 0 0 18px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 80px 0;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tl-side {
    position: static;
  }
  .who-panel.active {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .foot-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .cta-form {
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
  .nav-cta .ghost-link {
    display: none;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero-grid {
    padding: 0 22px;
    gap: 28px;
    width: 100%;
  }
  .eyebrow {
    font-size: 11px;
    padding: 5px 10px 5px 9px;
    margin-bottom: 18px;
  }
  .display {
    font-size: clamp(40px, 13vw, 56px);
    line-height: 0.95;
    margin: 0 0 0;
    letter-spacing: -0.04em;
  }
  .lede {
    margin-top: 0 !important;
  }
  .display .d-line {
    display: block;
  }
  .lede {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 22px;
  }
  .hero-ctas {
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
  }
  .hero-sublink {
    margin-bottom: 20px;
    font-size: 12px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 12px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hero-perks {
    gap: 5px;
    flex-wrap: nowrap;
  }
  .hero-perks li {
    padding: 4px 10px 4px 4px;
    font-size: 11px;
    gap: 6px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
  }
  .hero-perks .perk-ic {
    width: 18px;
    height: 18px;
  }
  .demo-side {
    display: none;
  }
  .hero-demo {
    grid-template-columns: 1fr;
  }
  .float-chip {
    display: none;
  }
}

/* Scroll-snap on how-it-works segments — center each step */
html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 80px;
}
.section-segments .seg {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}
@media (max-width: 800px) {
  /* disable on mobile — layouts stack & snap gets annoying */
  html {
    scroll-snap-type: none;
  }
}

/* ============================================================
   Paradigma finale — scroll-scrubbed sticky reveal
   Heute-Dot pulses, then title builds word-by-word as user scrolls.
   ============================================================ */
.finale-scroll {
  position: relative;
  height: 620vh;
  --p: 0;
}
.finale-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  /* overflow visible so the stem line can extend above the sticky top */
}
/* Stem: visual continuation of the timeline into the pinned frame.
   Matches the real timeline: grey baseline line, teal progress fill
   that grows with scroll, dot greys-out until reached. */
.finale-stem {
  position: relative;
  width: 2px;
  height: 120px;
  margin-top: 0;
  display: flex;
  justify-content: center;
  overflow: visible;
}
.finale-stem .fs-line {
  position: absolute;
  left: 50%;
  /* Start ABOVE the sticky frame so the line appears to continue from
     the real timeline line even as we scroll past the last row. */
  top: -200px;
  bottom: 16px;
  transform: translateX(-50%);
  width: 2px;
  background: var(--line);
}
/* Teal progress fills in fast — reaches the dot before the words start */
.finale-stem .fs-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  /* At p = 0.02 → 100% filled (2500% multiplier, capped at 100%). */
  height: calc(var(--p, 0) * 2500%);
  max-height: 100%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 152, 128, 0.35);
}
.finale-stem .fs-dot {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.04);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
/* Dot lights up once stem progress has reached it */
.finale-scroll[data-dot="1"] .finale-stem .fs-dot {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow:
    0 0 0 8px rgba(0, 152, 128, 0.15),
    0 0 24px rgba(0, 152, 128, 0.45);
  animation: heute-pulse 1.6s cubic-bezier(0.3, 0.6, 0.4, 1) infinite;
}
.finale-stem .fs-badge {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  transition:
    color 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.finale-scroll[data-dot="1"] .finale-stem .fs-badge {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
/* Once the title is fully built, fade the timeline stem away to free
   vertical room for the slot machine + imagery below. */
.finale-stem {
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.finale-scroll[data-stem-hide="1"] .finale-stem {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}
.finale-sticky .para-finale {
  align-self: center;
  padding-bottom: 40px;
  padding-top: 40px;
}
.finale-scroll .para-finale {
  padding: 0 40px;
  width: 100%;
}

/* Word-by-word reveal. Each word is blurred + translated, then crisps in
   based on --p (0..1 across the scroll track). Stagger via per-word thresholds. */
.finale-scroll .finale-h {
  margin: 0 0 28px;
  opacity: 1;
}
.finale-scroll .fw {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    filter 0.5s var(--ease);
  will-change: opacity, transform, filter;
  margin: 0 0.18em 0 0;
}
/* Each word un-blurs when --p crosses its threshold.
   Thresholds: 0.10, 0.18, 0.28, 0.38, 0.50, 0.62 */
.finale-scroll[data-p1="1"] .fw-1,
.finale-scroll[data-p2="1"] .fw-2,
.finale-scroll[data-p3="1"] .fw-3,
.finale-scroll[data-p4="1"] .fw-4,
.finale-scroll[data-p5="1"] .fw-5,
.finale-scroll[data-p6="1"] .fw-6 {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* "dir" gets a delayed emphasis swell once it lands */
.finale-scroll .fw-5.ink {
  display: inline-block;
  transform-origin: center bottom;
  transition:
    opacity 0.5s var(--ease),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.1),
    filter 0.5s var(--ease),
    text-shadow 0.6s var(--ease);
}
.finale-scroll[data-emph="1"] .fw-5.ink {
  transform: translateY(0) scale(1.18);
  text-shadow: 0 0 40px rgba(0, 152, 128, 0.35);
}

/* Sub-copy fades last */
.finale-scroll .finale-sub {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.finale-scroll[data-sub="1"] .finale-sub {
  opacity: 1;
  transform: translateY(0);
}

/* The "Heute" end-node pulses while the finale scroll is engaged. */
@keyframes heute-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 152, 128, 0.55),
      0 0 0 8px rgba(0, 152, 128, 0.15),
      0 0 24px rgba(0, 152, 128, 0.45);
  }
  70% {
    box-shadow:
      0 0 0 22px rgba(0, 152, 128, 0),
      0 0 0 8px rgba(0, 152, 128, 0.15),
      0 0 24px rgba(0, 152, 128, 0.45);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 152, 128, 0),
      0 0 0 8px rgba(0, 152, 128, 0.15),
      0 0 24px rgba(0, 152, 128, 0.45);
  }
}
.tl-row.tl-row-end.is-pulsing .tl-node {
  animation: heute-pulse 1.6s cubic-bezier(0.3, 0.6, 0.4, 1) infinite;
}

@media (max-width: 760px) {
  .finale-scroll {
    height: 200vh;
    /* Aus Container ausbrechen, damit Pflanzen bis zum Screen-Rand gehen */
    margin-left: -28px;
    margin-right: -28px;
    width: calc(100% + 56px);
  }
  .finale-scroll .para-finale {
    padding: 0 14px;
  }
  .finale-scroll .finale-h {
    font-size: clamp(40px, 10.5vw, 56px);
    letter-spacing: -0.045em;
    text-wrap: balance;
  }
  /* Auf Mobile den fixen Umbruch aufheben — text-wrap: balance verteilt sauber auf 2 Zeilen */
  .finale-scroll .finale-h .fw-br {
    display: none;
  }
  /* Vignette nur oben/unten — Pflanzen sollen bis zu den Rändern atmen */
  .finale-backdrop {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
  }
  /* ===== Tweak-Panel Variablen (live via ?tweak=1) ===== */
  .fb-1 {
    --plant-w: var(--tk-plant-w, 181px);
  }
  .fb-1 img {
    width: var(--plant-w);
    left: var(--tk-plant-left, -55px);
    top: var(--tk-plant-top, 51%);
    transform: translateY(-50%) rotate(var(--tk-plant-rot, 0deg));
  }
  .fb-1::after {
    width: var(--plant-w);
    right: var(--tk-plant-right, -55px);
    top: var(--tk-plant-top, 51%);
    transform: translateY(-50%) scaleX(-1) rotate(var(--tk-plant-rot, 0deg));
  }
  .fb-0 img {
    width: var(--tk-bust-w, 209px);
    top: var(--tk-bust-top, 27%);
    left: var(--tk-bust-left, 50%);
    transform: translateX(-50%) rotate(var(--tk-bust-rot, 0deg));
  }
  .fb-2 {
    background-size: var(--tk-stars-size, 120px) auto;
    background-position: var(--tk-stars-x, 7%) var(--tk-stars-y, 27%);
  }
  .fb-2::after {
    right: var(--tk-stars-x, 7%);
    top: var(--tk-stars-y, 27%);
    width: var(--tk-stars-size, 120px);
    aspect-ratio: 4 / 5;
  }
  .fb-shoot img {
    width: var(--tk-shoot-w, 312px);
    --shoot-y2: var(--tk-shoot-peak, 17vh);
  }
}

/* ============================================================
   Finale slot-machine — three short lines cycle horizontally
   as the user scrolls through the remaining pinned track.
   Driven by --slot-p (0..1) set by JS after the title has revealed.
   ============================================================ */
.finale-slot {
  margin: 40px auto 0;
  max-width: 720px;
  height: 48px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.finale-scroll[data-slot-on="1"] .finale-slot {
  opacity: 1;
  transform: translateY(0);
}
.fs-slot-track {
  --sp: 0; /* 0..2 — which slot is centered */
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(calc(var(--sp) * -100%));
  /* Longer transition = visual cooldown between slots. Scroll nudges
     --sp; CSS smooths the commit so rapid scroll still reads cleanly. */
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.2, 1);
  will-change: transform;
}
.fs-slot-item {
  flex: 0 0 100%;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.2;
}
.fs-slot-item .k {
  color: var(--teal);
}

@media (max-width: 640px) {
  .finale-slot {
    height: 40px;
    margin-top: 28px;
  }
  .fs-slot-item {
    font-size: 20px;
  }
}

/* ============================================================
   Finale backdrop — 3 stacked phase images, always visible,
   the active one brightens as the slot-machine advances.
   Dithered via SVG filter for that halftone/gauss.ag feel.
   ============================================================ */
.finale-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* Soft vignette so edges fade to white */
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at center,
    #000 40%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at center,
    #000 40%,
    transparent 100%
  );
}
.fb-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Title built but no slot yet marked → all layers come in DIM.
   Same base-dim during slots (non-active layers stay dim). */
.finale-scroll[data-fb-active="-1"] .fb-layer,
.finale-scroll[data-fb-active="0"] .fb-layer,
.finale-scroll[data-fb-active="1"] .fb-layer,
.finale-scroll[data-fb-active="2"] .fb-layer {
  opacity: 0.12;
}
.fb-layer img {
  position: absolute;
  object-fit: contain;
}

/* Plant = mirrored pair on the outer left/right flanks. Always visible. */
.fb-1 {
  --plant-w: clamp(240px, 28vw, 380px);
}
.fb-1 img {
  width: var(--plant-w);
  height: auto;
  left: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg);
}
.fb-1::after {
  content: "";
  position: absolute;
  width: var(--plant-w);
  aspect-ratio: 3 / 4;
  right: 5%;
  top: 50%;
  background: url("assets/finale-2.png?v=3") center/contain no-repeat;
  transform: translateY(-50%) scaleX(-1) rotate(-10deg);
}

/* Bust = centered horizontally, nestled BETWEEN the "Heute" badge
   and the headline — face sits in the gap above "ein Lehrer,". */
.fb-0 {
}
.fb-0 img {
  width: clamp(220px, 26vw, 340px);
  height: auto;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
}

/* Stars = two small clusters, one upper-left, one upper-right,
   filling the gaps on either side of the "Heute" badge.
   Uses the same image twice via background + ::after. */
.fb-2 {
  background-image: url("assets/finale-3.png?v=4");
  background-repeat: no-repeat;
  background-size: clamp(160px, 18vw, 240px) auto;
  background-position: 28% 14%;
}
.fb-2 img {
  display: none;
}
.fb-2::after {
  content: "";
  position: absolute;
  right: 28%;
  top: 14%;
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 4 / 5;
  background: url("assets/finale-3.png?v=4") center/contain no-repeat;
  transform: scaleX(-1);
}

/* Active slot fully reveals its image; others stay invisible */
.finale-scroll[data-fb-active="0"] .fb-0 {
  opacity: 0.75;
}
.finale-scroll[data-fb-active="1"] .fb-1 {
  opacity: 0.75;
}
.finale-scroll[data-fb-active="2"] .fb-2 {
  opacity: 0.75;
}

/* ---------- Shooting star — parabolic sweep during slot 3 ---------- */
.fb-shoot {
  position: absolute;
  /* Full sticky frame, NO mask — so the shooting star can reach edges */
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.finale-scroll[data-fb-active="2"] .fb-shoot {
  opacity: 1;
}

.fb-shoot img {
  --s: var(--shoot, 0);
  /* Quadratic Bézier from (x1,y1) via control (x2,y2) to (x3,y3).
     B(t) = (1-t)²·P1 + 2(1-t)t·P2 + t²·P3        — but we want the curve to
     actually pass through the on-screen "peak" point, so we treat (x2,y2)
     as the geometric midpoint at t=0.5 and solve for the underlying control:
        ctrl = 2·peak - (start + end) / 2   →   midpoint equals (x2,y2)
     Unrolled below to keep CSS calc() readable. */
  --x1: var(--shoot-x1, 0vw);
  --y1: var(--shoot-y1, 24vh);
  --x2: var(--shoot-x2, 35vw);
  --y2: var(--shoot-y2, 8vh);
  --x3: var(--shoot-x3, 70vw);
  --y3: var(--shoot-y3, 24vh);
  --r1: var(--shoot-r1, -10deg);
  --r3: var(--shoot-r3, 10deg);
  --t: var(--s);
  --omt: calc(1 - var(--t));
  /* Bernstein weights w/ control solved to hit midpoint: */
  --wStart: calc(var(--omt) * var(--omt));
  --wMid: calc(2 * var(--omt) * var(--t));
  --wEnd: calc(var(--t) * var(--t));
  /* ctrl = 2·peak − (start+end)/2 ; expressed inline per axis */
  --cx: calc(2 * var(--x2) - (var(--x1) + var(--x3)) / 2);
  --cy: calc(2 * var(--y2) - (var(--y1) + var(--y3)) / 2);
  --px: calc(
    var(--wStart) * var(--x1) + var(--wMid) * var(--cx) + var(--wEnd) *
      var(--x3)
  );
  --py: calc(
    var(--wStart) * var(--y1) + var(--wMid) * var(--cy) + var(--wEnd) *
      var(--y3)
  );
  /* Fade out over last 30% of flight */
  --fade: clamp(0, calc((1 - var(--s)) * 3.3), 1);
  position: absolute;
  width: clamp(220px, 28vw, 400px);
  height: auto;
  mix-blend-mode: multiply;
  opacity: calc(0.9 * var(--fade));
  left: 0;
  top: 0;
  transform: translate(var(--px), var(--py)) translate(-50%, -50%)
    rotate(calc(var(--r1) + (var(--r3) - var(--r1)) * var(--t)));
}

/* Keep title + stem + slot readable on top of the backdrop */
.finale-sticky > .finale-stem,
.finale-sticky > .para-finale {
  position: relative;
  z-index: 1;
}
.finale-sticky > .finale-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fb-layer {
    transition: none;
  }
}

/* Mobile: all finale-backdrop layers tweakable via --tk-* vars.
   Set by tweak-panel.js when ?tweak=1, otherwise the fallback defaults apply. */
@media (max-width: 640px) {
  /* Plants (fb-1) — mirrored pair on mid-flanks */
  .fb-1 {
    --plant-w: var(--tk-plant-w, 209px);
  }
  .fb-1 img {
    left: var(--tk-plant-left, -49px);
    top: var(--tk-plant-top, 50%);
    transform: translateY(-50%) rotate(var(--tk-plant-rot, 0deg));
  }
  .fb-1::after {
    right: var(--tk-plant-right, -49px);
    top: var(--tk-plant-top, 50%);
    transform: translateY(-50%) scaleX(-1) rotate(var(--tk-plant-rot, 0deg));
  }

  /* Bust (fb-0) — centered sculpture above the headline */
  .fb-0 img {
    width: var(--tk-bust-w, 180px);
    top: var(--tk-bust-top, 26%);
    left: var(--tk-bust-left, 50%);
    transform: translateX(-50%) rotate(var(--tk-bust-rot, 0deg));
  }

  /* Stars (fb-2) — mirrored cluster at top corners */
  .fb-2 {
    background-size: var(--tk-stars-size, 158px) auto;
    background-position: var(--tk-stars-x, 6%) var(--tk-stars-y, 22%);
  }
  .fb-2::after {
    right: var(--tk-stars-x, 6%);
    top: var(--tk-stars-y, 22%);
    width: var(--tk-stars-size, 158px);
    aspect-ratio: 4 / 5;
  }

  /* Shooting star (fb-shoot) — width + arc height tweakable */
  .fb-shoot img {
    width: var(--tk-shoot-w, clamp(180px, 40vw, 280px));
    --shoot-y2: var(--tk-shoot-peak, 8vh);
  }
}

/* ============ Beat 04 — Video-centric beat ==================
   Last beat inside .vision-focus. Same fade/blur activation as
   the others; layout centres the video card so it lands as the
   climax. User can tap to play or scroll past.
   ============================================================ */
.vf-beat-video {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vf-beat-video .vf-tag {
  margin-bottom: 20px;
}
.vf-headline-sm {
  font-size: clamp(32px, 4.4vw, 64px) !important;
  margin-bottom: 36px !important;
  text-align: center;
}
.vf-headline-sm .vf-ink {
  display: inline;
  font-style: italic;
}

.vf-video {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  position: relative;
  display: block;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.vf-video:hover {
  transform: translateY(-2px);
  box-shadow:
    0 50px 140px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}
.vf-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #07090e;
  z-index: 0;
}
.vf-video.is-playing {
  cursor: default;
}
.vf-video.is-playing:hover {
  transform: none;
}
.vf-video.is-playing .vf-video-poster,
.vf-video.is-playing .vf-video-play,
.vf-video.is-playing .vf-video-meta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.vf-video.is-playing .vf-video-player {
  z-index: 1;
}
/* Muted dark poster — no aggressive teal gradient.
   Swap to url("assets/vision-poster.jpg") center/cover once ready. */
.vf-video-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 70% at 50% 40%,
      rgba(40, 45, 58, 0.8),
      rgba(8, 10, 16, 0.95) 70%
    ),
    #07090e;
}
.vf-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #07090e;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.15),
    0 18px 36px -10px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.vf-video-play svg {
  margin-left: 3px;
}
.vf-video:hover .vf-video-play {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 22px 46px -10px rgba(0, 0, 0, 0.65);
}
.vf-video-meta {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.vf-beat-video .vf-step {
  margin-top: 22px;
}

/* CTA inside Beat 04 — loud, breathing glow, arrow icon.
   It's the section finale — user MUST see it. */
.vf-cta {
  margin-top: 40px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 42px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  background: linear-gradient(180deg, #00a68c 0%, #008872 100%);
  color: #fff;
  box-shadow:
    0 22px 60px -18px rgba(0, 168, 140, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}
.vf-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 28px 70px -18px rgba(0, 168, 140, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.vf-cta:active {
  transform: translateY(0) scale(0.99);
}
.vf-cta-arrow {
  transition: transform 0.25s var(--ease);
}
.vf-cta:hover .vf-cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  .vf-video-play {
    width: 56px;
    height: 56px;
  }
  .vf-video-play svg {
    width: 20px;
    height: 20px;
  }
}

/* ============ Video Modal (Lightbox) ========================
   Opens on click of .vc-player. ESC / backdrop click / X closes.
   Body gets .vm-locked to prevent scroll while open.
   ============================================================ */
.vm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease),
    visibility 0s linear 0.25s;
}
.vm.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s var(--ease),
    visibility 0s linear 0s;
}
.vm-frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 60px 160px -40px rgba(0, 0, 0, 0.9);
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}
.vm.is-open .vm-frame {
  transform: scale(1);
}
.vm-video {
  width: 100%;
  height: 100%;
  display: block;
}
.vm-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
  z-index: 2;
}
.vm-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}
body.vm-locked {
  overflow: hidden;
}
@media (max-width: 760px) {
  .vm {
    padding: 20px;
  }
  .vm-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }
}
