/* LykMnd colors — values are verbatim from src/constants/branding.ts (via lykmnd-web-brand-tokens.ts). Light mode only. */
:root{
  /* Brand */
  --lykmnd-brand:#0C143C;
  --lykmnd-pulse:#2563EB;
  --lykmnd-favorites:#9966FF;

  /* Neutrals & surfaces */
  --lykmnd-white:#FFFFFF;
  --lykmnd-page:#FFFFFF;
  --lykmnd-muted:#6B7280;
  --lykmnd-border:#E5E7EB;
  --lykmnd-border-light:#D1D5DB;
  --lykmnd-input-fill:#F9FAFB;

  /* Semantic status */
  --lykmnd-error:#EF4444;
  --lykmnd-destructive:#FF0000;

  /* Overlay */
  --lykmnd-overlay:rgba(12,20,60,0.65);

  /* Web-only tints derived from the brand navy (marketing surfaces) */
  --brand-900:#060A22;
  --brand-800:#0C143C;
  --brand-700:#16215C;
  --brand-tint-08:rgba(12,20,60,0.08);
  --brand-tint-04:rgba(12,20,60,0.04);
  --pulse-tint-10:rgba(37,99,235,0.10);
  --favorites-tint-10:rgba(153,102,255,0.10);

  /* Confirmed from the TestFlight build (sampled from app screenshots, Aug 2026) */
  --lykmnd-link:#2563EB;          /* matches marketing pulse / section headers */
  --lykmnd-card-fill:#F8FAFC;     /* embedded media card fill inside feed posts */
  --badge-book:#0C143C;           /* media-type badge on grid tiles */
  --badge-album:#1B5E20;
  --badge-song:#A04A00;
  --like-heart:#FF4D4F;           /* liked-heart accent on notification rows */

  /* Semantic aliases */
  --surface-page:var(--lykmnd-page);
  --surface-card:var(--lykmnd-white);
  --surface-sunken:var(--lykmnd-input-fill);
  --surface-inverse:var(--lykmnd-brand);
  --text-heading:var(--lykmnd-brand);
  --text-body:#374151;
  --text-muted:var(--lykmnd-muted);
  --text-inverse:var(--lykmnd-white);
  --text-link:var(--lykmnd-link);
  --border-default:var(--lykmnd-border);
  --border-strong:var(--lykmnd-border-light);
  --accent-exploring:var(--lykmnd-pulse);
  --accent-favorites:var(--lykmnd-favorites);
  --focus-ring:var(--lykmnd-pulse);
}

/* Dark mode colors */
[data-theme="dark"]{
  /* Brand — white logo in dark mode */
  --lykmnd-brand:#FFFFFF;
  --lykmnd-pulse:#4F7CFF;
  --lykmnd-favorites:#9966FF;

  /* Neutrals & surfaces */
  --lykmnd-white:#FFFFFF;
  --lykmnd-page:#1C1F26;
  --lykmnd-muted:#9CA3AF;
  --lykmnd-border:#3A3F4A;
  --lykmnd-border-light:#4A4F5A;
  --lykmnd-input-fill:#2A2D35;

  /* Semantic status */
  --lykmnd-error:#EF4444;
  --lykmnd-destructive:#FF0000;

  /* Overlay */
  --lykmnd-overlay:rgba(0,0,0,0.75);

  /* Web-only tints for dark mode */
  --brand-900:#000000;
  --brand-800:#0C0C0C;
  --brand-700:#1C1C1C;
  --brand-tint-08:rgba(255,255,255,0.08);
  --brand-tint-04:rgba(255,255,255,0.04);
  --pulse-tint-10:rgba(79,124,255,0.15);
  --favorites-tint-10:rgba(153,102,255,0.15);

  /* Dark mode specific */
  --lykmnd-link:#4F7CFF;
  --lykmnd-card-fill:#2A2D35;
  --badge-book:#FFFFFF;
  --badge-album:#4CAF50;
  --badge-song:#FF9800;
  --like-heart:#FF4D4F;

  /* Semantic aliases */
  --surface-page:var(--lykmnd-page);
  --surface-card:#2A2D35;
  --surface-sunken:#1C1F26;
  --surface-inverse:#000000;
  --text-heading:#FFFFFF;
  --text-body:#E5E7EB;
  --text-muted:var(--lykmnd-muted);
  --text-inverse:#FFFFFF;
  --text-link:var(--lykmnd-link);
  --border-default:var(--lykmnd-border);
  --border-strong:var(--lykmnd-border-light);
  --accent-exploring:var(--lykmnd-pulse);
  --accent-favorites:var(--lykmnd-favorites);
  --focus-ring:var(--lykmnd-pulse);
}

/* Default avatar / profile header palette (assigned at signup) */
:root{
  --avatar-sage-green:#8FA882;
  --avatar-olive:#606C38;
  --avatar-mint-cream:#C1D0C9;
  --avatar-muted-clay:#CD7F67;
  --avatar-apricot-ice:#FBC4AB;
  --avatar-warm-sand:#DDB892;
  --avatar-charcoal-slate:#4A4E69;
  --avatar-platinum:#D1D1CB;
  --avatar-taupe:#B7B7A4;
  --avatar-muted-amber:#DEAB52;
}

/* Match the iOS/Android app + header nav: system UI stack only (no custom display font). */
:root{
  --font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-display:var(--font-ui);
  --font-body:var(--font-ui);

  /* In-app sizes (verbatim) */
  --text-app-body:14px;
  --text-app-button:15px;
  --text-app-title:18px;
  --text-app-hero:22px;

  /* Web scale */
  --text-xs:13px;
  --text-sm:15px;
  --text-md:17px;
  --text-lg:20px;
  --text-xl:26px;
  --text-2xl:34px;
  --text-3xl:46px;
  --text-4xl:64px;
  --text-5xl:88px;

  --weight-regular:400;
  --weight-medium:500;
  --weight-semibold:600;
  --weight-bold:700;
  --weight-extrabold:800;
  --weight-black:900;

  --leading-tight:0.94;
  --leading-snug:1.15;
  --leading-body:1.55;
  --leading-app-body:20px;

  --tracking-display:-0.03em;
  --tracking-tight:-0.015em;
  --tracking-normal:0;
  --tracking-caps:0.10em;
}

