/* =========================================================================
   Flick'd Up — After Dark. Nocturnal, monochrome, premium.
   Plain CSS. Mobile-first. Motion respects prefers-reduced-motion.
   ========================================================================= */

:root {
  /* Grounds */
  --canvas: #000000;
  --canvas-raised: #09090B;
  --surface: #0D0E11;
  --surface-raised: #131419;
  --overlay: #17181D;
  /* Lines */
  --hairline: #1F2026;
  --border: #2A2B31;
  --border-strong: #3A3B42;
  /* Ink */
  --text-primary: #FAFAFA;
  --text-secondary: #AEB0B8;
  --text-muted: #82838C;
  --text-bright: #D6D7DC;

  /* "Photo" grades — monochrome nocturnal moments (light blooms in the dark) */
  --m1: radial-gradient(125% 100% at 24% 14%, #3A3B42 0%, #17181D 46%, #09090B 100%);
  --m2: radial-gradient(115% 95% at 78% 22%, #43444B 0%, #131419 52%, #050506 100%);
  --m3: radial-gradient(135% 115% at 50% 82%, #2F3037 0%, #0D0E11 56%, #000000 100%);
  --m4: radial-gradient(105% 95% at 38% 30%, #4A4B52 0%, #1F2026 42%, #09090B 100%);
  --m5: linear-gradient(155deg, #33343B 0%, #131419 58%, #050506 100%);
  --m6: radial-gradient(120% 100% at 66% 72%, #3F4047 0%, #17181D 50%, #000000 100%);
  --m7: radial-gradient(130% 120% at 20% 80%, #2A2B31 0%, #0D0E11 60%, #000000 100%);
  --m8: linear-gradient(200deg, #43444B 0%, #1A1B20 55%, #050506 100%);

  /* Type */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Space (4pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  /* Radii */
  --r-card: 18px;
  --r-sheet: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 320ms;

  --maxw: 1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text-bright); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--text-primary); color: var(--canvas);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
  transition: top 160ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* Fine film grain over everything — premium nocturnal texture */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-6); }
main { position: relative; z-index: 2; }
section { position: relative; padding-block: var(--sp-24); }

/* ---- Typography ---- */
.display {
  font-weight: 800;
  font-size: clamp(2.7rem, 8.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}
.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
}
em { font-style: normal; color: var(--text-bright); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out),
              border-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.btn--sm { padding: 10px 18px; font-size: 0.94rem; }
.btn--primary { background: var(--text-primary); color: #000; }
.btn--primary:hover { transform: translateY(-2px); background: #fff; }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-raised); transform: translateY(-2px); }
.btn .arrow { transition: transform 200ms var(--ease-out); }
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; gap: var(--sp-6); height: 68px; }
.wordmark {
  font-weight: 800; font-size: 1.16rem; letter-spacing: -0.03em; color: var(--text-primary);
}
.nav__links { display: none; margin-left: auto; gap: var(--sp-8); }
.nav__links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color 160ms; }
.nav__links a:hover { color: var(--text-primary); }
.nav .btn--primary { margin-left: auto; }
.nav__links + .btn--primary { margin-left: 0; }

/* ---- Hero ---- */
.hero { padding-top: var(--sp-16); padding-bottom: var(--sp-24); overflow: hidden; }
.hero__glow {
  position: absolute; z-index: 0; top: -22%; left: 50%; transform: translateX(-50%);
  width: min(1000px, 130%); height: 720px; pointer-events: none;
  background: radial-gradient(52% 52% at 50% 34%, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 46%, transparent 70%);
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: var(--sp-16); align-items: center; }
.hero__copy { max-width: 640px; }
.display { margin-block: var(--sp-5) var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero__meta { margin-top: var(--sp-6); color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.01em; }
.hero__device { display: flex; justify-content: center; }

/* ---- Phone frame ---- */
.phone {
  position: relative; width: 100%; max-width: 300px;
  aspect-ratio: 9 / 19.3;
  background: linear-gradient(160deg, #202127, #0b0b0d);
  border-radius: 46px; padding: 9px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 40px 90px -30px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone--hero { max-width: 340px; }
.phone--sm { max-width: 260px; }
.phone__notch {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 24px; background: #000; border-radius: 0 0 16px 16px; z-index: 6;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 38px; overflow: hidden;
  background: var(--canvas-raised);
  display: flex; flex-direction: column;
  isolation: isolate;
}

/* =========================================================================
   In-phone app mockups (injected by main.js into [data-screen])
   ========================================================================= */
.scr { display: flex; flex-direction: column; height: 100%; width: 100%; color: var(--text-primary); }
.scr__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 6px; font-size: 11px; font-weight: 600; color: var(--text-bright);
  letter-spacing: 0.02em; flex: 0 0 auto;
}
.scr__status .dots { display: flex; gap: 3px; }
.scr__status .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.scr__head { padding: 6px 18px 12px; flex: 0 0 auto; }
.scr__eyebrow { font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.scr__title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.scr__sub { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
.scr__body { flex: 1 1 auto; overflow: hidden; padding: 0 14px 14px; }

/* photo tiles */
.ph { position: relative; border-radius: 14px; overflow: hidden; background: var(--m1); }
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%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");
  opacity: 0.06; mix-blend-mode: screen; pointer-events: none;
}
.ph--1 { background: var(--m1); } .ph--2 { background: var(--m2); }
.ph--3 { background: var(--m3); } .ph--4 { background: var(--m4); }
.ph--5 { background: var(--m5); } .ph--6 { background: var(--m6); }
.ph--7 { background: var(--m7); } .ph--8 { background: var(--m8); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--overlay); color: var(--text-bright);
  font-weight: 700; border: 1px solid var(--border); flex: 0 0 auto;
}

/* ---- Reveal feed (hero + reveal + showcase) ---- */
.feed { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.moment { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); }
.moment__media { position: relative; aspect-ratio: 4 / 3.4; }
.moment__media .ph { position: absolute; inset: 0; border-radius: 0; }
.moment__pip {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 46px;
  border-radius: 8px; border: 1.5px solid rgba(0,0,0,0.65); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.moment__pip .ph { position: absolute; inset: 0; border-radius: 0; }
.moment__scrim {
  position: absolute; inset: auto 0 0 0; padding: 20px 12px 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.moment__who { display: flex; align-items: center; gap: 7px; }
.moment__who .avatar { width: 22px; height: 22px; font-size: 9px; }
.moment__name { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; }
.moment__time { font-size: 9.5px; color: var(--text-secondary); }
.reacts { display: flex; gap: 5px; }
.react {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill); padding: 3px 7px; font-size: 9.5px; font-weight: 600;
  backdrop-filter: blur(4px); color: var(--text-bright);
}
.react svg { width: 10px; height: 10px; }

/* ---- Capture ---- */
.cap { position: relative; height: 100%; width: 100%; }
.cap__back { position: absolute; inset: 0; }
.cap__back .ph { position: absolute; inset: 0; border-radius: 0; }
.cap__pip {
  position: absolute; top: 58px; left: 16px; width: 96px; height: 132px;
  border-radius: 14px; overflow: hidden; border: 2px solid rgba(0,0,0,0.7);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55); z-index: 3;
  transition: all 380ms var(--ease-out);
}
.cap__pip .ph { position: absolute; inset: 0; border-radius: 0; }
.cap.is-swapped .cap__pip {
  inset: 0; top: 0; left: 0; width: 100%; height: 100%; border-radius: 0; border-width: 0;
}
.cap__chip {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-pill); padding: 6px 12px; font-size: 10px; font-weight: 600;
  color: var(--text-bright); backdrop-filter: blur(6px);
}
.cap__chip .live { width: 6px; height: 6px; border-radius: 50%; background: #FAFAFA; }
.cap__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 0 26px;
}
.cap__label { font-size: 11px; color: var(--text-bright); font-weight: 500; letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.cap__shutter {
  width: 62px; height: 62px; border-radius: 50%; background: transparent;
  border: 3px solid rgba(255,255,255,0.9); padding: 4px;
}
.cap__shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #FAFAFA; }
.cap__hint {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-size: 9px; color: var(--text-secondary); background: rgba(0,0,0,0.4);
  padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.1);
}

/* ---- Sealed ---- */
.sealed {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 4px;
  background:
    radial-gradient(70% 45% at 50% 32%, rgba(255,255,255,0.06), transparent 70%),
    var(--canvas-raised);
}
.sealed__seal {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: var(--overlay); border: 1px solid var(--border); margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 30px -12px rgba(0,0,0,0.9);
}
.sealed__seal svg { width: 30px; height: 30px; color: var(--text-bright); }
.sealed__title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.sealed__note { font-size: 11px; color: var(--text-muted); max-width: 22ch; margin-top: 2px; }
.sealed__count {
  margin-top: 18px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text-primary);
}
.sealed__countlbl { font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-top: 6px; }
.sealed__thumbs { display: flex; gap: 6px; margin-top: 20px; }
.sealed__thumbs .ph { width: 30px; height: 40px; filter: blur(3px); opacity: 0.7; }

/* ---- Memories grid ---- */
.mem { height: 100%; }
.mem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mem__tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 3.6; border: 1px solid var(--hairline); }
.mem__tile .ph { position: absolute; inset: 0; border-radius: 0; }
.mem__meta {
  position: absolute; inset: auto 0 0 0; padding: 16px 10px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,0.74));
}
.mem__date { font-size: 8.5px; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.mem__name { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; margin-top: 1px; }

/* ---- Friends ---- */
.fr { height: 100%; }
.fr__search {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 9px 14px; color: var(--text-muted); font-size: 11px;
}
.fr__search svg { width: 13px; height: 13px; }
.fr__row { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-bottom: 1px solid var(--hairline); }
.fr__row:last-child { border-bottom: 0; }
.fr__row .avatar { width: 38px; height: 38px; font-size: 13px; }
.fr__info { flex: 1 1 auto; min-width: 0; }
.fr__name { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.fr__handle { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.fr__nights { font-size: 9px; color: var(--text-secondary); background: var(--overlay); border: 1px solid var(--hairline);
  padding: 4px 8px; border-radius: var(--r-pill); font-weight: 600; flex: 0 0 auto; }
.fr__accept { font-size: 10px; font-weight: 700; color: #000; background: var(--text-primary);
  padding: 6px 12px; border-radius: var(--r-pill); flex: 0 0 auto; }
.fr__sectlbl { font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
  font-weight: 700; margin: 4px 2px 6px; }

/* =========================================================================
   Sections
   ========================================================================= */

/* Insight */
.insight { background: var(--canvas-raised); border-block: 1px solid var(--hairline); }
.insight__lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--text-secondary); max-width: 40ch; margin-top: var(--sp-6); }
.insight .section-title { max-width: 20ch; }
.insight__lead--muted { color: var(--text-muted); font-size: 1.05rem; margin-top: var(--sp-4); }

/* How it works */
.how__head { max-width: 44ch; margin-bottom: var(--sp-16); }
.how__head .section-title { margin-top: var(--sp-4); }
.steps { display: flex; flex-direction: column; gap: var(--sp-20); }
.step { display: grid; gap: var(--sp-8); align-items: center; }
.step__num {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-muted); font-variant-numeric: tabular-nums; margin-bottom: var(--sp-4);
}
.step__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.step__body { color: var(--text-secondary); margin-top: var(--sp-4); max-width: 40ch; font-size: 1.05rem; }
.step__visual { display: flex; justify-content: center; }

/* Showcase */
.showcase { background: var(--canvas-raised); border-block: 1px solid var(--hairline); }
.shots { display: grid; grid-template-columns: 1fr; gap: var(--sp-12) var(--sp-8); }
.shot { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.shot figcaption { color: var(--text-muted); font-size: 0.92rem; text-align: center; letter-spacing: -0.01em; }

/* Trust */
.trust__list { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); margin-top: var(--sp-12); }
.trust__item {
  padding: var(--sp-8); border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--surface), var(--canvas-raised));
}
.trust__icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--overlay); border: 1px solid var(--border); color: var(--text-bright); margin-bottom: var(--sp-5);
}
.trust__icon svg { width: 22px; height: 22px; }
.trust__item h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.trust__item p { color: var(--text-secondary); font-size: 0.98rem; }

