/* Landing page. Shared tokens, type, nav, buttons and footer live in
 * site.css. The gradients here are the app's auth glow (#0A64BC fading to
 * navy #010D27), the one atmospheric moment the brand allows on marketing
 * surfaces. Everything else stays on #101010 and lets the covers carry the
 * colour.
 */

:root {
  --glow: 10 100 188;      /* #0a64bc */
  --glow-deep: 6 58 130;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Aurora ---------- */

.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::before { /* base: navy into black */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, #06122a 38%, var(--deep-black) 92%);
}
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.9;
  will-change: transform;
}
.aurora i:nth-child(1) { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: 48%; top: -18%; background: radial-gradient(circle, rgb(var(--glow) / 0.55), transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; max-width: 760px; max-height: 760px; left: -12%; top: 18%; background: radial-gradient(circle, rgb(var(--glow-deep) / 0.5), transparent 65%); animation: drift-b 28s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: 30%; top: 40%; background: radial-gradient(circle, rgb(40 150 220 / 0.22), transparent 65%); animation: drift-c 34s ease-in-out infinite alternate; }
.aurora::after { /* fine grain so the gradient never bands */
  content: ""; position: absolute; inset: 0; opacity: 0.05; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { to { transform: translate(-14%, 12%) scale(1.12); } }
@keyframes drift-b { to { transform: translate(18%, -10%) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-20%, -16%) scale(1.2); } }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(64px, 10vw, 120px); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; position: relative; z-index: 2; }
.hero-copy h1 { max-width: 14ch; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(100deg, #fefefe 20%, #8fc3f5 60%, #fefefe 95%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .stores { justify-content: center; margin-top: 6px; }
.tagline {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgb(254 254 254 / 0.06); box-shadow: inset 0 0 0 1px rgb(254 254 254 / 0.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--display); font-weight: 500; font-size: 13px; color: var(--white-80);
}
.tagline img { width: 21px; height: 14px; }
.hero-note { font-size: 13px; color: var(--shell-40); }

.hero-stage {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(56px, 7vw, 88px);
  height: clamp(430px, 58vw, 700px);
}
.hero-stage::after { /* fade the phones into the page */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 45%; z-index: 3;
  background: linear-gradient(to bottom, transparent, var(--deep-black) 85%);
  pointer-events: none;
}
.hero-stage .device { position: absolute; top: 0; }
.hero-stage .d-centre { --w: clamp(210px, 27vw, 340px); z-index: 2; left: 50%; margin-left: calc(var(--w) / -2); }
.hero-stage .d-left,
.hero-stage .d-right { --w: clamp(160px, 23vw, 292px); z-index: 1; left: 50%; top: 11%; }
/* Phones: the side phones tuck behind the centre one and peek out past the
   screen edges (the hero clips them), so the fan survives at 360px. */
.hero-stage .d-left  { margin-left: calc(var(--w) * -1.2); }
.hero-stage .d-right { margin-left: calc(var(--w) * 0.2); }
@media (min-width: 760px) {
  .hero-stage .d-left  { margin-left: calc(var(--w) * -1.52); top: 9%; }
  .hero-stage .d-right { margin-left: calc(var(--w) * 0.52); top: 9%; }
}
/* Parallax offsets are written by site.js as --py; the tilt is static. */
.hero-stage .d-left  .device-inner { transform: translateY(var(--py, 0)) rotate(-6deg); }
.hero-stage .d-right .device-inner { transform: translateY(var(--py, 0)) rotate(6deg); }
.hero-stage .d-centre .device-inner { transform: translateY(var(--py, 0)); }

/* ---------- Device frame ----------
 * A plain iPhone silhouette around a real screenshot (1206 × 2622). The
 * frame is CSS so it scales crisply; swap the <img> to change the screen.
 */

.device { --w: 300px; width: var(--w); }
.device-inner {
  position: relative; padding: calc(var(--w) * 0.032); border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #3a3f45 0%, #1a1d20 30%, #0c0d0f 70%, #2a2e33 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    0 0 0 1px #000,
    0 50px 100px -30px rgb(0 0 0 / 0.95),
    0 30px 60px -40px rgb(var(--glow) / 0.6);
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}
.device-inner::before { /* dynamic island */
  content: ""; position: absolute; z-index: 2; top: calc(var(--w) * 0.058); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * 0.088); border-radius: 999px; background: #000;
}
.device-screen {
  position: relative; overflow: hidden; border-radius: calc(var(--w) * 0.135);
  aspect-ratio: 1206 / 2622; background: var(--deep-black);
}
.device-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.device-screen img + img { opacity: 0; }
.device-screen img.on { opacity: 1; }
.device-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.08) 0%, transparent 28%, transparent 70%, rgb(255 255 255 / 0.03) 100%);
}

