/* =========================================================================
   Thanked — landing page styles
   Tokens lifted from the iOS app (AppBackground.swift, AppFont.swift,
   GetStartedView.swift, IntroView.swift) so the web feels like the same
   product.
   ========================================================================= */

@font-face {
  font-family: "Lucky";
  src: url("assets/fonts/Lucky.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Core brand — matches Color.appPurple / Color.appPink */
  --app-purple: rgb(166, 77, 255);          /* 0.65, 0.30, 1.00 */
  --app-pink:   rgb(255, 153, 217);         /* 1.00, 0.60, 0.85 */

  /* Title gradient (from titleGradient(): pink → purple) */
  --title-grad-from: rgb(217, 89, 166);     /* 0.85, 0.35, 0.65 */
  --title-grad-to:   rgb(166, 77, 255);

  /* Avatar gradients from SharedDevicesDemo */
  --avatar-you-from:     rgb(166, 77, 255);
  --avatar-you-to:       rgb(115, 51, 217); /* 0.45, 0.20, 0.85 */
  --avatar-partner-from: rgb(255, 153, 217);
  --avatar-partner-to:   rgb(217, 89, 166);

  --ink:        #111114;
  --ink-soft:   #4b4b54;
  --ink-faint:  rgba(17, 17, 20, 0.55);
  --hairline:   rgba(17, 17, 20, 0.08);
  --surface:    #ffffff;

  --shadow-soft: 0 10px 30px rgba(166, 77, 255, 0.10),
                 0 4px 12px rgba(17, 17, 20, 0.06);
  --shadow-card: 0 4px 12px rgba(17, 17, 20, 0.06);

  --radius-card: 24px;
  --radius-sm:   16px;

  --container: 1120px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fdf7fb; /* a faint warm tint behind the gradient overlay */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Background gradient (AppBackground.prominent, but softer
              so it works as a full-page wash rather than a UI backdrop) ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 0% 0%,
      rgba(166, 77, 255, 0.32) 0%,
      rgba(166, 77, 255, 0) 60%),
    radial-gradient(70% 80% at 100% 10%,
      rgba(255, 153, 217, 0.28) 0%,
      rgba(255, 153, 217, 0) 65%),
    linear-gradient(160deg,
      rgba(166, 77, 255, 0.18) 0%,
      rgba(255, 153, 217, 0.14) 35%,
      rgba(255, 153, 217, 0.08) 65%,
      rgba(255, 153, 217, 0.04) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(166, 77, 255, 0.25);
}

.brand-wordmark {
  font-family: "Lucky", "Nunito Sans", sans-serif;
  font-size: 28px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: rotate(-2deg);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav a { transition: color 160ms ease; }
.nav a:hover { color: var(--app-purple); }

.nav-cta {
  background: #000;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
}
.nav-cta:hover { color: #fff !important; opacity: 0.9; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 28px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.wordmark {
  font-family: "Lucky", "Nunito Sans", sans-serif;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 0.95;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: rotate(-3deg);
  transform-origin: left center;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 520px;
}

.lede em {
  font-style: italic;
  color: var(--app-purple);
  font-weight: 600;
}

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

/* ---------- Buttons (matches GetStartedView capsule + black fill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}

.btn-primary {
  background: #000;
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 20, 0.20);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(17, 17, 20, 0.24);
}

.btn-large {
  padding: 20px 32px;
  font-size: 17px;
}

.btn-ghost {
  color: var(--app-purple);
  background: rgba(166, 77, 255, 0.08);
  border: 1px solid rgba(166, 77, 255, 0.22);
}
.btn-ghost:hover { background: rgba(166, 77, 255, 0.14); }

.apple-glyph {
  width: 16px;
  height: 18px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM256.6 84.5c30.3-36 27.6-68.8 26.7-80.5-26.8 1.6-57.8 18.3-75.5 38.8-19.5 22-31 49.2-28.5 79.9 29 2.2 55.5-12.7 77.3-38.2z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM256.6 84.5c30.3-36 27.6-68.8 26.7-80.5-26.8 1.6-57.8 18.3-75.5 38.8-19.5 22-31 49.2-28.5 79.9 29 2.2 55.5-12.7 77.3-38.2z'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ---------- Hero phone mockup ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: 320px;
  height: 640px;
  background: #1a1a1f;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(166, 77, 255, 0.35),
    0 30px 60px -30px rgba(17, 17, 20, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
  transform: rotate(-2deg);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }

.phone::before {
  /* Dynamic island */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background:
    radial-gradient(60% 70% at 0% 0%,
      rgba(166, 77, 255, 0.22) 0%,
      rgba(166, 77, 255, 0) 60%),
    radial-gradient(70% 70% at 100% 10%,
      rgba(255, 153, 217, 0.20) 0%,
      rgba(255, 153, 217, 0) 65%),
    #fdf7fb;
  overflow: hidden;
  padding: 56px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-statusbar {
  position: absolute;
  top: 16px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.phone-dots { display: inline-flex; align-items: center; gap: 5px; }
.phone-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.phone-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
}
.phone-title {
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phone-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avatar-you-from), var(--avatar-you-to));
  box-shadow: 0 4px 10px rgba(166, 77, 255, 0.30);
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}
.phone-grid .gift-card { font-size: 11px; }
.phone-grid .gift-photo { aspect-ratio: 5 / 6; }
.phone-grid .gift-title { font-size: 12px; }
.phone-grid .gift-date  { font-size: 9px; }
.phone-grid .gift-from  { font-size: 11px; }