/* Get the app */
.get { text-align: center; overflow: hidden; }
.get__glow {
  position: absolute; z-index: 0; bottom: -30%; left: 50%; transform: translateX(-50%);
  width: min(900px, 130%); height: 640px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.09), transparent 68%);
}
.get__inner { position: relative; z-index: 2; max-width: 620px; margin-inline: auto; }
.get__title { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-top: var(--sp-4); }
.get__sub { color: var(--text-secondary); font-size: 1.12rem; margin-top: var(--sp-6); margin-inline: auto; max-width: 42ch; }
.get__cta { margin-top: var(--sp-10); display: flex; justify-content: center; }
.get__note { color: var(--text-muted); font-size: 0.88rem; margin-top: var(--sp-6); }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text-primary); color: #000;
  padding: 12px 24px 12px 20px; border-radius: 16px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  box-shadow: 0 10px 30px -12px rgba(255,255,255,0.28);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(255,255,255,0.4); }
.appstore__logo svg { width: 28px; height: 28px; }
.appstore__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.appstore__text small { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.01em; }
.appstore__text strong { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding-block: var(--sp-16); }
.footer__inner { display: flex; flex-direction: column; gap: var(--sp-3); }
.wordmark--sm { font-size: 1.05rem; }
.footer__tag { color: var(--text-secondary); font-size: 0.98rem; }
.footer__links { display: flex; gap: var(--sp-6); }
.footer__links a { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; transition: color 160ms; }
.footer__links a:hover { color: var(--text-primary); }
.footer__legal { color: var(--text-muted); font-size: 0.86rem; margin-top: var(--sp-2); }

/* =========================================================================
   Reveal-on-scroll un-blur (product screens)
   ========================================================================= */
.js .revealer { filter: blur(16px); opacity: 0.55; transform: scale(1.03); transition: filter 900ms var(--ease-out), opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .revealer.is-revealed { filter: blur(0); opacity: 1; transform: none; }

/* Staggered entrance */
.js .reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal-group.is-in .reveal-item, .js .reveal-item.is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 720px) {
  .trust__list { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .footer__tag { margin-left: var(--sp-4); }
  .footer__links { margin-left: auto; }
  .footer__legal { flex-basis: 100%; margin-top: var(--sp-4); color: var(--text-muted); }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav .btn--primary { margin-left: 0; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-12); }
  .hero__copy { padding-right: var(--sp-8); }
  .insight .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start; }
  .insight .eyebrow { grid-column: 1 / -1; }
  .step { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .step__visual { justify-content: flex-end; }
  .step--reverse .step__text { order: 2; }
  .step--reverse .step__visual { order: 1; justify-content: flex-start; }
  .shots { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
}

@media (min-width: 1100px) {
  section { padding-block: var(--sp-32); }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .js .reveal-item, .js .revealer { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .btn, .appstore, .cap__pip, .btn .arrow { transition: none !important; }
}
