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

/* Mobile app color palette – one shade lighter */
:root {
  --purple-50: #FCF9FD;
  --purple-100: #F6EEFA;
  --purple-200: #E8CCF5;
  --purple-300: #D9B3EC;
  --purple-400: #B87ED8;
  --purple-500: #9A5FBF;
  --purple-600: #8040A8;
  --purple-700: #5E2A85;
  --purple-800: #4A2070;
  --purple-900: #3d1858;

  --gray-50: #FAFBFD;
  --gray-100: #F4F6F9;
  --gray-200: #E8EDF3;
  --gray-300: #D1DAE5;
  --gray-500: #6B7A8F;
  --gray-600: #4F5D72;
  --gray-700: #3A4557;
  --gray-800: #25303F;
  --gray-900: #0F1824;

  --white: #ffffff;
  --green-500: #10B981;
  --blue-500: #3B82F6;

  /* unDraw / marketing illustrations — accent #a263ff (default unDraw purple is #6c63ff) */
  --illustration-accent: #a263ff;
  --illustration-accent-rgb: 162, 99, 255;
  --illustration-tint-filter: hue-rotate(23deg) saturate(0.92) brightness(1.03);

  /* Gradient tokens (one shade lighter) */
  --gradient-header-start: #8040A8;
  --gradient-header-mid: #9A5FBF;
  --gradient-header-end: #B87ED8;
  --gradient-surface-start: #F0ECF5;
  --gradient-surface-mid: #EDE8F2;
  --gradient-surface-end: #EAE4EF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll-driven reveal (Apple-style) — only when motion allowed */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      box-shadow 0.3s ease,
      border-color 0.3s ease;
  }

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

  /* Subtle stagger when step cards enter view */
  .steps__flow--timeline .step-card[data-reveal]:nth-child(3) { transition-delay: 50ms, 50ms, 0.3s, 0.3s; }
  .steps__flow--timeline .step-card[data-reveal]:nth-child(5) { transition-delay: 100ms, 100ms, 0.3s, 0.3s; }
  .steps__flow--timeline .step-card[data-reveal]:nth-child(7) { transition-delay: 150ms, 150ms, 0.3s, 0.3s; }
  .steps__flow--timeline .step-card[data-reveal]:nth-child(9) { transition-delay: 200ms, 200ms, 0.3s, 0.3s; }
  .steps__flow--timeline .step-card[data-reveal]:nth-child(11) { transition-delay: 250ms, 250ms, 0.3s, 0.3s; }
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

/* Breadcrumb navigation */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.25rem;
  color: var(--gray-300);
}
.breadcrumb a {
  color: var(--purple-600);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  color: var(--gray-600);
}

a {
  color: var(--purple-600);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--purple-800);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ────────────────────────────────────────── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

/* ── Header / Nav ──────────────────────────────────── */

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple-700);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__logo span {
  color: var(--purple-400);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--purple-700);
}

.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.app-store-badge svg,
.app-store-badge img {
  display: block;
}

.nav__app-store svg,
.nav__app-store img {
  height: 32px;
  width: auto;
}

.footer__app-store {
  margin-top: 0.5rem;
}

.footer__app-store svg {
  height: 40px;
  width: auto;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--gray-700);
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--purple-100) 0%, var(--purple-50) 35%, var(--white) 70%, var(--purple-100) 100%);
}

.hero__visual {
  margin-bottom: 1.5rem;
}

.hero__illustration {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--purple-100);
  color: var(--purple-700);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
  color: var(--white);
}

.btn--outline {
  background: var(--white);
  color: var(--purple-700);
  border: 2px solid var(--purple-200);
}

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

/* ── Features Grid ─────────────────────────────────── */

.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-50) 50%, var(--white) 100%);
}

.section-illustration {
  text-align: center;
  margin-bottom: 2rem;
}

.section-illustration img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* unDraw #6c63ff → ~--illustration-accent */
.hero__illustration:not(.hero-illustration--vault),
.section-illustration:not(.section-illustration--light) img,
.cta__illustration img,
.legal-hero__illustration img,
.step-card__illus img {
  filter: var(--illustration-tint-filter);
}

.section-illustration--light img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.cta__illustration {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta__illustration img {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.legal-hero__illustration {
  text-align: center;
  margin-bottom: 1.5rem;
}

.legal-hero__illustration img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.section-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-600);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: var(--purple-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--purple-100);
  color: var(--purple-600);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Security Banner ───────────────────────────────── */

.security-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: var(--white);
}