/* ---------- Gift cards (matches GiftCardView) ---------- */
.gift-card {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gift-card.compact {
  flex-direction: row;
  align-items: flex-start;
  padding: 12px;
  gap: 8px;
}
.gift-card.compact .gift-meta { padding: 0; flex: 1; }

.gift-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  background-size: cover;
  background-position: center;
  background-color: #f0e4f4;
}
.gift-photo-ironman {
  background-image:
    linear-gradient(135deg, rgba(255, 64, 64, 0.85), rgba(170, 30, 30, 0.85)),
    radial-gradient(circle at 50% 40%, rgba(255, 215, 64, 0.6), transparent 50%);
}
.gift-photo-ironman::after {
  content: "🦸";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 38px;
}
.gift-photo-croissant {
  background-image:
    linear-gradient(135deg, rgba(255, 220, 160, 0.95), rgba(214, 158, 92, 0.95));
}
.gift-photo-croissant::after {
  content: "🥐";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 44px;
}
.gift-photo-allclad {
  background-image:
    linear-gradient(135deg, rgba(220, 220, 230, 1), rgba(160, 160, 175, 1));
}
.gift-photo-allclad::after {
  content: "🍳";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 44px;
}
.gift-photo-kitchenaid {
  background-image:
    linear-gradient(135deg, rgba(255, 200, 220, 0.9), rgba(217, 89, 166, 0.9));
}
.gift-photo-kitchenaid::after {
  content: "🧁";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 44px;
}

.thanked-pill {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--app-purple);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(17, 17, 20, 0.08);
}
.thanked-pill.pending { color: var(--ink-faint); }
.thanked-pill.inline { position: static; }

.gift-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}
.gift-date {
  font-size: 10px;
  font-weight: 700;
  color: var(--app-purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gift-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.gift-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

/* ---------- Feature sections ---------- */
.feature {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature.reverse .feature-copy   { order: 2; }
.feature.reverse .feature-visual { order: 1; }

.feature-copy { max-width: 480px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-purple);
  background: rgba(166, 77, 255, 0.10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.feature-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.015em;
}

.feature-body {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
}

.feature-visual { display: flex; justify-content: center; }

/* Surface card — generic white panel, matches IntroView previewSurface */
.surface-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(166, 77, 255, 0.18),
              0 6px 16px rgba(17, 17, 20, 0.06);
  width: 100%;
  max-width: 360px;
}

/* ---------- Feature 1: card row ---------- */
.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 460px;
}

/* ---------- Feature 2: thanked toggle demo ---------- */
.thanked-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 14px;
}
.thanked-label {
  font-size: 17px;
  font-weight: 800;
}
.thanked-divider {
  height: 1px;
  background: var(--hairline);
  margin: 6px 0;
}
.thanked-divider.inset { margin-left: 36px; }

.ios-toggle {
  position: relative;
  width: 52px; height: 32px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.16);
  transition: background 240ms ease;
  display: inline-block;
}
.ios-toggle.on { background: var(--app-purple); }
.ios-toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(17, 17, 20, 0.20);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ios-toggle.on .ios-toggle-knob { transform: translateX(20px); }

