:root {
  --brand-a: #7b3fe4;
  --brand-b: #e8479a;
  --brand: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  --bg: #fbf9ff;
  --surface: #ffffff;
  --text: #1a1430;
  --muted: #5f5874;
  --line: #e9e4f5;
  --bubble-me: #7b3fe4;
  --bubble-them: #ece8f4;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0b1a;
    --surface: #1a1428;
    --text: #f4f0ff;
    --muted: #b3aac8;
    --line: #2d2540;
    --bubble-them: #2a2338;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-a); }
@media (prefers-color-scheme: dark) { a { color: #c4a6ff; } }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--brand); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 17px; border: 0;
  box-shadow: 0 10px 30px -10px rgba(123, 63, 228, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(123, 63, 228, 0.7); }
.button svg { width: 20px; height: 20px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--brand-a); background: rgba(123, 63, 228, 0.1); padding: 6px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #d2bcff; background: rgba(196, 166, 255, 0.14); } }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 850; }
h1 .grad { display: block; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--muted); max-width: 32ch; margin: 0 0 28px; }

/* Chat mock */
.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 36px;
  padding: 22px 18px; box-shadow: 0 30px 80px -30px rgba(60, 20, 120, 0.35);
  max-width: 360px; margin-left: auto;
}
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.35; }
.bubble.them { background: var(--bubble-them); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { background: var(--bubble-me); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.gif-tile {
  align-self: flex-end; width: 200px; height: 200px; border-radius: 22px; overflow: hidden;
  background: var(--brand); position: relative; display: grid; place-items: center;
}
.gif-tile .cat { font-size: 92px; animation: dance 0.9s ease-in-out infinite; transform-origin: 50% 85%; }
.gif-tile .spark { position: absolute; color: #fff; font-size: 26px; animation: twinkle 1.4s ease-in-out infinite; }
.gif-tile .spark.s1 { top: 22px; left: 26px; }
.gif-tile .spark.s2 { top: 38px; right: 28px; animation-delay: 0.45s; font-size: 18px; }
.gif-tile .spark.s3 { bottom: 30px; left: 36px; animation-delay: 0.9s; font-size: 16px; }
.gif-tile .tag { position: absolute; right: 10px; bottom: 10px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, 0.25); padding: 3px 7px; border-radius: 6px; letter-spacing: 0.04em; }
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; padding-left: 4px; }
@keyframes dance {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  25% { transform: rotate(0deg) translateY(-14px); }
  50% { transform: rotate(12deg) translateY(0); }
  75% { transform: rotate(0deg) translateY(-14px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .gif-tile .cat, .gif-tile .spark { animation: none; }
}

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 52ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .num { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan h3 { margin: 0 0 2px; font-size: 22px; }
.plan .amount { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.plan .big { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand) border-box; }

.cta { text-align: center; }
.cta .card { padding: 48px 24px; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 44ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal and support pages */
.doc { max-width: 720px; padding: 24px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-top: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--muted); margin-top: -6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 700; }
.doc details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.doc summary { cursor: pointer; font-weight: 700; }
.doc details p { margin: 10px 0 0; }

/* Shared GIF page */
.shared { min-height: 100vh; display: flex; flex-direction: column; }
.shared main { flex: 1; display: grid; place-items: center; padding: 12px 20px 48px; }
.shared .frame { width: 100%; max-width: 420px; text-align: center; }
.shared .gif { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(60, 20, 120, 0.4); image-rendering: auto; }
.shared h1 { font-size: 30px; margin: 28px 0 8px; letter-spacing: -0.02em; }
.shared p { color: var(--muted); margin: 0 0 24px; }
.shared .report { display: inline-block; margin-top: 28px; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { margin: 0 auto; }
  .steps, .plans { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav .hide-sm { display: none; }
}
