/* ui/landing.css — marketing landing page (index.html) ONLY.
   Never loaded by app.html or the native shell. Reuses shared/theme.css
   tokens (--mg-*) so light/dark and the brand palette stay one system
   with the rest of the product — see shared/theme.css for the token
   definitions this file consumes.

   All product visuals on this page are REAL screenshots (assets/screenshots/,
   copied from play-store-assets/screenshots/ — actual device captures, not
   drawn mockups) shown inside the .lp-phone frame below. Keep it that way:
   an invented UI mockup here drifts from the real app the moment either one
   changes, which is exactly the "looks nothing like the product" complaint
   that made this file get rewritten once already. */

:root {
  --lp-max: 1180px;
  --lp-radius-sm: 12px;
  --lp-radius: 18px;
  --lp-radius-lg: 28px;
  --lp-gap: 24px;
  --lp-section-pad: clamp(64px, 9vw, 120px);
  --lp-accent-grad: linear-gradient(135deg, #0a7cff 0%, #0a3d91 100%);
  --lp-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lp-body {
  margin: 0;
  font-family: var(--lp-font);
  background: var(--mg-bg);
  color: var(--mg-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.lp-container {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 24px;
}

img, svg { display: block; }

.lp-icon { width: 22px; height: 22px; color: var(--mg-accent); flex: none; }

a { color: inherit; }

/* ------------------------------------------------------------------ NAV */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--mg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mg-border);
}
.lp-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.2px; text-decoration: none; color: var(--mg-text); }
.lp-brand svg, .lp-brand-logo { width: 32px; height: 32px; flex: none; }
.lp-nav-links { display: flex; align-items: center; gap: 30px; }
.lp-nav-links a { text-decoration: none; color: var(--mg-text-2); font-size: 14.5px; font-weight: 600; transition: color .15s ease; }
.lp-nav-links a:hover { color: var(--mg-text); }
.lp-nav-actions { display: flex; align-items: center; gap: 14px; }
.lp-link-signin { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--mg-text-2); white-space: nowrap; }
.lp-link-signin:hover { color: var(--mg-text); }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-primary { background: var(--lp-accent-grad); color: #fff; box-shadow: 0 10px 24px rgba(10,124,255,0.30); }
.lp-btn-primary:hover { box-shadow: 0 14px 30px rgba(10,124,255,0.40); }
.lp-btn-ghost { background: var(--mg-surface); color: var(--mg-text); border-color: var(--mg-border-strong); }
.lp-btn-ghost:hover { background: var(--mg-surface-2); }
.lp-btn-dark { background: var(--mg-inverse-surface); color: var(--mg-on-inverse); }
.lp-btn-dark:hover { opacity: 0.88; }
.lp-btn-sm { padding: 9px 16px; font-size: 13.5px; }
.lp-btn-block { width: 100%; }

.lp-nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mg-border-strong);
  background: var(--mg-surface);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.lp-nav-burger span, .lp-nav-burger::before, .lp-nav-burger::after { content: ""; display: block; width: 18px; height: 2px; background: var(--mg-text); border-radius: 2px; }
.lp-nav-burger span { margin: 4px 0; }

.lp-mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 8px 24px 18px; border-bottom: 1px solid var(--mg-border); background: var(--mg-surface); }
.lp-mobile-menu.is-open { display: flex; }
.lp-mobile-menu a { padding: 12px 4px; text-decoration: none; color: var(--mg-text); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--mg-border); }
.lp-mobile-menu .lp-btn { margin-top: 12px; }

/* ------------------------------------------------------------------ HERO */
.lp-hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(10,124,255,0.22), rgba(10,124,255,0) 70%);
  pointer-events: none;
}
.lp-hero::after {
  content: "";
  position: absolute;
  bottom: -260px; left: -200px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(10,61,145,0.16), rgba(10,61,145,0) 70%);
  pointer-events: none;
}
.lp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--mg-accent-tint);
  border: 1px solid var(--mg-accent-line);
  color: var(--mg-accent-deep);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}
.lp-badge .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mg-accent); box-shadow: 0 0 0 3px var(--mg-accent-tint); }
.lp-hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}
.lp-hero h1 .grad { background: var(--lp-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--mg-text-2);
  max-width: 540px;
  margin: 0 0 32px;
}
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.lp-hero-micro { display: flex; flex-wrap: wrap; gap: 18px; color: var(--mg-text-3); font-size: 13.5px; font-weight: 600; }
.lp-hero-micro span { display: inline-flex; align-items: center; gap: 7px; }
.lp-hero-micro svg { width: 15px; height: 15px; color: var(--mg-success); }