:root{
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  --space-20:80px;
  --space-24:96px;
  --space-32:128px;

  --page-gutter:24px;
  --content-max:1200px;
  --prose-max:640px;
  --modal-max-width:320px; /* verbatim: MODAL_MAX_WIDTH_PX */
  --section-y:112px;
  --control-height:48px;
  --control-height-compact:38px;
  --tap-target-min:44px;
}

:root{
  --radius-button:12px;         /* BUTTON_RADIUS_PX */
  --radius-button-compact:8px;  /* BUTTON_RADIUS_COMPACT_PX */
  --radius-modal:16px;          /* MODAL_RADIUS_PX */
  --radius-card:16px;
  --radius-media:20px;
  --radius-input:12px;
  --radius-chip:999px;
  --radius-full:999px;
}

/* The app is flat: borders do the work, shadows are reserved for modals and lifted media. */
:root{
  --shadow-none:none;
  --shadow-card:0 1px 2px rgba(12,20,60,0.06);
  --shadow-lifted:0 12px 32px rgba(12,20,60,0.10);
  --shadow-modal:0 24px 64px rgba(12,20,60,0.24);
  --shadow-press:inset 0 1px 0 rgba(12,20,60,0.06);
  --hairline:1px solid var(--border-default);
}

:root{
  --duration-fast:120ms; /* @kind other */
  --duration-base:200ms; /* @kind other */
  --duration-slow:420ms; /* @kind other */
  --ease-standard:cubic-bezier(0.2,0.8,0.2,1); /* @kind other */
  --ease-out:cubic-bezier(0,0,0.2,1); /* @kind other */
  --press-scale:0.97; /* @kind other */
  --hover-opacity:0.85; /* @kind other */
}

html{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  width:100%;
  max-width:100vw;
}
body{
  margin:0;
  background:var(--surface-page);
  color:var(--text-body);
  font-family:var(--font-body);
  font-size:var(--text-md);
  line-height:var(--leading-body);
  overflow-x:hidden;
  width:100%;
  max-width:100vw;
  touch-action:pan-y;
}
#root{
  width:100%;
  max-width:100vw;
}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--text-heading);letter-spacing:var(--tracking-display);line-height:var(--leading-tight);margin:0}
p{margin:0}
a{color:var(--text-link);text-decoration:none}
a:hover{color:var(--lykmnd-brand);text-decoration:underline}
*{box-sizing:border-box}
::selection{background:var(--pulse-tint-10)}

body{background:var(--surface-page)}

/* Site responsive layout helpers */
@media (max-width: 960px) {
  :root {
    --text-4xl: 48px;
    --text-5xl: 56px;
    --section-y: 72px;
  }
  .lm-nav-links { display: none !important; }
  .lm-nav-compact { display: flex !important; align-items: center; gap: 10px; }
  .lm-grid-2 { grid-template-columns: 1fr !important; gap: 40px !important; }
  .lm-grid-3 { grid-template-columns: 1fr !important; }
  .lm-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .lm-grid-5 { grid-template-columns: 1fr 1fr !important; }
  .lm-hero-phones { flex-direction: column !important; align-items: center !important; }
  /* Keep marketing hero trios in a row — they scale down on small screens instead */
  .lm-hero-phones.lm-hero-cascade-wrap {
    flex-direction: row !important;
    align-items: flex-end !important;
  }
  .lm-hero-pad {
    padding-top: 72px !important;
    padding-bottom: 80px !important;
    min-height: 0 !important;
  }
  /* index-2: cascade sits below the pad — drop the old pad bottom gap */
  .lm-hero:has(> .lm-hero-cascade-wrap) .lm-hero-pad {
    padding-bottom: 8px !important;
  }
  .lm-hero-title { font-size: 40px !important; }
  .lm-cta-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }
  .lm-cta-row > * { width: auto; justify-content: center; }
  .lm-hero-cats { max-width: 300px !important; }
  .lm-section-h2 { font-size: 36px !important; }
  .lm-cta-title { font-size: 40px !important; }
  .lm-faq-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .lm-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lm-table-scroll table { min-width: 480px; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 16px; --text-5xl: 42px; }
  .lm-grid-4 { grid-template-columns: 1fr !important; }
  .lm-grid-5 { grid-template-columns: 1fr !important; }
  .lm-hero-title { font-size: 32px !important; line-height: 1.08 !important; }
  .lm-hero-lead { font-size: 16px !important; max-width: 320px !important; }
  .lm-section-h2 { font-size: 30px !important; }
  .lm-cta-title { font-size: 32px !important; }
  .lm-pillars-row { gap: 22px !important; }
  .lm-pillars-row > div { border: none !important; padding-top: 4px; }

  /*
   * index-2 cascade: scale to viewport width so side phones stay in frame,
   * and size the wrap to the scaled height (no empty gap above the phones).
   */
  .lm-hero-cascade-wrap {
    margin-top: 8px !important;
    min-height: 0 !important;
    height: calc(552px * (100vw - 32px) / 680px) !important;
    padding-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    align-items: flex-start !important;
  }
  .lm-hero-cascade {
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 680px !important;
    height: 552px !important;
    margin-left: -340px !important;
    transform: scale(calc((100vw - 32px) / 680)) !important;
    transform-origin: top center !important;
    margin-bottom: 0 !important;
  }
  /* Pull side phones toward the middle (index-2 only) */
  .lm-hero-cascade .lm-hero-phone--left {
    left: 110px !important;
  }
  .lm-hero-cascade .lm-hero-phone--right {
    right: 110px !important;
  }

  /* index.html phone trio */
  .lm-hero-phones.lm-hero-cascade-wrap {
    height: 320px !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }
  .lm-hero-phones.lm-hero-cascade-wrap > * {
    transform: scale(0.55);
    transform-origin: bottom center;
  }
}

@media (max-width: 400px) {
  .lm-hero-cascade-wrap {
    height: calc(552px * (100vw - 24px) / 680px) !important;
    padding-bottom: 16px !important;
  }
  .lm-hero-cascade {
    transform: scale(calc((100vw - 24px) / 680)) !important;
  }
  .lm-hero-cascade .lm-hero-phone--left {
    left: 128px !important;
  }
  .lm-hero-cascade .lm-hero-phone--right {
    right: 128px !important;
  }
}

