/* Wilo public website — Wabi-warm hero + 3-act cinematic rising iPhone, bezel breakout & 3-phone fan */
:root {
  color-scheme: light;
  --wilo-canvas: #fafafa;
  --wilo-surface: #ffffff;
  --wilo-surface-soft: #f2f3f1;
  --wilo-ink: #0d0d0d;
  --wilo-ink2: #58615c;
  --wilo-ink3: #8c948f;
  --wilo-hairline: #e6e8e4;
  --wilo-hairline-strong: #d4d8d2;
  --wilo-blue: #006ad8;
  --wilo-blue-hover: #0058b8;
  --wilo-blue-ink: #004691;
  --wilo-blue-wash: #eaf4ff;
  --wilo-blue-border: rgba(0, 106, 216, 0.28);
  --wilo-green: #16a34a;
  --wilo-green-ink: #146c34;
  --wilo-green-wash: #e8f7ee;
  --wilo-warm: #d97706;
  --wilo-warm-ink: #a1400d;
  --wilo-warm-wash: #fff3e8;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--wilo-blue-wash);
  color: var(--wilo-blue-ink);
}

html {
  scroll-behavior: smooth;
  background: var(--wilo-canvas);
}

body {
  background: var(--wilo-canvas);
  color: var(--wilo-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.disp {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: -0.04em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wilo-blue); outline-offset: 3px; }

/* ==========================================================================
   MASCOT MARK (standalone mascot, no [mascot]ilo combo)
   ========================================================================== */
.wilo-mascot-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wilo-mascot-mark img {
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   HERO — Exact Wabi-grade above-the-fold elegance + interactive word-hover flyers
   ========================================================================== */
.hero {
  position: relative;
  padding: 52px 24px 16px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-brand {
  margin-bottom: 24px;
}

.hero-brand img {
  width: 44px;
  height: 44px;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-brand:hover img {
  transform: scale(1.08) rotate(-6deg);
}

.hero-fxwrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 22px;
}

.hero-title {
  font-size: clamp(46px, 6.8vw, 78px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--wilo-ink);
  cursor: default;
  user-select: none;
}

.hero-ln {
  display: block;
  white-space: nowrap;
}

/* Wabi-grade per-character in-place 3D letter -> Wilo icon/orb morph */
.ch {
  display: inline-block;
  position: relative;
  width: var(--w, auto);
  text-align: center;
  perspective: 520px;
  transform-style: preserve-3d;
  transition: width 260ms var(--ease-out-expo);
  vertical-align: baseline;
}

.ch.is-space {
  width: 0.24em;
}

.ch .g {
  display: inline-block;
  font-style: normal;
  transform-origin: 50% 62%;
  transition: opacity 150ms linear, transform 240ms var(--ease-out-expo);
}

.ch.on .g {
  opacity: 0;
  transform: scale(0.32);
}

.ch .o {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 0.88em;
  height: 0.88em;
  margin-left: -0.44em;
  margin-top: -0.44em;
  border-radius: 26%;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) rotateX(-38deg) rotate(var(--r0, -14deg)) scale(0.16);
  filter: drop-shadow(0 10px 18px rgba(13, 13, 13, 0.14));
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 130ms linear;
  will-change: transform, opacity;
}

.ch .o.orb {
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.9);
}

.ch .o.blue-tile {
  background: var(--wilo-blue-wash);
  border-color: var(--wilo-blue-border);
}

.ch .o img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  display: block;
}

.ch .o.orb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ch .o svg.mark {
  width: 66%;
  height: 66%;
  display: block;
}

.ch.on .o {
  opacity: 1;
  transform: translateY(-2px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) rotate(var(--r, 0deg)) scale(1.04);
}

/* Clean non-overshoot exit so tiles never bulge on the way out */
.ch:not(.on) .o {
  transition:
    transform 240ms cubic-bezier(0.45, 0, 0.75, 0.35),
    opacity 130ms linear;
}

