/* NYREX Landing — Lead Generation */

:root {
  --purple: #8048E8;
  --purple-dark: #6B35C9;
  --purple-light: #EDE6FB;
  --ink: #080020;
  --ink-soft: #2A2150;
  --paper: #F5F3FA;
  --border: #DAD4EC;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(8, 0, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 0, 32, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max: 1120px;
  --transition: 0.2s ease;
  --trust-green: #00b67a;
  --purple-glow: rgba(128, 72, 232, 0.4);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(128, 72, 232, 0.09), transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(128, 72, 232, 0.06), transparent 45%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

/* 4-point star */
.star {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--purple);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  flex-shrink: 0;
}

.star--white { background: #fff; }
.star--lg { width: 14px; height: 14px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 0, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.topbar.is-scrolled {
  background: rgba(8, 0, 32, 0.96);
  box-shadow: 0 8px 32px rgba(8, 0, 32, 0.35);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 0;
}

.logo__img {
  display: block;
  width: auto;
  height: 2rem;
  max-width: 160px;
  object-fit: contain;
}

.footer__logo .logo__img {
  height: 1.75rem;
}

.logo__rex { color: var(--purple); }

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(128, 72, 232, 0.35);
}

.topbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(128, 72, 232, 0.45);
  color: #fff;
}

.topbar__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, #6f3fd4 50%, var(--purple-dark) 100%);
  background-size: 200% 100%;
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 18px rgba(128, 72, 232, 0.35);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: btnShimmer 4s ease-in-out infinite;
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(128, 72, 232, 0.45);
  background-position: 100% 0;
}

.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn--primary:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 2px;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Section utilities */
.section { padding: 4rem 0; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  background: rgba(128, 72, 232, 0.1);
  border: 1px solid rgba(128, 72, 232, 0.15);
  border-radius: 999px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.text-purple { color: var(--purple); }
.text-italic { font-style: italic; }

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: blobFloat 14s ease-in-out infinite;
}

.hero__blob--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(128, 72, 232, 0.35) 0%, transparent 70%);
}

.hero__blob--2 {
  width: 280px;
  height: 280px;
  bottom: 10%;
  left: -60px;
  background: radial-gradient(circle, rgba(128, 72, 232, 0.2) 0%, transparent 70%);
  animation-delay: -5s;
  animation-duration: 18s;
}

.hero__blob--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, rgba(237, 230, 251, 0.9) 0%, transparent 70%);
  animation-delay: -9s;
  animation-duration: 12s;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(128, 72, 232, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__content > * {
  animation: fadeUp 0.75s var(--ease-out) backwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__content > *:nth-child(3) { animation-delay: 0.19s; }
.hero__content > *:nth-child(4) { animation-delay: 0.26s; }
.hero__content > *:nth-child(5) { animation-delay: 0.33s; }
.hero__content > *:nth-child(6) { animation-delay: 0.4s; }
.hero__content > *:nth-child(7) { animation-delay: 0.47s; }

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero__content h1 .text-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #9d6ff5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__content h1 .text-purple.text-italic {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--purple);
  color: var(--purple);
}

.hero__proofs {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__proofs li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(128, 72, 232, 0.08);
  border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.hero__proofs li:hover {
  transform: translateX(4px);
  border-color: rgba(128, 72, 232, 0.2);
  background: #fff;
}

.hero__proofs .star { margin-top: 0.35rem; }

.hero__cta-mobile {
  display: none;
  margin-top: 1.75rem;
}

.hero__cta-mobile .btn { width: 100%; }

#form-consulenza,
#lead-form-wrapper {
  scroll-margin-top: 4.5rem;
}

/* Trust rating — 5 green stars */
.trust-rating {
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.trust-rating--compact {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
}

.trust-rating__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.625rem;
}

.trust-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--trust-green);
  border-radius: 2px;
  flex-shrink: 0;
  animation: starPop 0.45s var(--ease-spring) backwards;
}

.trust-star:nth-child(1) { animation-delay: 0.55s; }
.trust-star:nth-child(2) { animation-delay: 0.62s; }
.trust-star:nth-child(3) { animation-delay: 0.69s; }
.trust-star:nth-child(4) { animation-delay: 0.76s; }
.trust-star:nth-child(5) { animation-delay: 0.83s; }

.trust-star::after {
  content: '';
  width: 13px;
  height: 13px;
  background: #fff;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.trust-rating__text {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.trust-rating--compact .trust-rating__text {
  font-size: 0.75rem;
}

/* Form card */
.form-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(128, 72, 232, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 24px 48px rgba(128, 72, 232, 0.12);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  animation: fadeUp 0.85s var(--ease-out) 0.15s backwards;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  border-radius: 0 0 4px 4px;
  opacity: 0.7;
}

.form-card.is-submitted {
  animation: successPulse 0.6s var(--ease-out);
}

.form-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.form-card__subtitle {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.form-group input:hover,
.form-group select:hover {
  border-color: rgba(128, 72, 232, 0.35);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(128, 72, 232, 0.15);
}

.form-group input:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.form-group--checkbox input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--purple);
}