/* Anchor scroll — land section headers below the sticky 72px nav */
#how {
  scroll-margin-top: 68px;
}
#faq,
#download,
#features {
  scroll-margin-top: 88px;
}

/* Shared split band — ValueProp + FinalCTA (matched footprint) */
.lm-split-band {
  background: var(--surface-page);
  padding: 64px 0;
  overflow: hidden;
}
.lm-split-band--inverse {
  background: var(--surface-inverse);
  color: var(--text-inverse);
}
.lm-split-band-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.lm-split-band-accent {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  line-height: 1.35;
}
.lm-split-band--inverse .lm-split-band-accent {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.lm-split-band-accent--action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: inherit;
  font-weight: inherit;
}
.lm-split-band-note {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
}
.lm-split-band-note--on-light {
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .lm-split-band-inner {
    gap: 40px !important;
  }
}
@media (max-width: 640px) {
  .lm-split-band {
    padding: 48px 0;
  }
  .lm-split-band-inner {
    gap: 28px !important;
  }
  .lm-split-band-accent {
    font-size: 18px;
  }
}

/* index-2 — How it works: Alternating Journey */
.lm-how-journey {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.lm-how-journey::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    var(--lykmnd-favorites),
    #F5C518,
    var(--lykmnd-pulse),
    var(--lykmnd-brand)
  );
  opacity: 0.35;
  pointer-events: none;
}
.lm-how-step {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
}
.lm-how-step:nth-child(odd) .lm-how-copy {
  text-align: right;
}
.lm-how-step:nth-child(even) .lm-how-copy {
  order: 3;
  text-align: left;
}
.lm-how-step:nth-child(even) .lm-how-node {
  /* Keep icon on the vertical spine (media left, node center, copy right) */
  order: 2;
}
.lm-how-step:nth-child(even) .lm-how-media {
  order: 1;
}
.lm-how-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  /* Ring matches section fill so the spine reads as continuous behind the node */
  box-shadow: 0 0 0 6px var(--surface-page);
  flex: none;
}
.lm-how-media {
  /* Shared frame for Favorites + Exploring shots (both 619×284) — keep in sync */
  --lm-how-shot-h: 120px;
  --lm-how-shot-w: calc(var(--lm-how-shot-h) * 619 / 284);
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  width: min(100%, var(--lm-how-shot-w));
  height: var(--lm-how-shot-h);
  max-width: var(--lm-how-shot-w);
  max-height: var(--lm-how-shot-h);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 280ms ease;
}
.lm-how-step:nth-child(odd) .lm-how-media:not(.lm-how-media-empty),
.lm-how-step:nth-child(even) .lm-how-media:not(.lm-how-media-empty) {
  margin-left: auto;
  margin-right: auto;
}
.lm-how-media:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: none;
}
.lm-how-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
.lm-how-media .lm-theme-shot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.lm-how-media .lm-theme-shot-dark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.lm-how-media-empty {
  border: none;
  background: transparent;
  width: auto;
  height: auto;
  max-height: none;
  pointer-events: none;
}
.lm-how-media-empty:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .lm-how-journey::before {
    left: 24px;
    transform: none;
  }
  .lm-how-step {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px 0;
  }
  .lm-how-step .lm-how-media {
    display: none;
  }
  .lm-how-step .lm-how-copy,
  .lm-how-step:nth-child(even) .lm-how-copy {
    order: 2;
    text-align: left;
  }
  .lm-how-step:nth-child(even) .lm-how-node {
    order: 1;
  }
}

/* index-2 — feature stack as island cards on a sunken tray */
.lm-feature-islands {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  padding: 28px 0 36px;
  --lm-island-media-h: 360px;
  /* Shared Discover + Exploring phone box (contain — no stretch) */
  --lm-island-phone-max-w: 340px;
  --lm-island-phone-max-h: 390px;
}
.lm-feature-islands-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: grid;
  gap: 20px;
}
.lm-island {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(12, 20, 60, 0.05);
  /* Same inset on all four islands (Favorites / Discover / Exploring / Connect) */
  --lm-island-pad-top: 36px;
  --lm-island-pad-x: 40px;
  --lm-island-pad-bottom: 36px;
  padding: var(--lm-island-pad-top) var(--lm-island-pad-x) var(--lm-island-pad-bottom);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}
.lm-favorites-layout,
.lm-discover-spotlight,
.lm-explore-grid,
.lm-connect-grid {
  /* Pack to content — don’t stretch and leave a blank band under the media/copy */
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.lm-island-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}
.lm-island-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
}
.lm-island-foot-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  flex: none;
}
.lm-island-foot-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin: 0 0 6px;
}
.lm-island-foot-line {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Favorites — pillars under copy */
.lm-favorites-pillars {
  margin-top: 28px;
}
/* 3-up tiles under copy — breaks the vertical list pattern */
.lm-favorites-pillars .lm-island-foot {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-default);
  padding-top: 22px;
}
.lm-favorites-pillars .lm-island-foot-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}
.lm-favorites-pillars .lm-island-foot-mark {
  margin-bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
/* Watching chip is a 7% navy wash — invisible on dark cards */
[data-theme="dark"] .lm-favorites-pillars .lm-island-foot-item:first-child .lm-island-foot-mark {
  background: #3A3F4A !important;
}
.lm-favorites-pillars .lm-island-foot-name {
  font-size: 15px;
  margin-bottom: 4px;
}
.lm-favorites-pillars .lm-island-foot-line {
  font-size: 12px;
  line-height: 1.4;
}
.lm-favorites-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  max-height: var(--lm-island-media-h);
  min-height: 0;
}
.lm-favorites-visual img {
  /* Fill media budget — width follows phone aspect; don't let inline width blow the card */
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  max-height: var(--lm-island-media-h);
  object-fit: contain;
}
.lm-favorites-visual .lm-theme-shot {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: var(--lm-island-media-h);
}
.lm-favorites-visual .lm-theme-shot-dark {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Discover — product spotlight */
/* Discover — media left + spine rail (option 4) */
.lm-discover-spotlight {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
}
.lm-discover-lead {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}
.lm-discover-beats {
  list-style: none;
  /* Inset spine so ::before dots (left:-6px + 4px ring) aren’t clipped */
  margin: 28px 0 0 12px;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border-default);
  grid-template-columns: 1fr;
}
.lm-discover-beats li {
  position: relative;
  display: block;
  padding: 0 0 22px 20px;
  min-width: 0;
}
.lm-discover-beats li:last-child {
  padding-bottom: 0;
}
.lm-discover-beats li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lykmnd-pulse);
  box-shadow: 0 0 0 4px var(--surface-card);
}
.lm-discover-beats strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin-bottom: 4px;
  line-height: 1.25;
}
.lm-discover-beat-line {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 400;
}
.lm-discover-stage {
  position: relative;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
}
.lm-discover-shot {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-discover-shot .lm-theme-shot {
  position: relative;
  display: block;
  max-width: min(100%, var(--lm-island-phone-max-w));
  max-height: var(--lm-island-phone-max-h);
}
.lm-discover-shot .lm-theme-shot-dark {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.lm-discover-shot img,
.lm-explore-visual img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--lm-island-phone-max-w));
  max-height: var(--lm-island-phone-max-h);
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  box-shadow: none;
  filter: none;
}
.lm-discover-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-default);
  color: var(--lykmnd-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(12, 20, 60, 0.08);
}
.lm-discover-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 36ch;
}