/* Entrance blur-in matching Wabi's signature arrival */
@keyframes wilo-blur-in {
  0% { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  100% { opacity: 1; filter: none; transform: translateY(0); }
}

.blur-in {
  animation: wilo-blur-in 850ms var(--ease-out-expo) both;
}

@media (prefers-reduced-motion: reduce) {
  .blur-in { animation: none; }
  .ch .o { display: none; }
  .ch.on .g { opacity: 1; transform: none; }
}

.hero-sub {
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.56;
  color: var(--wilo-ink2);
  max-width: 44ch;
  margin: 0 auto 28px;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* Wabi-inspired sculpted glass lens pills */
.pill-primary, .pill-tactile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  transition: transform 220ms var(--ease-out-expo), box-shadow 220ms ease, background 180ms ease;
}

.pill-primary:hover, .pill-tactile:hover {
  transform: scale(0.978);
}

.pill-primary:active, .pill-tactile:active {
  transform: scale(0.955);
}

.pill-primary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--wilo-ink);
  border: 1px solid rgba(13, 13, 13, 0.11);
  box-shadow:
    0 12px 28px rgba(13, 13, 13, 0.08),
    0 2px 6px rgba(13, 13, 13, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(13, 13, 13, 0.04);
}

.pill-primary:hover {
  border-color: var(--wilo-blue-border);
  color: var(--wilo-blue-ink);
  box-shadow:
    0 8px 20px rgba(0, 106, 216, 0.12),
    0 1px 4px rgba(13, 13, 13, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.pill-tactile {
  background: rgba(255, 255, 255, 0.92);
  color: var(--wilo-ink);
  border: 1px solid rgba(13, 13, 13, 0.11);
  box-shadow:
    0 12px 28px rgba(13, 13, 13, 0.08),
    0 2px 6px rgba(13, 13, 13, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(13, 13, 13, 0.04);
}

.pill-tactile:hover {
  box-shadow:
    0 6px 16px rgba(13, 13, 13, 0.06),
    0 1px 3px rgba(13, 13, 13, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.pill-primary.solid-blue {
  background: var(--wilo-blue);
  color: #ffffff;
  border-color: rgba(0, 80, 175, 0.25);
  box-shadow:
    0 12px 26px rgba(0, 106, 216, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.pill-primary.solid-blue:hover {
  background: var(--wilo-blue-hover);
  color: #ffffff;
}

/* ==========================================================================
   CINEMATIC SCROLL STAGE — 3 Acts on one pinned canvas:
   1. Dramatic 48deg Tuyo/Linear Rise & Focus Pull
   2. Task Card Push-in & Bezel Breakout (Partiful/Fruitful)
   3. Three-View Real App Fan: Overview + Real Gantt Trace + Interactive Room (Sana)
   ========================================================================== */
.cinema-track {
  position: relative;
  height: 250vh;
  margin-top: -136px;
}

.cinema-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 24px 20px;
}

/* Crisp dynamic caption floating calmly above the stage once scrolling starts */
.stage-caption {
  position: relative;
  z-index: 30;
  text-align: center;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  opacity: var(--cap-op, 0);
  transform: translateY(var(--cap-y, 10px));
  transition: opacity 220ms ease, transform 240ms var(--ease-out-expo);
}

.stage-caption h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--wilo-ink);
}

.stage-caption p {
  font-size: 14.5px;
  color: var(--wilo-ink2);
  margin-top: 3px;
}

/* Interactive 3-stage pill indicator */
.stage-dots {
  position: relative;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  opacity: var(--cap-op, 0);
  transition: opacity 220ms ease;
}

.stage-dot-btn {
  border: 1px solid var(--wilo-hairline-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--wilo-ink2);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.stage-dot-btn.is-active {
  background: var(--wilo-blue);
  color: #ffffff;
  border-color: var(--wilo-blue);
}

/* Main 3D Arena holding Center Phone + Bezel Breakout Card + 2 Wing Phones */
.arena-3d {
  position: relative;
  width: 100%;
  max-width: 1180px;
  height: 700px;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 980px;
  transform-style: preserve-3d;
}

/* Soft studio contact shadow pushed deep behind Z-plane so it never slices the tilted phone */
.studio-shadow {
  position: absolute;
  width: 440px;
  height: 520px;
  border-radius: 90px;
  background: radial-gradient(
    ellipse 62% 68% at 50% 58%,
    rgba(10, 16, 28, 0.16) 0%,
    rgba(10, 16, 28, 0.05) 52%,
    transparent 76%
  );
  filter: blur(28px);
  transform: translate3d(0, 36px, -240px) scale(var(--sh-sc, 1));
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   CENTER REALISTIC IPHONE (Pure straight-back 44deg -> upright, zero sideways tilt)
   ========================================================================== */
.center-phone-wrap {
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--p-y, -24px), 0px)
    rotateX(var(--p-rx, 44deg))
    scale(var(--p-sc, 0.94));
  transform-origin: center 62%;
  will-change: transform;
}

.iphone-hw {
  position: relative;
  width: 386px;
  height: 690px;
  max-height: 75vh;
  border-radius: 56px;
  padding: 11px;
  background: linear-gradient(155deg, #434750 0%, #17191d 22%, #0a0b0e 58%, #2e323a 100%);
  box-shadow:
    0 34px 80px rgba(10, 14, 24, 0.2),
    0 6px 20px rgba(10, 14, 24, 0.08),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28),
    inset 0 0 0 3px rgba(0, 0, 0, 0.65);
}

.hw-btn {
  position: absolute;
  width: 3.5px;
  background: linear-gradient(180deg, #525762, #23262d, #3f444e);
  border-radius: 2px;
  pointer-events: none;
}
.hw-action { left: -3.5px; top: 112px; height: 26px; }
.hw-vol-up { left: -3.5px; top: 156px; height: 48px; }
.hw-vol-dn { left: -3.5px; top: 218px; height: 48px; }
.hw-power { right: -3.5px; top: 176px; height: 74px; }

.iphone-oled {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 45px;
  background: #fafafa;
  color: var(--wilo-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Tuyo-style shallow depth-of-field bottom blur veil that clears as the phone rises! */
.dof-blur-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 78%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 78%);
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0) 0%, rgba(250, 250, 250, 0.78) 100%);
  opacity: var(--dof-op, 1);
  pointer-events: none;
  z-index: 12;
}

/* Authentic iOS status bar + Dynamic Island */
.ios-status {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wilo-ink);
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 104px;
  height: 28px;
  border-radius: 999px;
  background: #08090b;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
}

.island-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #2b3f66 0%, #0d1220 55%, #050609 100%);
}

.ios-icons { display: inline-flex; align-items: center; gap: 5px; }

.wilo-topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 13, 13, 0.07);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.glass-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--wilo-ink2);
  transition: background 180ms ease, color 180ms ease;
}

