/* AprilProof landing — global styles.
   Page layout is intentionally inline (carried over verbatim from the design for
   pixel fidelity); this file holds what an inline style attribute can't express:
   keyframes, pseudo-elements, form-control theming, and :hover states (which the
   design's DC runtime emulated via JS `style-hover` and we replace with real CSS). */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #1c1a17;
}

::selection {
  background: #3da777;
  color: #10231a;
}

@keyframes ap-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
  }
}
@keyframes ap-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* Horizontal carousel — hide scrollbar across engines. */
[data-carousel] {
  scrollbar-width: none;
}
[data-carousel]::-webkit-scrollbar {
  display: none;
}

/* Range slider thumb (calculator). */
input[type="range"] {
  accent-color: #3da777;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3da777;
  cursor: pointer;
  border: 3px solid #f4f1ea;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3da777;
  cursor: pointer;
  border: 3px solid #f4f1ea;
}

/* Hover states (replacing the design's style-hover). Compose on elements, e.g.
   class="h-green h-lift". Each element keeps its own inline `transition`. */
.h-green:hover {
  background: #46b886;
}
.h-dark:hover {
  background: #000;
}
.h-lift:hover {
  transform: translateY(-1px);
}
.h-ghost-06:hover {
  background: rgba(244, 241, 234, 0.06);
}
.h-ghost-08:hover {
  background: rgba(244, 241, 234, 0.08);
}
.h-ghost-14:hover {
  background: rgba(244, 241, 234, 0.14);
}
.h-ghost-16:hover {
  background: rgba(244, 241, 234, 0.16);
}
.h-ghost-18:hover {
  background: rgba(244, 241, 234, 0.18);
}
.h-text-light:hover {
  color: #f4f1ea;
}

/* Generic toggle helper used by JS (funnel steps, nav panels, FAQ answers). */
.is-hidden {
  display: none !important;
}

/* Reduced-motion: keep things readable, drop the looping animations. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Legal / policy pages (terms.html, privacy.html) — readable long-form column. */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 48px) clamp(56px, 8vw, 96px);
}
.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #f4f1ea;
  margin: 0 0 14px;
}
.legal .legal-meta {
  font-size: 14px;
  color: #7e7a70;
  margin: 0 0 6px;
}
.legal .legal-intro {
  font-size: 17px;
  line-height: 1.65;
  color: #c9c4ba;
  margin: 24px 0 8px;
}
.legal h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #f4f1ea;
  margin: 40px 0 12px;
}
.legal p {
  font-size: 16px;
  line-height: 1.7;
  color: #b7b2a8;
  margin: 0 0 16px;
}
.legal ul {
  font-size: 16px;
  line-height: 1.7;
  color: #b7b2a8;
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li {
  margin: 0 0 8px;
}
.legal strong {
  color: #f4f1ea;
  font-weight: 700;
}
.legal a {
  color: #3da777;
}
