:root {
  --purple: #6d28d9;
  --purple-deep: #5b21b6;
  --purple-ink: #2e1065;
  --purple-soft: #ede9fe;
  --purple-mist: #f5f3ff;
  --violet: #7c3aed;
  --ink: #1e1b4b;
  --mute: #64748b;
  --paper: #fafafa;
  --line: rgba(109, 40, 217, 0.14);
  --white: #ffffff;
  --max: 1120px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

/* Reveal: visible by default so content never disappears if JS fails */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.14s; }
.hero .reveal:nth-child(3) { transition-delay: 0.24s; }
.hero .reveal:nth-child(4) { transition-delay: 0.34s; }

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header .brand-lockup {
  color: #fff;
}

.site-header.is-scrolled .brand-lockup {
  color: var(--purple-ink);
}

.site-header .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .nav-links a {
  color: var(--ink);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--purple) !important;
}

/* —— Hero: brand purple, not a full-page photo —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(167, 139, 250, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(91, 33, 182, 0.55), transparent 50%),
    linear-gradient(145deg, #2e1065 0%, #5b21b6 42%, #6d28d9 72%, #7c3aed 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 10%, transparent 75%);
  animation: gridFloat 24s linear infinite;
  pointer-events: none;
}

@keyframes gridFloat {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(6.5rem, 12vh, 8rem) clamp(1.4rem, 4vw, 2.5rem) clamp(3rem, 7vh, 4.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--purple-deep);
  box-shadow: 0 10px 30px rgba(46, 16, 101, 0.25);
}

.btn-primary:hover {
  background: var(--purple-soft);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Phone mock — shows this is an app, not a photo site */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: min(100%, 280px);
  aspect-ratio: 9 / 17.5;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #1e1b4b, #312e81);
  box-shadow:
    0 30px 60px rgba(15, 10, 40, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: phoneFloat 5.5s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(180deg, #7c3aed 0%, #5b21b6 55%, #2e1065 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}

.phone-screen img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.phone-screen strong {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.phone-screen span {
  font-size: 0.82rem;
  opacity: 0.88;
  max-width: 16ch;
  line-height: 1.35;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.4rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--purple-ink);
  max-width: 16ch;
}

.section .support {
  margin: 0 0 2.5rem;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 44ch;
}

.what-strip {
  background: var(--purple-mist);
  border-bottom: 1px solid var(--line);
}

.what-copy {
  max-width: 52ch !important;
}

.plain-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

.plain-points li {
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 1rem;
}

.plain-points strong {
  color: var(--purple-ink);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.feature-tile {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: 0 16px 40px rgba(91, 33, 182, 0.1);
}

.feature-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: linear-gradient(160deg, #f5f3ff, #ede9fe);
  overflow: hidden;
}

.feature-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.feature-tile:hover .feature-visual img {
  transform: scale(1.04);
}

.feature-tile h3 {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--purple-ink);
}

.feature-tile p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.feature-tile-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-tile-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.feature-tile-dark .feature-visual {
  background: linear-gradient(160deg, #4c1d95, #2e1065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.feature-tile-dark h3 {
  color: #fff;
}

.feature-tile-dark p {
  color: rgba(237, 233, 254, 0.78);
}

.why-strip {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.why-item {
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  background: var(--purple-mist);
  border: 1px solid var(--line);
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-ink);
}

.why-item p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.band {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(167, 139, 250, 0.35), transparent 50%),
    linear-gradient(155deg, #2e1065 0%, #5b21b6 55%, #6d28d9 100%);
  color: #fff;
}

.band .section-kicker {
  color: #c4b5fd;
}

.band h2 {
  color: #fff;
}

.band .support {
  color: rgba(237, 233, 254, 0.82);
}

.band-cta {
  margin-top: 2.25rem;
}

.band-cta p {
  margin: 0;
  color: rgba(237, 233, 254, 0.85);
}

.band-cta a.mail {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.closing {
  padding: clamp(3.5rem, 8vw, 5rem) clamp(1.4rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--purple-mist);
}

.closing h2 {
  margin: 0 auto 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--purple-ink);
  max-width: 18ch;
}

.closing p {
  margin: 0 auto 1.5rem;
  color: var(--mute);
  max-width: 36ch;
}

.closing .btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.28);
}

.closing .btn-primary:hover {
  background: var(--purple-deep);
}

.site-footer {
  padding: 1.5rem clamp(1.4rem, 4vw, 2.5rem) 2rem;
  background: var(--purple-ink);
  color: rgba(237, 233, 254, 0.7);
  font-size: 0.88rem;
}

.site-footer .section-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: #c4b5fd;
}

/* Legal */
.legal-page {
  background: var(--paper);
  min-height: 100vh;
}

.legal-top {
  background: var(--purple);
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.legal-top .brand-lockup {
  color: #fff;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.75rem clamp(1.25rem, 4vw, 2rem) 4rem;
}

.legal-body h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--purple-ink);
}

.legal-meta {
  color: var(--mute);
  margin: 0 0 2rem;
}

.legal-body h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--purple-ink);
  margin: 1.75rem 0 0.5rem;
}

.legal-body a {
  color: var(--purple);
  font-weight: 600;
}

.legal-body ul {
  padding-left: 1.15rem;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: min(100%, 220px);
  }

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

@media (max-width: 640px) {
  .feature-grid,
  .feature-grid-3,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-priority) {
    display: none;
  }

  .nav-links a.nav-priority[href^="mailto:"] {
    font-size: 0.7rem;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-frame,
  .hero::before {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