.thanked-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}
.method-icon { width: 24px; font-size: 18px; }
.method-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.method-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--title-grad-from), var(--app-purple));
  border: 1.5px solid var(--app-purple);
}
.method-check.empty {
  background: transparent;
  border: 1.5px solid rgba(17, 17, 20, 0.20);
}

/* ---------- Feature 3: shared list demo ---------- */
.shared-demo { padding: 24px 24px 28px; }

.shared-avatars {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 6px 0 18px;
}
.shared-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.avatar-glyph {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.avatar-you .avatar-glyph {
  background: linear-gradient(135deg, var(--avatar-you-from), var(--avatar-you-to));
  box-shadow: 0 6px 16px rgba(166, 77, 255, 0.30);
}
.avatar-partner .avatar-glyph {
  background: linear-gradient(135deg, var(--avatar-partner-from), var(--avatar-partner-to));
  box-shadow: 0 6px 16px rgba(217, 89, 166, 0.28);
}
.avatar-label {
  font-size: 13px;
  font-weight: 700;
}

.shared-divider {
  height: 1px;
  background: var(--hairline);
  margin-bottom: 16px;
}

.shared-stripes {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shared-stripes li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.you {
  background: linear-gradient(135deg, var(--avatar-you-from), var(--avatar-you-to));
}
.dot.partner {
  background: linear-gradient(135deg, var(--avatar-partner-from), var(--avatar-partner-to));
}
.stripe {
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.10);
}
.stripe.w-88 { width: 88%; }
.stripe.w-74 { width: 74%; }
.stripe.w-62 { width: 62%; }
.stripe.w-55 { width: 55%; }
.stripe.w-46 { width: 46%; }

/* ---------- Feature 4: search demo ---------- */
.search-demo {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(166, 77, 255, 0.08);
  border: 1px solid rgba(166, 77, 255, 0.22);
  box-shadow: 0 10px 24px rgba(166, 77, 255, 0.18);
}
.search-glyph {
  color: var(--app-purple);
  font-size: 17px;
}
.search-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Final CTA ---------- */
.cta {
  max-width: 760px;
  margin: 40px auto 100px;
  padding: 64px 36px;
  text-align: center;
  border-radius: 32px;
  background:
    radial-gradient(80% 100% at 50% 0%,
      rgba(166, 77, 255, 0.20),
      rgba(255, 153, 217, 0.12) 60%,
      rgba(255, 255, 255, 0.6) 100%),
    rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 60px rgba(166, 77, 255, 0.20);
}
.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}
.cta-body {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(166, 77, 255, 0.12);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon { width: 28px; height: 28px; border-radius: 6px; }
.footer-wordmark {
  font-family: "Lucky", "Nunito Sans", sans-serif;
  font-size: 22px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-copy {
  margin: 0;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--app-purple); }

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--app-purple);
  margin-bottom: 32px;
}
.legal-back::before {
  content: "←";
  font-size: 16px;
  line-height: 1;
}
.legal-back:hover { text-decoration: underline; }

.legal-header {
  margin-bottom: 40px;
}
.legal-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 12px;
  background: linear-gradient(90deg, var(--title-grad-from), var(--title-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.015em;
}
.legal-meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
}

.legal-body {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(166, 77, 255, 0.10),
              0 4px 12px rgba(17, 17, 20, 0.04);
}

.legal-body section + section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-body h2 .section-num {
  display: inline-block;
  font-family: "Nunito Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--app-purple);
  background: rgba(166, 77, 255, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: 2px;
}

.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--ink);
}

.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-body p { margin: 0 0 14px; }
.legal-body p:last-child { margin-bottom: 0; }

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-body ul li,
.legal-body ol li { margin-bottom: 8px; }

.legal-body a {
  color: var(--app-purple);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.legal-body a:hover { color: var(--title-grad-from); }

.legal-body strong { color: var(--ink); font-weight: 700; }

.legal-intro {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 600px) {
  .legal-body { padding: 28px 22px; border-radius: 20px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .hero-copy { max-width: none; }
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 28px;
  }
  .feature.reverse .feature-copy   { order: 0; }
  .feature.reverse .feature-visual { order: 0; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 520px) {
  .phone {
    width: 280px;
    height: 560px;
    border-radius: 40px;
  }
  .phone-screen { border-radius: 32px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
