/* ============================================================
   Motion — getonmotion.com
   Premium dark landing page
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #07060c;
  --bg-soft: #0d0a16;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);

  --text: #f4f1fb;
  --muted: #a8a2bd;
  --muted-2: #7c7691;

  --violet: #9d7bff;
  --violet-2: #7c5cff;
  --pink: #ff5c8a;
  --pink-hot: #ff2f6d;
  --blue: #6f8cf5;
  --green: #45d483;

  --grad: linear-gradient(120deg, #9d7bff 0%, #c879f0 45%, #ff5c8a 100%);
  --grad-soft: linear-gradient(120deg, rgba(157,123,255,.18), rgba(255,92,138,.18));

  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --pad-x: clamp(20px, 5vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; } /* smooth scroll handled in JS for speed */
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient background ----------
   Cheap radial-gradient glows on one fixed layer (no costly blur() filter, so
   scrolling stays smooth). A vertical gradient keeps the very top + bottom
   edges a uniform dark so the iPhone status bar / Safari toolbar blend in. */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(72vw 56vh at 10% 18%, rgba(120, 72, 255, 0.26), transparent 60%),
    radial-gradient(58vw 48vh at 97% 40%, rgba(255, 60, 120, 0.13), transparent 58%),
    radial-gradient(88vw 58vh at 52% 100%, rgba(86, 52, 214, 0.22), transparent 62%),
    linear-gradient(180deg, #0d0a16 0%, #07060c 22%, #07060c 78%, #0d0a16 100%);
}
.bg__grain {
  position: absolute; inset: 0; opacity: .28; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted-title { color: var(--muted); }
.kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.kicker--violet { color: var(--violet); }
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(72px, 11vw, 150px) var(--pad-x); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 70px); }
.section__title {
  font-size: clamp(1.9rem, 4.7vw, 3.3rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
}
.section__lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted); max-width: 56ch;
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.02em; }
.brand__orb {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px 1px rgba(157, 123, 255, .8), 0 0 26px 2px rgba(255, 92, 138, .5);
}
.brand__name { font-size: 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 100px;
  font-weight: 700; font-size: .95rem; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn--solid {
  background: #fff; color: #0c0a14;
  box-shadow: 0 6px 24px -6px rgba(255, 255, 255, .35), 0 0 0 1px rgba(255,255,255,.5) inset;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -6px rgba(180, 140, 255, .65), 0 0 0 1px #fff inset;
}
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 34px);
  padding: 8px 8px 8px 22px;
  border-radius: 100px;
  background: rgba(16, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 40px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.nav.scrolled .nav__pill {
  background: rgba(14, 12, 22, 0.78);
  box-shadow: 0 14px 50px -16px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.10);
}
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav__links a {
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 9px 18px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(130px, 17vw, 190px) var(--pad-x) clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px 1px rgba(157,123,255,.9);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
}
.hero__sub {
  margin-top: 24px; font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--muted); max-width: 50ch;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { margin-top: 24px; font-size: .9rem; color: var(--muted-2); }

/* hero phones */
.hero__stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 620px; }
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,47,109,.30), transparent 72%),
              radial-gradient(closest-side, rgba(124,92,255,.30), transparent 70%);
  transform: scale(1.25);
}

