/* ==========================================================================
   Launch Affect — Landing Page
   ========================================================================== */

:root {
  --purple-900: #3b015a;
  --purple-800: #540177;
  --purple-700: #650993;
  --purple-600: #7a1ba3;
  --purple-400: #8b4fb3;
  --purple-100: #ece2f5;
  --purple-50: #f7f3fb;

  --ink: #201331;
  --ink-soft: #55496a;
  --gray-200: #e7e2ee;
  --gray-100: #f4f1f8;
  --white: #ffffff;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(59, 1, 90, 0.08);
  --shadow-md: 0 12px 32px rgba(59, 1, 90, 0.14);
  --shadow-lg: 0 24px 64px rgba(59, 1, 90, 0.22);

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--purple-900);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--purple-700);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-600);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--purple-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--purple-800);
  border-color: var(--purple-100);
}

.btn-ghost:hover {
  border-color: var(--purple-400);
  background: var(--purple-50);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--purple-50);
  color: var(--purple-800);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--purple-50) 0%, #ffffff 65%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  margin-bottom: 0.45em;
}

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-media {
  position: relative;
}

.hero-media .photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero-media .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--purple-900);
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Waitlist form */
.waitlist-form {
  margin-top: 32px;
}

.waitlist-form .field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 2px solid var(--gray-200);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--purple-600);
}

.waitlist-form .microcopy {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.waitlist-form .form-msg {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.waitlist-form .form-msg.show {
  display: block;
}

.waitlist-form .form-msg.success {
  color: #15803d;
}

.waitlist-form .form-msg.error {
  color: #b91c1c;
}

.cf-turnstile {
  margin-top: 14px;
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  justify-content: center;
  padding: 26px 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.trust-item svg {
  color: var(--purple-600);
  flex: none;
}

/* ==========================================================================
   About / Why section
   ========================================================================== */

.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy .eyebrow {
  margin-bottom: 14px;
}

.about-copy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 500;
}

.about-list svg {
  color: var(--purple-600);
  flex: none;
  margin-top: 2px;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features {
  background: var(--purple-50);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple-100);
  color: var(--purple-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5em;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  background: #fff;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple-800);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 30ch;
  margin: 0 auto;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  background: var(--purple-900);
  color: #fff;
}

.testimonials .section-head h2,
.testimonials .eyebrow {
  color: #fff;
}

.testimonials .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.testimonials .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-card .stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.testimonial-card p.quote {
  font-size: 1.02rem;
  color: #fff;
}

.testimonial-card .attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  flex: none;
}

.attribution .name {
  font-weight: 600;
  font-size: 0.92rem;
}

.attribution .role {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background: #fff;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--purple-900);
  padding: 18px 22px;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: -3px;
}

.faq-question .chevron {
  flex: none;
  transition: transform 0.2s ease;
  color: var(--purple-600);
}

.faq-item[open] .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 auto 8px;
}

.final-cta .waitlist-form {
  max-width: 520px;
  margin: 32px auto 0;
}

.final-cta .waitlist-form input[type="email"] {
  border-color: rgba(255, 255, 255, 0.5);
}

.final-cta .btn-primary {
  background: #fff;
  color: var(--purple-800);
}

.final-cta .btn-primary:hover {
  background: var(--purple-50);
}

.final-cta .microcopy {
  color: rgba(255, 255, 255, 0.7);
}

.final-cta .form-msg.success {
  color: #bbf7d0;
}

.final-cta .form-msg.error {
  color: #fecaca;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo-badge {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 26px;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }

  .main-nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta .btn-ghost-desktop {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-badge {
    display: none;
  }
}
