/* ================================================================
   MD Reader — sayt uslublari (landing, privacy, terms uchun umumiy)
   ================================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --card: #ffffff;
  --text: #14171d;
  --muted: #5f6875;
  --faint: #8b94a3;
  --line: rgba(12, 20, 40, 0.1);
  --line-strong: rgba(12, 20, 40, 0.18);
  --accent: #0a6cff;
  --accent-soft: rgba(10, 108, 255, 0.09);
  --accent-text: #0a6cff;
  --shadow-sm: 0 1px 2px rgba(12, 20, 40, 0.06), 0 4px 14px rgba(12, 20, 40, 0.06);
  --shadow-lg: 0 20px 60px rgba(12, 20, 40, 0.16), 0 2px 6px rgba(12, 20, 40, 0.06);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --bg-soft: #141922;
    --card: #171c25;
    --text: #eef2f8;
    --muted: #a2acbb;
    --faint: #78828f;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: #4d9bff;
    --accent-soft: rgba(77, 155, 255, 0.14);
    --accent-text: #6fb0ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Inter, system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------------- Navigatsiya ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.logo span { color: var(--text); font-size: 16px; }
.nav-links { display: flex; gap: 20px; margin-inline-start: 14px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.lang-select {
  appearance: none;
  padding: 5px 28px 5px 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b94a3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
[dir="rtl"] .lang-select { padding: 5px 11px 5px 28px; background-position: left 10px center; }
.lang-select:hover { color: var(--text); border-color: var(--line-strong); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------------- Tugmalar ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-disabled {
  background: var(--bg-soft);
  color: var(--faint);
  border-color: var(--line);
  cursor: default;
  box-shadow: none;
}
.btn-disabled:hover { transform: none; filter: none; }
.btn small { font-weight: 500; opacity: 0.75; }

/* ---------------- Hero ---------------- */

.hero { position: relative; padding: 74px 0 0; overflow: hidden; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: -320px 0 auto 0;
  height: 620px;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 20px;
}
.pill b {
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 20px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.033em;
  font-weight: 700;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.hero-note { font-size: 13px; color: var(--faint); margin-bottom: 46px; }

.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--card);
}
.hero .shot { max-width: 1000px; margin: 0 auto; }

/* ---------------- Bo'limlar ---------------- */

section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* Platformalar */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.platform {
  padding: 22px 18px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.platform.now { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow-sm); }
.platform .pico { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.platform h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.platform .status { font-size: 13px; color: var(--muted); }
.platform.now .status { color: var(--accent-text); font-weight: 600; }
@media (max-width: 760px) { .platforms { grid-template-columns: repeat(2, 1fr); } }

/* Imkoniyatlar */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.18s ease;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature .ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 19px;
  background: var(--accent-soft);
  border-radius: 11px;
}
.feature h3 { margin: 0 0 7px; font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Ko'rgazma */
.showcase { display: grid; gap: 70px; }
.show-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: center; }
.show-row.flip { grid-template-columns: 1.15fr 0.85fr; }
.show-row.flip .show-text { order: 2; }
.show-text h3 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.show-text p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.show-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.show-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.show-list .tick {
  flex: none; width: 19px; height: 19px; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 50%;
}
@media (max-width: 860px) {
  .show-row, .show-row.flip .show-text { grid-template-columns: 1fr; order: 0; }
  .showcase { gap: 54px; }
}

/* Maxfiylik bandi */
.privacy-band { text-align: center; }
.privacy-band .big {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.privacy-band p { max-width: 620px; margin: 0 auto 22px; color: var(--muted); font-size: 16.5px; }
.privacy-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* Narxlar */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan.best { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.plan-tag {
  position: absolute;
  top: -11px; inset-inline-start: 26px;
  padding: 3px 11px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
  color: #fff; background: var(--accent); border-radius: 20px;
}
.plan h3 { margin: 0 0 4px; font-size: 17px; font-weight: 650; }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .price-note { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; min-height: 20px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; font-size: 14.5px; color: var(--muted); }
.plan li .tick { color: var(--accent); font-weight: 700; flex: none; }
.plan li.off { opacity: 0.55; }
.plan li.off .tick { color: var(--faint); }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

.price-disclaimer {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
details.qa {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
details.qa summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--faint);
  font-weight: 400;
  font-size: 19px;
}
details.qa[open] summary::after { content: "−"; }
details.qa p { margin: 12px 0 2px; color: var(--muted); font-size: 15px; }

/* Yakuniy chaqiruv */
.cta { text-align: center; }
.cta-card {
  padding: 56px 30px;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #7a3cff));
  border-radius: 26px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; margin-bottom: 10px; }
.cta-card p { max-width: 520px; margin: 0 auto 26px; color: rgba(255, 255, 255, 0.86); font-size: 17px; }
.cta-card .btn-primary { background: #fff; color: #0a2a6a; }
.cta-card .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Footer */
footer.site {
  padding: 54px 0 42px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.foot-top { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.foot-brand { max-width: 300px; }
.foot-brand p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.foot-cols { display: flex; gap: 60px; margin-inline-start: auto; flex-wrap: wrap; }
.foot-col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.foot-col a { display: block; margin-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.foot-bottom p { margin: 0 0 8px; }
.legal-note { font-size: 12.5px; line-height: 1.6; }

/* ---------------- Hujjat sahifalari ---------------- */

.doc { padding: 54px 0 90px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 13.5px; margin-bottom: 8px; }
.doc .toc {
  margin: 28px 0 36px;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc .toc strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.doc .toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 30px; font-size: 14.5px; }
.doc .toc li { margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }

.doc h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
  scroll-margin-top: 84px;
}
.doc h3 { margin: 26px 0 8px; font-size: 16.5px; font-weight: 650; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.72; }
.doc p { margin: 0 0 14px; color: var(--text); }
.doc ul, .doc ol { margin: 0 0 16px; padding-inline-start: 24px; color: var(--text); }
.doc li { margin-bottom: 7px; }
.doc strong { font-weight: 650; }

.callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius);
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-inline-start-color: #e8a33d; }

.doc .contact-box {
  margin: 30px 0 10px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Til bo'limlari */
.lang-section { display: none; }
.lang-section.active { display: block; }
[dir="rtl"] { text-align: right; }
[dir="rtl"] .hero, [dir="rtl"] .section-head, [dir="rtl"] .platform,
[dir="rtl"] .privacy-band, [dir="rtl"] .cta { text-align: center; }

/* Chop etish */
@media print {
  .nav, footer.site, .doc .toc { display: none; }
  body { background: #fff; color: #000; }
}
