/* ---------- Tokens ---------- */
:root {
  --cream: #EDE8E0;
  --purple-50:  #F5F3FF;
  --purple-100: #EDE9FF;
  --purple-150: #E2DCFD;
  --purple-200: #CEC6FA;
  --purple-accent: #9B8FE8;
  --ink: #14121E;
  --ink-85: rgba(20, 18, 30, 0.85);
  --ink-70: rgba(20, 18, 30, 0.70);
  --ink-60: rgba(20, 18, 30, 0.60);
  --ink-55: rgba(20, 18, 30, 0.55);
  --ink-45: rgba(20, 18, 30, 0.45);
  --ink-10: rgba(20, 18, 30, 0.10);
  --ink-05: rgba(20, 18, 30, 0.05);

  --font-display: "Poppins", ui-sans-serif, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  /* legacy aliases kept for product-moment serif use */
  --font-serif: var(--font-display);
  --font-sans: var(--font-body);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(65% 28% at 98%  3%,  rgba(190, 178, 252, 0.55) 0%, transparent 55%),
    radial-gradient(55% 22% at  0% 22%, rgba(215, 207, 255, 0.45) 0%, transparent 55%),
    radial-gradient(60% 25% at 88% 42%, rgba(200, 192, 255, 0.38) 0%, transparent 55%),
    radial-gradient(50% 22% at  8% 62%, rgba(210, 200, 255, 0.35) 0%, transparent 55%),
    radial-gradient(58% 26% at 55% 82%, rgba(195, 185, 252, 0.40) 0%, transparent 55%),
    radial-gradient(45% 18% at  5% 95%, rgba(215, 207, 255, 0.30) 0%, transparent 52%),
    linear-gradient(170deg, #E8E2F8 0%, #EBE6F2 30%, #EDE8F5 65%, #E9E4F2 100%);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 180ms ease; }

/* ---------- Layout ---------- */
.container       { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow  { max-width: 960px; }
.container--xnarrow { max-width: 760px; }
.text-center { text-align: center; }

.section { padding: 72px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section__head { text-align: center; margin-bottom: 48px; }
.section__head .muted { margin-top: 16px; font-size: 18px; }

/* ---------- Backgrounds — transparent overlays only, body carries the base ---------- */
.bg-warm { background: transparent; }
.bg-soft { background: transparent; }
.bg-cta  {
  position: relative;
}
.bg-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 70% at 50% 40%, rgba(190, 178, 252, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.display--xl { font-size: clamp(60px, 9vw, 88px); line-height: 1.0; letter-spacing: -0.03em; }
.display--lg { font-size: clamp(40px, 5.5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.display--md { font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-85); }
.display--sm { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.tagline { margin-top: 24px; }
.lede { margin-top: 24px; max-width: 30rem; font-size: 18px; line-height: 1.75; color: var(--ink-55); }
.muted { color: var(--ink-60); font-size: 16px; line-height: 1.7; }
.muted--sm { font-size: 14px; margin-top: 4px; color: var(--ink-55); }

/* ---------- Squiggle underline ---------- */
.squiggle-wrap {
  position: relative;
  display: inline-block;
}
.squiggle-wrap::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q7.5 0 15 4 Q22.5 8 30 4 Q37.5 0 45 4 Q52.5 8 60 4 Q67.5 0 75 4 Q82.5 8 90 4 Q97.5 0 105 4 Q112.5 8 120 4 Q127.5 0 135 4 Q142.5 8 150 4 Q157.5 0 165 4 Q172.5 8 180 4 Q187.5 0 195 4 Q202.5 8 210 4 Q217.5 0 225 4 Q232.5 8 240 4 Q247.5 0 255 4 Q262.5 8 270 4 Q277.5 0 285 4 Q292.5 8 300 4' stroke='%23C4BAF5' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: squiggle-draw 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}
@keyframes squiggle-draw {
  to { background-size: 100% 100%; }
}
@keyframes squiggle-wiggle {
  0%, 100% { transform: translateY(0px);    background-size: 100% 100%; }
  30%       { transform: translateY(-2.5px); background-size: 100% 100%; }
  65%       { transform: translateY(2px);    background-size: 100% 100%; }
}
.tagline:hover .squiggle-wrap::after {
  animation: squiggle-wiggle 0.42s ease-in-out infinite;
}

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-60);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--ink-10);
  backdrop-filter: blur(6px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover {
  background: rgba(20, 18, 30, 0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(20, 18, 30, 0.22);
}
.btn--dark:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--ink-10);
}
.btn--ghost:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--ink-10), 0 4px 14px -4px rgba(20, 18, 30, 0.08);
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; }
@media (min-width: 1024px) { .hero { padding: 140px 0 120px; } }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero__inner { flex-direction: row; gap: 80px; text-align: left; }
}

.hero__text { flex: 1; }
.hero__text .lede { margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .hero__text .lede { margin-left: 0; } }

/* Hero load animations */
.hero__text .pill    { animation: fadeUp 0.55s ease-out both; }
.hero__text h1       { animation: fadeUp 0.55s ease-out 0.10s both; }
.hero__text .tagline { animation: fadeUp 0.55s ease-out 0.18s both; }
.hero__text .lede    { animation: fadeUp 0.55s ease-out 0.28s both; }
.hero__ctas          { animation: fadeUp 0.55s ease-out 0.40s both; }
.hero__phone         { animation: fadeUp 0.65s ease-out 0.22s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) { .hero__ctas { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .hero__ctas { justify-content: flex-start; } }

.hero__phone { flex: 1; display: flex; justify-content: center; }

/* ---------- Phone halo (nibby-style) ---------- */
.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 7s ease-in-out 1s infinite;
}
.phone-wrap::before {
  content: '';
  position: absolute;
  inset: -72px -56px;
  border-radius: 60px;
  background:
    radial-gradient(circle at 28% 38%, rgba(225, 140, 255, 0.65) 0%, transparent 42%),
    radial-gradient(circle at 72% 62%, rgba(100, 120, 255, 0.58) 0%, transparent 42%),
    radial-gradient(circle at 60% 22%, rgba(155, 143, 232, 0.52) 0%, transparent 38%),
    radial-gradient(circle at 20% 78%, rgba(200, 140, 255, 0.45) 0%, transparent 38%);
  filter: blur(52px);
  animation: halo-spin 12s linear infinite;
  z-index: 0;
}
.phone-wrap .phone {
  position: relative;
  z-index: 1;
  animation: none; /* float is now on .phone-wrap */
}
@keyframes halo-spin {
  0%   { transform: rotate(0deg)   scale(1);    }
  50%  { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1);    }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  padding: 6px;
  border-radius: 44px;
  box-shadow:
    0 32px 64px -20px rgba(20, 18, 30, 0.26),
    0 0 0 1px rgba(20, 18, 30, 0.07);
  animation: float 7s ease-in-out 1s infinite;
}
@media (min-width: 640px)  { .phone { width: 310px; } }
@media (min-width: 1024px) { .phone { width: 330px; } }

@keyframes float {
  0%, 100% { transform: translateY(0px)   rotate3d(1, 0.5, 0,  1.5deg); }
  50%       { transform: translateY(-10px) rotate3d(1, 0.5, 0, -1deg);  }
}

.phone__screen {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(175deg, var(--purple-100) 0%, #EEE9F0 40%, #EDE8E0 100%);
}
.phone__notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 22px;
  background: var(--ink);
  border-radius: 9999px;
  z-index: 2;
}
.phone__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 18px 0;
}
.phone__label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.phone__content > div:nth-child(1) { animation: slideCard 0.5s ease-out 0.85s both; }
.phone__content > div:nth-child(2) { animation: slideCard 0.5s ease-out 1.10s both; }
.phone__card {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-85);
}
.phone__card--reframe {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(20, 18, 30, 0.04), 0 2px 8px -2px rgba(20, 18, 30, 0.06);
  font-style: italic;
  color: var(--ink-70);
  animation: slideCard 0.55s ease-out 1.0s both;
}
.phone__card--action {
  background: var(--purple-100);
  box-shadow: inset 0 0 0 1px var(--purple-150);
  animation: slideCard 0.55s ease-out 1.2s both;
}
@keyframes slideCard {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.phone__status {
  margin-top: auto;
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-45);
  animation: slideCard 0.5s ease-out 1.4s both;
}
.dot {
  position: relative;
  display: inline-flex;
  width: 8px; height: 8px;
}
.dot::after {
  content: "";
  position: absolute; inset: 0;
  background: #10b981;
  border-radius: 9999px;
}
.dot__pulse {
  position: absolute; inset: 0;
  background: #34d399;
  border-radius: 9999px;
  opacity: 0.6;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Product moment ---------- */
.product-demo {
  padding: 0 0 88px;
}
@media (min-width: 1024px) { .product-demo { padding: 0 0 112px; } }

.product-moment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(20, 18, 30, 0.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 32px -8px rgba(20, 18, 30, 0.07),
    0 0 0 1px rgba(20, 18, 30, 0.05);
}
@media (min-width: 640px) {
  .product-moment { grid-template-columns: 1fr 1px 1fr 1px 1fr; }
}

.product-moment__divider {
  display: none;
  background: rgba(20, 18, 30, 0.07);
}
@media (min-width: 640px) { .product-moment__divider { display: block; } }

.product-moment__step {
  padding: 28px 28px 32px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.product-moment.in-view > .product-moment__step:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.05s;
}
.product-moment.in-view > .product-moment__step:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 0.22s;
}
.product-moment.in-view > .product-moment__step:nth-child(5) {
  opacity: 1; transform: translateY(0); transition-delay: 0.39s;
}
.product-moment__step--accent {
  background: var(--purple-100);
}

