/* ============ LANDING + KIRISH / RO'YXATDAN O'TISH (index.php, register.php) ============
   Faqat app.css o'zgaruvchilari — tungi rejim avtomatik. Sarlavha va footer: includes/landing.php */
:root { --lp-max: 1100px; }

html { scroll-behavior: smooth; }
body.lp {
  background:
    radial-gradient(1000px 520px at 88% -10%, var(--glow-2), transparent 62%),
    radial-gradient(1100px 560px at 70% -8%, var(--accent-soft), transparent 62%),
    radial-gradient(900px 520px at -8% 6%, var(--indigo-soft), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
.lp-wrap { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 20px; }
.lp-sec { scroll-margin-top: 84px; }
.lp-sec-pad { padding: 52px 0; }

/* ---------- Navigatsiya ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 12px; height: 66px; }
.lp-brand { margin-right: auto; }
.lp-brand .brand-word { height: 21px; }
.lp-brand .brand-sub { display: none; }
.lp-links { display: flex; align-items: center; gap: 2px; }
.lp-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.lp-links a:hover { color: var(--text); background: var(--surface-2); }
.lp-nav .btn { padding: 9px 16px; border-radius: 12px; font-size: 14px; }
.lp-links a.btn, .lp-links a.btn:hover { color: #fff; background: var(--grad-btn); }
@media (min-width: 768px) { .lp-brand .brand-sub { display: block; } }
@media (max-width: 767px) {
  .lp-links .lp-hide-sm { display: none; }
  .lp-nav .lp-wrap { gap: 6px; }
  .lp-links a { padding: 9px 8px; font-size: 13.5px; }
}
/* Tor telefonda faqat logotip + rejim + "Kirish" */
@media (max-width: 459px) {
  .lp-links a:not(.btn) { display: none; }
  .lp-brand .brand-mark { width: 34px; height: 34px; }
  .lp-brand .brand-word { height: 19px; }
}

/* ---------- Hero ---------- */
.lp-hero { display: grid; gap: 38px; padding: 40px 20px 26px; }
.lp-hero > * { min-width: 0; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 12.5px; font-weight: 700; color: var(--accent);
}
.lp-h1 {
  margin: 20px 0 0; font-size: clamp(30px, 6vw, 50px); line-height: 1.06;
  font-weight: 800; letter-spacing: -1.2px;
}
.lp-h1 em {
  font-style: normal;
  background: linear-gradient(115deg, #0c9a72 0%, #0b7f86 45%, #5b5bd6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { margin: 18px 0 0; font-size: 16.5px; line-height: 1.62; color: var(--muted); max-width: 54ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-cta .btn { padding: 14px 22px; font-size: 15.5px; border-radius: 16px; }
/* Telefonda ikkala tugma to'liq kenglikda (230px / 115px notekis bo'lmasin) */
@media (max-width: 480px) { .lp-cta .btn { flex: 1 1 100%; justify-content: center; } }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lp-phone-wrap { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: 1.08fr .92fr; align-items: center; padding: 66px 20px 42px; gap: 46px; }
}

/* ---------- Telefon maketi ---------- */
.phone {
  width: min(320px, 84vw); flex: 0 0 auto; position: relative;
  padding: 11px; border-radius: 46px;
  background: linear-gradient(160deg, #23232c, #0b0b10);
  box-shadow: 0 34px 70px rgba(16, 24, 40, .30), 0 10px 26px rgba(16, 24, 40, .18), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.lp-eyebrow img { width: 18px; height: 18px; border-radius: 5px; }
html[data-theme="dark"] .lp-h1 em { background-image: linear-gradient(115deg, #34d399 0%, #5cc4f5 55%, #a5a8ff 100%); }
/* Telefon atrofidagi "suzuvchi" belgilar va tong nuri */
.lp-phone-wrap { position: relative; }
.lp-phone-wrap::before {
  content: ''; position: absolute; width: min(440px, 100%); aspect-ratio: 1; left: 50%; top: 46%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 90, .3), rgba(18, 184, 134, .14) 45%, transparent 70%);
  pointer-events: none;
}
.lp-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 13px 9px 9px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 800; white-space: nowrap; line-height: 1.25;
  animation: lpFloat 5s ease-in-out infinite;
}
.lp-float .lp-fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.lp-float small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
/* Pastki belgi telefon ramkasining pastki chetida — ichidagi oxirgi vazifa matnini yopmasin */
.lp-float.f1 { left: max(0px, calc(50% - 250px)); bottom: -14px; }
.lp-float.f1 .lp-fi { background: var(--amber-soft); color: var(--amber-ink); }
.lp-float.f2 { right: max(0px, calc(50% - 240px)); top: 9%; animation-delay: -2.5s; }
.lp-float.f2 .lp-fi { background: var(--accent-soft); color: var(--accent); }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 420px) { .lp-float { display: none; } }
/* Telefon ichidagi qahramon karta (ilovadagi bilan bir xil uslub) */
.ph-ringcard.hero { text-align: left; padding: 12px; }
.ph-ringcard .hero-main { margin-top: 0; gap: 12px; }
.ph-ringcard .hero-t { font-size: 14px; margin-top: 2px; }
.ph-ringcard .hero-k { font-size: 9px; }
.ph-ringcard .hero-s { font-size: 10.5px; margin-top: 3px; }
.ph-ringcard .stats, .ph-ringcard .ph-stats { margin-top: 10px; }
html[data-theme="dark"] .phone {
  background: linear-gradient(160deg, #1e1e26, #08080b);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.phone-screen {
  height: 600px; border-radius: 35px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column; position: relative;
}
.ph-island {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 9px; border-radius: 99px; background: #05050a; z-index: 4;
}
.ph-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 24px 4px; font-size: 11.5px; font-weight: 800; color: var(--text);
}
.ph-status .ph-batt { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: .75; }
.ph-status .ph-batt::after { content: ''; position: absolute; inset: 1.5px; right: 6px; background: currentColor; border-radius: 1px; }
.ph-body { flex: 1; min-height: 0; padding: 8px 12px 0; display: flex; flex-direction: column; gap: 9px; }
.ph-appbar { display: flex; align-items: center; gap: 9px; padding: 2px 2px 4px; }
.ph-appbar .avatar { width: 34px; height: 34px; font-size: 12px; }
.ph-appbar b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; }
.ph-appbar span:not(.avatar) { font-size: 10.5px; color: var(--muted); } /* avatar ham <span> — bosh harflar oq qolsin */
.ph-ringcard { padding: 12px 12px 10px; border-radius: 18px; text-align: center; }
.ph-ringcard .ring-center b { font-size: 27px; }
.ph-ringcard .ring-center em { font-size: 17px; }
.ph-ringcard .ring-center span { font-size: 10px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.ph-stats .stat { padding: 6px 2px; border-radius: 11px; }
.ph-stats .stat b { font-size: 14px; }
.ph-stats .stat span { font-size: 9px; }
.ph-chips { display: flex; gap: 6px; }
.ph-chips .chip { padding: 4px 9px; font-size: 10.5px; }
.ph-sec { font-size: 12px; font-weight: 800; margin: 3px 2px 0; }
.ph-rows { border-radius: 18px; }
.ph-rows .trow { padding: 10px 12px; gap: 10px; }
.ph-rows .t-title { font-size: 12.5px; }
.ph-rows .t-sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.ph-rows .t-title, .ph-rows .t-sub { display: block; }
.ph-rows .chk { width: 22px; height: 22px; border-radius: 8px; }
.ph-rows .chk .ic { width: 14px; height: 14px; }
.ph-tabbar { margin-top: auto; display: flex; border-top: 1px solid var(--line); background: var(--surface); }
.ph-tabbar span {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 13px; font-size: 8.5px; font-weight: 700; color: var(--muted);
}
.ph-tabbar span.on { color: var(--accent); }
.ph-tabbar .ic { width: 19px; height: 19px; }

/* ---------- Bo'lim sarlavhalari ---------- */
.lp-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.lp-h2 { margin: 10px 0 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.8px; line-height: 1.12; }
.lp-sub { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }

/* ---------- Imkoniyatlar ---------- */
.lp-grid { display: grid; gap: 16px; margin-top: 32px; }
.lp-grid > * { min-width: 0; }
@media (min-width: 900px) { .lp-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.lp-feat { padding: 22px; border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-tile {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 15px;
  background: var(--accent-soft); color: var(--accent);
}
.lp-tile.indigo { background: var(--indigo-soft); color: var(--indigo); }
.lp-tile.amber { background: var(--amber-soft); color: var(--amber-ink); }
.lp-tile.sky { background: var(--sky-soft); color: var(--sky); }
.lp-tile.rose { background: var(--rose-soft); color: var(--rose); }
.lp-tile .ic { width: 24px; height: 24px; }
.lp-feat h3 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }
.lp-feat p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

/* ---------- Qadamlar ---------- */
.lp-steps { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step { position: relative; padding: 24px 22px; border-radius: 20px; }
.lp-step .num {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-size: 17px; font-weight: 800; color: #fff;
  background: var(--grad-btn);
  box-shadow: var(--shadow-brand);
}
.lp-step .st-ic { position: absolute; top: 26px; right: 22px; color: var(--muted); opacity: .55; }
.lp-step h3 { margin: 16px 0 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }
.lp-step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.58; }

/* ---------- Kirish ---------- */
.lp-login-head { text-align: center; }
.lp-login-head .lp-sub { margin-left: auto; margin-right: auto; }
.lp-login-card { max-width: 430px; margin: 56px auto 0; padding: 28px 26px; border-radius: var(--r-xl); }
.lp-login-mark { display: block; width: 56px; height: 56px; margin: -56px auto 18px; border-radius: 16px; box-shadow: var(--shadow-brand); }
.lp-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 7px 2px; }
.lp-field + .lp-field { margin-top: 15px; }
.lp-alert {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px;
  padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
}
.lp-alert .ic { flex: 0 0 auto; margin-top: 1px; }
.lp-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lp-or::before, .lp-or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.lp-tg { display: flex; justify-content: center; min-height: 0; }
.lp-foot-note { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.lp-foot-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.lp-foot-note a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.lp-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 30px 0 46px; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.lp-foot-brand { display: flex; align-items: center; gap: 12px; }
.lp-foot-brand .brand-word { height: 17px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.lp-foot-links a { color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 9px; }
.lp-foot-links a:hover { color: var(--text); background: var(--surface-2); }
.lp-copy { color: var(--muted); font-size: 13px; }

/* Rejim ikonkalari */
html[data-theme="dark"] .lp-ic-moon { display: none; }
html[data-theme="light"] .lp-ic-sun { display: none; }