.security-banner .section-label {
  color: var(--purple-200);
}

.security-banner .section-title {
  color: var(--white);
}

.security-banner .section-desc {
  color: var(--purple-200);
}

.security__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.security__item {
  padding: 1.5rem;
}

.security__item-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.security__item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.security__item p {
  font-size: 0.875rem;
  color: var(--purple-200);
  line-height: 1.6;
}

/* ── CTA ───────────────────────────────────────────── */

.cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--purple-50) 0%, var(--purple-100) 100%);
}

.cta__box {
  background: var(--white);
  border: 1px solid var(--purple-200);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.cta__box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.cta__box p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ── Footer ────────────────────────────────────────── */

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer__brand {
  max-width: 280px;
}

.footer__brand-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--purple-700);
  margin-bottom: 0.5rem;
}

.footer__brand-name img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 3rem;
}

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col a {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer__col a:hover {
  color: var(--purple-600);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ── How-It-Works Steps ────────────────────────────── */

.steps {
  padding: 5rem 0;
}

.steps__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: var(--white);
  font-weight: 800;
  font-size: 1.125rem;
}

.step__content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.375rem;
}

.step__content p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* How-it-works: Before / After phases */
.hiw-phase {
  padding-top: 3rem;
}

/* How-it-works: Apple-style hero — bold, minimal, jump nav */
.hiw-hero {
  background: linear-gradient(160deg, var(--purple-100) 0%, var(--purple-50) 40%, var(--white) 100%);
  padding: min(12vh, 6rem) 0 min(8vh, 4rem);
  min-height: min(60vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hiw-hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.hiw-hero__title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hiw-hero__sub {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hiw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  font-size: 0.9375rem;
}

.hiw-nav a {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hiw-nav a:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

.hiw-nav a.is-active {
  color: var(--purple-700);
  font-weight: 600;
  text-decoration: underline;
}


.hiw-phase__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hiw-phase__header--sticky {
  position: sticky;
  top: 4rem;
  z-index: 5;
  padding: 1rem 0 1.5rem;
  background: linear-gradient(180deg, var(--purple-50) 0%, var(--purple-50) 70%, transparent 100%);
  margin-bottom: 1.5rem;
}

.hiw-phase--after .hiw-phase__header--sticky {
  background: linear-gradient(180deg, var(--purple-50) 0%, var(--white) 70%, transparent 100%);
}

.steps--summary .hiw-phase__header--sticky {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-50) 70%, transparent 100%);
}

.hiw-phase__header .section-title {
  margin-bottom: 0.5rem;
}

.hiw-phase__sub {
  font-size: 0.9375rem;
  color: var(--purple-600);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hiw-phase__line {
  width: 80px;
  height: 0;
  margin: 0 auto;
  border-top: 3px dashed var(--purple-300);
}

/* During your life: flowing gradient bands so each step feels distinct, no boxes */
.hiw-phase:not(.hiw-phase--after):not(.steps--summary) {
  background: linear-gradient(
    180deg,
    var(--purple-50) 0%,
    var(--purple-100) 18%,
    var(--purple-50) 36%,
    var(--purple-100) 54%,
    var(--purple-50) 72%,
    var(--purple-100) 100%
  );
  padding: 4rem 0;
}

/* After you: flowing gradient bands */
.hiw-phase--after {
  background: linear-gradient(
    180deg,
    var(--purple-50) 0%,
    var(--white) 18%,
    var(--purple-50) 36%,
    var(--white) 54%,
    var(--purple-50) 72%,
    var(--white) 100%
  );
  padding: 5rem 0 4rem;
}

/* After you: each step fills viewport; muted until in view, then full color + green */
.steps__flow--after .step-card {
  min-height: min(75vh, 620px);
}

.hiw-phase--after [data-after-step] {
  opacity: 0.88;
  filter: grayscale(1);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.hiw-phase--after [data-after-step].step-in-view {
  opacity: 1;
  filter: none;
}

/* Six steps: flowing gradient bands */
.steps--summary {
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    var(--purple-50) 15%,
    var(--white) 30%,
    var(--purple-50) 48%,
    var(--white) 65%,
    var(--purple-50) 82%,
    var(--white) 100%
  );
  padding: 5rem 0;
}

/* No boxes: step content sits on section gradient, text and image connected */
.hiw-phase .step-card,
.hiw-phase--after .step-card,
.steps--summary .step-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hiw-phase .step-card:hover,
.hiw-phase--after .step-card:hover,
.steps--summary .step-card:hover {
  background: transparent;
  border: none;
  box-shadow: none;
}

.hiw-phase .section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

/* During your life: glow on image when it's in the center of the viewport */
#during .step-card__illus {
  transition: box-shadow 0.5s ease, filter 0.5s ease;
}
#during .step-card__illus.illus-in-center {
  filter: drop-shadow(0 0 24px rgba(154, 95, 191, 0.4)) drop-shadow(0 0 48px rgba(154, 95, 191, 0.2));
}