.product-moment__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 12px;
}
.product-moment__step--accent .product-moment__label {
  color: var(--purple-accent);
  opacity: 0.75;
}

.product-moment__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}
.product-moment__step--accent .product-moment__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-85);
  line-height: 1.55;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay:  80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- How it works steps ---------- */
.step {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--ink-05), 0 2px 12px -4px rgba(20, 18, 30, 0.05);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease, background 300ms ease;
}
.step:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: inset 0 0 0 1px rgba(155, 143, 232, 0.2), 0 24px 48px -12px rgba(20, 18, 30, 0.16);
  background: rgba(255, 255, 255, 0.85);
}
@media (min-width: 640px) { .step { text-align: left; } }

.step__num {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-accent);
  margin-bottom: 24px;
}
.step__num--peach    { background: var(--purple-100); }
.step__num--rose     { background: var(--purple-150); }
.step__num--lavender { background: var(--purple-200); }

.step h3 { margin-bottom: 12px; }
.step .muted { font-size: 16px; }

/* ---------- Differentiation cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--ink-05), 0 2px 12px -4px rgba(20, 18, 30, 0.05);
  backdrop-filter: blur(8px);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease, background 300ms ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: inset 0 0 0 1px rgba(155, 143, 232, 0.25), 0 24px 56px -12px rgba(20, 18, 30, 0.18);
  background: rgba(255, 255, 255, 0.88);
}
.card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--purple-accent);
}
.card__icon svg { width: 16px; height: 16px; }
.card__icon--peach    { background: var(--purple-100); }
.card__icon--rose     { background: var(--purple-150); }
.card__icon--lavender { background: var(--purple-200); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 16px; }

/* ---------- Built for ---------- */
.pill-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  font-size: 16px;
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--ink-05), 0 2px 8px -4px rgba(20, 18, 30, 0.04);
  backdrop-filter: blur(8px);
  line-height: 1.5;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms ease, background 300ms ease;
}
.pill-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: inset 0 0 0 1px rgba(155, 143, 232, 0.2), 0 20px 44px -10px rgba(20, 18, 30, 0.14);
  background: rgba(255, 255, 255, 0.88);
}
.pill-card__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-accent);
  margin-top: 1px;
}
.pill-card__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------- Final CTA / waitlist form ---------- */
#waitlist .muted { margin-top: 16px; font-size: 18px; }

