/* Landing styles for share-site (lumeapp.link).
 *
 * A premium, single-column extension of the mobile app. Tokens mirror
 * lib/tokens.ts: #0C0C0C near-black canvas, soft-pink #EC79C3 accent,
 * white ink with muted/faint rungs, glass-lifted cards, pill CTAs.
 * The canvas carries the app's brand "bloom" (a soft radial wash) so
 * the page reads as Lume, not a generic dark page.
 *
 * Fonts mirror the app: Satoshi for copy, Sk-Modernist for the lume
 * wordmark. Served from /assets/fonts/. `font-display: swap` keeps the
 * page legible during the brief font fetch on cold loads.
 *
 * iOS-only — there is no Android app, so no Play Store / al:android.
 */

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/Satoshi-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sk-Modernist";
  src: url("/assets/fonts/Sk-Modernist-Bold.otf") format("opentype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c0c0c;
  /* Glass-lifted card — translucent so the brand bloom reads through,
     matching the app's surface.cardLifted. */
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --ink-high: rgba(255, 255, 255, 0.92);
  --ink-muted: rgba(255, 255, 255, 0.58);
  --ink-faint: rgba(255, 255, 255, 0.4);
  --pink: #ec79c3;
  --pink-soft: #f2a3d7;
  --periwinkle: #d9b9f2;
  --pink-ink: #15121a;
  --glass-faint: rgba(255, 255, 255, 0.04);
  --glass-lifted: rgba(255, 255, 255, 0.07);
  --ink-on-light-muted: #8a8a8a;
  /* Product photo tile — stays #fff in both modes so product
     thumbnails read edge-to-edge regardless of page background.
     Separated from --ink (which flips with theme) so the primary
     CTA pill (background: var(--ink)) can theme-flip cleanly while
     product/step tiles don't follow it. */
  --product-tile: #ffffff;
  --radius-card: 22px;
  --radius-tile: 14px;
  --shadow-card: 0 22px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-cta: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  --maxw: 460px;
  --font:
    "Satoshi", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  --font-wordmark: "Sk-Modernist", var(--font);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Brand bloom — a soft pink/periwinkle radial wash anchored top-center,
   the same warm-into-dark language as the app's hero washes. Fixed so it
   stays put while content scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      130% 75% at 50% -12%,
      rgba(236, 121, 195, 0.2),
      transparent 58%
    ),
    radial-gradient(
      90% 55% at 92% 4%,
      rgba(217, 185, 242, 0.12),
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(236, 121, 195, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px calc(40px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

/* Staggered entrance — quiet rise + fade, disabled for reduced motion. */
@keyframes lume-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page > * {
  animation: lume-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page > *:nth-child(2) {
  animation-delay: 0.06s;
}
.page > *:nth-child(3) {
  animation-delay: 0.12s;
}
.page > *:nth-child(4) {
  animation-delay: 0.18s;
}
.page > *:nth-child(5) {
  animation-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .page > * {
    animation: none;
  }
  .btn {
    transition: none;
  }
}

.wordmark {
  font-family: var(--font-wordmark);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 34ch;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition:
    transform 0.16s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.16s ease,
    background 0.16s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--pink-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--glass-faint);
  color: var(--ink-high);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--glass-lifted);
}

.btn:active {
  transform: translateY(0) scale(0.99);
  opacity: 0.9;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

/* Scan share — gradient score numeral + headline. */
.score-card {
  text-align: center;
  padding: 22px 0 14px;
}

.score-number {
  font-size: clamp(88px, 30vw, 132px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -4px;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink) 55%, var(--periwinkle));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.score-headline {
  margin: 18px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.score-meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.share-preview-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 26px 70px -34px rgba(236, 121, 195, 0.75),
    0 24px 80px -40px rgba(0, 0, 0, 0.9);
}

.share-preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.share-preview-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Routine share — period title + step rows. */
.routine-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.routine-meta strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--glass-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
}

.step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink));
  color: var(--pink-ink);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* Product thumbnail on a step row — white tile so the product photo
   reads edge-to-edge, matching the app's routine step rows. */
.step-thumb {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--product-tile);
  object-fit: contain;
  flex: 0 0 auto;
}

.step-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-brand {
  color: var(--ink-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routine-more {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Cover-variant card — no step list, just a prompt to open the app. */
.cover-card {
  text-align: center;
}

.cover-prompt {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* Product share — image + name + chips. */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--product-tile);
  display: grid;
  place-items: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image .placeholder {
  color: var(--ink-on-light-muted);
  font-size: 14px;
  font-weight: 600;
}

.product-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.product-meta {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 13px;
  border-radius: 9999px;
  background: var(--glass-lifted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-high);
}

.fit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fit-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.fit-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.3px;
}

.fit-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.5;
}

.note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-faint);
}