.form-group--checkbox label {
  font-weight: 400;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.form-microcopy {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.75rem;
}

.form-error {
  display: none;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-size: 0.875rem;
}

.form-error.is-visible {
  display: block;
  animation: fadeUp 0.35s var(--ease-out);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.is-visible {
  display: block;
  animation: fadeUp 0.5s var(--ease-out);
}

.form-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--purple-light) 0%, #d4c4f7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--purple-dark);
  animation: successCheck 0.6s var(--ease-spring) 0.1s backwards;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Honeypot — hidden from users and screen readers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Symptoms */
.symptoms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.symptom-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.symptom-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), #b088f5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.symptom-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(128, 72, 232, 0.12);
  border-color: rgba(128, 72, 232, 0.2);
}

.symptom-card:hover::before {
  transform: scaleX(1);
}

.symptom-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(128, 72, 232, 0.12) 100%);
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease-spring);
}

.symptom-card:hover .symptom-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.symptom-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.symptom-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Calculator */
.calculator {
  position: relative;
  background: linear-gradient(145deg, #080020 0%, #12032e 40%, #1a0845 100%);
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}

.calculator::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(128, 72, 232, 0.15) 0%, transparent 60%);
  animation: blobFloat 20s ease-in-out infinite;
  pointer-events: none;
}

.calculator::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(128, 72, 232, 0.12) 0%, transparent 65%);
  animation: blobFloat 16s ease-in-out infinite reverse;
  pointer-events: none;
}

.calculator .container {
  position: relative;
  z-index: 1;
}

.calculator .section__title { color: #fff; }
.calculator .section__subtitle { color: rgba(255, 255, 255, 0.75); }

.calculator .section__eyebrow {
  background: rgba(128, 72, 232, 0.2);
  border-color: rgba(128, 72, 232, 0.35);
  color: #d4c4f7;
}

.calculator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: center;
}

.calculator__sliders {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
  color: rgba(255, 255, 255, 0.9);
}

.slider-group output {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--purple-light);
  background: rgba(128, 72, 232, 0.25);
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--purple);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(128, 72, 232, 0.4);
}

.slider-group input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(128, 72, 232, 0.25);
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--purple);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}

.slider-group input[type="range"]:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 4px;
}

.calculator__result {
  text-align: center;
  padding: 2.5rem;
  background: rgba(128, 72, 232, 0.12);
  border: 1px solid rgba(128, 72, 232, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(128, 72, 232, 0.15);
  animation: resultGlow 4s ease-in-out infinite;
}

.calculator__result-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.calculator__result-value {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  transition: transform 0.3s var(--ease-out);
}

.calculator__result-value.is-updating {
  animation: calcPop 0.35s var(--ease-spring);
}

.calculator__result-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
}

.calculator__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.calculator__cta .btn--primary {
  width: auto;
  min-width: 220px;
}

.calculator__cta-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Process */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(128, 72, 232, 0.1);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple-light) 0%, rgba(128, 72, 232, 0.2) 100%);
  color: var(--purple);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease-spring), background 0.35s;
}