.glass-tab.active {
  background: var(--wilo-ink);
  color: #ffffff;
}

.glass-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 13, 13, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wilo-ink);
}

/* Center phone view layers (Chat -> Real ProgressBoard Gantt Trace) */
.center-views {
  position: relative;
  flex: 1;
}

.center-scene {
  position: absolute;
  inset: 0;
  padding: 4px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 280ms var(--ease-out-expo), transform 300ms var(--ease-out-expo);
}

.center-scene.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bubble-out {
  align-self: flex-end;
  max-width: 86%;
  background: #121212;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.42;
  padding: 11px 14px;
  border-radius: 19px 19px 5px 19px;
}

.bubble-in {
  align-self: flex-start;
  max-width: 94%;
  background: #ffffff;
  border: 1px solid var(--wilo-hairline);
  color: var(--wilo-ink);
  font-size: 13px;
  line-height: 1.45;
  padding: 11px 14px;
  border-radius: 19px 19px 19px 5px;
}

/* Real Wilo StepList + PlanProgressBar (from apps/mobile/components/work-ui.tsx) */
.step-list-card {
  background: #ffffff;
  border: 1px solid var(--wilo-hairline);
  border-radius: 16px;
  overflow: hidden;
}

.plan-progress-track {
  height: 3.5px;
  background: var(--wilo-blue-wash);
  width: 100%;
}

.plan-progress-fill {
  height: 100%;
  background: var(--wilo-blue);
  width: var(--prog-w, 42%);
  transition: width 360ms var(--ease-out-expo);
}

.step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--wilo-hairline);
}

