/* Shared landing-page layout for every game's marketing site.
 *
 * One brand, one layout: nav, hero with a floating phone, feature cards, a
 * screenshot carousel, numbered steps, a CTA and a footer. A game's
 * index.html sets only the --lp-* accent tokens below in its own :root and
 * adds its signature hero decoration; it never restyles the layout.
 *
 * Motion is CSS-first. landing.js adds `lp-motion` to <html> (only when the
 * visitor allows motion) to switch on scroll reveals; without it — no JS, or
 * prefers-reduced-motion — every section is simply visible.
 */

:root {
  /* Grounds */
  --lp-bg: #0B1030;
  --lp-bg-2: #10173D;
  --lp-hero-a: #1B2A7A;
  --lp-hero-b: #070A22;
  /* Accents, plus their RGB triples for translucent glows */
  --lp-accent: #29B6F6;
  --lp-accent-rgb: 41, 182, 246;
  --lp-accent-2: #FFA726;
  --lp-accent-2-rgb: 255, 167, 38;
  --lp-on-accent: #071022;
  /* Second stop of the headline highlight; a game whose accents mix to grey
     (gold into navy) points it at a tint of its first accent instead. */
  --lp-hl-2: var(--lp-accent-2);
  /* Text */
  --lp-ink: #F4F7FF;
  --lp-muted: rgba(228, 234, 255, 0.72);
  --lp-dim: rgba(228, 234, 255, 0.5);
  /* Surfaces */
  --lp-surface: rgba(255, 255, 255, 0.045);
  --lp-surface-hi: rgba(255, 255, 255, 0.08);
  --lp-line: rgba(255, 255, 255, 0.1);
  --lp-badge-bg: rgba(0, 0, 0, 0.5);
  --lp-suit-red: #FF6B62;
  --lp-phone: #10131C;

  --lp-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--lp-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--lp-ink);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
h1, h2, h3 { font-family: var(--lp-font); letter-spacing: -0.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--lp-hero-b) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--lp-line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.nav-brand {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.nav-brand img {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 0 0 1px var(--lp-line), 0 6px 18px rgba(var(--lp-accent-rgb), 0.35);
  animation: lp-pop 0.7s var(--lp-ease) both;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--lp-muted);
  padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--lp-ink); background: var(--lp-surface-hi); }
@media (max-width: 760px) {
  .nav-inner { height: 56px; justify-content: center; }
  .nav-links { display: none; }
  .nav-brand { font-size: 18px; }
  .nav-brand img { width: 32px; height: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 50% 55% at 78% 38%, rgba(var(--lp-accent-rgb), 0.32), transparent 70%),
    radial-gradient(ellipse 40% 45% at 6% 8%, rgba(var(--lp-accent-2-rgb), 0.16), transparent 70%),
    linear-gradient(165deg, var(--lp-hero-a) 0%, var(--lp-hero-b) 78%);
  background-color: var(--lp-hero-b);
}
/* A faint dot grid that fades toward the edges — texture, not pattern. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
}
/* Melt the hero floor into the page. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0;
  pointer-events: none; background: linear-gradient(180deg, transparent, var(--lp-bg));
}
.hero .wrap {
  position: relative; z-index: 2; padding-top: 72px; padding-bottom: 120px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 13px;
  color: var(--lp-accent); margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(var(--lp-accent-rgb), 0.1);
  border: 1px solid rgba(var(--lp-accent-rgb), 0.28);
}
.hero h1 {
  font-size: clamp(42px, 7vw, 76px); line-height: 1.02; margin: 0 0 20px; font-weight: 800;
  letter-spacing: -0.035em; text-wrap: balance;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--lp-accent) 0%, var(--lp-hl-2) 45%, #fff 55%, var(--lp-accent) 100%);
  background-size: 220% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--lp-accent);
  white-space: nowrap; /* "1’e 1" must not split across lines */
  animation: lp-sheen 1.6s 0.7s var(--lp-ease) both;
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--lp-muted);
  max-width: 560px; margin: 0 0 32px;
}
/* Load-in: each hero line rises in turn, then the phone. */
.hero-copy > * { animation: lp-rise 0.8s var(--lp-ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.27s; }
.hero-copy > :nth-child(4) { animation-delay: 0.39s; }
.hero-copy > :nth-child(5) { animation-delay: 0.5s; }

/* ---------- Phone ---------- */
.hero-phone {
  display: flex; justify-content: center; position: relative;
  animation: lp-rise-in 1s 0.25s var(--lp-ease) both;
}
/* The glow pooled under the device. */
.hero-phone::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 50%;
  width: 420px; height: 420px; max-width: 110vw; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--lp-accent-rgb), 0.45) 0%, rgba(var(--lp-accent-2-rgb), 0.14) 42%, transparent 68%);
  filter: blur(10px); pointer-events: none;
}
.phone {
  --tilt: 3deg;
  width: 290px; max-width: 76vw; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--lp-phone) 80%, #fff), var(--lp-phone));
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(var(--lp-accent-rgb), 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  transform: rotate(var(--tilt));
  position: relative; z-index: 2;
  animation: lp-float 7s 1.2s ease-in-out infinite;
}
/* height:auto is load-bearing: the tag carries width/height attributes (for
   layout stability) and CSS overriding only the width would keep the
   attribute height and stretch the capture. */
