/* Colours and shapes match the iOS app's Theme.swift. */
:root {
  --butter: #ffe98a;
  --mint: #9ff3d6;
  --sky: #9cc8ff;
  --lavender: #c4a8ff;
  --pink: #ff9ed8;
  --peach: #ffc59e;
  --ink: #1c1b22;
  --accent: #6b4eff;
  --bg: #faf8ff;
  --card: #ffffff;
  --muted: #8a8794;
  --soft: #efeef2;
  --holo: linear-gradient(100deg, var(--pink), var(--peach) 50%, var(--butter));
  --holo-cool: linear-gradient(100deg, var(--mint), var(--sky) 35%, var(--lavender) 65%, var(--pink));
  --radius: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --card: #1e1b27;
    --ink-text: #f4f2fa;
    --muted: #a19eab;
    --soft: #2a2733;
    --accent: #9d8bff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-text, var(--ink));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 20px;
  padding-bottom: 20px;
}
.hero-logo { display: block; width: 400px; max-width: 100%; height: auto; margin: 0 0 32px; }
@media (prefers-color-scheme: dark) { .hero-logo { filter: invert(1); } }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: inherit; }

/* Sticker style: ink outline with a hard offset shadow, for the thing to act on. */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--holo);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.sticker small { font-weight: 500; opacity: 0.7; font-size: 15px; }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.holo-text {
  background: var(--holo-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { font-size: 21px; color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.hero .note { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* Phone screenshots */
.phone {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 44px;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(107, 78, 255, 0.35);
}
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  background: var(--holo-cool);
  filter: blur(60px);
  opacity: 0.55;
  border-radius: 50%;
  z-index: -1;
}

/* Features */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 16px 8px;
}
.features { padding-bottom: 72px; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 24px;
}
.feature:nth-of-type(even) .feature-art { order: -1; }
.feature h2 { font-size: 36px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature .phone { max-width: 280px; }

/* Plain info cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 72px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .stripe { height: 6px; width: 56px; border-radius: 3px; background: var(--holo-cool); margin-bottom: 18px; }

/* Text pages (privacy, support) */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(38px, 6vw, 54px); line-height: 1.05; margin: 0 0 8px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 16px; }
.doc section { background: var(--card); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 16px; }
.doc h2 { font-size: 22px; margin: 0 0 10px; }
.doc section p { margin: 0 0 12px; }
.doc section p:last-child { margin-bottom: 0; }
.doc .contact { text-align: center; padding: 40px 32px; }
.doc .contact p { color: var(--muted); }
.doc .version { color: var(--muted); font-size: 15px; margin: 24px 0 0 8px; }

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

@media (max-width: 800px) {
  body { font-size: 17px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 16px; gap: 40px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-logo { width: 300px; margin: 0 auto 28px; }
  .feature { padding: 32px 24px; gap: 32px; text-align: center; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
  .doc section { padding: 24px; }
}

/* ---------- Flair ---------- */

button.sticker { font-family: inherit; cursor: pointer; }
.sticker { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.sticker:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.sticker:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }

/* Drifting holo blobs behind the hero */
html, body { overflow-x: clip; }
.blobs { position: absolute; top: 0; left: 0; right: 0; height: min(120vh, 1200px); overflow: hidden; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.blobs span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}
.blobs span:nth-child(1) { background: var(--pink); top: -25%; left: -10%; }
.blobs span:nth-child(2) { background: var(--sky); top: 25%; right: -12%; animation-delay: -6s; }
.blobs span:nth-child(3) { background: var(--butter); bottom: -10%; left: 30%; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vw) scale(1.1); }
  100% { transform: translate(-4vw, 6vw) scale(0.95); }
}
@media (prefers-color-scheme: dark) { .blobs span { opacity: 0.18; } }

/* Holo headline shimmer */
.holo-text {
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Floating notification chips around the hero phone */
.hero-art { position: relative; }
.hero-art .phone { transform: rotate(3deg); }
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(28, 27, 34, 0.25);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 2%; left: -16%; }
.chip-2 { top: 46%; right: -8%; animation-delay: -1.7s; }
.chip-3 { bottom: 12%; left: -2%; animation-delay: -3.4s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.mint { background: #14a06b; }
.dot.pink { background: var(--pink); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scrolling band of things people split */
.band {
  overflow: hidden;
  background: var(--holo-cool);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-2deg);
  margin: 0 -20px 88px;
  padding: 16px 0;
}
/* site.js moves the track as the page scrolls */
.band-track { display: flex; width: max-content; will-change: transform; }
.band-track span { font-size: 26px; font-weight: 800; color: var(--ink); padding-right: 0.3em; white-space: nowrap; }

/* Feature cards: soft tint, tag, tilted phone */
.feature { position: relative; overflow: hidden; }
.feature::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  right: -80px;
  bottom: -120px;
  z-index: 0;
}
.feature:nth-of-type(even)::after { right: auto; left: -80px; }
.feature > * { position: relative; z-index: 1; }
.tint-pink::after { background: var(--pink); }
.tint-butter::after { background: var(--butter); }
.tint-mint::after { background: var(--mint); }
.tint-lavender::after { background: var(--lavender); }
.tag {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--holo-cool);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.feature .phone { transform: rotate(-3deg); }
.feature:nth-of-type(even) .phone { transform: rotate(3deg); }

/* Screenshots swing up into place as each feature scrolls in */
.js .feature.reveal .phone {
  opacity: 0;
  transform: translateY(90px) rotate(-12deg) scale(0.92);
  transition: opacity 0.8s ease 0.15s, transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.15s;
}
.js .feature.reveal:nth-of-type(even) .phone { transform: translateY(90px) rotate(12deg) scale(0.92); }
.js .feature.reveal.in .phone { opacity: 1; transform: rotate(-3deg); }
.js .feature.reveal.in:nth-of-type(even) .phone { transform: rotate(3deg); }

/* Closing call to action */
.finale {
  text-align: center;
  background: var(--holo-cool);
  border-radius: 40px;
  padding: 64px 24px 72px;
  margin-bottom: 72px;
  color: var(--ink);
}
.finale-logo { width: 140px; height: auto; }
.finale h2 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; margin: 16px 0 8px; line-height: 1.05; }
.finale p { margin: 0; font-size: 20px; opacity: 0.75; }

/* Scroll-in */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Cha-ching confetti */
.confetti {
  position: fixed;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
  animation: confetti 1.1s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
@keyframes confetti {
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}
.cha-ching {
  position: fixed;
  z-index: 11;
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  pointer-events: none;
  animation: pop 1.1s ease-out forwards;
}
@keyframes pop {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20% { transform: translate(-50%, -30px) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -90px) scale(1); opacity: 0; }
}

@media (max-width: 800px) {
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip-1 { top: 0; left: 0; }
  .chip-2 { right: 0; }
  .chip-3 { left: 4%; }
  .band-track span { font-size: 20px; }
  .band { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .feature.reveal .phone { opacity: 1; }
  .js .reveal { transform: none; }
  .js .feature.reveal .phone { transform: rotate(-3deg); }
  .js .feature.reveal:nth-of-type(even) .phone { transform: rotate(3deg); }
}