.process-step:hover::before {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Why NYREX */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.why-item {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.why-item:hover {
  transform: translateX(4px);
  border-color: rgba(128, 72, 232, 0.25);
  box-shadow: 0 8px 24px rgba(128, 72, 232, 0.08);
}

.why-item .star {
  transition: transform 0.35s var(--ease-spring);
}

.why-item:hover .star {
  transform: rotate(45deg) scale(1.2);
}

.why-item .star { margin-top: 0.3rem; }

.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Testimonial */
.testimonial {
  background: linear-gradient(180deg, var(--purple-light) 0%, rgba(237, 230, 251, 0.4) 100%);
  padding: 4rem 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial__card {
  position: relative;
  text-align: left;
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(128, 72, 232, 0.12);
  box-shadow: 0 12px 36px rgba(128, 72, 232, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial__trust {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.testimonial__trust .trust-rating__stars {
  margin-bottom: 0;
}

.testimonial__trust .trust-star {
  animation: none;
}

.testimonial__trust-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.testimonial__quote {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.testimonial__author {
  font-weight: 700;
  color: var(--ink);
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq__item:hover {
  border-color: rgba(128, 72, 232, 0.2);
}

.faq__item[open] {
  border-color: rgba(128, 72, 232, 0.3);
  box-shadow: 0 8px 24px rgba(128, 72, 232, 0.08);
}

.faq__item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.25s, background 0.25s;
}

.faq__item summary:hover {
  color: var(--purple);
  background: rgba(128, 72, 232, 0.04);
}

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}

.faq__item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq__item p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  animation: faqOpen 0.35s var(--ease-out);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
}

/* Final CTA */
.final-cta {
  padding: 4rem 0;
}

.final-cta__card {
  position: relative;
  background: linear-gradient(145deg, var(--ink) 0%, #150838 50%, #1e0a4a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(128, 72, 232, 0.25);
}

.final-cta__card::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(128, 72, 232, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite;
}

.final-cta__card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(128, 72, 232, 0.15) 0%, transparent 65%);
  pointer-events: none;
  animation: blobFloat 15s ease-in-out infinite reverse;
}

.final-cta__card > * { position: relative; }

.final-cta__card h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.final-cta__card p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta__actions .btn--primary {
  width: auto;
  min-width: 200px;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__logo {
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.footer__meta {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.footer__meta a {
  color: var(--purple);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -24px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.97); }
}

@keyframes btnShimmer {
  0%, 75%, 100% { transform: translateX(-100%); }
  40% { transform: translateX(100%); }
}

@keyframes starPop {
  from {
    opacity: 0;
    transform: scale(0) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes calcPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); color: #c9a8ff; }
  100% { transform: scale(1); }
}

@keyframes resultGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(128, 72, 232, 0.15); }
  50% { box-shadow: 0 0 56px rgba(128, 72, 232, 0.28); }
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes successCheck {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.symptoms__grid .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.symptoms__grid .reveal-item:nth-child(3) { transition-delay: 0.2s; }

.process__steps .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.process__steps .reveal-item:nth-child(3) { transition-delay: 0.24s; }

.why__grid .reveal-item:nth-child(2) { transition-delay: 0.08s; }
.why__grid .reveal-item:nth-child(3) { transition-delay: 0.16s; }
.why__grid .reveal-item:nth-child(4) { transition-delay: 0.24s; }

.testimonials__grid .reveal-item:nth-child(2) { transition-delay: 0.08s; }
.testimonials__grid .reveal-item:nth-child(3) { transition-delay: 0.16s; }
.testimonials__grid .reveal-item:nth-child(4) { transition-delay: 0.24s; }

.faq__list .reveal-item:nth-child(2) { transition-delay: 0.06s; }
.faq__list .reveal-item:nth-child(3) { transition-delay: 0.12s; }
.faq__list .reveal-item:nth-child(4) { transition-delay: 0.18s; }
.faq__list .reveal-item:nth-child(5) { transition-delay: 0.24s; }

/* Responsive */
@media (hover: hover) {
  .form-card:hover {
    transform: translateY(-4px);
    box-shadow:
      var(--shadow-lg),
      0 0 0 1px rgba(255, 255, 255, 0.9) inset,
      0 32px 64px rgba(128, 72, 232, 0.18);
  }
}

@media (max-width: 880px) {
  .hero__grid,
  .calculator__grid,
  .symptoms__grid,
  .process__steps,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 2rem; }
  .hero__grid { gap: 2rem; }
  .hero__cta-mobile { display: block; }
  .section { padding: 3rem 0; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .calculator__result { margin-top: 0.5rem; }
  .calculator__cta .btn--primary { width: 100%; min-width: 0; }
  .final-cta__actions { flex-direction: column; align-items: stretch; }
  .final-cta__actions .btn { width: 100%; }
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 0, 32, 0.98);
  color: #fff;
  border-top: 1px solid rgba(128, 72, 232, 0.35);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cookie-banner__layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner__main {
  flex: 1;
  min-width: 0;
}

.cookie-banner__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 220px;
}

.cookie-banner__accept {
  width: 100%;
  min-width: 220px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(128, 72, 232, 0.45);
}

.cookie-banner__settings {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.35rem 0;
  text-align: center;
}

.cookie-banner__settings:hover {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9a8ff;
  margin-bottom: 0.35rem;
}

.cookie-banner__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cookie-banner__text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42rem;
}

.cookie-banner__text a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  font-size: 0.8125rem;
}

.cookie-preferences {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-preferences[hidden] { display: none !important; }

.cookie-preferences__intro {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.cookie-pref {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-pref:last-of-type { border-bottom: none; }

.cookie-pref__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.cookie-pref__head strong { color: #fff; }

.cookie-pref__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c9a8ff;
}

.cookie-pref p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-pref__toggle {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--purple);
}

.cookie-preferences__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-banner__reject {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.28);
  font: inherit;
  font-size: 0.6875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.25rem;
}

.cookie-banner__reject:hover {
  color: rgba(255, 255, 255, 0.45);
}

.cookie-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9997;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0.65;
}

.cookie-fab[hidden] { display: none !important; }

.cookie-fab:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.footer__cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--purple);
  cursor: pointer;
  text-decoration: none;
}

.footer__cookie-link:hover { color: var(--purple-dark); }

/* ── Legal / privacy page ── */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page__inner {
  max-width: 760px;
}

.legal-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.legal-page__updated {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.legal-page__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 5rem;
}

.legal-page__content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.25rem 0 0.5rem;
}

.legal-page__content p,
.legal-page__content li {
  margin-bottom: 0.75rem;
}

.legal-page__content ul {
  padding-left: 1.25rem;
}

.legal-page__content code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--purple-light);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--purple-light);
  color: var(--ink);
  font-weight: 700;
}

.legal-page__back {
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .cookie-banner__layout {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__cta {
    min-width: 0;
  }

  .cookie-banner__accept {
    min-width: 0;
  }
}
