/* Lymi site chrome + shared tokens (mirrors the app's Theme.swift). */
:root {
  --pink: #F8486F;
  --pink-press: #E03A62;
  --rose: #FFF1F4;
  --blush: #FDE1E7;
  --lavender: #8A5CF5;
  --lavender-pastel: #EFE7FC;
  --peach: #FF8A5B;
  --ink: #151417;
  --text: #151417;
  --text-2: #6F6C75;
  --text-3: #9D99A5;
  --line: #ECEAF0;
  --surface: #F6F5F8;
  --white: #FFFFFF;
  --gradient: linear-gradient(115deg, #FF8A5B 0%, #F8486F 48%, #8B5CF6 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.lx-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.lx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.lx-header.is-scrolled { border-bottom-color: var(--line); }
.lx-header .lx-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.lx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--pink); }
.lx-logo svg { width: 34px; height: 34px; flex: none; }
.lx-nav { display: flex; gap: 26px; margin-right: auto; }
.lx-nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text); padding: 6px 0; }
.lx-nav a:hover { color: var(--pink); }
.lx-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(248, 72, 111, .28);
  transition: background .15s, transform .15s;
}
.lx-cta:hover { background: var(--pink-press); }
.lx-cta:active { transform: scale(.98); }
.lx-cta svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .lx-nav { display: none; }
  .lx-header .lx-wrap { justify-content: space-between; height: 64px; }
  .lx-cta { padding: 11px 18px; font-size: 14px; }
}

/* Footer */
.lx-footer { background: var(--rose); margin-top: 0; }
.lx-footer-top { padding: clamp(56px, 8vw, 96px) 0 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.lx-footer h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
.lx-footer h3 { font-size: 15px; margin: 6px 0 14px; font-weight: 700; color: var(--text); }
.lx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lx-footer li a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.lx-footer li a:hover { color: var(--pink); }
.lx-footer-bottom { border-top: 1px solid rgba(21, 20, 23, .08); padding: 22px 0 34px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.lx-footer-bottom p { margin: 0; }
@media (max-width: 860px) {
  .lx-footer-top { grid-template-columns: 1fr 1fr; }
  .lx-footer-top > :first-child { grid-column: 1 / -1; }
}

/* Chrome must not inherit page-level heading styles (legal pages). */
.lx-header h1, .lx-header h2, .lx-footer h2, .lx-footer h3 { font-family: var(--font); }
.lx-footer h2 { margin-top: 0; }
.lx-footer h3 { margin-top: 6px; }
.lx-footer ul { padding-left: 0; }
.lx-footer li { margin-bottom: 0; }

/* Store badges (hero, download card, footer) */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none;
border-radius: 12px; padding: 0 18px 0 14px; height: 54px; min-width: 172px; border: 1px solid #000;
}
.badge svg { width: 26px; height: 26px; flex: none; }
.badge small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .85; font-weight: 500; }
.badge b { display: block; white-space: nowrap; font-size: 19px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.badge.soon { cursor: default; }
.badge:focus-visible { outline-offset: 2px; }
@media (max-width: 560px) {
  .badges { flex-wrap: nowrap; gap: 8px; width: 100%; max-width: 360px; }
  .badge { min-width: 0; flex: 1 1 0; height: 50px; padding: 0 10px; gap: 8px; justify-content: center; }
  .badge svg { width: 22px; height: 22px; }
  .badge b { font-size: 15px; }
  .badge small { font-size: 9.5px; }
}

/* Responsive text helpers */
.only-mobile { display: none; }
@media (max-width: 760px) {
  .only-mobile { display: inline; }
  .only-desktop { display: none; }
}

/* Footer badges + mobile tap targets */
.lx-footer .badges { margin-top: 4px; flex-wrap: nowrap; gap: 10px; }
.lx-footer .badge { min-width: 0; padding: 0 14px 0 12px; }
@media (max-width: 860px) {
  .lx-footer li a { display: inline-block; padding: 6px 0; }
  .lx-footer ul { gap: 2px; }
  .lx-footer-top { gap: 32px 24px; }
}