.phone img { width: 100%; height: auto; border-radius: 31px; }
/* Simulator captures leave the Dynamic Island out; `has-island` draws it at
   the iPhone Pro geometry they came from (126x37pt at 11pt from the top of a
   402pt-wide screen: 31.3% of the screen width). */
.phone.has-island::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(11px + (290px - 22px) * 0.0274);
  width: calc((290px - 22px) * 0.313); aspect-ratio: 126 / 37;
  border-radius: 999px; background: #000;
}

/* Card-table decoration (optional): two court cards tucked behind the phone
   and a trim rail along the hero floor. */
.tuck {
  position: absolute; z-index: 1; width: 112px; height: 157px; border-radius: 11px;
  background: #FFFDF6; border: 1.5px solid #DCCBA6; color: #1B1B1B;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  font-weight: 800;
}
.tuck.red { color: #B3261E; }
.tuck .corner { position: absolute; top: 9px; left: 10px; display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 22px; }
.tuck .corner small { font-size: 18px; margin-top: 2px; }
.tuck .pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; padding-top: 10px; }
.tuck.t1 { left: calc(50% - 236px); top: 70px; --rot: -16deg; animation: lp-drift 9s ease-in-out infinite; }
.tuck.t2 { right: calc(50% - 240px); bottom: 50px; --rot: 14deg; animation: lp-drift 9s -4.5s ease-in-out infinite; }
.rail {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--lp-accent) 20%, var(--lp-accent) 80%, transparent);
  opacity: 0.55;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 36px; padding-top: 44px; padding-bottom: 88px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .badges { margin-inline: auto; }
  .hero [data-store-empty] { justify-content: center; }
  .phone { --tilt: 0deg; width: 240px; border-radius: 36px; padding: 9px; }
  .phone img { border-radius: 27px; }
  .phone.has-island::after { top: calc(9px + (240px - 18px) * 0.0274); width: calc((240px - 18px) * 0.313); }
  .hero-phone::before { width: 340px; height: 340px; }
  .tuck { display: none; }
}