.footer .wordmark {
  font-size: 15px;
  color: var(--ink-muted);
}

@media (min-width: 720px) {
  .page {
    max-width: 520px;
    padding: 48px 32px 64px;
    gap: 34px;
  }
}

/* ── Root landing (lumeapp.link/) ─────────────────────────────────────
   A full-bleed product marquee fills the viewport (columns alternating
   up/down, seamless loop); layered vignette/scrim dims it; the hero
   (real app icon + headline + App Store CTA) sits on top. The hero fills the
   first 100dvh viewport (no scroll needed to act); the separator-less footer
   (Privacy/Terms, socials, wordmark) follows one viewport below for users who
   scroll. Responsive — a modern tech-landing
   feel on the app's near-black + brand-bloom canvas. All `lp*` /
   `showcase` / `col*` / `pcard*` classes are landing-only so the share
   Function pages (which use `.page`) are untouched. ── */
.landing-body {
  overflow-x: hidden;
  overscroll-behavior: none;
  background: #000;
}

/* Suppress the global body::before pink bloom on the landing page. */
.landing-body::before {
  display: none;
}

.lp {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

/* Cards leak through a CSS mask — visible only in scattered corner/edge
   windows, pure black everywhere else. */
.showcase {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image:
    radial-gradient(ellipse 28% 40% at 2%   8%, #000 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 98%  8%, #000 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 98% 92%, #000 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 2%  92%, #000 0%, transparent 100%),
    radial-gradient(ellipse 18% 28% at 2%  50%, #000 0%, transparent 100%),
    radial-gradient(ellipse 18% 28% at 98% 50%, #000 0%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-image:
    radial-gradient(ellipse 28% 40% at 2%   8%, #000 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 98%  8%, #000 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 98% 92%, #000 0%, transparent 100%),
    radial-gradient(ellipse 28% 40% at 2%  92%, #000 0%, transparent 100%),
    radial-gradient(ellipse 18% 28% at 2%  50%, #000 0%, transparent 100%),
    radial-gradient(ellipse 18% 28% at 98% 50%, #000 0%, transparent 100%);
  mask-composite: add;
}

.cols {
  display: flex;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 0 16px;
}

.col {
  flex: 0 0 clamp(148px, 23vw, 200px);
  overflow: hidden;
}

.col-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  /* Track holds the cards 2×, so -50% = one full set → a seamless loop.
     Adjacent columns reverse direction; varied speeds feel organic. */
  animation: marquee-y 46s linear infinite;
}

.col-down .col-track {
  animation-direction: reverse;
}
.cols .col:nth-child(3n) .col-track {
  animation-duration: 38s;
}
.cols .col:nth-child(3n + 2) .col-track {
  animation-duration: 54s;
}

@keyframes marquee-y {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .col-track {
    animation: none;
  }
}

/* Pause the marquee while the tab is hidden to avoid compositing offscreen. */
.landing-body.is-hidden .col-track {
  animation-play-state: paused;
}

/* Radial vignette — fades the card leak-through smoothly and keeps the
   hero text readable. Tight ellipse so corners/sides go near-black. */
.lp-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* hero scrim for text legibility */
    radial-gradient(ellipse 52% 48% at 50% 52%, rgba(0, 0, 0, 0.5), transparent 100%),
    /* tight vignette that fades the leaked cards at corners/edges */
    radial-gradient(
      ellipse 68% 72% at 50% 50%,
      transparent 20%,
      rgba(0, 0, 0, 0.45) 52%,
      rgba(0, 0, 0, 0.82) 74%,
      rgba(0, 0, 0, 0.96) 100%
    );
}

/* Foreground — centered content column over the marquee. */
.lp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
}

.lp-content > * {
  animation: lume-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lp-content > *:nth-child(2) {
  animation-delay: 0.07s;
}
.lp-content > *:nth-child(3) {
  animation-delay: 0.14s;
}
@media (prefers-reduced-motion: reduce) {
  .lp-content > * {
    animation: none;
  }
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* mobile: wordmark centered */
}

.lp-nav-cta {
  display: none; /* hidden on mobile */
  height: 40px;
  font-size: 14px;
  padding: 0 18px;
  border-radius: 9999px;
}

.lp-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

/* The real Lume app icon (served from /app-icon.png), iOS squircle. */
.lp-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin-bottom: 28px;
}

.lp-hero h1 {
  font-size: clamp(32px, 8vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  width: 100%;
  max-width: 15ch;
  overflow-wrap: break-word;
  margin-bottom: 12px;
}

.lp-hero .lede {
  width: 100%;
  max-width: 32ch;
  font-size: 17px;
  color: var(--ink-muted);
}

.lp-hero .actions {
  width: 100%;
  max-width: 340px;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-apple {
  margin-right: -2px;
}

/* Footer sits over the marquee — no separator on the landing. */
/* ── Full-width footer ── */
.lp-footer {
  background: #000;
  padding-top: 64px;
  overflow: hidden;
}

/* Row 1 — links left, social icons right */
.lp-footer-meta {
  max-width: 1080px;
  margin: 0 auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lp-footer-links a {
  font-size: 17px;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.lp-footer-links a:hover { color: var(--ink); }

.lp-footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-footer-socials a {
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.lp-footer-socials a:hover { color: var(--ink); }

.lp-footer-socials svg {
  width: 24px;
  height: 24px;
}

/* Row 2 — legal entity. Keep the public surface Lume-first. */
.lp-footer-bottom {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-footer-copy {
  margin: 0;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Full-bleed wordmark — JS sets font-size to exactly fill viewport width
   after Sk-Modernist loads. Brand gradient text + bottom-fade mask so the
   wordmark feels woven into the page rather than floating on it. */
.lp-footer-wordmark {
  margin: 0 0 -0.12em;
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 35vw;
  letter-spacing: -0.02em;
  line-height: 0.85;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  /* Brand gradient text — semi-transparent pink → periwinkle */
  background: linear-gradient(
    115deg,
    rgba(242, 163, 215, 0.55) 0%,
    rgba(236, 121, 195, 0.45) 42%,
    rgba(217, 185, 242, 0.38) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Mask fades the bottom half into the black background */
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
}

@media (max-width: 600px) {
  .lp-footer {
    padding-top: 48px;
  }
  .lp-footer-links {
    gap: 20px;
  }
  .lp-footer-links a,
  .lp-footer-copy {
    font-size: 15px;
  }
  .lp-footer-bottom {
    margin-bottom: 28px;
  }
}

/* ── Product card (marquee) — mirrors the app's ProductCard: product
   floating on a white tile (~82% contain), non-uppercase muted brand,
   bold 2-line name, price ↔ rating row. ── */
.pcard {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 12px;
  /* No backdrop-filter: the cards sit behind a heavy mask + vignette so the
     blur is imperceptible, and animating ~72 blurred layers forced per-frame
     re-rasterization (jank/battery drain on mid/low-end devices and Safari). */
}

.pcard-img {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
}

.pcard-img img {
  width: 82%;
  height: 86%;
  object-fit: contain;
}

.pcard-brand {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-faint);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pcard-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pcard-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Price + retailer cluster (left of the foot row), retailer shown as a
   small disc — same treatment as the app's RetailerLogo. */
.pcard-buy {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pcard-retailer {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--glass-lifted);
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 2px;
  flex: 0 0 auto;
}

/* Desktop — larger hero. */
@media (min-width: 860px) {
  .lp-nav {
    justify-content: space-between;
  }
  .lp-nav-cta {
    display: inline-flex;
  }
  .lp-icon {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    margin-bottom: 36px;
  }
  .lp-hero h1 {
    font-size: clamp(52px, 5.4vw, 76px);
    margin-bottom: 16px;
  }
  .lp-hero .lede {
    font-size: 18px;
  }
  .lp-hero .actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
    margin-top: 44px;
  }
  .lp-footer {
    padding-top: 64px;
  }
}

/* ── Light theme ──────────────────────────────────────────────────────
   Light-mode palette parity with the iOS app (lib/theme/palettes.ts):
   a warm off-white page (#F7F6F3), pure-white cards lifting off it,
   inks as black-alpha rungs (0.88 / 0.56 / 0.40) tuned to mirror the
   white-alpha dark rungs. Brand pinks + periwinkle stay the same.
   The Sign-in-with-Apple-style commit pill (background: var(--ink))
   flips automatically: dark pill on the light page, white pill on
   the dark page — same monochrome direction the app already uses.

   The landing page (`<body class="landing-body">`) is intentionally
   *not* themed light because the full-bleed marquee + radial vignette
   need a pitch-black canvas to read; the .landing-body override below
   re-asserts dark vars regardless of system scheme so the marquee
   landing keeps its premium feel everywhere. ─────────────────────── */
/* Theme override hook — JS sets `<html data-theme="light|dark">` from
   the user's saved preference (see /theme-toggle.js). The override
   wins over `prefers-color-scheme` so an explicit toggle holds across
   page loads and across system theme changes. data-theme="dark" is a
   no-op against the default-dark `:root` vars but is still applied so
   the toggle's state is queryable from JS. */
:root[data-theme="light"] {
  --bg: #f7f6f3;
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.07);
  --line: rgba(0, 0, 0, 0.06);
  --line-strong: rgba(0, 0, 0, 0.14);
  --ink: #1a1820;
  --ink-high: rgba(26, 24, 32, 0.88);
  --ink-muted: rgba(26, 24, 32, 0.56);
  --ink-faint: rgba(26, 24, 32, 0.40);
  --glass-faint: rgba(0, 0, 0, 0.03);
  --glass-lifted: rgba(0, 0, 0, 0.05);
  --shadow-card: 0 22px 60px -24px rgba(20, 20, 24, 0.18);
  --pink-ink: #ffffff;
}

:root[data-theme="light"] body::before {
  background:
    radial-gradient(
      130% 75% at 50% -12%,
      rgba(236, 121, 195, 0.12),
      transparent 58%
    ),
    radial-gradient(
      90% 55% at 92% 4%,
      rgba(217, 185, 242, 0.08),
      transparent 55%
    );
}

:root[data-theme="light"] ::selection {
  background: rgba(236, 121, 195, 0.28);
  color: #1a1820;
}

/* Landing page stays hard dark regardless of toggle/system — override
   the override under .landing-body. */
:root[data-theme="light"] .landing-body {
  --bg: #0c0c0c;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --ink-high: rgba(255, 255, 255, 0.92);
  --ink-muted: rgba(255, 255, 255, 0.58);
  --ink-faint: rgba(255, 255, 255, 0.4);
  --glass-faint: rgba(255, 255, 255, 0.04);
  --glass-lifted: rgba(255, 255, 255, 0.07);
  --pink-ink: #15121a;
  --shadow-card: 0 22px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* Theme toggle pill — small icon button injected into each footer.
   Shows the OPPOSITE icon (the action you'd take): sun visible in
   dark mode, moon visible in light mode. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border-radius: 9999px;
  border: 1px solid var(--line-strong);
  background: var(--glass-faint);
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--glass-lifted);
  border-color: var(--line-strong);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Show sun in dark, moon in light. */
.theme-toggle-icon--moon {
  display: none;
}
:root[data-theme="light"] .theme-toggle-icon--sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle-icon--moon {
  display: inline-block;
}

/* When system is light and there's no explicit override. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle-icon--sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .theme-toggle-icon--moon {
    display: inline-block;
  }
}

/* Landing footer wrapper for the toggle when it lives next to the
   social icons row. */
.lp-footer-theme {
  display: flex;
  align-items: center;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f3;
    --card: #ffffff;
    --card-border: rgba(0, 0, 0, 0.07);
    --line: rgba(0, 0, 0, 0.06);
    --line-strong: rgba(0, 0, 0, 0.14);
    --ink: #1a1820;
    --ink-high: rgba(26, 24, 32, 0.88);
    --ink-muted: rgba(26, 24, 32, 0.56);
    --ink-faint: rgba(26, 24, 32, 0.40);
    --glass-faint: rgba(0, 0, 0, 0.03);
    --glass-lifted: rgba(0, 0, 0, 0.05);
    --shadow-card: 0 22px 60px -24px rgba(20, 20, 24, 0.18);
    /* Pill text — the commit CTA is `background: var(--ink)`, so on
       light theme the pill goes dark + the label needs to be light. */
    --pink-ink: #ffffff;
  }

  /* Brand bloom — softer on the light page so the wash reads as a
     hint of warmth, not a pink overlay. */
  body::before {
    background:
      radial-gradient(
        130% 75% at 50% -12%,
        rgba(236, 121, 195, 0.12),
        transparent 58%
      ),
      radial-gradient(
        90% 55% at 92% 4%,
        rgba(217, 185, 242, 0.08),
        transparent 55%
      );
  }

  ::selection {
    background: rgba(236, 121, 195, 0.28);
    color: #1a1820;
  }

  /* Landing page stays hard dark regardless of system scheme — the
     marquee + vignette were designed against a black canvas. Re-
     assert the dark var set so the rest of the file's selectors
     (.lp*, .pcard*) keep their original look in light mode too. */
  .landing-body {
    --bg: #0c0c0c;
    --card: rgba(255, 255, 255, 0.055);
    --card-border: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --ink: #ffffff;
    --ink-high: rgba(255, 255, 255, 0.92);
    --ink-muted: rgba(255, 255, 255, 0.58);
    --ink-faint: rgba(255, 255, 255, 0.4);
    --glass-faint: rgba(255, 255, 255, 0.04);
    --glass-lifted: rgba(255, 255, 255, 0.07);
    --pink-ink: #15121a;
    --shadow-card: 0 22px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