/* Scroll margin so anchor links don't sit under sticky header */
#during,
#after,
#six-steps {
  scroll-margin-top: 5rem;
}

.steps__after {
  max-width: 640px;
  margin: 0 auto;
}

.steps__after p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.steps__after p:last-child {
  margin-bottom: 0;
}

.steps__after strong {
  color: var(--gray-800);
}

.steps--summary .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Step flow: alternating left/right with illustrations */
.steps__flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.steps__flow--timeline .step-card {
  margin-top: 0;
}

.steps__flow--timeline .step-card:first-child {
  margin-top: 0;
}

.steps__flow--timeline > * + * {
  margin-top: 1.25rem;
}

/* Scroll-dominant steps: each step occupies meaningful viewport */
.steps__flow--timeline .step-card {
  min-height: min(50vh, 440px);
  display: flex;
  align-items: flex-start;
  scroll-margin-top: 5rem;
}

/* Active step: subtle scale only (no boxes) */
@media (prefers-reduced-motion: no-preference) {
  .hiw-phase [data-step].is-active,
  .hiw-phase--after [data-step].is-active,
  .steps--summary [data-step].is-active {
    transform: translateY(0) scale(1.01);
  }
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.step-card:hover {
  background: transparent;
  border: none;
  box-shadow: none;
}

.step-card__illus {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
}

.step-card__illus img {
  max-width: 220px;
  max-height: 200px;
  width: auto;
  height: auto;
  display: block;
}

.step-card__content {
  flex: 1;
  min-width: 0;
  padding-top: 0.125rem;
}

.step-card__content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.step-card__content p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
}

/* Alternate: --right = image left, text right; --left = text left, image right */
.step-card--right {
  flex-direction: row;
}

.step-card--right .step-card__content,
.step-card--right .step-card__content h3,
.step-card--right .step-card__content p {
  text-align: right;
}

.step-card--left {
  flex-direction: row-reverse;
}

.step-card--left .step-card__content,
.step-card--left .step-card__content h3,
.step-card--left .step-card__content p {
  text-align: left;
}

/* During & After only: larger text and images on desktop (Six steps / In practice keeps default size) */
@media (min-width: 769px) {
  .hiw-phase .step-card__illus,
  .hiw-phase--after .step-card__illus {
    width: 300px;
  }

  .hiw-phase .step-card__illus img,
  .hiw-phase--after .step-card__illus img {
    max-width: 300px;
    max-height: 280px;
  }

  .hiw-phase .step-card__content h3,
  .hiw-phase--after .step-card__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
    line-height: 1.3;
  }

  .hiw-phase .step-card__content p,
  .hiw-phase--after .step-card__content p {
    font-size: 1.125rem;
    line-height: 1.75;
  }
}

/* ── Legal Pages ───────────────────────────────────── */

.legal-hero {
  padding: 4rem 0 2rem;
  text-align: center;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.legal-hero p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  color: var(--gray-600);
  margin: 0 0 1rem 1.5rem;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 0.375rem;
}

.legal-content strong {
  color: var(--gray-800);
}

.legal-content a {
  text-decoration: underline;
  text-decoration-color: var(--purple-200);
  text-underline-offset: 2px;
}

.legal-content a:hover {
  text-decoration-color: var(--purple-600);
}

.legal-content__cta {
  margin-top: 2.5rem;
}

/* ── FAQ Accordion ─────────────────────────────────── */

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--purple-200);
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--purple-500);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  background: var(--gray-50);
}

.faq-item p {
  padding: 0 1.25rem 1.125rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
}