/* ---------- Store badges ---------- */
.badges {
  /* A grid of equal 1fr columns sized to its widest badge, so App Store and
     Google Play come out the same width instead of hugging their own labels. */
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  width: max-content; max-width: 100%; gap: 12px;
}
.store-badge {
  position: relative; overflow: hidden;
  /* overflow:hidden would let a grid track shrink below the label and clip it. */
  min-width: max-content;
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none; text-align: left;
  background: var(--lp-badge-bg); color: #fff; padding: 11px 20px 11px 18px; border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease), border-color 0.25s;
}
/* A light sweep crosses the badge on hover. */
.store-badge::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--lp-ease); pointer-events: none;
}
.store-badge:hover, .store-badge:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--lp-accent-rgb), 0.7);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 0 28px rgba(var(--lp-accent-rgb), 0.35);
}
.store-badge:hover::after, .store-badge:focus-visible::after { left: 120%; }
.store-badge:active { transform: translateY(-1px) scale(0.98); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
/* The label is a tight two-line stack. The markup's <br> is the no-CSS
   fallback; left in the flow it opens a body-line-height gap between the lines
   and pushes the block off-centre against the icon. */
.store-badge > span { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.store-badge br { display: none; }
.store-badge .bl { display: block; font-size: 11px; line-height: 1.1; opacity: 0.8; letter-spacing: 0.3px; }
.store-badge .bb { display: block; font-size: 18px; font-weight: 700; line-height: 1.1; }
/* Keep both badges on one row on a phone. */
@media (max-width: 420px) {
  .badges { gap: 8px; }
  .store-badge { padding: 9px 13px 9px 11px; gap: 8px; border-radius: 13px; }
  .store-badge svg { width: 22px; height: 22px; }
  .store-badge .bb { font-size: 16px; }
}
/* Too narrow for two side by side: stack them, still equal width. */
@media (max-width: 360px) { .badges { grid-auto-flow: row; } }

/* Shown instead of the badges while a game has no store ids yet. store-links.js
   sets `hidden` once badges exist; `.soon`'s display would otherwise beat it. */
[data-store-empty][hidden] { display: none; }
.soon {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 14px; color: var(--lp-accent);
}
.soon::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.soon-sub { margin: 10px 0 0; font-size: 15px; color: var(--lp-muted); }
.cta .soon { justify-content: center; }
.cta .soon::after { content: ''; width: 34px; height: 1px; background: currentColor; }
@media (max-width: 860px) {
  .hero .soon::after { content: ''; width: 34px; height: 1px; background: currentColor; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; }
.shots-band { background: linear-gradient(180deg, var(--lp-bg) 0%, var(--lp-bg-2) 18%, var(--lp-bg-2) 82%, var(--lp-bg) 100%); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.section-head p { font-size: clamp(16px, 2vw, 18px); color: var(--lp-muted); margin: 0; line-height: 1.55; }
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  position: relative; border-radius: 22px; padding: 28px 22px;
  background: linear-gradient(180deg, var(--lp-surface-hi), var(--lp-surface));
  border: 1px solid var(--lp-line);
  transition: transform 0.35s var(--lp-ease), box-shadow 0.35s var(--lp-ease), background 0.35s;
}
/* Gradient border that lights up on hover (masked to the 1px ring). */
.feature::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--lp-accent), transparent 45%, var(--lp-accent-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(var(--lp-accent-rgb), 0.14); }
.feature:hover::before { opacity: 1; }
.feature .fi {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; margin-bottom: 18px; color: var(--lp-accent);
  background: linear-gradient(140deg, rgba(var(--lp-accent-rgb), 0.22), rgba(var(--lp-accent-2-rgb), 0.12));
  border: 1px solid rgba(var(--lp-accent-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(var(--lp-accent-rgb), 0.18);
  transition: transform 0.35s var(--lp-ease);
}
.feature:hover .fi { transform: scale(1.08) rotate(-4deg); }
.feature .fi.red { color: var(--lp-suit-red); }
.feature h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.feature p { margin: 0; color: var(--lp-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature { padding: 22px 20px; } }

/* ---------- Screenshot carousel ----------
   The shots are composed store frames that carry their own device frame, so
   they get a glow, not a second phone. The strip bleeds edge to edge and
   snaps each shot to the centre; landing.js adds arrows and dots. */
.lp-carousel { position: relative; }
.gallery {
  position: relative;
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 18px max(22px, calc(50vw - 130px)) 30px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto; width: 260px; height: auto; scroll-snap-align: center;
  border-radius: 28px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--lp-ease), opacity 0.5s, box-shadow 0.5s;
}
.lp-carousel .shot { transform: scale(0.9); opacity: 0.55; }
.lp-carousel .shot.is-active {
  transform: scale(1); opacity: 1;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5), 0 0 50px rgba(var(--lp-accent-rgb), 0.3);
}
.lp-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.lp-arrow {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--lp-surface-hi); color: var(--lp-ink); border: 1px solid var(--lp-line); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--lp-ease), opacity 0.2s;
}
.lp-arrow svg { width: 20px; height: 20px; }
.lp-arrow:hover:not(:disabled) { background: rgba(var(--lp-accent-rgb), 0.18); border-color: rgba(var(--lp-accent-rgb), 0.6); transform: scale(1.06); }
.lp-arrow:disabled { opacity: 0.35; cursor: default; }
.lp-dots { display: flex; gap: 2px; }
.lp-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lp-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--lp-dim);
  transition: width 0.35s var(--lp-ease), background 0.35s;
}
.lp-dot[aria-current="true"]::before { width: 22px; background: var(--lp-accent); }
@media (max-width: 600px) {
  .shot { width: 66vw; max-width: 260px; border-radius: 24px; }
  .gallery { gap: 14px; padding-left: max(16px, calc(50vw - 33vw)); padding-right: max(16px, calc(50vw - 33vw)); }
  .lp-arrow { display: none; }
}

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
/* The connecting line runs through the centre of the number badges. */
.steps::before {
  content: ''; position: absolute; top: 27px; left: 12.5%; right: 12.5%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2));
  transform-origin: left center; opacity: 0.7;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  font-size: 22px; font-weight: 800; color: var(--lp-on-accent);
  background: linear-gradient(140deg, var(--lp-accent), var(--lp-accent-2));
  box-shadow: 0 0 0 6px var(--lp-bg), 0 0 0 7px rgba(var(--lp-accent-rgb), 0.35), 0 10px 30px rgba(var(--lp-accent-rgb), 0.4);
}
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; color: var(--lp-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 30px; max-width: 520px; margin: 0 auto; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; transform-origin: center top;
    background: linear-gradient(180deg, var(--lp-accent), var(--lp-accent-2)); }
  .step { text-align: left; padding: 0 0 0 78px; min-height: 56px; }
  .step::before { position: absolute; left: 0; top: 0; margin: 0; }
  .step h3 { padding-top: 13px; }
}

