/* zamin.app — landing, ulashish sahifalari (api/src/share.js) va huquqiy sahifalar uchun umumiy uslub.
   Ilova dizayni bilan bir xil: oq kartalar, yashil urg'u, 4px burchak, Manrope. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --brand: #16a34a; --brand-ink: #15803d; --brand-soft: #dcf7e3;
  --bg: #f4f5f7; --card: #fff; --ink: #0f1115; --ink2: #2a2e35; --muted: #6b7280; --line: #e8eaee;
  --r: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg);
  color: var(--ink); line-height: 1.55; }
a { color: var(--brand-ink); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Yuqori panel */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 245, 247, 0.86); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.top .grow { flex: 1; }
.lang { display: flex; gap: 2px; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 6px 8px;
  border-radius: var(--r); cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: var(--r); font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { color: #fff; background: linear-gradient(135deg, #2fb35d, var(--brand) 55%, var(--brand-ink));
  box-shadow: 0 8px 20px -10px rgba(22, 163, 74, 0.7); }
.btn.ghost { color: var(--brand-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:focus-visible, .lang button:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Landing: bosh qism */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--ink2); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.phones { position: relative; display: flex; justify-content: center; gap: 14px; }
.phone { width: 46%; max-width: 250px; border-radius: 22px; background: #0f1115; padding: 6px;
  box-shadow: 0 30px 60px -28px rgba(15, 17, 21, 0.55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 17px; aspect-ratio: 9 / 20; object-fit: cover; }
.phone.up { transform: translateY(-22px); }

/* Imkoniyatlar */
.section { padding: 40px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.feature .ic { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 12px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .phones { justify-content: flex-start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.band { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band h2 { margin: 0 0 4px; }
.band p { margin: 0; color: var(--muted); }

/* Pastki qism */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ink); }
.foot .grow { flex: 1; }

/* Ulashish sahifasi (Telegram t.me uslubi): markazdagi karta */
.share { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 32px 16px 48px; }
.card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 22px 22px; text-align: center; box-shadow: 0 20px 50px -34px rgba(15, 17, 21, 0.4); }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 14px; background: var(--brand-soft); }
.avatar.letter { display: grid; place-items: center; font-size: 44px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #34c463, #14873b); }
.avatar.sm { width: 44px; height: 44px; margin: 0; font-size: 18px; }
.card h1 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.handle { color: var(--muted); font-weight: 600; margin: 2px 0 0; }
.bio { margin: 12px 0 0; color: var(--ink2); white-space: pre-line; overflow-wrap: anywhere; }
.stats { display: flex; justify-content: center; gap: 26px; margin: 16px 0 0; }
.stats b { display: block; font-size: 18px; }
.stats span { color: var(--muted); font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 18px 0 0; }
.thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line); }
.author { display: flex; align-items: center; gap: 10px; text-align: left; }
.author b { display: block; }
.author span { color: var(--muted); font-size: 13px; }
.post-body { text-align: left; margin: 14px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink2); font-size: 16px; }
.post-media { margin: 14px -22px 0; position: relative; }
.post-media img { display: block; width: 100%; max-height: 520px; object-fit: cover; background: var(--line); }
.post-media .play { position: absolute; inset: 0; display: grid; place-items: center; }
.post-media .play i { width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 17, 21, 0.55); display: grid; place-items: center; }
.post-media .more { position: absolute; top: 10px; right: 10px; background: rgba(15, 17, 21, 0.6); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--r); }
.tag-mark { width: 96px; height: 96px; border-radius: var(--r); margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 46px; font-weight: 800; }
.live-badge { display: inline-block; background: #e5484d; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: var(--r); margin: 0 0 12px; }
.live-badge.off { background: var(--muted); }
.actions { display: grid; gap: 8px; margin: 22px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* Huquqiy sahifalar */
.doc { max-width: 760px; padding: 40px 16px 20px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0 0 8px; }
.doc h2 { font-size: 18px; margin: 0 0 6px; }
.doc p { margin: 0; color: var(--ink2); }
.doc p + p { margin-top: 8px; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 32px; }
  .split .phones { justify-content: center; order: 2; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .top .btn.small { display: none; }
  .band { padding: 22px; }
  .cta .btn { flex: 1 1 100%; }
}
