/* Landing page (lusis.app/) — loaded after style.css, index.html only.
 * Signup-first: paid traffic arrives on phones, so the invite form sits on the
 * first screen; screens and cards are below for anyone who scrolls.
 * Tokens come from style.css. */

body.landing { overflow-x: hidden; }
/* style.css gives <main> a 20px gutter; this page sets gutters per section. */
body.landing main { padding: 0 0 64px; }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.topbar .brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px;
}
.topbar .brand img { border-radius: 8px; }
.topbar-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 8px 4px; }
.topbar-link:hover { text-decoration: underline; }

/* ── Hero: mascot + headline + the form ─────────────────── */
.lp-hero {
  max-width: 1080px; margin: 0 auto; padding: 18px 16px 0;
  display: grid; gap: 18px;
}
.lp-hero-intro { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.lp-mascot { width: 96px; height: auto; display: block; }
.beta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-tint);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 8px;
}
.beta-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) { .beta-pill .dot { animation: none; } }
.lp-headline {
  font-size: clamp(32px, 9vw, 60px); line-height: 1.02;
  letter-spacing: -0.025em; font-weight: 800; color: var(--text);
}
.lp-headline em { font-style: normal; color: var(--accent); }
.lp-tagline { margin-top: 8px; font-size: 17px; line-height: 1.4; color: var(--text-secondary); }

/* The invite card reuses style.css's .waitlist look, tightened for the first screen. */
body.landing .lp-signup { margin: 0; padding: 20px 18px 16px; max-width: none; }
body.landing .lp-signup h2 { margin-bottom: 4px; }
.lp-signup-note { font-size: 14px; color: var(--text-secondary); margin: 2px 0 4px; }
.seats-line { font-size: 15px; font-weight: 700; color: var(--accent); margin: 2px 0; }
/* One row for "Your phone" + both choices at 320–430px (Android used to wrap). */
body.landing .waitlist .platform-row { flex-wrap: nowrap; gap: 8px; justify-content: center; }
body.landing .waitlist .platform-row legend { float: left; margin-right: 2px; white-space: nowrap; font-size: 14px; }
body.landing .waitlist .pill { padding: 7px 12px; white-space: nowrap; }
body.landing .waitlist form { margin-top: 10px; }

@media (min-width: 860px) {
  .lp-hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-top: 48px; }
  .lp-hero-intro { grid-template-columns: 1fr; gap: 10px; }
  .lp-mascot { width: 170px; }
  .lp-tagline { font-size: 20px; }
}

/* ── Section headings ────────────────────────────────────── */
.lp-section-title {
  font-size: clamp(26px, 6.5vw, 36px); line-height: 1.15; font-weight: 800;
  letter-spacing: -0.015em; text-align: center; color: var(--text);
}
.lp-section-sub { text-align: center; color: var(--text-secondary); margin-top: 6px; }

/* ── Screens ─────────────────────────────────────────────── */
.lp-screens { max-width: 1180px; margin: 56px auto 0; padding: 0 0 8px; scroll-margin-top: 64px; }
.lp-screens .lp-section-title, .lp-screens .lp-section-sub { padding: 0 16px; }
.screen-row {
  display: flex; gap: 18px; margin-top: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 16px 18px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen-row::-webkit-scrollbar { display: none; }
.screen-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.screen { flex: 0 0 72%; max-width: 280px; scroll-snap-align: center; }
.screen img {
  width: 100%; height: auto; display: block;
  border-radius: 34px; border: 6px solid #1c1d1c;
  box-shadow: 0 10px 30px rgba(58, 46, 34, 0.18); background: #1c1d1c;
}
.screen figcaption { margin-top: 14px; font-size: 15px; color: var(--text-secondary); line-height: 1.45; }
.screen figcaption strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
@media (min-width: 1000px) {
  .screen-row { justify-content: center; overflow: visible; }
  .screen { flex: 0 1 250px; }
}
.map-credit { font-size: 12px; color: var(--text-secondary); text-align: center; padding: 0 16px; }

/* ── Road band ───────────────────────────────────────────── */
.lp-band { position: relative; max-width: 1080px; margin: 48px 16px 0; border-radius: 24px; overflow: hidden; }
@media (min-width: 1112px) { .lp-band { margin-inline: auto; } }
/* The lynx walks along the bottom ~third of the square frame: anchor to the bottom
   so its legs are never cropped, and give wide screens more height. */
.lp-band img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 100%; display: block; }
@media (min-width: 860px) { .lp-band img { height: 520px; } }
.lp-band-copy {
  position: absolute; inset: 0 0 auto 0; padding: 22px 20px 70px;
  background: linear-gradient(to bottom, rgba(20, 16, 12, .62), transparent);
  color: #FFFCF4; text-shadow: 0 1px 8px rgba(20, 16, 12, .35);
}
.lp-band-copy p { font-size: 22px; line-height: 1.3; font-weight: 700; }
.lp-band-copy em { font-style: normal; font-weight: 500; opacity: .92; }