/* Exploring — copy left + pipeline; phone right (transparent, Discover-matched size) */
.lm-explore-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-default);
}
.lm-explore-stage {
  border-radius: 14px;
  padding: 14px 14px 16px;
  background: var(--surface-inverse);
  border: none;
  pointer-events: none;
}
.lm-explore-stage .step {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.lm-explore-stage .label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.lm-explore-stage .hint {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
[data-theme="dark"] .lm-explore-stage {
  /* Black background for explore stage cards in dark mode */
  background: #000000 !important;
}

[data-theme="dark"] .lm-explore-stage .step {
  color: rgba(255, 255, 255, 0.55) !important;
}
[data-theme="dark"] .lm-explore-stage .label {
  color: #FFFFFF !important;
}
[data-theme="dark"] .lm-explore-stage .hint {
  color: rgba(255, 255, 255, 0.72) !important;
}
.lm-explore-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  background: transparent;
  border: none;
}
.lm-explore-visual .lm-theme-shot {
  position: relative;
  display: block;
  max-width: min(100%, var(--lm-island-phone-max-w));
  max-height: var(--lm-island-phone-max-h);
}
.lm-explore-visual .lm-theme-shot-dark {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Connect — media left; points use prior icon strip (not Discover spine) */
.lm-connect-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}
.lm-connect-lead {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}
.lm-connect-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-default);
  border-left: none;
}
.lm-connect-points li {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.lm-connect-points li::before {
  display: none;
}
.lm-connect-points .dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  flex: none;
  margin-bottom: 10px;
}
.lm-connect-points b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin-bottom: 4px;
  line-height: 1.25;
}
.lm-connect-point-line {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 400;
}
.lm-connect-visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  justify-self: center;
  align-self: start;
  margin-inline: auto;
  margin-top: 20px;
}
.lm-connect-visual .back,
.lm-connect-visual .front {
  border: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  width: auto;
  border-radius: 0;
}
.lm-connect-visual .back {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-22%) rotate(4deg);
  opacity: 1;
  z-index: 1;
}
.lm-connect-visual .front {
  position: relative;
  z-index: 2;
  transform: translateX(-28%) rotate(-3deg);
}
.lm-connect-visual .lm-theme-shot {
  position: relative;
  display: block;
  max-width: 230px;
  max-height: 340px;
}
.lm-connect-visual .lm-theme-shot-dark {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.lm-connect-visual img {
  width: auto;
  height: auto;
  max-width: 230px;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(12, 20, 60, 0.28)) drop-shadow(0 0 0.6px rgba(12, 20, 60, 0.2));
}
[data-theme="dark"] .lm-connect-visual img {
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.28));
}

/* Share / My Top 3 — Discover/Exploring-matched phone box */
.lm-share-grid {
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.lm-share-lead {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}
.lm-share-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.lm-share-beats {
  list-style: none;
  margin: 28px 0 0 12px;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border-default);
  grid-template-columns: 1fr;
}
.lm-share-beats li {
  position: relative;
  display: block;
  padding: 0 0 22px 20px;
  min-width: 0;
}
.lm-share-beats li:last-child {
  padding-bottom: 0;
}
.lm-share-beats li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lykmnd-favorites);
  box-shadow: 0 0 0 4px var(--surface-card);
}
.lm-share-beats strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lykmnd-brand);
  margin-bottom: 4px;
  line-height: 1.25;
}
.lm-share-beat-line {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 400;
}
.lm-share-visual {
  --lm-share-shot-max-w: 260px;
  --lm-share-shot-max-h: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  background: transparent;
  border: none;
}
.lm-share-visual .lm-theme-shot {
  position: relative;
  display: block;
  max-width: min(100%, var(--lm-share-shot-max-w));
  max-height: var(--lm-share-shot-max-h);
}
.lm-share-visual .lm-theme-shot img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--lm-share-shot-max-w));
  max-height: var(--lm-share-shot-max-h);
  object-fit: contain;
  object-position: center;
  display: block;
}
.lm-share-visual .lm-theme-shot-dark {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/*
 * Exact Discover/Exploring phone footprint so the missing shot is visible
 * at the real asset size in light and dark mode.
 */
.lm-share-shot-placeholder {
  box-sizing: border-box;
  width: min(100%, var(--lm-island-phone-max-w));
  height: var(--lm-island-phone-max-h);
  max-width: var(--lm-island-phone-max-w);
  max-height: var(--lm-island-phone-max-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border-radius: 28px;
  border: 1px solid var(--border-default);
  background: var(--surface-sunken);
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.lm-share-shot-placeholder span {
  max-width: 16ch;
}
[data-theme="dark"] .lm-share-shot-placeholder {
  background: #0D1117;
  border-color: #30363D;
  color: #C9D1D9;
}
[data-theme="dark"] .lm-share-beats strong {
  color: #FFFFFF;
}
@media (max-width: 960px) {
  .lm-share-visual {
    --lm-share-shot-max-w: 220px;
    --lm-share-shot-max-h: 186px;
  }
  .lm-feature-islands {
    --lm-island-media-h: 280px;
    --lm-island-phone-max-w: 200px;
    --lm-island-phone-max-h: 280px;
    /* Connect’s mobile floor — shared target for all four islands */
    --lm-island-floor: 24px;
  }
  .lm-island {
    height: auto;
    min-height: 0;
    --lm-island-pad-top: 28px;
    --lm-island-pad-x: 28px;
    --lm-island-pad-bottom: var(--lm-island-floor);
    padding: var(--lm-island-pad-top) var(--lm-island-pad-x) var(--lm-island-pad-bottom) !important;
    /* visible so Connect’s offset cascade phones aren’t clipped */
    overflow: visible;
  }
  /*
   * Phone PNGs paint into padding (overflow clips at the padding EDGE, so the
   * floor still disappears). Islands use an in-flow ::after spacer instead;
   * layouts clip media so it can’t cover that spacer.
   */
  .lm-favorites-island,
  .lm-discover-island,
  .lm-explore-island,
  .lm-connect-island,
  .lm-share-island {
    --lm-island-pad-bottom: 0px;
    overflow: hidden;
  }
  .lm-favorites-island::after,
  .lm-discover-island::after,
  .lm-explore-island::after,
  .lm-connect-island::after,
  .lm-share-island::after {
    content: '';
    display: block;
    flex: 0 0 var(--lm-island-floor);
    width: 100%;
    height: var(--lm-island-floor);
    order: 99;
    pointer-events: none;
  }
  .lm-favorites-layout,
  .lm-discover-spotlight,
  .lm-explore-grid,
  .lm-share-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
  }
  .lm-connect-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: visible;
  }
  .lm-island-hero {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Same mobile stack as Favorites: copy (title already above) → image */
  .lm-favorites-copy,
  .lm-discover-copy,
  .lm-explore-copy,
  .lm-connect-copy,
  .lm-share-copy {
    order: 1;
  }
  .lm-favorites-visual,
  .lm-discover-stage,
  .lm-explore-visual,
  .lm-connect-visual,
  .lm-share-visual {
    order: 2;
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    max-height: none;
    height: auto !important;
    flex: 0 0 auto;
    padding-bottom: 0;
  }
  .lm-discover-stage,
  .lm-explore-visual,
  .lm-share-visual {
    overflow: hidden;
  }
  /* Full phone PNG — don’t clip the home indicator / tab bar */
  .lm-favorites-visual {
    overflow: visible;
    max-height: none;
  }
  .lm-favorites-visual .lm-theme-shot {
    max-height: var(--lm-island-phone-max-h);
  }
  /*
   * Full-width grid, both phones in one cell (height = taller shot).
   * Equal px offsets keep the overlap centered; in-flow height matches
   * other islands so the shared 24px floor is the only bottom gap.
   */
  .lm-connect-visual {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: start;
    position: relative;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    overflow: visible;
    padding: 0;
    min-height: 0;
  }
  .lm-connect-visual .back,
  .lm-connect-visual .front {
    grid-area: 1 / 1;
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
  }
  .lm-connect-visual .back {
    transform: translateX(32px) rotate(4deg);
    z-index: 1;
  }
  .lm-connect-visual .front {
    transform: translateX(-32px) rotate(-3deg);
    z-index: 2;
  }
  .lm-connect-visual .lm-theme-shot,
  .lm-connect-visual img {
    max-width: min(100%, var(--lm-island-phone-max-w));
    max-height: var(--lm-island-phone-max-h);
  }
  .lm-discover-stage {
    position: relative;
    align-self: center !important;
  }
  /* Kill desktop absolute fill — otherwise stage height collapses and the phone spills */
  .lm-discover-shot {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    max-width: none;
    width: auto !important;
    height: auto !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .lm-favorites-visual img,
  .lm-discover-shot img,
  .lm-explore-visual img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, var(--lm-island-phone-max-w)) !important;
    max-height: var(--lm-island-phone-max-h) !important;
    object-fit: contain !important;
  }
  .lm-favorites-visual img,
  .lm-discover-shot img,
  .lm-explore-visual img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, var(--lm-island-phone-max-w));
    max-height: var(--lm-island-phone-max-h);
    object-fit: contain;
  }
  .lm-favorites-pillars .lm-island-foot {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .lm-discover-beats {
    grid-template-columns: 1fr;
  }
  .lm-connect-points {
    grid-template-columns: repeat(3, 1fr);
  }
  .lm-connect-visual {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .lm-connect-visual img {
    height: auto;
    max-width: min(100%, var(--lm-island-phone-max-w));
    max-height: var(--lm-island-phone-max-h);
    object-fit: contain;
  }
  /* Keep Favorites / Exploring as horizontal 3-up on tablet */
  .lm-island-foot {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .lm-explore-pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .lm-feature-islands {
    padding: 20px 0 24px;
    --lm-island-media-h: 280px;
    --lm-island-phone-max-w: 220px;
    --lm-island-phone-max-h: 300px;
    --lm-island-floor: 24px;
  }
  .lm-feature-islands-inner {
    gap: 14px;
  }
  .lm-island {
    border-radius: 16px;
    --lm-island-pad-top: 24px;
    --lm-island-pad-x: 18px;
    --lm-island-pad-bottom: var(--lm-island-floor);
    padding: var(--lm-island-pad-top) var(--lm-island-pad-x) var(--lm-island-pad-bottom) !important;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .lm-favorites-island,
  .lm-discover-island,
  .lm-explore-island,
  .lm-connect-island,
  .lm-share-island {
    --lm-island-pad-bottom: 0px;
    overflow: hidden;
  }
  .lm-favorites-island::after,
  .lm-discover-island::after,
  .lm-explore-island::after,
  .lm-connect-island::after,
  .lm-share-island::after {
    flex-basis: var(--lm-island-floor);
    height: var(--lm-island-floor);
  }
  .lm-favorites-visual,
  .lm-discover-stage,
  .lm-explore-visual,
  .lm-connect-visual {
    padding-bottom: 0;
  }
  .lm-favorites-layout,
  .lm-discover-spotlight,
  .lm-explore-grid,
  .lm-connect-grid,
  .lm-share-grid {
    gap: 24px;
  }
  .lm-discover-beats,
  .lm-share-beats,
  .lm-connect-points {
    grid-template-columns: 1fr;
  }
  .lm-discover-beats,
  .lm-share-beats {
    margin-left: 14px;
  }
  /* Discover keeps spine rail; Connect points return to icon + text rows */
  .lm-discover-beats li,
  .lm-share-beats li {
    display: block;
    padding: 0 0 20px 20px;
  }
  .lm-discover-beats li:last-child,
  .lm-share-beats li:last-child {
    padding-bottom: 0;
  }
  .lm-connect-points {
    gap: 18px;
    border-top: 1px solid var(--border-default);
    padding-top: 18px;
  }
  .lm-connect-points li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
  }
  .lm-connect-points li::before {
    display: none;
  }
  .lm-connect-points .dot {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin: 0;
    flex: none;
  }
  .lm-discover-beats strong,
  .lm-share-beats strong,
  .lm-connect-points b {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
  }
  .lm-discover-beat-line,
  .lm-share-beat-line,
  .lm-connect-point-line {
    font-size: 13px;
    line-height: 1.4;
  }
  .lm-discover-stage,
  .lm-favorites-visual,
  .lm-explore-visual,
  .lm-connect-visual {
    min-height: 0;
    max-height: none;
    height: auto;
    align-self: center;
  }
  .lm-connect-visual {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .lm-connect-visual img {
    height: auto;
    max-width: min(100%, var(--lm-island-phone-max-w));
    max-height: var(--lm-island-phone-max-h);
    object-fit: contain;
  }
  .lm-favorites-visual img,
  .lm-discover-shot img,
  .lm-explore-visual img {
    width: auto !important;
    height: auto !important;
    max-width: min(100%, var(--lm-island-phone-max-w));
    max-height: var(--lm-island-phone-max-h);
    object-fit: contain;
  }
  /* Favorites — 3-up horizontal pillars, centered icon + copy */
  .lm-favorites-pillars {
    margin-top: 20px;
  }
  .lm-favorites-pillars .lm-island-foot {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--border-default);
  }
  .lm-favorites-pillars .lm-island-foot-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .lm-favorites-pillars .lm-island-foot-mark {
    margin-bottom: 8px;
    margin-inline: auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .lm-favorites-pillars .lm-island-foot-copy {
    text-align: center;
    width: 100%;
  }
  .lm-favorites-pillars .lm-island-foot-name {
    font-size: 13px;
    margin: 0 0 4px;
    text-align: center;
  }
  .lm-favorites-pillars .lm-island-foot-line {
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
  }
  .lm-island-hero {
    margin-bottom: 40px !important;
  }
  .lm-island-foot {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding-top: 18px !important;
  }
  .lm-island-foot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-bottom: 0;
  }
  .lm-island-foot-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 8px !important;
    margin-inline: auto;
  }
  .lm-island-foot-mark svg {
    width: 18px !important;
    height: 18px !important;
  }
  .lm-island-foot-name {
    font-size: 13px;
    margin: 0 0 4px;
    text-align: center;
  }
  .lm-island-foot-line {
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
  }
  .lm-pillars-row { gap: 10px !important; }
  /* Exploring — 3-up horizontal stages, centered */
  .lm-explore-pipeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
  }
  .lm-explore-stage {
    display: block;
    grid-template-columns: none;
    column-gap: 0;
    row-gap: 0;
    align-items: start;
    padding: 12px 10px 14px;
    border-radius: 12px;
    background: var(--lykmnd-brand);
    position: static;
    text-align: center;
  }
  .lm-explore-stage:last-child {
    padding-bottom: 14px;
  }
  .lm-explore-stage::before,
  .lm-explore-stage::after {
    content: none;
    display: none;
  }
  .lm-explore-stage .step {
    display: block;
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
  }
  .lm-explore-stage .label {
    display: block;
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.25;
    color: #fff;
    text-align: center;
  }
  .lm-explore-stage .hint {
    display: block;
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
  }
}

.lm-site-header a:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Site footer — in document flow (not viewport-fixed) */
.lm-site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.55);
  padding: 48px 0;
}
.lm-site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  font-size: 14px;
  flex-wrap: wrap;
}
.lm-site-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}
.lm-site-footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lm-site-footer-links a {
  color: inherit;
  text-decoration: none;
}
.lm-site-footer-links a:hover {
  color: #fff;
}
.lm-site-footer-copy {
  flex: none;
}
.lm-site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 14px;
  text-align: right;
}
.lm-site-footer-follow {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}
.lm-site-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.lm-site-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.lm-site-footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

@media (max-width: 640px) {
  .lm-site-footer {
    padding: 36px 0;
  }
  .lm-site-footer-inner {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
  .lm-site-footer-right {
    align-items: center;
    width: 100%;
  }
  .lm-site-footer-links {
    gap: 16px;
    justify-content: center;
  }
  .lm-site-footer-meta {
    align-items: center;
    text-align: center;
  }
  .lm-site-footer-social {
    justify-content: center;
  }
}

/* Dark mode overrides for hardcoded inline styles in React components */
.lm-site-header {
  background: var(--surface-page) !important;
}

/* Dark mode: black header */
[data-theme="dark"] .lm-site-header {
  background: #000000 !important;
  border-bottom-color: #1C1F26 !important;
}

/* Dark mode: ensure logo is all white */
[data-theme="dark"] .lm-site-header img[alt="LykMnd"],
[data-theme="dark"] img[src*="logo"] {
  filter: brightness(0) invert(1);
}

/* Dark mode: hero/top section dark gray */
[data-theme="dark"] .lm-hero,
[data-theme="dark"] .lm-hero-pad {
  background: #1C1F26 !important;
}

/* Dark mode: second section (value prop) white with black text and divider */
[data-theme="dark"] .lm-split-band:not(.lm-split-band--inverse) {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-bottom: 1px solid #E5E7EB !important;
}

[data-theme="dark"] .lm-split-band:not(.lm-split-band--inverse) h1,
[data-theme="dark"] .lm-split-band:not(.lm-split-band--inverse) h2,
[data-theme="dark"] .lm-split-band:not(.lm-split-band--inverse) h3,
[data-theme="dark"] .lm-split-band:not(.lm-split-band--inverse) p,
[data-theme="dark"] .lm-split-band:not(.lm-split-band--inverse) .lm-split-band-accent {
  color: #000000 !important;
}

/* Adjust shadows and borders for dark mode */
[data-theme="dark"] .lm-island {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #lm-cookie-consent {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Dark mode: sections with blue backgrounds in light mode should be black */
[data-theme="dark"] .lm-split-band--inverse {
  background: #000000 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .lm-split-band--inverse .lm-split-band-accent {
  color: #FFFFFF !important;
}

/* HOW IT WORKS — light section stays white; black text; colored spine icons (same as light mode) */
#how {
  background: #FFFFFF;
}
.lm-how-copy h3,
.lm-how-copy h4,
.lm-how-copy h2 {
  color: #0C143C !important;
}
.lm-how-copy p {
  color: #6B7280 !important;
}

[data-theme="dark"] #how {
  background: #FFFFFF !important;
  /* Keep chip sunken fill light so Discover/Connect icons match light mode */
  --surface-sunken: #F9FAFB;
  --lykmnd-brand: #0C143C;
  --text-heading: #0C143C;
  --text-muted: #6B7280;
  --lykmnd-pulse: #2563EB;
}
[data-theme="dark"] #how h2,
[data-theme="dark"] #how h3,
[data-theme="dark"] #how .lm-how-copy h3,
[data-theme="dark"] #how .lm-how-copy p,
[data-theme="dark"] #how .lm-section-h2 {
  color: #0C143C !important;
}
[data-theme="dark"] #how .lm-how-copy p {
  color: #374151 !important;
}
/* Category labels stay pulse blue */
[data-theme="dark"] #how .lm-how-copy > div:first-child {
  color: #2563EB !important;
}
/* Do not force icon chip colors — leave React inline styles (purple star, etc.) */

