/* wăn · Marketing-Landingpage (nur für ausgeloggte Besucher, siehe
   js/steps/step0.js renderLoginGate() + js/nav.js renderNav()/no-sidebar).
   Design-Vorlage: wan-landingpage.zip — Klassen bewusst mit wl- (wăn
   Landing) präfixiert und unter body.landing-theme/.wan-landing gescoped,
   damit nichts mit dem bestehenden dunklen App-Theme (wan.css, im Wizard
   nach dem Login aktiv) kollidiert. */

body.landing-theme {
  background:
    radial-gradient(circle at 82% 4%, rgba(232, 122, 76, 0.09), transparent 27rem),
    radial-gradient(circle at 2% 48%, rgba(244, 227, 215, 0.74), transparent 29rem),
    var(--wl-canvas);
}

body.landing-theme .main {
  padding: 0;
  max-width: none;
}

.wan-landing {
  --wl-canvas: #faf9f6;
  --wl-paper: #ffffff;
  --wl-ink: #1e1e1e;
  --wl-muted: #6f6b66;
  --wl-line: #e8e3dc;
  --wl-accent: #e87a4c;
  --wl-accent-dark: #bb5630;
  --wl-peach: #f4e3d7;
  --wl-peach-deep: #efc5ad;
  --wl-dark-surface: #25211f;
  --wl-shadow-soft: 0 18px 55px rgba(74, 54, 43, 0.08);
  --wl-shadow-card: 0 20px 48px rgba(74, 54, 43, 0.12);
  --wl-radius-lg: 30px;
  --wl-radius-md: 20px;
  --wl-max-width: 1100px;
  --wl-font-ui: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wl-font-display: "Cormorant Garamond", Georgia, serif;

  color: var(--wl-ink);
  font-family: var(--wl-font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wan-landing *,
.wan-landing *::before,
.wan-landing *::after {
  box-sizing: border-box;
}

.wan-landing img,
.wan-landing svg {
  display: block;
  max-width: 100%;
}

.wan-landing a {
  color: inherit;
}

.wan-landing ::selection {
  background: var(--wl-peach-deep);
  color: var(--wl-ink);
}

.wl-shell {
  width: min(calc(100% - 40px), var(--wl-max-width));
  margin-inline: auto;
}

.wl-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.wl-brand {
  font-family: var(--wl-font-display);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1;
}

.wl-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wl-button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.wl-button svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.wl-button:hover {
  transform: translateY(-2px);
}

.wl-button:hover svg {
  transform: translateX(3px);
}

.wl-button:focus-visible,
.wl-text-link:focus-visible,
.wl-footer a:focus-visible,
.wl-brand:focus-visible {
  outline: 3px solid rgba(232, 122, 76, 0.35);
  outline-offset: 4px;
}

.wl-button--small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 0.88rem;
}

.wl-button--primary {
  background: var(--wl-ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.14);
}

.wl-button--primary:hover {
  background: #090909;
  box-shadow: 0 16px 34px rgba(30, 30, 30, 0.2);
}

.wl-button--ghost {
  border-color: rgba(30, 30, 30, 0.13);
  background: rgba(255, 255, 255, 0.56);
  color: var(--wl-ink);
}

.wl-button--ghost:hover {
  border-color: rgba(30, 30, 30, 0.25);
  background: #fff;
}

.wl-hero {
  padding: clamp(68px, 9vw, 112px) 0 clamp(56px, 8vw, 90px);
  position: relative;
}

.wl-hero::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 13%;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(232, 122, 76, 0.2);
  border-radius: 50%;
  box-shadow: 36px -18px 0 -18px rgba(244, 227, 215, 0.8);
  pointer-events: none;
}

.wl-eyebrow,
.wl-kicker {
  color: var(--wl-accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wl-hero h1 {
  max-width: 920px;
  margin: 18px 0 20px;
  font-family: var(--wl-font-display);
  font-size: clamp(3.35rem, 8.6vw, 7.15rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.wl-hero h1 span {
  display: block;
  margin-left: clamp(0px, 6vw, 78px);
  color: var(--wl-accent);
  font-style: italic;
}

.wl-hero-copy {
  max-width: 670px;
  margin: 0;
  color: var(--wl-muted);
  font-size: clamp(1.04rem, 1.8vw, 1.26rem);
  line-height: 1.7;
}

.wl-hero-cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.wl-text-link {
  padding: 7px 0 5px;
  font-weight: 700;
  text-decoration-color: rgba(232, 122, 76, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.wl-process {
  padding: 20px 0 80px;
}

.wl-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 26px;
}

.wl-section-heading h2,
.wl-why-copy h2,
.wl-closing h2 {
  margin: 10px 0 0;
  font-family: var(--wl-font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.wl-section-heading h2 {
  max-width: 650px;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
}

.wl-section-heading > p {
  margin: 0 0 5px;
  color: var(--wl-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.wl-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wl-step-card {
  min-height: 256px;
  position: relative;
  overflow: hidden;
  padding: 24px 21px 22px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: var(--wl-radius-md);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 26px rgba(74, 54, 43, 0.035);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.wl-step-card:hover {
  z-index: 2;
  transform: translateY(-7px);
  border-color: rgba(232, 122, 76, 0.22);
  box-shadow: var(--wl-shadow-card);
}

.wl-step-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -35px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--wl-peach);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 220ms ease, transform 220ms ease;
}

.wl-step-card:hover::after {
  opacity: 0.58;
  transform: scale(1);
}

.wl-step-number {
  position: absolute;
  top: -13px;
  right: 10px;
  color: var(--wl-ink);
  font-family: var(--wl-font-display);
  font-size: 4.8rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.07;
}

.wl-step-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border-radius: 12px;
  background: var(--wl-peach);
  color: var(--wl-accent-dark);
}

.wl-step-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl-step-card h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.wl-step-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--wl-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.wl-why-card {
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(30, 30, 30, 0.07);
  border-radius: var(--wl-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--wl-shadow-soft);
}

.wl-why-copy h2 {
  max-width: 470px;
  font-size: clamp(2.45rem, 4.4vw, 4.25rem);
}

.wl-quote-stack {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--wl-accent);
}

.wl-quote-stack p {
  max-width: 540px;
  margin: 0;
  color: var(--wl-muted);
  line-height: 1.72;
}

.wl-quote-stack p + p {
  margin-top: 16px;
}

.wl-gap-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  background:
    linear-gradient(135deg, rgba(244, 227, 215, 0.3), rgba(250, 249, 246, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(30, 30, 30, 0.025) 35px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(30, 30, 30, 0.025) 35px);
}

.wl-gap-visual svg {
  width: min(100%, 520px);
}

.wl-visual-circle {
  stroke-width: 2;
}

.wl-visual-circle--left {
  fill: rgba(255, 255, 255, 0.78);
  stroke: rgba(30, 30, 30, 0.16);
}

.wl-visual-circle--right {
  fill: rgba(244, 227, 215, 0.78);
  stroke: rgba(232, 122, 76, 0.34);
}

.wl-visual-overlap {
  fill: var(--wl-accent);
  opacity: 0.88;
}

.wl-visual-label {
  fill: var(--wl-ink);
  font-family: var(--wl-font-ui);
  font-size: 14px;
  font-weight: 700;
}

.wl-visual-gap {
  fill: #fff;
  font-family: var(--wl-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.wl-visual-gap--large {
  font-size: 21px;
  letter-spacing: 0.08em;
}

.wl-visual-line {
  fill: none;
  stroke: var(--wl-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.wl-visual-caption {
  fill: var(--wl-accent-dark);
  font-family: var(--wl-font-ui);
  font-size: 11.5px;
  font-weight: 700;
}

.wl-closing {
  margin-bottom: 24px;
  padding: clamp(52px, 8vw, 92px) 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--wl-radius-lg);
  background: var(--wl-dark-surface);
  color: #fff;
  text-align: center;
}

.wl-closing::before,
.wl-closing::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.wl-closing::before {
  top: -95px;
  left: -55px;
  width: 260px;
  height: 260px;
  border: 55px solid rgba(232, 122, 76, 0.12);
}

.wl-closing::after {
  right: -78px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  background: rgba(244, 227, 215, 0.045);
}

.wl-closing .wl-kicker,
.wl-closing h2,
.wl-closing p,
.wl-closing .wl-button,
.wl-closing small {
  position: relative;
  z-index: 1;
}

.wl-closing .wl-kicker {
  color: #f1a37f;
}

.wl-closing h2 {
  max-width: 770px;
  margin: 14px auto 18px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.wl-closing p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.wl-button--light {
  background: #fff;
  color: var(--wl-ink);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.wl-button--light:hover {
  background: var(--wl-peach);
  box-shadow: 0 19px 45px rgba(0, 0, 0, 0.3);
}

.wl-button--large {
  min-height: 56px;
  padding-inline: 26px;
}

.wl-closing small {
  display: block;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.73rem;
}

.wl-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--wl-muted);
  font-size: 0.78rem;
}

.wl-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.wl-footer a {
  text-decoration: none;
}

.wl-footer a:hover {
  color: var(--wl-ink);
}

.wl-reveal {
  opacity: 1;
  transform: none;
}

.js .wl-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .wl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wl-steps-grid .wl-reveal:nth-child(2) { transition-delay: 70ms; }
.wl-steps-grid .wl-reveal:nth-child(3) { transition-delay: 140ms; }
.wl-steps-grid .wl-reveal:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 920px) {
  .wl-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .wl-section-heading > p {
    max-width: 660px;
  }

  .wl-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wl-step-card {
    min-height: 230px;
  }

  .wl-why-card {
    grid-template-columns: 1fr;
  }

  .wl-why-copy h2,
  .wl-quote-stack p {
    max-width: 680px;
  }

  .wl-gap-visual {
    min-height: 330px;
  }
}

@media (max-width: 620px) {
  .wl-shell {
    width: min(calc(100% - 24px), var(--wl-max-width));
  }

  .wl-header {
    min-height: 76px;
  }

  .wl-brand {
    font-size: 2.35rem;
  }

  .wl-header-actions {
    gap: 6px;
  }

  .wl-button--small {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.8rem;
  }

  .wl-hero {
    padding-top: 54px;
  }

  .wl-hero::after {
    display: none;
  }

  .wl-hero h1 {
    margin-top: 14px;
    line-height: 0.9;
  }

  .wl-hero h1 span {
    margin-left: 0;
  }

  .wl-hero-copy {
    font-size: 1rem;
  }

  .wl-hero-cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .wl-steps-grid {
    grid-template-columns: 1fr;
  }

  .wl-step-card {
    min-height: auto;
    padding: 22px;
  }

  .wl-step-icon {
    margin-bottom: 24px;
  }

  .wl-why-card {
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .wl-gap-visual {
    min-height: 270px;
  }

  .wl-closing {
    border-radius: 24px;
  }

  .wl-closing h2 {
    line-height: 0.94;
  }

  .wl-footer {
    min-height: 96px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 22px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wan-landing {
    scroll-behavior: auto;
  }

  .wan-landing *,
  .wan-landing *::before,
  .wan-landing *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .wl-reveal {
    opacity: 1;
    transform: none;
  }
}