/* Play-store style badge (custom, non-trademarked artwork) */
.lp-play-badge { display: inline-flex; align-items: center; gap: 10px; }
.lp-play-badge svg { width: 20px; height: 20px; color: #fff; }
.lp-play-badge .txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.lp-play-badge .txt small { font-size: 10px; font-weight: 600; opacity: 0.8; letter-spacing: 0.04em; }
.lp-play-badge .txt strong { font-size: 15px; font-weight: 700; }

/* ------------------------------------------------------------------ PHONE FRAME
   Wraps a REAL screenshot (840x1960 device captures in assets/screenshots/).
   object-position:bottom + a shortened aspect-ratio crops off only the OS
   status bar (clock/battery/3rd-party icons) at the top; the app's own
   header, content and bottom nav are never cropped. */
.lp-phone {
  --lp-phone-w: 100%;
  width: var(--lp-phone-w);
  background: #14161b;
  border-radius: 30px;
  padding: 8px;
  box-shadow: var(--mg-shadow-4), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.lp-phone-cam { width: 8px; height: 8px; border-radius: 999px; background: #3a3f4a; margin: 4px auto 6px; }
.lp-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 840 / 1840;
  background: #0e0f13;
}
.lp-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }

.lp-phone-wrap { position: relative; display: flex; justify-content: center; }
.lp-phone-wrap.lead { max-width: 300px; margin: 0 auto; }

.lp-phone-inset {
  position: absolute;
  width: 40%;
  bottom: -8%;
  right: -12%;
  z-index: 2;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.28));
}
.lp-phone-inset .lp-phone { padding: 6px; border-radius: 22px; }
.lp-phone-inset .lp-phone-screen { border-radius: 16px; }

.lp-phone-caption { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--mg-text-2); font-weight: 600; }

/* ------------------------------------------------------------------ EARLY ACCESS PROMO */
.lp-promo { background: var(--lp-accent-grad); }
.lp-promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 24px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.lp-promo-inner svg { width: 19px; height: 19px; flex: none; opacity: 0.95; }
.lp-promo-inner strong { font-weight: 800; }

/* ------------------------------------------------------------------ TRUST STRIP */
.lp-trust {
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  background: var(--mg-bg-2);
}
.lp-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 0;
}
.lp-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--mg-text-2); }
.lp-trust-item svg { width: 18px; height: 18px; color: var(--mg-accent); flex: none; }

/* ------------------------------------------------------------------ SECTION HEADERS */
.lp-section { padding: var(--lp-section-pad) 0; }
.lp-section.alt { background: var(--mg-bg-2); }
.lp-eyebrow { color: var(--mg-accent); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.lp-h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 14px; line-height: 1.15; }
.lp-sub { color: var(--mg-text-2); font-size: 16.5px; line-height: 1.65; max-width: 640px; }
.lp-section-head { margin-bottom: 48px; }
.lp-section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lp-section-head.center .lp-sub { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ COMPARISON */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-compare-col { border-radius: var(--lp-radius); padding: 26px; border: 1px solid var(--mg-border); }
.lp-compare-col.old { background: var(--mg-surface); }
.lp-compare-col.new { background: var(--mg-surface); border-color: var(--mg-accent-line); box-shadow: 0 0 0 3px var(--mg-accent-tint) inset; }
.lp-compare-col .label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; display: inline-block; padding: 5px 12px; border-radius: 999px; }
.lp-compare-col.old .label { background: var(--mg-well); color: var(--mg-text-2); }
.lp-compare-col.new .label { background: var(--lp-accent-grad); color: #fff; }
.lp-compare-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--mg-border); font-size: 14.5px; line-height: 1.55; }
.lp-compare-item:first-of-type { border-top: none; }
.lp-compare-col.old .lp-compare-item { color: var(--mg-text-2); }
.lp-compare-item svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.lp-compare-col.old svg { color: var(--mg-text-3); }
.lp-compare-col.new svg { color: var(--mg-success); }

/* ------------------------------------------------------------------ BIG FEATURES */
.lp-feature-big { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.lp-feature-big:not(:last-child) { margin-bottom: var(--lp-section-pad); }
.lp-feature-big.rev .lp-feature-copy { order: 2; }
.lp-feature-big.rev .lp-feature-visual { order: 1; }
.lp-feature-icon-tile {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lp-accent-grad);
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(10,124,255,0.28);
}
.lp-feature-icon-tile svg { width: 24px; height: 24px; color: #fff; }
.lp-feature-copy h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; }
.lp-feature-copy p { color: var(--mg-text-2); font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.lp-feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-feature-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--mg-text); font-weight: 600; }
.lp-feature-list svg { width: 17px; height: 17px; color: var(--mg-success); flex: none; margin-top: 2px; }

.lp-feature-visual { max-width: 300px; margin: 0 auto; }
.lp-feature-visual.has-inset { max-width: 320px; padding-right: 8%; }

/* ------------------------------------------------------------------ GALLERY (remaining real screens) */
.lp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lp-gap); }
.lp-gallery .lp-phone-wrap { max-width: 190px; margin: 0 auto; }

