/* Zoana skin tokens — generated from templates/tokens/default.json */

:root {
  --zoana-font-heading: "Inter", system-ui, sans-serif;
  --zoana-font-body: "Inter", system-ui, sans-serif;
  --zoana-radius: 0.875rem;
  --zoana-spacing-section: 5rem;
}

[data-palette="clair"],
:root {
  color-scheme: light;
  --zoana-bg: #ffffff;
  --zoana-surface: #f6f5f2;
  --zoana-text: #1c1917;
  --zoana-muted: #57534e;
  --zoana-accent: #292524;
  --zoana-accent-hover: #1c1917;
  --zoana-border: #e7e5e4;
}

[data-palette="sombre"] {
  color-scheme: dark;
  --zoana-bg: #1c1917;
  --zoana-surface: #2c2824;
  --zoana-text: #faf7f2;
  --zoana-muted: #d6d3d1;
  --zoana-accent: #e7e5e4;
  --zoana-accent-hover: #faf7f2;
  --zoana-border: #57534e;
}

body {
  font-family: var(--zoana-font-body);
  background-color: var(--zoana-bg);
  color: var(--zoana-text);
}

.font-heading {
  font-family: var(--zoana-font-heading);
  letter-spacing: -0.03em;
}

.text-muted {
  color: var(--zoana-muted);
}

.text-accent {
  color: var(--zoana-accent);
}

.bg-surface {
  background-color: var(--zoana-surface);
}

.bg-accent {
  background-color: var(--zoana-accent);
}

.border-token {
  border-color: var(--zoana-border);
}

.rounded-token {
  border-radius: var(--zoana-radius);
}

/* Tailwind's display utilities beat the [hidden] attribute; make hidden win so
   `element.hidden = true` works on any node (CTA swaps, draft chips, spinners). */
[hidden] {
  display: none !important;
}

.zoana-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: zoana-spin 0.65s linear infinite;
}

@keyframes zoana-spin {
  to {
    transform: rotate(360deg);
  }
}

/* The one thing to click: a slow shine sweep + a breathing halo. */
.zoana-cta-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: zoana-cta-pulse 3.2s ease-in-out infinite;
}

.zoana-cta-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgb(255 255 255 / 35%) 50%,
    transparent 80%
  );
  animation: zoana-cta-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes zoana-cta-sweep {
  0%,
  55% {
    transform: translateX(-120%);
  }
  85%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes zoana-cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(41 37 36 / 0%);
  }
  50% {
    box-shadow: 0 0 0 6px rgb(41 37 36 / 10%);
  }
}

/* First paint: sections rise into place (page feels alive, never janky). */
.zoana-reveal {
  animation: zoana-reveal-up 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes zoana-reveal-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Show-effect ring after a chat confirm re-renders the page. */
.zoana-effect-ring {
  animation: zoana-effect-ring 1.3s ease-out both;
  border-radius: var(--zoana-radius);
}

@keyframes zoana-effect-ring {
  0% {
    box-shadow: 0 0 0 0 rgb(41 37 36 / 22%);
  }
  70% {
    box-shadow: 0 0 0 10px rgb(41 37 36 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(41 37 36 / 0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zoana-spinner {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.55;
  }

  .zoana-cta-shine,
  .zoana-cta-shine::after,
  .zoana-reveal,
  .zoana-effect-ring {
    animation: none;
  }

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