:root {
  color-scheme: light;
  --zl-ink: #2f1d13;
  --zl-muted: #6d5a4a;
  --zl-line: #e2d3bd;
  --zl-bg: #f7f0e6;
  --zl-primary: #8a4f0f;
  --zl-primary-hover: #6f3f0a;
  --zl-secondary: #3a2416;
  --zl-accent: #b9852b;
  --zl-soft: #fffaf2;
  --zl-warn: #a84624;
  --zl-focus: rgba(185, 133, 43, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zl-bg);
  color: var(--zl-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.zl-topbar,
.zl-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.zl-topbar {
  min-height: 68px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.zl-brand,
.zl-topbar nav,
.zl-actions,
.zl-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zl-brand {
  text-decoration: none;
  font-weight: 800;
}

.zl-logo,
.zl-hero-logo {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.zl-hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.zl-topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.zl-topbar nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
}

.zl-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zl-primary);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: var(--zl-primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.zl-button.small {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
}

.zl-button.ghost {
  background: #fff;
  color: var(--zl-secondary);
  border-color: var(--zl-line);
}

.zl-button:focus-visible,
.zl-topbar a:focus-visible,
details summary:focus-visible {
  outline: 3px solid var(--zl-focus);
  outline-offset: 3px;
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.zl-hero {
  min-height: calc(100svh - 120px);
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 24px 0 32px;
}

.zl-eyebrow {
  margin: 0 0 8px;
  color: var(--zl-primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.zl-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.zl-lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--zl-muted);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
}

.zl-actions {
  flex-wrap: wrap;
  margin-top: 22px;
}

.zl-hero-stage {
  position: relative;
  display: grid;
  gap: 16px;
  align-items: end;
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--zl-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.zl-character {
  position: relative;
  width: min(48vw, 220px);
  aspect-ratio: 0.72;
  justify-self: center;
  animation: zl-breathe 3.6s ease-in-out infinite;
}

.zl-hair {
  position: absolute;
  inset: 8% 18% 45%;
  background: #4a2f20;
  border-radius: 42% 42% 24% 24%;
  animation: zl-hair 2.2s ease-in-out infinite;
}

.zl-face {
  position: absolute;
  left: 27%;
  top: 22%;
  width: 46%;
  height: 36%;
  border-radius: 44% 44% 48% 48%;
  background: #ffe0c7;
  box-shadow: inset 0 -10px 0 rgba(255, 190, 160, 0.32);
}

.zl-eye {
  position: absolute;
  top: 39%;
  width: 9%;
  height: 11%;
  border-radius: 50%;
  background: var(--zl-secondary);
  animation: zl-blink 5s infinite;
}

.zl-eye.left {
  left: 28%;
}

.zl-eye.right {
  right: 28%;
}

.zl-mouth {
  position: absolute;
  left: 43%;
  top: 65%;
  width: 14%;
  height: 7%;
  border-bottom: 3px solid var(--zl-warn);
  border-radius: 50%;
}

.zl-coat {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 10%;
  height: 34%;
  background: var(--zl-primary);
  border-radius: 28% 28% 14% 14%;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.18);
}

.zl-demo {
  display: grid;
  gap: 8px;
}

.zl-msg {
  max-width: 86%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  background: var(--zl-soft);
  border: 1px solid var(--zl-line);
  overflow-wrap: anywhere;
}

.zl-msg.user {
  justify-self: end;
  background: var(--zl-primary);
  color: #fff;
  border-color: var(--zl-primary);
}

.zl-steps,
.zl-features,
.zl-pricing,
.zl-faq,
.zl-cta {
  padding: 34px 0;
}

.zl-steps h2,
.zl-features h2,
.zl-pricing h2,
.zl-faq h2,
.zl-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0;
}

.zl-grid {
  display: grid;
  gap: 12px;
}

.zl-grid article,
.zl-grid.four article,
.zl-grid.pricing article,
.zl-faq details,
.zl-cta {
  border: 1px solid var(--zl-line);
  border-radius: 8px;
  background: #fff;
}

.zl-grid article,
.zl-grid.four article,
.zl-grid.pricing article {
  padding: 16px;
  min-width: 0;
}

.zl-grid.three span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--zl-soft);
  color: var(--zl-primary-hover);
  font-weight: 800;
}

.zl-grid h3 {
  margin: 12px 0 6px;
}

.zl-grid p,
.zl-state,
.zl-faq p {
  margin: 0;
  color: var(--zl-muted);
}

.zl-grid.pricing article {
  display: grid;
  gap: 10px;
}

.zl-price {
  font-size: 1.6rem;
  font-weight: 900;
}

.zl-faq {
  display: grid;
  gap: 10px;
}

.zl-faq details {
  padding: 14px 16px;
}

.zl-faq summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 800;
}

.zl-cta {
  display: grid;
  gap: 14px;
  place-items: start;
  padding: 24px;
  margin-bottom: 28px;
}

.zl-footer {
  min-height: 72px;
  flex-wrap: wrap;
  color: var(--zl-muted);
}

.zl-footer span {
  font-weight: 800;
  color: var(--zl-ink);
}

@media (min-width: 760px) {
  .zl-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  }

  .zl-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zl-grid.four,
  .zl-grid.pricing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .zl-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .zl-topbar nav {
    width: 100%;
    justify-content: flex-start;
  }

  .zl-actions,
  .zl-actions .zl-button,
  .zl-cta .zl-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@keyframes zl-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes zl-hair {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-1.5deg);
  }
}

@keyframes zl-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
