:root {
  --purple: #875D90;
  --purple-10: rgba(135, 93, 144, 0.10);
  --purple-25: rgba(135, 93, 144, 0.25);
  --lavender: #A57CCB;
  --yellow: #EAEFB2;
  --orange: #F26A38;
  --dark-bg: #1A131F;
  --dark-surface: #231A2C;
  --warm-cream: #F5E8B8;
  --muted-cream: #CDBFA5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg);
  color: var(--warm-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lavender);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Top bar ─────────────────────────────────────────── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 56px;
  padding: 0 24px;
  background: var(--purple);
  border-bottom: 1px solid var(--lavender);
}

.top-bar__nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar__nav a {
  color: var(--warm-cream);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.top-bar__nav a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--dark-surface);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-cream);
}

.site-footer__logo {
  height: 300px;
  margin-bottom: 12px;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.site-footer__links a {
  color: var(--muted-cream);
  font-size: 12px;
}

.site-footer a:hover {
  color: var(--lavender);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
}

.hero__title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: 22px;
  font-weight: 400;
  color: var(--muted-cream);
  margin-bottom: 40px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--secondary {
  background: var(--purple-25);
  color: var(--warm-cream);
  border: 1px solid var(--purple);
}

/* ── Screenshots section ─────────────────────────────── */
.screenshots {
  padding: 64px 24px;
  text-align: center;
}

.screenshots__heading {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 48px;
}

.screenshots__grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── Phone frame placeholder ─────────────────────────── */
.phone-frame {
  width: 200px;
  flex-shrink: 0;
}

.phone-frame__device {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18;
  border-radius: 24px;
  border: 2px solid var(--lavender);
  background: var(--dark-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.phone-frame__caption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-cream);
}

/* ── Secondary CTA band ──────────────────────────────── */
.cta-band {
  background: var(--dark-surface);
  padding: 48px 24px;
  text-align: center;
}

.cta-band__text {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ── Card (used on beta page) ────────────────────────── */
.card {
  background: var(--purple-10);
  border: 1px solid var(--purple-25);
  border-radius: 12px;
  padding: 32px;
  max-width: 680px;
  margin: 48px auto;
}

.card__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__subtitle {
  font-size: 14px;
  color: var(--muted-cream);
  margin-bottom: 24px;
}

.form-embed {
  width: 100%;
  min-height: 700px;
  border: none;
  border-radius: 8px;
  background: #fff;
}

/* ── Prose container (legal pages) ───────────────────── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.prose h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.prose h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lavender);
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p, .prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-cream);
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose .last-updated {
  font-size: 13px;
  color: rgba(205, 191, 165, 0.6);
  margin-bottom: 24px;
}

.prose a {
  color: var(--lavender);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--purple-25);
  margin: 32px 0;
}

/* ── Splash overlay ──────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash--leaving {
  transform: translateY(-100%);
}

.splash--done {
  display: none;
}

.splash__logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    transition-duration: 0.2s;
  }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero__title { font-size: 36px; }
  .hero__tagline { font-size: 17px; }
  .top-bar { padding: 0 16px; }
  .top-bar__nav { gap: 12px; }
  .top-bar__nav a { font-size: 13px; }
  .screenshots__grid { gap: 24px; }
  .phone-frame { width: 160px; }
  .card { padding: 20px; margin: 24px 16px; }
}

@media (max-width: 420px) {
  .phone-frame { width: 130px; }
  .top-bar__nav a { font-size: 12px; }
}