/* ---------- Poster wall ---------- */

.wall { position: relative; padding-block: 24px 8px; overflow: hidden; }
.wall::before, .wall::after { /* edge fades */
  content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none;
}
.wall::before { left: 0; background: linear-gradient(to right, var(--deep-black), transparent); }
.wall::after { right: 0; background: linear-gradient(to left, var(--deep-black), transparent); }
/* Covers use margin-right, not gap, so one set is exactly half the row and
   the loop has no seam. This CSS loop is only the no-JS fallback: site.js
   takes over with the Web Animations API (see the note there on Safari). */
.wall-row { display: flex; align-items: flex-start; width: max-content; margin-bottom: 14px; animation: marquee 60s linear infinite; }
.wall-row.rev { animation-direction: reverse; }
.wall-row img {
  flex: none; margin-right: 14px; width: clamp(104px, 11vw, 150px); height: auto; aspect-ratio: 2 / 3; border-radius: 6px; object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--shell-20), 0 12px 30px -12px rgb(0 0 0 / 0.8);
  transition: transform 0.4s var(--ease-out), filter 0.4s ease;
  filter: saturate(0.9) brightness(0.92);
}
.wall-row img:hover { transform: translateY(-6px) scale(1.04); filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wall-caption { text-align: center; margin-top: 28px; color: var(--shell-40); font-size: 14px; }

/* ---------- Section scaffolding ---------- */

.section { padding-block: clamp(88px, 12vw, 150px); position: relative; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .lede { margin-inline: auto; }

/* ---------- How it works: three cards, each with a cropped phone ----------
 * A row of three from tablet up; on phones a swipeable row where the next
 * card peeks in, so the section stays one screen tall.
 */

.shots {
  display: grid; gap: 16px;
  grid-auto-flow: column; grid-auto-columns: min(82%, 340px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (min-width: 760px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
}
.shot {
  scroll-snap-align: start; position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 26px 0; border-radius: var(--r-card);
  background: var(--shell-06); box-shadow: inset 0 0 0 1px var(--shell-10);
}
.shot::before { /* glow behind the phone */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -38%; width: 130%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--glow) / 0.55), rgb(var(--glow) / 0.18) 55%, transparent);
}
.shot .num { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; color: #5aa6ee; }
.shot h3 { font-size: 20px; }
.shot p { color: var(--shell-60); font-size: 15px; }
.shot-phone { margin-top: 18px; height: 340px; }
/* The card crops the phone at its rounded bottom edge, so the phone's
   shadow is never cut into a hard rectangle. A softer shadow suits the
   smaller phones inside cards. */
.shot-phone .device-inner {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 0 0 1px #000, 0 24px 60px -18px rgb(0 0 0 / 0.75);
}
.shot-phone .device { --w: min(250px, 100%); margin-inline: auto; }
@media (min-width: 1100px) { .shot-phone { height: 380px; } .shot-phone .device { --w: 270px; } }

/* ---------- Feature cards ---------- */

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; overflow: hidden; border-radius: var(--r-card); padding: 28px;
  background: var(--shell-06); box-shadow: inset 0 0 0 1px var(--shell-10);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.card::before { /* pointer-follow light; --mx/--my set by site.js */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--glow) / 0.22), transparent 70%);
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(90 166 238 / 0.3); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 18px; }
.card p { color: var(--shell-60); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(145deg, rgb(var(--glow) / 0.35), rgb(var(--glow) / 0.08));
  box-shadow: inset 0 0 0 1px rgb(90 166 238 / 0.25); color: var(--white);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Pro ----------
 * Customisation, shown with real app UI: each tile is a crop of the Pro
 * paywall. Three across from tablet up; a swipeable row on phones.
 */

.pro {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  background:
    radial-gradient(70% 70% at 80% 0%, rgb(var(--glow) / 0.5), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgb(1 13 39 / 0.9), transparent 70%),
    linear-gradient(160deg, #0a2a55 0%, #070b16 75%);
  box-shadow: 0 60px 120px -60px rgb(var(--glow) / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.pro-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.pro .badge { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--blue); }
.pro-copy .lede { color: var(--white-80); max-width: 52ch; margin-inline: auto; }

.pro-tiles {
  display: grid; gap: 16px;
  grid-auto-flow: column; grid-auto-columns: min(80%, 320px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(clamp(28px, 5vw, 64px) * -1); padding: 4px clamp(28px, 5vw, 64px) 12px;
  scroll-padding-inline: clamp(28px, 5vw, 64px); scrollbar-width: none;
}
.pro-tiles::-webkit-scrollbar { display: none; }
.pro-tiles:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
@media (min-width: 760px) {
  .pro-tiles { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
}
.pro-tile {
  scroll-snap-align: start; margin: 0; overflow: hidden; border-radius: 20px;
  background: var(--deep-black); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 60px -30px rgb(0 0 0 / 0.9);
  transition: transform 0.5s var(--ease-out);
}
.pro-tile:hover { transform: translateY(-4px); }
.pro-tile-img { aspect-ratio: 4 / 3; overflow: hidden; }
.pro-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease-out); }
.pro-tile:hover .pro-tile-img img { transform: scale(1.04); }
.pro-tile figcaption { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-top: 1px solid var(--shell-10); }
.pro-tile b { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--white); }
.pro-tile span { font-size: 14px; color: var(--shell-60); }
.pro-more { margin-top: 24px; text-align: center; font-size: 14px; color: var(--white-60); }

.fine { font-size: 13px; color: var(--shell-40); text-align: center; margin-top: 24px; }

/* ---------- Download band ---------- */

.band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 36px; padding: clamp(56px, 9vw, 104px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
  background: linear-gradient(180deg, #06122a, var(--navy));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.band .aurora::before { background: linear-gradient(180deg, #06142e, #020a1c); }
.band .lede { color: var(--white-80); margin-inline: auto; }
.band .stores { justify-content: center; margin-top: 8px; }
.band .app-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 20px 50px -14px rgb(var(--glow) / 0.8), inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.band-covers { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
@media (min-width: 900px) { .band-covers { display: block; } }
.band-covers img {
  position: absolute; width: 120px; aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; opacity: 0.5;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.9);
  animation: bob 9s ease-in-out infinite alternate;
}
.band-covers img:nth-child(1) { left: 5%;  top: 14%; rotate: -10deg; }
.band-covers img:nth-child(2) { left: 13%; top: 52%; rotate: 6deg;  animation-delay: -3s; }
.band-covers img:nth-child(3) { right: 5%; top: 12%; rotate: 9deg;  animation-delay: -5s; }
.band-covers img:nth-child(4) { right: 13%; top: 50%; rotate: -7deg; animation-delay: -1s; }
@keyframes bob { to { translate: 0 -18px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--shell-10); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--white-60); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--shell-60); max-width: 64ch; }
.faq details[open] p { animation: faq-in 0.4s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Scroll reveals ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
  .reveal.in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise 1s var(--ease-out) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
  .hero-stage .device { animation: rise-phone 1.4s var(--ease-out) both; }
  .hero-stage .d-centre { animation-delay: 0.3s; }
  .hero-stage .d-left, .hero-stage .d-right { animation-delay: 0.5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-phone { from { opacity: 0; translate: 0 90px; } }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .wall-row, .band-covers img, .hero-copy h1 em { animation: none; }
  /* No drift: each row becomes a row you can swipe or scroll. */
  .wall-row { width: auto; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; }
  .wall-row::-webkit-scrollbar { display: none; }
  .wall-row img[aria-hidden] { display: none; }
}

.pro-more strong { color: var(--white); font-weight: 600; white-space: nowrap; }