/* ---------- phone frame ---------- */
.phone {
  position: relative; width: 278px; padding: 10px; border-radius: 46px;
  background: linear-gradient(155deg, #26242f 0%, #0d0c12 42%, #161520 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.20),
    0 40px 90px -34px rgba(0, 0, 0, 0.9),
    0 0 90px -18px rgba(124, 92, 255, 0.45);
}
.phone__screen {
  position: relative; border-radius: 37px; overflow: hidden;
  aspect-ratio: 1179 / 2556; background: #000;
  container-type: inline-size; /* lets the status bar + island scale with the phone */
}
.phone__screen img { width: 100%; display: block; } /* full iOS screen */

/* faux Apple "9:41" status bar — sits over the real one, scales via container units */
.phone__statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 15cqw; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 7.5cqw; pointer-events: none;
  background: linear-gradient(180deg, var(--sbbg, #06050b) 72%, transparent);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}
.phone__time { font-size: 5cqw; font-weight: 600; color: #fff; letter-spacing: .01em; line-height: 1; }
.phone__sys { display: flex; align-items: center; }
.phone__sys svg { height: 3.7cqw; width: auto; display: block; }
.phone__island { /* Dynamic Island — the unmistakable iPhone tell */
  position: absolute; top: 3.5cqw; left: 50%; transform: translateX(-50%);
  width: 26cqw; height: 8cqw; background: #000; border-radius: 100px; z-index: 3;
  pointer-events: none;
}

.phone--back { width: 262px; transform: rotate(-6deg) translate(-44%, -6%); position: absolute; z-index: 1; }
.phone--front { width: 300px; transform: rotate(4deg) translate(22%, 4%); position: absolute; z-index: 2; }
.phone--front .phone__screen { box-shadow: 0 0 70px -12px rgba(255,47,109,.5); }

/* floating */
.float { animation: floaty 7s ease-in-out infinite; }
.float-slow { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--border-soft);
  background: rgba(255,255,255,.015);
  overflow: hidden; padding: 18px 0; margin-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee__track span {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--muted); white-space: nowrap;
}
.marquee__track .dot { color: var(--violet); font-size: 1rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- value grid (why) ---------- */
.value-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.value-card {
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.value-card:hover { transform: translateY(-5px); background: var(--surface-2); border-color: var(--border); }
.value-card__icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--violet);
  background: var(--grad-soft); border: 1px solid var(--border);
}
.value-card__icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.value-card p { font-size: .96rem; color: var(--muted); line-height: 1.55; }

/* ---------- showcase rows ---------- */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.showcase + .showcase { margin-top: clamp(80px, 12vw, 150px); }
.showcase--reverse .showcase__media { order: 2; }
.showcase__media { display: flex; justify-content: center; }
.lumi .showcase__copy .section__title,
.showcase__copy .section__title { font-size: clamp(1.8rem, 4vw, 3rem); }

.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); font-size: 1.04rem; line-height: 1.5; }
.check-list em { color: var(--text); font-style: normal; }
.check {
  position: absolute; left: 0; top: 0; color: var(--violet); font-weight: 700;
  filter: drop-shadow(0 0 6px rgba(157,123,255,.7));
}
.fine { margin-top: 24px; font-size: .9rem; color: var(--muted-2); font-style: italic; }

/* lumi stacked phones */
.lumi-stack { position: relative; display: flex; justify-content: center; min-height: 620px; width: 100%; }
.phone--lumi-main { width: 286px; transform: rotate(3deg) translateX(14%); position: absolute; z-index: 2; }
.phone--lumi-sub  { width: 248px; transform: rotate(-7deg) translateX(-44%); position: absolute; z-index: 1; opacity: .92; }
.phone--lumi-main .phone__screen { box-shadow: 0 0 70px -10px rgba(124,92,255,.55); }

/* chip / mood rows */
.chip-row, .mood-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 100px; font-size: .9rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.mood {
  padding: 8px 15px; border-radius: 100px; font-size: .9rem; font-weight: 700;
  color: var(--mc, #c9c6d6);
  background: rgba(255,255,255,.05); /* fallback for no color-mix */
  background: color-mix(in srgb, var(--mc, #8a8a99) 13%, transparent);
  border: 1px solid rgba(255,255,255,.12); /* fallback */
  border-color: color-mix(in srgb, var(--mc, #8a8a99) 40%, transparent);
}
/* collapse the mood cloud to a handful + a "+N more" pill */
.mood-row:not(.is-open) .mood:nth-of-type(n+9) { display: none; }
.mood-row.is-open .mood-more { display: none; }
.mood-more {
  padding: 8px 15px; border-radius: 100px; font-size: .9rem; font-weight: 700;
  color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--border);
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.mood-more:hover { background: rgba(255,255,255,.09); color: var(--text); }

/* ---------- chat scene (messaging showcase) ---------- */
.chat-scene {
  position: relative; width: 100%; max-width: 400px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 13px; padding: 8px 4px;
}
.chat-glow {
  position: absolute; inset: -14% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,92,255,.22), transparent 75%),
              radial-gradient(closest-side, rgba(255,47,109,.10), transparent 80%);
}
.chat-day { text-align: center; font-size: .76rem; color: var(--muted-2); margin-bottom: 2px; }
.chat-row { display: flex; align-items: flex-end; gap: 10px; }
.chat-row--in  { justify-content: flex-start; }
.chat-row--out { justify-content: flex-end; }
.chat-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #88a0ff, #5b3fb0 55%, #2a1b63 100%);
  box-shadow: inset 0 -3px 8px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.4);
}
.chat-bubble {
  max-width: 80%; padding: 13px 17px; font-size: 1rem; line-height: 1.42;
  border-radius: 22px; letter-spacing: -0.01em; text-align: left;
}
.chat-bubble--in  { background: #26262c; color: #eceaf2; border-bottom-left-radius: 7px; }
.chat-bubble--out {
  background: #fff; color: #16131f; font-weight: 500; border-bottom-right-radius: 7px;
  box-shadow: 0 0 34px -6px rgba(255,255,255,.5), 0 8px 24px -10px rgba(0,0,0,.6);
}
.chat-status { text-align: right; font-size: .72rem; color: var(--muted-2); margin-top: -5px; padding-right: 6px; }

/* ---------- feature grid ---------- */
.feature-grid {
  margin-top: clamp(80px, 12vw, 150px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat {
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.feat:hover { transform: translateY(-5px); background: var(--surface-2); border-color: var(--border); }
.feat__icon {
  width: 50px; height: 50px; border-radius: 15px; margin-bottom: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
.feat__icon svg { width: 25px; height: 25px; }
.feat__icon--violet { color: var(--violet); background: rgba(157,123,255,.12); }
.feat__icon--pink   { color: var(--pink);   background: rgba(255,92,138,.12); }
.feat__icon--green  { color: var(--green);  background: rgba(69,212,131,.12); }
.feat h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.feat p { font-size: .98rem; color: var(--muted); line-height: 1.55; }

/* ---------- final CTA ---------- */
.cta-final { padding-top: clamp(40px, 6vw, 70px); }
.cta-card {
  position: relative; overflow: hidden;
  max-width: 860px; margin-inline: auto; text-align: center;
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 70px);
  border-radius: 40px;
  background: linear-gradient(160deg, rgba(28,22,46,.85), rgba(14,12,22,.85));
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.8);
}
.cta-card__glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(157,123,255,.35), transparent 70%),
              radial-gradient(closest-side, rgba(255,47,109,.22), transparent 75%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-card__sub { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: clamp(1rem,1.6vw,1.18rem); }

/* ---------- founder note ---------- */
.founder { max-width: 880px; }
.note-card {
  position: relative; overflow: hidden;
  padding: clamp(34px, 6vw, 62px);
  border-radius: 34px;
  background: linear-gradient(165deg, rgba(24,19,44,.72), rgba(12,10,20,.72));
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -50px rgba(0,0,0,.8);
}
.note-card::before {
  content: ""; position: absolute; top: -30%; right: -12%; width: 60%; height: 80%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(157,123,255,.16), transparent 70%);
}
.note-body { margin-top: 22px; position: relative; }
.note-body p { font-size: clamp(1.04rem, 1.6vw, 1.22rem); line-height: 1.65; color: #d9d4e8; margin-bottom: 18px; }
.note-body em { color: var(--text); font-style: italic; }
.note-close { color: var(--text) !important; font-weight: 600; }
.note-sign { margin-top: 24px; position: relative; }
.note-sign__name {
  display: block; font-size: 1.7rem; font-weight: 700; font-style: italic; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.note-sign__role { font-size: .9rem; color: var(--muted); }
.pledge-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.pledge-row li {
  padding: 9px 16px; border-radius: 100px; font-size: .87rem; font-weight: 600;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
}
.pledge-row li::before { content: "✦"; color: var(--violet); margin-right: 7px; }

/* ---------- waitlist form ---------- */
.waitlist-form { margin-top: 30px; max-width: 470px; margin-inline: auto; text-align: left; }
.waitlist-form__fields { display: grid; gap: 10px; }
.cta-card .waitlist-form__fields { grid-template-columns: 1fr 1fr; }
.waitlist-form__input {
  width: 100%; min-width: 0;
  padding: 14px 18px; border-radius: 15px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.waitlist-form__input::placeholder { color: var(--muted-2); }
.waitlist-form__input:focus { outline: none; border-color: var(--violet); background: rgba(255,255,255,.09); }
.waitlist-form__detect {
  margin-top: 11px; font-size: .85rem; font-weight: 600; color: var(--violet);
  display: flex; align-items: center; gap: 7px;
}
.waitlist-form__detect[hidden] { display: none; }
.waitlist-form__detect::before { content: "✦"; font-size: .8rem; }
.waitlist-form .btn { margin-top: 14px; }
.waitlist-form__note { margin-top: 14px; font-size: .86rem; color: var(--muted-2); transition: color .25s var(--ease); }
.waitlist-form__note.is-error { color: #ff7a92; }
.waitlist-form__note.is-success { color: var(--green); font-weight: 600; }
.waitlist-form.done .waitlist-form__fields,
.waitlist-form.done .btn { opacity: .5; pointer-events: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: clamp(50px, 8vw, 80px) var(--pad-x); }
.footer__inner { max-width: var(--maxw); margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer__tag { color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer__links a, .linklike { font-size: .92rem; font-weight: 600; color: var(--muted); transition: color .2s var(--ease); }
.footer__links a:hover, .linklike:hover { color: var(--text); }
.footer__legal { color: var(--muted-2); font-size: .85rem; margin-top: 6px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(4,3,8,.7); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .32s var(--ease);
}
.modal__card {
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  padding: 40px 34px 36px; border-radius: 32px; text-align: center;
  background: linear-gradient(160deg, rgba(26,21,42,.96), rgba(13,11,20,.97));
  border: 1px solid var(--border);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 80px -30px rgba(124,92,255,.5);
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .3s var(--ease), transform .38s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__card { opacity: 1; transform: none; }
.modal__orb {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 120px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(157,123,255,.5), transparent 70%);
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: color .2s, background .2s;
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title { position: relative; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.modal__sub { position: relative; margin: 12px auto 0; color: var(--muted); font-size: .98rem; max-width: 34ch; }

/* mobile: the waitlist becomes a native-style bottom sheet that slides up */
@media (max-width: 620px) {
  .modal { padding: 0; }
  .modal__card {
    position: fixed; left: 0; right: 0; bottom: 0; max-width: none;
    max-height: 88dvh; overflow-y: auto;
    border-radius: 26px 26px 0 0;
    padding: 32px 22px calc(28px + env(safe-area-inset-bottom));
    opacity: 1; transform: translateY(100%);
    transition: transform .42s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
  }
  .modal.is-open .modal__card { opacity: 1; transform: translateY(0); }
  .modal__card::before { /* drag handle */
    content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22);
  }
  .modal__title { font-size: 1.45rem; padding-top: 6px; }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: clamp(116px, 16vw, 150px); gap: 8px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions { justify-content: center; }
  .hero__sub, .section__lead { margin-inline: auto; }

  /* phone clusters: swap absolute overlap for a contained, viewport-scaling cluster */
  .hero__stage, .lumi-stack {
    min-height: 0; margin-top: 36px;
    display: flex; justify-content: center; align-items: flex-start; transform: none;
  }
  .phone--back, .phone--front, .phone--lumi-main, .phone--lumi-sub { position: static; }
  /* scale bezel + corner radius to the (smaller) mobile phone so corners don't clip the screen */
  /* only the small hero/Lumi CLUSTER phones get a tighter radius; the larger
     showcase phones keep the full iPhone curve from the base .phone rule */
  .phone--back, .phone--front, .phone--lumi-main, .phone--lumi-sub {
    padding: clamp(5px, 1.4vw, 9px); border-radius: clamp(22px, 6.5vw, 34px);
  }
  .phone--back .phone__screen, .phone--front .phone__screen,
  .phone--lumi-main .phone__screen, .phone--lumi-sub .phone__screen {
    border-radius: clamp(17px, 5.2vw, 28px);
  }
  .phone--back      { width: 41vw; max-width: 200px; transform: rotate(-6deg); margin-right: -9vw; z-index: 1; }
  .phone--front     { width: 49vw; max-width: 240px; transform: rotate(4deg);  z-index: 2; }
  .phone--lumi-sub  { width: 41vw; max-width: 200px; transform: rotate(-7deg); margin-right: -9vw; z-index: 1; order: -1; opacity: 1; }
  .phone--lumi-main { width: 49vw; max-width: 240px; transform: rotate(3deg);  z-index: 2; }

  .showcase, .showcase--reverse { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .showcase--reverse .showcase__media { order: 0; }
  .showcase__copy { display: flex; flex-direction: column; align-items: center; }
  .check-list { text-align: left; }
  .chip-row, .mood-row { justify-content: center; }
  .section__head { margin-inline: auto; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav { top: 12px; padding-inline: 12px; }
  .nav__links { display: none; }
  .nav__pill { width: 100%; max-width: 430px; justify-content: space-between; padding: 7px 7px 7px 20px; gap: 12px; }
  .section { padding-block: clamp(58px, 14vw, 90px); }
  .hero { padding-top: 110px; }
  .hero__title { font-size: clamp(2.2rem, 9.2vw, 3rem); }
  .hero__sub { font-size: 1.05rem; }
  .eyebrow { font-size: .8rem; }
  .value-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-card .waitlist-form__fields { grid-template-columns: 1fr; }
  .showcase + .showcase { margin-top: 66px; }
  .feature-grid { margin-top: 70px; }
  .chat-bubble { font-size: .95rem; }
  .btn--lg { padding: 14px 24px; }
  /* bigger touch targets for footer links */
  .footer__links { gap: 4px 20px; }
  .footer__links a, .footer__links .linklike { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 4px; }

  /* hero: one bigger phone — hide the back/Lumi phone, enlarge + centre the front */
  .phone--back { display: none; }
  .phone--front { width: clamp(230px, 70vw, 280px); max-width: none; transform: rotate(0deg); margin-right: 0; }
  /* scale the showcase phones down a touch for breathing room */
  /* scale down ONLY the posting-section phone; never the Lumi cluster (it has its own sizes) */
  #features .showcase__media .phone { width: clamp(200px, 62vw, 240px); }
  /* keep the sticky CTA from covering the last bit of the footer */
  .footer { padding-bottom: 92px; }
}

/* ---------- mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 620px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(7,6,12,.88) 40%, var(--bg));
    pointer-events: none;
    /* explicit base values so the transition has a clear start point */
    transform: translateY(0);
    opacity: 1;
    transition: transform .42s var(--ease), opacity .3s var(--ease);
  }
  .mobile-cta .btn { width: 100%; pointer-events: auto; }
  .mobile-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .float-slow, .marquee__track, .eyebrow__dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal__card, .modal__backdrop { transition: none !important; }
}

/* ============================================================
   donate page
   ============================================================ */
.donate { max-width: 780px; margin-inline: auto; padding: clamp(120px, 17vw, 180px) var(--pad-x) clamp(70px, 10vw, 120px); }
.donate-head { text-align: center; }
.donate-title { font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.donate-lead { margin: 22px auto 0; max-width: 56ch; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); }

.donate-options { margin-top: clamp(40px, 6vw, 60px); display: flex; flex-direction: column; gap: 14px; }

/* ---- payment cards ---- */
.pay-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border-soft);
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s var(--ease), opacity .4s var(--ease),
              background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.pay-card:hover {
  transform: translateY(-3px); background: var(--surface-2);
  border-color: color-mix(in srgb, var(--pc, #fff) 55%, var(--border));
  box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--pc, #fff) 55%, transparent);
}
.pay-card:active { transform: translateY(0) scale(.975); transition-duration: .08s; }

.pay-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: var(--pc, var(--surface-2));
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--pc, #000) 75%, transparent);
  transition: transform .28s var(--ease);
}
.pay-icon--grad { background: var(--grad); }
.pay-icon svg { width: 26px; height: 26px; }
.pay-glyph { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.pay-card:hover .pay-icon { transform: scale(1.09) rotate(-5deg); }

.pay-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pay-card__name { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.pay-card__desc { font-size: .92rem; color: var(--muted); }
.pay-card__arrow {
  flex: none; font-size: 1.15rem; font-weight: 700; color: var(--muted-2);
  transition: transform .28s var(--ease), color .28s var(--ease);
}
.pay-card:hover .pay-card__arrow { color: var(--pc); transform: translate(3px, -3px); }

/* ---- featured (Square) ---- */
.pay-card--feature {
  flex-wrap: wrap; padding: 24px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, rgba(30,24,52,.8), rgba(13,11,20,.82));
  border-color: color-mix(in srgb, var(--pc) 32%, var(--border));
}
.pay-card--feature .pay-icon { width: 54px; height: 54px; border-radius: 16px; }
.pay-card--feature .pay-card__row { display: flex; align-items: center; gap: 10px; }
.pay-card--feature .pay-card__name { font-size: 1.45rem; }
.pay-card__badge {
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 100px; color: #0c0a14; background: var(--grad);
}
.pay-card__fine { font-size: .8rem; color: var(--muted-2); margin-top: 2px; }
.pay-card__cta {
  flex: none; width: 100%; margin-top: 4px; text-align: center;
  padding: 13px; border-radius: 100px; font-weight: 800; font-size: 1rem;
  color: #0c0a14; background: #fff;
  box-shadow: 0 0 30px -8px rgba(255,255,255,.45);
  transition: box-shadow .25s var(--ease);
}
.pay-card--feature:hover .pay-card__cta { box-shadow: 0 0 40px -6px rgba(180,140,255,.7); }
/* shimmer sweep across the featured card */
.pay-card--feature::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.09) 50%, transparent 65%);
  transform: translateX(-160%) skewX(-14deg);
  animation: payShine 6.5s ease-in-out 2s infinite;
}
@keyframes payShine { 0% { transform: translateX(-160%) skewX(-14deg); } 16%, 100% { transform: translateX(300%) skewX(-14deg); } }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.donate-note { margin-top: 30px; text-align: center; font-size: .98rem; color: var(--muted); }
.donate-note a { color: var(--violet); font-weight: 600; }

/* ---- heart / sparkle burst on tap ---- */
.heart-pop {
  position: fixed; z-index: 200; pointer-events: none; font-size: 1.25rem;
  transform: translate(-50%, -50%); will-change: transform, opacity;
  animation: heartPop .95s ease-out forwards;
}
@keyframes heartPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); }
}

@media (max-width: 620px) {
  .pay-grid { grid-template-columns: 1fr; }
  .donate { padding-top: 110px; }
  .pay-card { padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-card--feature::after { animation: none; }
  .pay-card:hover, .pay-card:hover .pay-icon { transform: none; }
}