.step-row:first-of-type { border-top: none; }
.step-row.waiting-row { background: #fffaf3; }

.step-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-glyph.done { background: var(--wilo-green-wash); color: var(--wilo-green-ink); }
.step-glyph.working { background: var(--wilo-blue-wash); color: var(--wilo-blue); }
.step-glyph.waiting { background: var(--wilo-warm-wash); color: var(--wilo-warm-ink); }

.step-text { flex: 1; min-width: 0; }
.step-title { font-size: 13px; font-weight: 600; color: var(--wilo-ink); line-height: 1.2; }
.step-meta { font-size: 11.5px; color: var(--wilo-ink2); }

/* ==========================================================================
   REAL WILO PROGRESS BOARD — Gantt Agent Work Timeline (from progress-board.tsx!)
   ========================================================================== */
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.detail-title {
  font-size: 20px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--wilo-ink);
}

.detail-sub {
  font-size: 12.5px;
  color: var(--wilo-ink2);
  margin-top: 2px;
}

.gantt-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wilo-ink);
  margin-top: 4px;
}

.gantt-board {
  background: #ffffff;
  border: 1px solid var(--wilo-hairline);
  border-radius: 14px;
  overflow: hidden;
}

.gantt-row {
  display: flex;
  min-height: 58px;
  border-top: 1px solid var(--wilo-hairline);
}

.gantt-row:first-child { border-top: none; }

.gantt-owner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-width: 0;
}

.gantt-owner-name { font-size: 12px; font-weight: 700; color: var(--wilo-ink); line-height: 1.2; }
.gantt-owner-task { font-size: 11px; color: var(--wilo-ink2); line-height: 1.2; }

.gantt-lane {
  width: 44%;
  border-left: 1px solid var(--wilo-hairline);
  position: relative;
  display: flex;
  align-items: center;
}

.gantt-bar {
  position: absolute;
  height: 13px;
  border-radius: 3.5px;
  transform-origin: left center;
  transform: scaleX(var(--bar-sc, 0));
  transition: transform 520ms var(--ease-out-expo);
}

.gantt-bar.work {
  background: rgba(0, 106, 216, 0.22);
  border: 1.5px solid var(--wilo-blue);
}

.gantt-bar.wait {
  background: rgba(217, 119, 6, 0.2);
  border: 1.5px solid var(--wilo-warm);
}

.gantt-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--wilo-ink2);
  padding: 2px 2px 0;
}

.legend-items { display: inline-flex; gap: 12px; }
.legend-it { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 12px; height: 7px; border-radius: 2px; }
.legend-swatch.work { background: rgba(0, 106, 216, 0.22); border: 1px solid var(--wilo-blue); }
.legend-swatch.wait { background: rgba(217, 119, 6, 0.2); border: 1px solid var(--wilo-warm); }

/* ==========================================================================
   ACT 2: BEZEL-BREAKOUT FOREGROUND CARD (Partiful / Grammarly / Fruitful)
   Lifts physically OUT of the iPhone bezel into foreground Z-space!
   ========================================================================== */
.breakout-card {
  position: absolute;
  z-index: 24;
  width: 424px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(0, 106, 216, 0.36);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow:
    0 38px 84px rgba(0, 56, 128, 0.24),
    0 8px 22px rgba(13, 13, 13, 0.08);
  text-align: left;
  opacity: var(--bo-op, 0);
  pointer-events: var(--bo-pe, none);
  transform:
    translate3d(var(--bo-x, 0px), var(--bo-y, 50px), 90px)
    scale(var(--bo-sc, 0.88));
  will-change: transform, opacity;
}

.bo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bo-title { font-size: 16px; font-weight: 700; color: var(--wilo-ink); }

/* ==========================================================================
   ACT 3: TWO ANGLED WING PHONES (Sana 3-phone fan — slide out from behind!)
   ========================================================================== */
.wing-phone {
  position: absolute;
  z-index: 5;
  width: 316px;
  height: 590px;
  max-height: 66vh;
  border-radius: 48px;
  padding: 9px;
  background: linear-gradient(155deg, #32363e 0%, #121418 55%, #24272f 100%);
  box-shadow: 0 28px 66px rgba(10, 14, 24, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  opacity: var(--wing-op, 0);
  pointer-events: var(--wing-pe, none);
  will-change: transform, opacity;
}

.wing-left {
  transform:
    translate3d(calc(var(--wing-t, 0) * -350px), 18px, calc((1 - var(--wing-t, 0)) * -120px - 40px))
    rotateY(calc(var(--wing-t, 0) * 16deg))
    scale(calc(0.86 + var(--wing-t, 0) * 0.08));
}

.wing-right {
  transform:
    translate3d(calc(var(--wing-t, 0) * 350px), 18px, calc((1 - var(--wing-t, 0)) * -120px - 40px))
    rotateY(calc(var(--wing-t, 0) * -16deg))
    scale(calc(0.86 + var(--wing-t, 0) * 0.08));
}

.wing-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: #fafafa;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  gap: 10px;
  text-align: left;
}

.wing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wilo-hairline);
}

.wing-title { font-size: 15px; font-weight: 700; color: var(--wilo-ink); }

.needs-elevated {
  background: #ffffff;
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 8px 24px rgba(13, 13, 13, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.approve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--wilo-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 106, 216, 0.25);
  transition: transform 160ms var(--ease-out-expo), background 180ms ease;
}

.approve-btn:active { transform: scale(0.96); }
.approve-btn.is-approved { background: var(--wilo-green); box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28); }

.dad-pop {
  display: none;
  background: var(--wilo-green-wash);
  color: var(--wilo-green-ink);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 14px;
}

.dad-pop.is-shown { display: block; }

/* Shared small tiles, badges, avatars, composer */
.icon-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.icon-tile img { width: 72%; height: 72%; object-fit: contain; border-radius: 4px; }

.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.badge.done { background: var(--wilo-green-wash); color: var(--wilo-green-ink); }
.badge.blue { background: var(--wilo-blue-wash); color: var(--wilo-blue-ink); }
.badge.needs { background: var(--wilo-warm-wash); color: var(--wilo-warm-ink); }

.ava-pile { display: flex; align-items: center; }
.ava-p {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ava-p + .ava-p { margin-left: -8px; }

.phone-composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 18px 12px;
}
.composer-plus {
  width: 34px; height: 34px; border-radius: 50%;
  background: #ffffff; border: 1px solid var(--wilo-hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--wilo-ink2); font-size: 16px; flex-shrink: 0;
}
.composer-bar {
  flex: 1; height: 36px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--wilo-hairline);
  padding: 0 12px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--wilo-ink3);
}
.composer-send {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--wilo-blue); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.home-indicator {
  width: 120px; height: 4.5px; border-radius: 999px;
  background: rgba(13, 13, 13, 0.16); margin: 0 auto 7px;
}

/* ==========================================================================
   CLOSING CTA & FOOTER
   ========================================================================== */
.closing-cta {
  padding: 64px 24px 80px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.closing-cta h2 {
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.04;
  font-weight: 700;
  color: var(--wilo-ink);
  margin: 16px 0 12px;
}
.closing-cta p {
  font-size: 16.5px;
  color: var(--wilo-ink2);
  max-width: 44ch;
  margin: 0 auto 26px;
}

.footer {
  border-top: 1px solid var(--wilo-hairline);
  padding: 28px 24px 44px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: var(--wilo-ink2);
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer-links a:hover { color: var(--wilo-blue); }

/* ==========================================================================
   OFFICIAL DOCUMENTATION PAGES (/computer, /mac, /windows)
   ========================================================================== */
.docs-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 88px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wilo-ink);
}

.docs-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.docs-brand-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wilo-ink2);
  background: var(--wilo-surface-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-heading {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wilo-ink3);
  padding: 0 10px 6px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wilo-ink2);
  transition: background 140ms ease, color 140ms ease;
}

.docs-nav-link:hover {
  background: var(--wilo-surface-soft);
  color: var(--wilo-ink);
}

.docs-nav-link.is-active {
  background: var(--wilo-blue-wash);
  color: var(--wilo-blue-ink);
  font-weight: 600;
}

.docs-article {
  max-width: 720px;
  min-width: 0;
}

.docs-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wilo-ink3);
  margin-bottom: 14px;
}

.docs-crumb a:hover {
  color: var(--wilo-ink);
}

.docs-h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--wilo-ink);
  margin-bottom: 12px;
}

.docs-lead {
  font-size: 17px;
  line-height: 1.56;
  color: var(--wilo-ink2);
  margin-bottom: 32px;
  max-width: 60ch;
}

.docs-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--wilo-hairline);
}

.docs-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.docs-h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--wilo-ink);
  margin-bottom: 10px;
}

.docs-p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--wilo-ink2);
  margin-bottom: 16px;
}

.docs-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--wilo-surface-soft);
  border: 1px solid var(--wilo-hairline);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--wilo-ink);
}

/* Official Docs Terminal Code Block */
.code-block {
  background: #111317;
  color: #f3f4f6;
  border-radius: 14px;
  border: 1px solid rgba(13, 13, 13, 0.14);
  overflow: hidden;
  margin: 14px 0 18px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.code-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.code-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.code-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.code-lang {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.code-copy {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.14);
}

.code-copy.copied {
  background: var(--wilo-green);
  border-color: var(--wilo-green);
}

.code-pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  color: #f3f4f6;
  user-select: all;
}

.code-pre .prompt-sig {
  color: #60a5fa;
  user-select: none;
  margin-right: 8px;
}

.code-pre .dim-out {
  color: #9ca3af;
}

.code-pre .code-hl {
  color: #93c5fd;
  font-weight: 600;
}

.code-panel {
  display: none;
}

.code-panel.is-active {
  display: block;
}

/* Official Docs Vertical Stepper */
.doc-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 18px 0 8px;
  padding-left: 38px;
}

.doc-steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--wilo-hairline-strong);
}

.doc-step {
  position: relative;
}

.doc-step-num {
  position: absolute;
  left: -38px;
  top: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--wilo-hairline-strong);
  color: var(--wilo-ink);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--wilo-ink);
  margin-bottom: 5px;
}

.doc-step p {
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--wilo-ink2);
}

/* Supported Agents inline pills (no "Best for" column) */
.docs-agent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.docs-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--wilo-hairline);
  font-size: 14px;
  font-weight: 600;
  color: var(--wilo-ink);
}

/* Official Docs Callout */
.docs-callout {
  background: var(--wilo-blue-wash);
  border: 1px solid var(--wilo-blue-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 14px;
}

.docs-callout-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--wilo-blue-ink);
  margin-bottom: 6px;
}

.docs-callout ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #1c4f85;
}

/* Prev / Next Docs Pagination */
.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--wilo-hairline);
}

.docs-pager-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--wilo-hairline);
  transition: border-color 160ms ease;
}

.docs-pager-card:hover {
  border-color: var(--wilo-blue-border);
}

.docs-pager-card.next {
  text-align: right;
}

.docs-pager-dir {
  font-size: 12px;
  font-weight: 600;
  color: var(--wilo-ink3);
}

.docs-pager-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--wilo-ink);
}

@media (max-width: 860px) {
  .docs-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 20px 64px;
  }
  .docs-sidebar {
    position: relative;
    top: 0;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wilo-hairline);
  }
  .docs-nav-group.on-page {
    display: none;
  }
  .docs-nav-group.primary-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .docs-nav-group.primary-nav .docs-nav-heading {
    display: none;
  }
  .docs-pager {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE & REDUCED MOTION
   ========================================================================== */
@media (max-width: 1060px) {
  .wing-phone { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 28px 18px 8px; }
  .cinema-track { height: auto; margin-top: 12px; padding: 0 0 36px; }
  .cinema-sticky { position: relative; height: auto; }
  .stage-caption, .stage-dots { opacity: 1 !important; transform: none !important; }
  .arena-3d { height: auto; max-height: none; perspective: none; }
  .center-phone-wrap { transform: none !important; }
  .dof-blur-veil, .breakout-card { display: none; }
  .iphone-hw { width: min(366px, calc(100vw - 32px)); height: 650px; max-height: none; }
  .steps-list { grid-template-columns: 1fr; }
  .cmd-row { flex-direction: column; align-items: stretch; }
  .copy-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .center-phone-wrap, .wing-phone, .breakout-card, .gantt-bar { transform: none !important; transition-duration: 0.01ms !important; }
  .dof-blur-veil, .breakout-card { display: none; }
  .cinema-track { height: auto; padding: 24px 0 48px; }
  .cinema-sticky { position: relative; height: auto; }
  .stage-caption, .stage-dots { opacity: 1 !important; }
  .gantt-bar { transform: scaleX(1) !important; }
}