/* Dark mode: white / light buttons need black text */
[data-theme="dark"] .lm-hero button:not(.lm-theme-toggle):not(.lm-theme-toggle--hero),
[data-theme="dark"] .lm-split-band--inverse button,
[data-theme="dark"] .lm-cta-row button,
[data-theme="dark"] .lm-nav-links > button,
[data-theme="dark"] .lm-nav-compact > button:not(.lm-theme-toggle):not(#lm-theme-toggle-mobile),
[data-theme="dark"] button[style*="--lykmnd-white"],
[data-theme="dark"] button[style*="background: #FFFFFF"],
[data-theme="dark"] button[style*="background:#FFFFFF"],
[data-theme="dark"] button[style*="background: white"],
[data-theme="dark"] .lm-button--white,
[data-theme="dark"] a[style*="background: #FFFFFF"],
[data-theme="dark"] a[style*="background:#FFFFFF"],
[data-theme="dark"] a[style*="background: white"] {
  color: #000000 !important;
}

/* Primary nav download uses brand (white in dark mode) — force black label */
[data-theme="dark"] .lm-nav-links > button,
[data-theme="dark"] .lm-nav-compact > button:not(.lm-theme-toggle):not(#lm-theme-toggle-mobile) {
  background: #FFFFFF !important;
  color: #000000 !important;
}

/* Dark mode: light CTA / download buttons need black text (not transparent FAQ buttons) */
[data-theme="dark"] .lm-cta-row a,
[data-theme="dark"] .lm-cta-row button,
[data-theme="dark"] a[href*="download"],
[data-theme="dark"] .lm-cta-primary,
[data-theme="dark"] [class*="download"]:not(.lm-theme-toggle) {
  color: #000000 !important;
}

/* Dark mode: footer should be pure black */
[data-theme="dark"] .lm-site-footer {
  background: #000000 !important;
}

/* Dark mode: FAQ section white text for questions - more aggressive */
[data-theme="dark"] .lm-faq *,
[data-theme="dark"] .lm-faq-grid *,
[data-theme="dark"] [id="faq"] *,
[data-theme="dark"] section[aria-label*="FAQ"] *,
[data-theme="dark"] section[aria-label*="faq"] * {
  color: #FFFFFF !important;
}

[data-theme="dark"] .lm-faq h1,
[data-theme="dark"] .lm-faq h2,
[data-theme="dark"] .lm-faq h3,
[data-theme="dark"] .lm-faq h4,
[data-theme="dark"] .lm-faq h5,
[data-theme="dark"] .lm-faq h6 {
  color: #FFFFFF !important;
}

/* Header: keep logo left; group nav links + download + theme toggle on the right */
.lm-site-header > div {
  justify-content: flex-start !important;
  gap: 16px;
}
.lm-nav-links {
  margin-left: auto !important;
}
.lm-nav-compact {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 10px;
}

/* Dark mode toggle — icon + switch-to label (desktop size) */
.lm-theme-toggle {
  appearance: none;
  border: none;
  background: #E5E7EB;
  cursor: pointer;
  padding: 4px 7px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 8px;
  color: #0C143C;
  transition: background 0.2s ease, color 0.2s ease;
  min-width: 38px;
  line-height: 1;
  flex: none;
}
.lm-theme-toggle:hover {
  background: #D1D5DB;
  color: #0C143C;
}
.lm-theme-toggle-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: none;
}
.lm-theme-toggle-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.2;
}
/* Desktop dark mode: light pill + black text in the header */
[data-theme="dark"] .lm-nav-links .lm-theme-toggle,
[data-theme="dark"] .lm-nav-links .lm-theme-toggle .lm-theme-toggle-label,
[data-theme="dark"] .lm-nav-links .lm-theme-toggle .lm-theme-toggle-icon {
  background: #E5E7EB !important;
  color: #000000 !important;
  stroke: #000000;
  fill: currentColor;
}
[data-theme="dark"] .lm-nav-links .lm-theme-toggle:hover {
  background: #D1D5DB !important;
  color: #000000 !important;
}