.waitlist {
  margin: 36px auto 0;
  width: 100%;
  max-width: 28rem;
}
.waitlist__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 6px 6px 20px;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--ink-10), 0 4px 16px -6px rgba(20, 18, 30, 0.08);
  backdrop-filter: blur(8px);
  transition: box-shadow 200ms ease;
}
.waitlist__field:focus-within {
  box-shadow: inset 0 0 0 1.5px rgba(155, 143, 232, 0.45), 0 4px 16px -6px rgba(20, 18, 30, 0.08);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--ink);
}
.waitlist input::placeholder { color: var(--ink-45); }
.waitlist .btn { padding: 11px 22px; }

.waitlist__message {
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  min-height: 1em;
}
.waitlist__message.is-error   { color: #b91c1c; }
.waitlist__message.is-success { color: #047857; font-size: 14px; }

.fineprint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-45);
  letter-spacing: 0.01em;
}

/* ---------- Footer ---------- */
.footer {
  background: transparent;
  padding: 56px 0 44px;
  border-top: 1px solid var(--ink-10);
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink-10);
}
@media (min-width: 640px) {
  .footer__row { flex-direction: row; align-items: flex-end; }
}
.footer__nav { display: flex; gap: 28px; font-size: 14px; color: var(--ink-55); }
.footer__nav a:hover { color: var(--ink); }
.footer__copy { margin-top: 28px; text-align: center; font-size: 12px; color: var(--ink-45); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html:focus-within { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }
