/* Versuro Landing — Modern Swiss
   Reinweiss #FFFFFF · Hellgrau #F6F8FA · Anthrazit #1B1F24
   Royal Blue #2F6BFF · Sky Blue #7AB8FF · Mint #3DD9B3 · Rot #FF5C5C */

:root {
  --white: #ffffff;
  --grey: #f6f8fa;
  --ink: #1b1f24;
  --blue: #2f6bff;
  --sky: #7ab8ff;
  --mint: #3dd9b3;
  --red: #ff5c5c;

  --muted: #6b7280;
  --line: #e8ecf1;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 26px;

  --shadow-1: 0 1px 2px rgba(27, 31, 36, 0.04), 0 10px 30px -18px rgba(27, 31, 36, 0.16);
  --shadow-2: 0 2px 6px rgba(27, 31, 36, 0.05), 0 24px 60px -30px rgba(27, 31, 36, 0.24);
  --shadow-3: 0 40px 90px -40px rgba(47, 107, 255, 0.35);

  --gradient-ink: linear-gradient(140deg, #2f6bff 0%, #4a7cff 50%, #7ab8ff 100%);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shell: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.serif { font-family: var(--font-display); font-weight: 700; }
.grad {
  background: var(--gradient-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell--narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 15px; font-size: 0.875rem; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 16px 34px -18px rgba(47, 107, 255, 0.75); }
.btn--primary:hover { background: #2560f0; box-shadow: 0 22px 44px -18px rgba(47, 107, 255, 0.85); }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--grey); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__claim { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }

.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #414954;
  transition: background-color 0.2s, color 0.2s;
}
.topnav a:hover { background: var(--grey); color: var(--ink); }
.topnav a.btn { color: var(--white); }
.topnav a.btn:hover { color: var(--white); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 10px;
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#hero-canvas.is-ready { opacity: 1; }
.hero__fallback {
  position: absolute;
  z-index: -2;
  inset: -10% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 60% 40%, rgba(122, 184, 255, 0.5), rgba(47, 107, 255, 0.18) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -15%;
  bottom: -25%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(61, 217, 179, 0.28), rgba(255, 255, 255, 0) 68%);
}

.hero__inner { position: relative; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); max-width: 20ch; margin-top: 14px; }
.hero__lead { margin-top: 22px; max-width: 58ch; font-size: 1.125rem; color: #4b535e; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  margin: 64px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
}
.stats > div {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}
.stats dt { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.02em; }
.stats dd { margin: 8px 0 0; font-size: 1.25rem; font-weight: 700; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll span {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--blue), rgba(47, 107, 255, 0));
  animation: drop 1.9s ease-in-out infinite;
}
@keyframes drop { 0%, 100% { transform: scaleY(0.5); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tint { background: var(--grey); }
.section__title { margin-top: 12px; font-size: clamp(2rem, 3.6vw, 3rem); max-width: 24ch; }
.section__lead { margin-top: 16px; max-width: 62ch; color: #4b535e; font-size: 1.0625rem; }

/* Cards */
.cards {
  margin-top: 52px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  perspective: 1200px;
}
.card {
  background: var(--grey);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, background-color 0.3s ease;
}
.section--tint .card { background: var(--white); }
.card:hover { box-shadow: var(--shadow-2); }
.card h3 { margin-top: 16px; font-size: 1.1875rem; font-weight: 700; }
.card p { margin-top: 8px; font-size: 0.9375rem; color: #4b535e; }
.icon { width: 22px; height: 22px; stroke: var(--blue); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sticky 3D steps ---------- */
.steps { background: var(--ink); color: var(--white); }
.steps__track { height: 320vh; position: relative; }
.steps__viewport {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.steps__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.steps .eyebrow { color: rgba(255, 255, 255, 0.55); }
.steps .section__title { color: var(--white); }
.steps .section__lead { color: rgba(255, 255, 255, 0.7); }

.steps__legend { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; }
.steps__legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.steps__legend li span { color: rgba(255, 255, 255, 0.4); font-size: 0.8125rem; }
.steps__legend li.is-active {
  background: rgba(47, 107, 255, 0.22);
  border-color: rgba(122, 184, 255, 0.55);
  color: var(--white);
  transform: translateX(6px);
}
.steps__legend li.is-active span { color: var(--sky); }

.stage { position: relative; height: min(62vh, 480px); perspective: 1400px; transform-style: preserve-3d; }
.slab {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85);
  transform: translate3d(0, 70px, -420px) rotateX(16deg) scale(0.9);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}
.slab.is-active { transform: translate3d(0, 0, 0) rotateX(0deg) scale(1); opacity: 1; }
.slab.is-past { transform: translate3d(0, -60px, 160px) rotateX(-14deg) scale(1.05); opacity: 0; }
.slab .eyebrow { color: var(--sky); }
.slab h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
.slab p { margin-top: 12px; color: rgba(255, 255, 255, 0.72); font-size: 0.9375rem; max-width: 46ch; }
.slab__rows { margin-top: 22px; display: grid; gap: 8px; }
.slab__rows span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9375rem;
}
.slab__rows b { font-weight: 700; }
.is-good { box-shadow: inset 3px 0 0 var(--mint); }
.is-good b { color: var(--mint); }
.is-flat { box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.4); }
.is-bad { box-shadow: inset 3px 0 0 var(--red); }
.is-bad b { color: var(--red); }
.slab__verdict {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--gradient-ink);
}
.slab__verdict p { margin: 0; color: var(--white); font-size: clamp(1.125rem, 1.9vw, 1.5rem); line-height: 1.35; }

/* ---------- Preise ---------- */
.segment {
  margin-top: 34px;
  position: relative;
  display: inline-flex;
  padding: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.segment button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 10px 30px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}
.segment button[aria-selected="true"] { color: var(--white); }
.segment__pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 50%;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 12px 26px -14px rgba(47, 107, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.segment[data-audience="broker"] .segment__pill { transform: translateX(100%); }

.plans {
  margin-top: 34px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  perspective: 1200px;
}
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
.plan--featured {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: var(--shadow-3);
}
.plan__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.plan__name { font-size: 1.25rem; font-weight: 700; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.plan__price > .tabular { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; }
.plan__price > .tabular::before { content: "CHF "; font-size: 0.9rem; font-family: var(--font-sans); color: var(--muted); vertical-align: 0.9rem; }
.plan__price small { color: var(--muted); font-size: 0.8125rem; }
.plan__price--ask { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; }
.plan__note { margin-top: 10px; font-size: 0.9375rem; color: #4b535e; }
.plan__list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan__list li { position: relative; padding-left: 28px; font-size: 0.9375rem; color: #3b434e; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(61, 217, 179, 0.22);
  box-shadow: inset 0 0 0 1.5px rgba(61, 217, 179, 0.9);
}
.plans__foot { margin-top: 22px; font-size: 0.8125rem; color: var(--muted); }

/* Preis-Zahlen Wechsel */
.plan__price [data-price], .plan__name [data-label] { display: inline-block; transition: transform 0.3s ease, opacity 0.3s ease; }
.plans.is-swapping .plan__price [data-price], .plans.is-swapping .plan__name [data-label] { transform: translateY(-8px); opacity: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details {
  background: var(--grey);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: background-color 0.25s, border-color 0.25s;
}
.faq details[open] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-1); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin-top: 12px; font-size: 0.9375rem; color: #4b535e; }

/* ---------- Ink CTA ---------- */
.ink {
  background: var(--gradient-ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px);
  box-shadow: var(--shadow-3);
}
.ink__eyebrow { color: rgba(255, 255, 255, 0.6); }
.ink__title { margin-top: 12px; font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.ink__lead { margin-top: 16px; max-width: 52ch; color: rgba(255, 255, 255, 0.8); }
.ink__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 34px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { font-family: var(--font-display); font-weight: 700; }
.footer__claim { font-size: 0.8125rem; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9375rem; color: #4b535e; }
.footer__nav a:hover { color: var(--blue); }
.footer__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.6875rem;
  color: var(--muted);
}
.footer__disclaimer { max-width: 70ch; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps__inner { grid-template-columns: 1fr; gap: 28px; }
  .stage { height: 380px; }
  .steps__legend { display: none; }
  .steps__track { height: 300vh; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand__claim { display: none; }
  .burger { display: flex; }
  .topnav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    padding: 10px;
    display: none;
  }
  .topnav.is-open { display: flex; }
  .section { padding: 76px 0; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__scroll { display: none; }
  .segment { width: 100%; }
  .segment button { flex: 1; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .slab { position: relative; inset: auto; opacity: 1; transform: none; margin-bottom: 14px; }
  .stage { height: auto; }
  .steps__track { height: auto; }
  .steps__viewport { position: static; height: auto; padding: 76px 0; }
}