/* ------------------------------------------------------------------ FEATURE GRID (text-only — no screenshot exists for these) */
.lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lp-gap); }
.lp-card {
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: var(--lp-radius);
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--mg-shadow-3); border-color: var(--mg-accent-line); }
.lp-card .lp-feature-icon-tile { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px; }
.lp-card .lp-feature-icon-tile svg { width: 20px; height: 20px; }
.lp-card h4 { font-size: 16.5px; font-weight: 800; margin: 0 0 8px; }
.lp-card p { font-size: 14px; color: var(--mg-text-2); line-height: 1.6; margin: 0; }

/* ------------------------------------------------------------------ HOW IT WORKS */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lp-gap); counter-reset: lp-step; }
.lp-step { position: relative; padding: 30px 24px 24px; border: 1px solid var(--mg-border); border-radius: var(--lp-radius); background: var(--mg-surface); }
.lp-step .num { width: 36px; height: 36px; border-radius: 10px; background: var(--lp-accent-grad); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-step h4 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.lp-step p { font-size: 14px; color: var(--mg-text-2); line-height: 1.6; margin: 0; }

/* ------------------------------------------------------------------ FAQ */
.lp-faq { max-width: 800px; margin: 0 auto; }
.lp-faq-item { border-bottom: 1px solid var(--mg-border); }
.lp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mg-text);
  cursor: pointer;
  font-family: inherit;
}
.lp-faq-q .chev { width: 18px; height: 18px; color: var(--mg-text-3); flex: none; transition: transform .2s ease; }
.lp-faq-item.is-open .lp-faq-q .chev { transform: rotate(180deg); }
.lp-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.lp-faq-item.is-open .lp-faq-a { max-height: 260px; }
.lp-faq-a p { margin: 0 4px 20px; color: var(--mg-text-2); font-size: 14.5px; line-height: 1.7; }

/* ------------------------------------------------------------------ CTA BANNER */
.lp-cta-banner {
  position: relative;
  border-radius: var(--lp-radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background: var(--lp-accent-grad);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.lp-cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 55%);
}
.lp-cta-banner h2 { position: relative; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.015em; }
.lp-cta-banner p { position: relative; font-size: 16px; opacity: 0.92; margin: 0 0 30px; }
.lp-cta-banner .lp-hero-ctas { position: relative; justify-content: center; }
.lp-cta-banner .lp-btn-primary { background: #fff; color: var(--mg-accent-deep); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.lp-cta-banner .lp-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }

/* ------------------------------------------------------------------ FOOTER */
.lp-footer { padding: 64px 0 32px; border-top: 1px solid var(--mg-border); }
.lp-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.lp-footer-brand .lp-brand { margin-bottom: 12px; }
.lp-footer-brand p { color: var(--mg-text-3); font-size: 14px; max-width: 300px; line-height: 1.6; }
.lp-footer-col h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mg-text-3); margin: 0 0 16px; font-weight: 800; }
.lp-footer-col a { display: block; text-decoration: none; color: var(--mg-text-2); font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.lp-footer-col a:hover { color: var(--mg-accent); }
.lp-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--mg-border); color: var(--mg-text-3); font-size: 13px; }
.lp-footer-bottom .lp-theme-note { display: flex; align-items: center; gap: 8px; }
.lp-footer-bottom svg { width: 14px; height: 14px; color: var(--mg-success); }

/* ------------------------------------------------------------------ RESPONSIVE */
@media (max-width: 980px) {
  .lp-nav-links, .lp-nav-actions .lp-link-signin, .lp-nav-actions .lp-btn { display: none; }
  .lp-nav-burger { display: flex; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .lp-hero .lp-phone-wrap.lead { max-width: 260px; }
  .lp-trust-row { grid-template-columns: repeat(2, 1fr); }
  .lp-compare { grid-template-columns: 1fr; }
  .lp-feature-big { grid-template-columns: 1fr; gap: 32px; }
  .lp-feature-big.rev .lp-feature-copy, .lp-feature-big.rev .lp-feature-visual { order: initial; }
  .lp-feature-visual { max-width: 260px; }
  .lp-gallery { grid-template-columns: repeat(3, 1fr); }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-footer-top { grid-template-columns: 1fr 1fr; }
  .lp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .lp-trust-row { grid-template-columns: 1fr 1fr; }
  .lp-gallery { grid-template-columns: repeat(2, 1fr); }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-hero-ctas .lp-btn, .lp-cta-banner .lp-hero-ctas .lp-btn { width: 100%; }
  .lp-hero-ctas, .lp-cta-banner .lp-hero-ctas { flex-direction: column; }
  .lp-footer-top { grid-template-columns: 1fr; }
  .lp-footer-bottom { flex-direction: column; align-items: flex-start; }
}
