/* FDTracker public landing page (home.php). Same brand as the app: navy frame, blue actions, orange = live. */
:root {
  --navy: #0B1B3F; --navy-2: #13285A; --blue: #2563EB; --blue-d: #1D4ED8; --orange: #F97316; --orange-t: #EA580C;
  --ok: #16A34A; --bg: #F4F6FB; --surface: #FFFFFF; --surface-2: #EEF2F9; --text: #0F172A; --muted: #55627A;
  --border: #DCE2EE; --shadow: 0 18px 50px rgba(11, 27, 63, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #060D1F; --surface: #0F1D3B; --surface-2: #15284E; --text: #E8EDF7; --muted: #9AA8C2; --border: #233A66; --shadow: 0 18px 50px rgba(0, 0, 0, .45); }
}
:root[data-theme="dark"] { --bg: #060D1F; --surface: #0F1D3B; --surface-2: #15284E; --text: #E8EDF7; --muted: #9AA8C2; --border: #233A66; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.lp { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.lp a { color: var(--blue); }
.lp-wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.lp-narrow { width: min(780px, 100% - 32px); }
.lp h1, .lp h2, .lp h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
[lang="ar"] .lp h1, [lang="ar"] .lp h2, [lang="hi"] .lp h1, [lang="pa"] .lp h1, [lang="bn"] .lp h1 { letter-spacing: 0; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px;
  background: var(--blue); color: #fff !important; font-weight: 700; text-decoration: none; border: 2px solid var(--blue); transition: background .15s, transform .15s; }
.lp-btn:hover { background: var(--blue-d); border-color: var(--blue-d); transform: translateY(-1px); }
.lp-btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.lp-btn-ghost:hover { background: var(--surface-2); border-color: var(--border); }
.lp-btn-orange { background: var(--orange); border-color: var(--orange); }
.lp-btn-orange:hover { background: var(--orange-t); border-color: var(--orange-t); }
.lp-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 27, 63, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 20px; }
.lp-brand b { color: var(--orange); }
.lp-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.lp-links a, .lp-login { color: #C9D4EA !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-links a:hover, .lp-login:hover { color: #fff !important; }
.lp-nav-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
@media (max-width: 760px) { .lp-links { display: none; } .lp-nav-in { gap: 12px; } .lp-brand { font-size: 18px; } }

/* Hero */
.lp-hero { background: radial-gradient(1100px 520px at 80% 10%, rgba(37, 99, 235, .45), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #0A1733 100%); color: #fff; overflow: hidden; }
.lp-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 84px; }
.lp-eyebrow { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: rgba(249, 115, 22, .14); color: #FDBA74; font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.lp-hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; }
.lp-lead { font-size: clamp(17px, 1.6vw, 20px); color: #C9D4EA; margin: 20px 0 28px; max-width: 34em; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero .lp-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.28); }
.lp-hero .lp-btn-ghost:hover { background: rgba(255,255,255,.08); }
.lp-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: #C9D4EA; font-weight: 600; font-size: 14px; }
.lp-ticks li, .lp-list li { display: flex; align-items: flex-start; gap: 8px; }
.lp-ticks svg { color: #4ADE80; flex: none; margin-top: 2px; }
.lp-stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.lp-stores span { padding: 7px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.28); color: #AFC0E0; font-size: 13px; font-weight: 600; }

.lp-hero-art { position: relative; height: 600px; }
.lp-phone { margin: 0; border-radius: 38px; padding: 9px; background: #050B18; box-shadow: var(--shadow), inset 0 0 0 2px #26324A; width: 290px; max-width: 100%; }
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.lp-hero-art .lp-phone { position: absolute; }
.lp-phone-back { top: 40px; inset-inline-start: 4%; transform: rotate(-6deg); opacity: .92; }
.lp-phone-front { top: 0; inset-inline-end: 6%; transform: rotate(3deg); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 2px #26324A; }
.lp-float { position: absolute; z-index: 3; background: #fff; color: var(--navy); border-radius: 14px; padding: 10px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.lp-float small { display: block; font-size: 12px; color: #55627A; font-weight: 600; }
.lp-float strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.lp-float .lp-ok { color: var(--ok); }
.lp-float-a { bottom: 70px; inset-inline-start: 0; }
.lp-float-b { top: 120px; inset-inline-end: 0; }
@media (max-width: 900px) {
  .lp-hero-in { grid-template-columns: 1fr; padding: 48px 0 40px; }
  .lp-hero-art { height: 460px; max-width: 420px; width: 100%; margin: 0 auto; }
  .lp-hero-art .lp-phone { width: 220px; }
  .lp-float-b { top: 60px; }
}

/* Company strip */
.lp-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 26px 0; text-align: center; }
.lp-strip p { margin: 0 0 12px; font-weight: 700; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
[lang="ar"] .lp-strip p, [lang="zh"] .lp-strip p { text-transform: none; letter-spacing: 0; }
.lp-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.lp-strip li { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.lp-strip small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Three-up band */
.lp-band { padding: 56px 0; }
.lp-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-three > div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 6px 20px rgba(11, 27, 63, .06); border-top: 4px solid var(--blue); }
.lp-three > div:nth-child(2) { border-top-color: var(--orange); }
.lp-three > div:nth-child(3) { border-top-color: var(--ok); }
.lp-three strong { font-size: 19px; }
.lp-three p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 800px) { .lp-three { grid-template-columns: 1fr; } }

/* Features */
.lp-features { padding: 40px 0 72px; }
.lp-h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; text-align: center; }
.lp-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 12px auto 0; max-width: 40em; }
.lp-row { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; margin-top: 72px; }
.lp-row .lp-phone { width: 300px; justify-self: center; }
.lp-row-flip { grid-template-columns: 1fr 340px; }
.lp-row-flip .lp-phone { order: 2; }
.lp-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(37, 99, 235, .12); color: var(--blue); font-weight: 700; font-size: 13px; }
.lp-row h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 14px 0 12px; }
.lp-row p { color: var(--muted); font-size: 18px; margin: 0 0 18px; max-width: 32em; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 600; }
.lp-list svg { color: var(--ok); flex: none; margin-top: 3px; }
@media (max-width: 820px) {
  .lp-row, .lp-row-flip { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .lp-row-flip .lp-phone { order: 0; }
  .lp-row .lp-phone { width: 250px; }
}
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.lp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.lp-card strong { font-size: 17px; }
.lp-card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .lp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lp-grid { grid-template-columns: 1fr; } }

/* Steps */
.lp-steps { background: var(--surface); border-block: 1px solid var(--border); padding: 64px 0; }
.lp-steps ol { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-steps li { position: relative; padding: 24px 22px 22px; border-radius: 18px; background: var(--surface-2); }
.lp-steps li b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 18px; margin-bottom: 12px; }
:root[data-theme="dark"] .lp-steps li b { background: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-steps li b { background: var(--blue); } }
.lp-steps li strong { display: block; font-size: 18px; }
.lp-steps li p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 800px) { .lp-steps ol { grid-template-columns: 1fr; } }

/* Pricing */
.lp-pricing { padding: 72px 0; }
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 22px; margin-top: 36px; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; }
.lp-plan h3 { font-size: 22px; }
.lp-price { margin: -6px 0 0; font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lp-price small { font-size: 16px; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
.lp-plan .lp-list { flex: 1; font-weight: 500; }
.lp-plan-pro { border: 2px solid var(--blue); box-shadow: 0 20px 50px rgba(37, 99, 235, .18); }
.lp-badge { position: absolute; top: -13px; inset-inline-start: 26px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.lp-fine { color: var(--muted); text-align: center; }
@media (max-width: 760px) { .lp-plans { grid-template-columns: 1fr; } }

/* Privacy */
.lp-privacy { padding: 0 0 72px; }
.lp-privacy-in { display: flex; gap: 22px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 24px; padding: 34px; }
.lp-privacy svg { color: #4ADE80; flex: none; }
.lp-privacy h2 { font-size: 26px; }
.lp-privacy p { color: #C9D4EA; margin: 8px 0 0; font-size: 17px; }
@media (max-width: 600px) { .lp-privacy-in { flex-direction: column; padding: 26px; } }

/* FAQ */
.lp-faq { padding: 0 0 72px; }
.lp-faq .lp-h2 { margin-bottom: 26px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; font-weight: 600; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Final CTA */
.lp-final { background: radial-gradient(800px 360px at 50% 0%, rgba(37, 99, 235, .4), transparent 70%), var(--navy); color: #fff; text-align: center; padding: 72px 0; }
.lp-final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; max-width: 18em; margin: 0 auto; }
.lp-final p { color: #C9D4EA; font-size: 18px; margin: 14px 0 26px; }
.lp-final .lp-final-login { font-size: 15px; margin: 18px 0 0; }
.lp-final .lp-final-login a { color: #fff; font-weight: 700; }

/* Footer */
.lp-foot { background: #060E22; color: #9AA8C2; padding: 30px 0; }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.lp-foot .site-footer { margin: 0; font-size: 14px; flex: 1; min-width: 260px; }
.lp-foot a { color: #C9D4EA; }
.lp-foot .lang-switch select { background: #0F1D3B; color: #E8EDF7; border: 1px solid #233A66; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; }
.lp-foot .lang-switch label { display: inline-flex; gap: 6px; align-items: center; }
.lp-nav-cta a { white-space: nowrap; }
@media (max-width: 440px) {
  .lp-brand { font-size: 16px; gap: 7px; }
  .lp-brand svg { width: 28px; height: 28px; }
  .lp-nav-cta { gap: 10px; }
  .lp-login { font-size: 14px; }
  .lp-btn-sm { padding: 0 11px; font-size: 13px; min-height: 36px; }
}