/* ── Privacy cards, 2×2 ─────────────────────────────────── */
.lp-privacy { max-width: 880px; margin: 56px auto 0; padding: 0 16px; }
.lp-cards { list-style: none; margin-top: 22px; display: grid; gap: 12px; grid-template-columns: 1fr; }
/* Phones: one card per row (Ethan: reads better on mobile). Wide: 2×2. */
@media (min-width: 700px) { .lp-cards { grid-template-columns: 1fr 1fr; } }
.lp-cards li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px 14px; color: var(--text-secondary); box-shadow: var(--shadow-soft);
  font-size: 14px; line-height: 1.45;
}
.lp-cards strong { display: block; color: var(--text); font-size: 16px; margin: 8px 0 4px; line-height: 1.25; }
.card-icon {
  width: 36px; height: 36px; border-radius: 12px; background: var(--accent-tint);
  display: inline-flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 700px) { .lp-cards { gap: 16px; } .lp-cards li { padding: 22px 20px; font-size: 15px; } .lp-cards strong { font-size: 18px; } }

/* ── Photo + second signup prompt ───────────────────────── */
.lp-join {
  max-width: 1080px; margin: 56px 16px 0; display: grid; gap: 0;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow);
}
@media (min-width: 1112px) { .lp-join { margin-inline: auto; } }
/* Square window onto the 9:16 photo, anchored low: ear tips (~36% down the
   frame) to paws (~88%) must both be inside — Ethan: toes were cropped at 4:3. */
.lp-join-art { aspect-ratio: 1 / 1; overflow: hidden; }
.lp-join-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 84%; display: block; }
.lp-join-copy { padding: 24px 20px 26px; text-align: center; }
.lp-join-copy h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.lp-join-copy p { color: var(--text-secondary); margin-top: 8px; }
.lp-join-copy .cta { margin-top: 18px; display: inline-block; }
@media (min-width: 860px) {
  .lp-join { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  /* Fill the row without letting the 9:16 photo's intrinsic height set it. */
  .lp-join-art { aspect-ratio: auto; position: relative; height: 100%; min-height: 420px; }
  /* Wide screens show a wider-than-square window: anchor higher so the ear tips
     stay in frame (Ethan 2026-09-28: ears clipped on PC, phone was right). */
  .lp-join-art img { position: absolute; inset: 0; object-position: 50% 77%; }
  .lp-join-copy { padding: 40px; text-align: left; }
  .lp-join-copy h2 { font-size: 36px; }
}

/* Commitments: own gutters now that <main> has none. */
body.landing .commitments { margin-left: 16px; margin-right: 16px; }
@media (min-width: 800px) { body.landing .commitments { margin-left: auto; margin-right: auto; } }

@media (prefers-color-scheme: dark) { .screen img { border-color: #3A4138; } }

/* After the close date signup.js adds .beta-closed: no expired urgency claims on the page. */
.beta-closed .urgency { display: none !important; }

/* The mascot art has a baked cream background (--mascot-bg): present it as a
   rounded tile rather than a hard-edged square. */
.lp-mascot { border-radius: 18px; }
body.landing .waitlist .seats-line { color: var(--accent); font-weight: 700; }
.lp-join-copy .seats-line { color: var(--accent); font-weight: 700; }

/* Very small phones (≤ 359 px, e.g. iPhone SE 1st gen): the headline clipped
   beside the 96 px mascot. Shrink both so "Roam far, stay close." fits. */
@media (max-width: 359px) {
  .lp-hero-intro { grid-template-columns: 68px 1fr; gap: 10px; }
  .lp-mascot { width: 68px; border-radius: 14px; }
  .lp-headline { font-size: 28px; }
  .topbar-link { white-space: nowrap; }
  .lp-hero-intro { grid-template-columns: 68px minmax(0, 1fr); }
  /* The one-row "Your phone · iPhone · Android" needs ~300 px; below 360 the
     label takes its own line and the two choices stay side by side. */
  body.landing .waitlist .platform-row { flex-wrap: wrap; }
  body.landing .waitlist .platform-row legend { float: none; width: 100%; margin: 0 0 6px; text-align: center; }
  body.landing .lp-signup { padding: 18px 14px 14px; }
}

/* Top-bar "Get early access" splat (Ethan-approved wording): the form is on the first screen, so this is
   the way back to it once a visitor has scrolled (the bar is sticky). */
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-splat {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--accent-deep);
  text-decoration: none; padding: 6px 11px; border-radius: 999px;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 35%, transparent);
  white-space: nowrap;
}
.topbar-splat:hover { filter: brightness(1.08); }
.topbar-splat:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ≤359px: brand + splat + "See the app" don't fit one bar — keep the splat. */
@media (max-width: 359px) { .topbar-link { display: none; } }