/* ---------- CTA ---------- */
@property --lp-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center; border-radius: 32px; padding: 64px 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(var(--lp-accent-rgb), 0.35), transparent 70%),
    radial-gradient(ellipse 45% 60% at 100% 0%, rgba(var(--lp-accent-2-rgb), 0.14), transparent 70%),
    linear-gradient(165deg, var(--lp-hero-a), var(--lp-hero-b));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
/* A slowly turning gradient ring. */
.cta::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--lp-angle), transparent 0 55%, var(--lp-accent) 75%, var(--lp-accent-2) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lp-spin 8s linear infinite;
}
.cta h2 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; }
.cta p { font-size: clamp(17px, 2vw, 19px); margin: 0 auto 30px; max-width: 560px; color: var(--lp-muted); }
.cta .badges { margin-inline: auto; }
@media (max-width: 600px) { .cta { padding: 48px 20px; border-radius: 26px; } }

/* ---------- Footer ---------- */
footer { padding: 48px 0 60px; text-align: center; color: var(--lp-muted); border-top: 1px solid var(--lp-line); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--lp-ink); margin-bottom: 16px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
footer .flinks { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer .flinks a { text-decoration: none; font-weight: 600; color: var(--lp-muted); padding: 4px 0; transition: color 0.2s; }
footer .flinks a:hover { color: var(--lp-accent); }
footer .copy { font-size: 14px; color: var(--lp-dim); margin: 0; }

/* ---------- Scroll reveal (only under .lp-motion, set by landing.js) ---------- */
.lp-motion .lp-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--lp-ease), transform 0.8s var(--lp-ease);
  transition-delay: calc(var(--lp-i, 0) * 90ms);
}
.lp-motion .lp-reveal.is-in { opacity: 1; transform: none; }
/* The feature hover lift must not wait on the reveal stagger. */
.lp-motion .feature.lp-reveal.is-in { transition: opacity 0.8s var(--lp-ease), transform 0.35s var(--lp-ease), box-shadow 0.35s var(--lp-ease); transition-delay: calc(var(--lp-i, 0) * 90ms), 0s, 0s; }
.lp-motion .steps::before { transform: scaleX(0); transition: transform 1.4s 0.2s var(--lp-ease); }
.lp-motion .steps.is-in::before { transform: scaleX(1); }
@media (max-width: 860px) {
  .lp-motion .steps::before { transform: scaleY(0); }
  .lp-motion .steps.is-in::before { transform: scaleY(1); }
}

/* ---------- Keyframes ---------- */
@keyframes lp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lp-rise-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { 0% { opacity: 0; transform: scale(0.4) rotate(-12deg); } 70% { transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes lp-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes lp-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-14px) rotate(var(--tilt)); }
}
@keyframes lp-drift {
  0%, 100% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-10px) rotate(calc(var(--rot) * 1.15)); }
}
@keyframes lp-spin { to { --lp-angle: 360deg; } }

/* A section the visitor never scrolled to still prints. */
@media print {
  .lp-motion .lp-reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tuck.t1 { transform: rotate(-16deg); }
  .tuck.t2 { transform: rotate(14deg); }
}