/* ── How-It-Works Hero (duplicate block removed — see .hiw-hero above) ─── */

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

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

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

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    gap: 2rem;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Stack on mobile but keep alternating: --right = image on top, --left = image on bottom */
  .step-card--right {
    flex-direction: column;
    align-items: flex-end;
  }

  .step-card--left {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .step-card--right .step-card__content {
    width: 100%;
    max-width: 100%;
  }

  .step-card--right .step-card__content,
  .step-card--right .step-card__content h3,
  .step-card--right .step-card__content p {
    text-align: right;
  }

  .step-card--left .step-card__content,
  .step-card--left .step-card__content h3,
  .step-card--left .step-card__content p {
    text-align: left;
  }

  .step-card__illus {
    width: 100%;
  }

  .step-card--right .step-card__illus {
    display: flex;
    justify-content: flex-end;
  }

  .step-card__illus img {
    max-width: 180px;
    max-height: 160px;
  }

  .step-card__content {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .security__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .early-access-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ── Early access waitlist ───────────────────────────── */

.early-access-banner {
  background: linear-gradient(135deg, var(--purple-100) 0%, var(--purple-50) 100%);
  border-bottom: 1px solid var(--purple-200);
  padding: 0.75rem 0;
}

.early-access-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.early-access-banner p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--purple-800);
}

.early-access-banner .btn {
  flex-shrink: 0;
}

.early-access-card {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.early-access-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.5rem;
}

.early-access-card__intro {
  color: var(--gray-600);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.early-access-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.early-access-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-field input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder {
  color: var(--gray-500);
}

.form-field input:focus {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px rgba(154, 95, 191, 0.2);
}

.form-message {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
}

.form-message[hidden] {
  display: none;
}

.form-message--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form-message--success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.early-access-card__fineprint {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.early-access-card__fineprint--muted {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.early-access-submit__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 1.25rem;
}

.early-access-submit__spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: early-access-spin 0.65s linear infinite;
}

.early-access-submit.is-loading {
  cursor: wait;
  opacity: 0.92;
}

.early-access-submit.is-loading .early-access-submit__spinner {
  display: block;
}

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

.early-access-form.is-submitting .form-field input {
  opacity: 0.85;
}

.early-access-success {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.early-access-success__title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.early-access-success__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.early-access-success__share {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
}

.early-access-success__share-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.375rem;
}

.early-access-success__share-intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.early-access-success__share-native {
  margin-bottom: 0.75rem;
}

.early-access-success__share-feedback {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-700);
}

.early-access-success__share-or {
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
}

.early-access-success__share-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.early-access-success__share-link {
  font-size: 0.8125rem;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.early-access-success__share-link:hover {
  color: var(--purple-700);
}

/* reCAPTCHA v3 injects a fixed corner badge; Google allows hiding it if the user-visible
   disclosure stays on the page (see .early-access-card__fineprint--muted on early-access.html). */
body.page-early-access .grecaptcha-badge {
  visibility: hidden;
}

/* Hero + success swap use #a263ff in SVG — skip global unDraw tint */
.legal-hero__illustration img.early-access-hero__img {
  max-width: min(280px, 88vw);
  width: 100%;
  height: auto;
  filter: none;
}

.early-access-ufo-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  pointer-events: none;
  overflow: visible;
  box-sizing: border-box;
}

.early-access-ufo-overlay[hidden] {
  display: none;
}

.early-access-ufo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: min(240px, 72%);
  max-width: 280px;
  margin: 0 auto;
  will-change: transform, opacity;
  opacity: 0;
  transform-origin: center center;
}

.early-access-ufo-overlay--active:not(.early-access-ufo-overlay--crash) .early-access-ufo {
  animation: early-access-ufo-fly var(--early-access-drone-fly-duration, 4.2s) cubic-bezier(0.22, 0.06, 0.08, 1) forwards;
}

.early-access-ufo-overlay--active.early-access-ufo-overlay--crash .early-access-ufo {
  animation: early-access-ufo-crash 0.9s cubic-bezier(0.36, 0.05, 0.65, 1) forwards;
}

.early-access-ufo__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 8px 18px rgba(var(--illustration-accent-rgb), 0.38));
}

@keyframes early-access-ufo-fly {
  0% {
    transform: translate3d(0, 22%, 0) scale(0.92);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  55% {
    transform: translate3d(0, -35%, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -120%, 0) scale(0.96);
    opacity: 0;
  }
}

@keyframes early-access-ufo-crash {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 52%, 0) rotate(-22deg) scale(0.78);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .early-access-ufo-overlay--active .early-access-ufo {
    animation: none;
    opacity: 0;
  }

  .early-access-ufo-overlay--active.early-access-ufo-overlay--crash .early-access-ufo {
    animation: none;
    opacity: 0;
  }
}