/* Mobile hero dark mode: white text on translucent pill */
[data-theme="dark"] .lm-hero .lm-theme-toggle--hero,
[data-theme="dark"] .lm-hero .lm-theme-toggle--hero .lm-theme-toggle-label,
[data-theme="dark"] .lm-hero .lm-theme-toggle--hero .lm-theme-toggle-icon {
  color: #FFFFFF !important;
  stroke: #FFFFFF;
  fill: currentColor;
}

/* Hero theme toggle: mobile only, above the headline */
.lm-theme-toggle--hero {
  display: none;
}

/* Mobile only — compact theme toggle (desktop size unchanged) */
@media (max-width: 960px) {
  /* Logo left-justified on mobile; desktop unchanged */
  .lm-site-header > div {
    padding-left: 0 !important;
    padding-right: 16px !important;
  }
  .lm-site-header > div > a[aria-label="LykMnd home"] {
    /* Offsets transparent padding baked into the logo PNG so it reads flush left */
    margin-left: -16px;
    padding-left: 0;
  }
  .lm-site-header > div > a[aria-label="LykMnd home"] img {
    display: block;
  }

  .lm-theme-toggle {
    padding: 4px 6px;
    gap: 1px;
    border-radius: 8px;
    min-width: 36px;
  }
  .lm-theme-toggle-icon {
    width: 14px;
    height: 14px;
  }
  .lm-theme-toggle-label {
    font-size: 8px;
    letter-spacing: 0.03em;
  }
  /*
   * Absolute so the button drops into existing hero top padding —
   * the headline keeps its original position.
   */
  .lm-hero-pad {
    position: relative;
  }
  .lm-theme-toggle--hero {
    display: inline-flex;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF !important;
  }
  .lm-theme-toggle--hero:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF !important;
  }
  .lm-theme-toggle--hero .lm-theme-toggle-label,
  .lm-theme-toggle--hero .lm-theme-toggle-icon {
    color: #FFFFFF !important;
  }
  [data-theme="dark"] .lm-theme-toggle--hero {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
  }
  [data-theme="dark"] .lm-theme-toggle--hero:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
  }
  [data-theme="dark"] .lm-theme-toggle--hero .lm-theme-toggle-label,
  [data-theme="dark"] .lm-theme-toggle--hero .lm-theme-toggle-icon {
    color: #FFFFFF !important;
  }
}

/* Hero phones: light image keeps layout size; dark overlays without stretching. */
.lm-theme-shot-dark {
  opacity: 0;
  pointer-events: none;
}
[data-theme="dark"] .lm-theme-shot-light {
  opacity: 0;
}
[data-theme="dark"] .lm-theme-shot-dark {
  opacity: 1;
}

/*
 * Dark screenshot stand-ins retain each light-mode phone image underneath.
 * Only the screen is covered, preserving the real device bezel and exact size.
 */
.lm-dark-phone-host--relative {
  position: relative;
}
.lm-screenshot-placeholder {
  display: none;
  position: absolute;
  z-index: 4;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0D1117;
  border: 1px solid #30363D;
  border-radius: clamp(8px, 4%, 24px);
  padding: 20px;
  font-size: clamp(10px, 1.2vw, 14px);
  color: #C9D1D9;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
  pointer-events: none;
}
[data-theme="dark"] .lm-screenshot-placeholder {
  display: flex;
}

/* Phone-shaped previews keep a familiar camera island while shots are pending. */
[data-theme="dark"] .lm-hero-phone .lm-screenshot-placeholder::before,
[data-theme="dark"] .lm-favorites-visual .lm-screenshot-placeholder::before,
[data-theme="dark"] .lm-discover-shot .lm-screenshot-placeholder::before,
[data-theme="dark"] .lm-explore-visual .lm-screenshot-placeholder::before,
[data-theme="dark"] .lm-connect-visual .lm-screenshot-placeholder::before {
  content: "";
  position: absolute;
  top: 2.5%;
  left: 50%;
  width: 34%;
  max-width: 82px;
  height: 4%;
  min-height: 5px;
  max-height: 15px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Download modal — App Store + Google Play (light & dark) */
.lm-download-modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--lykmnd-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lm-download-modal {
  width: 100%;
  max-width: var(--modal-max-width);
  background: #FFFFFF;
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-modal);
  padding: 24px 20px 20px;
  text-align: center;
}
.lm-download-modal-title {
  margin: 0 0 8px;
  color: var(--lykmnd-brand);
  font-family: var(--font-ui);
  font-size: var(--text-app-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lm-download-modal-body {
  margin: 0 0 20px;
  color: var(--lykmnd-muted);
  font-family: var(--font-ui);
  font-size: var(--text-app-body);
  line-height: 20px;
}
.lm-download-modal-stores {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}
.lm-store-badge {
  appearance: none;
  border: 1px solid #000000;
  border-radius: 10px;
  background: #000000;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 8px 18px;
  text-align: left;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.lm-store-badge:hover {
  opacity: 0.92;
}
.lm-store-badge:active {
  transform: scale(0.98);
}
.lm-store-badge-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
}
.lm-store-badge-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}
.lm-store-badge-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.88);
}
.lm-store-badge-eyebrow--caps {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lm-store-badge-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

[data-theme="dark"] .lm-download-modal {
  background: #000000 !important;
  border: 1px solid #3A3F4A;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  color: #FFFFFF !important;
}
html[data-theme="dark"] .lm-download-modal-overlay .lm-download-modal .lm-download-modal-title,
html[data-theme="dark"] .lm-download-modal-overlay .lm-download-modal .lm-download-modal-body,
html[data-theme="dark"] .lm-download-modal-overlay .lm-download-modal h2,
html[data-theme="dark"] .lm-download-modal-overlay .lm-download-modal p,
[data-theme="dark"] .lm-download-modal-title,
[data-theme="dark"] .lm-download-modal-body,
[data-theme="dark"] .lm-download-modal h2,
[data-theme="dark"] .lm-download-modal p {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
}
[data-theme="dark"] .lm-download-modal .lm-store-badge {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}
[data-theme="dark"] .lm-download-modal .lm-store-badge-eyebrow,
[data-theme="dark"] .lm-download-modal .lm-store-badge-name {
  color: #FFFFFF !important;
}
[data-theme="dark"] .lm-download-modal button:not(.lm-store-badge) {
  background: transparent !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}
