/* Xato.uz — sayt uslublari. Ranglar Word ish stoli va muharrir belgilaridan olingan. */
:root {
  --ink: #1d2547;
  --ink-2: #2a3463;
  --ink-soft: #5d6480;
  --red: #c62f3b;
  --red-wave: #f0525a;
  --mark: #ffe08a;
  --ok: #2e7d5b;
  --paper: #ffffff;
  --desk: #eef0f6;
  --rule: #e1e4ee;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 3.6 Q2 0.6 4 3.6 T8 3.6' fill='none' stroke='%23e5484d' stroke-width='1.7'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.small { font-size: 14px; color: var(--ink-soft); }

/* ------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand .word-mark { white-space: nowrap; }
.brand .tld { color: var(--ink-soft); font-weight: 500; }
.nav { display: flex; gap: 26px; margin-right: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.top-actions .login { font-size: 15px; text-decoration: none; color: var(--ink-soft); }
.top-actions .login:hover { color: var(--ink); }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  border: 1.5px solid var(--ink); background: var(--paper); text-decoration: none; font-weight: 500; font-size: 16px; cursor: pointer; line-height: 1.2; }
.btn:hover:not(:disabled) { background: var(--desk); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover:not(:disabled) { background: var(--ink-2); }
.btn.big { padding: 15px 24px; font-size: 17px; }
.btn.small-btn { padding: 8px 14px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { padding: 0; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link:hover { color: var(--ink); }

/* ------------------------------------------------ hero */
.hero { background: var(--desk); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { margin: 0; font-size: clamp(36px, 4.3vw, 54px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.hero .lead { margin: 22px 0 30px; font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 10px 32px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid #d6dae6; list-style: none; }
.facts li { font-size: 15px; color: var(--ink-soft); }
.facts li { font-size: 14px; line-height: 1.4; }
.facts strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }

/* Word oynasi (bezak) */
.word { border-radius: 10px; background: #fff; box-shadow: 0 1px 0 #d4d8e4, 0 30px 60px -28px rgba(29, 37, 71, .45); overflow: hidden; font-size: 13px; }
.word-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #2b579a; color: #fff; font-size: 12px; }
.word-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.word-bar .title { margin-left: 10px; opacity: .9; }
.word-tabs { display: flex; gap: 2px; padding: 0 8px; background: #2b579a; color: rgba(255, 255, 255, .85); font-size: 12px; }
.word-tabs span { padding: 5px 10px; }
.word-tabs .on { background: #f3f3f3; color: var(--ink); border-radius: 4px 4px 0 0; font-weight: 600; }
.word-ribbon { display: flex; gap: 6px; padding: 8px 12px; background: #f3f3f3; border-bottom: 1px solid #dcdcdc; }
.rbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 74px; padding: 4px 0; border-radius: 4px; font-size: 11px; color: #333; text-align: center; line-height: 1.2; }
.rbtn i { display: block; width: 26px; height: 26px; border-radius: 6px; background: #fff; border: 1px solid #d6d6d6; font-style: normal; font-weight: 700; font-size: 13px; line-height: 24px; color: var(--ink); }
.rbtn.on { background: #dfe6f3; }
.rbtn.on i { border: 0; background: url("/logo.svg") center / cover; }
.word-body { display: grid; grid-template-columns: minmax(0, 1fr) 232px; background: #e6e6e6; min-height: 330px; }
.page { margin: 18px 0 18px 18px; padding: 28px 30px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font: 15px/1.7 var(--serif); color: #222; }
.page p { margin: 0 0 10px; }
.err { background-image: var(--wave); background-repeat: repeat-x; background-position: 0 100%; background-size: 8px 5px; padding-bottom: 3px; }
.fixed { background: #e2f3ea; border-radius: 2px; transition: background-color 1.2s ease 0.6s; }
.pane { background: #fff; border-left: 1px solid #dcdcdc; padding: 12px; font-family: var(--font); }
.pane-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.pane-head img { width: 18px; height: 18px; }
.pane-status { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 10px; }
.pcard { padding: 9px 10px 10px; margin-bottom: 8px; border-radius: 6px; background: #fffaeb; transition: opacity .35s ease, transform .35s ease, max-height .45s ease .25s, padding .45s ease .25s, margin .45s ease .25s; max-height: 140px; overflow: hidden; }
.pcard b { display: block; color: var(--red); text-decoration: line-through; font-size: 14px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 2px 8px; border: 1px solid var(--ink); border-radius: 4px; font-size: 12.5px; background: #fff; }
.chip.first { background: var(--ink); color: #fff; font-weight: 600; }
.chip.pressed { background: var(--ok); border-color: var(--ok); }
.pcard.gone { opacity: 0; transform: translateX(16px); max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; }

/* ------------------------------------------------ sections */
section.block { padding: 96px 0; }
section.block.tint { background: var(--desk); }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.03em; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.feature svg { width: 40px; height: 40px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 26px 26px 28px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.steps .tab { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--desk); font-weight: 600; color: var(--ink); }

/* jonli sinov */
.demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; }
.demo-input { padding: 22px 24px; border-right: 1px solid var(--rule); }
.demo-input label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink-soft); }
.demo-text { position: relative; }
.demo-text textarea, .demo-text .mirror { width: 100%; min-height: 220px; margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 8px;
  font: 18px/1.65 var(--serif); white-space: pre-wrap; word-wrap: break-word; }
.demo-text textarea { position: relative; z-index: 1; resize: vertical; background: transparent; color: var(--ink); }
.demo-text textarea:focus { outline: none; border-color: var(--ink); }
.demo-text .mirror { position: absolute; inset: 0; color: transparent; border-color: transparent; overflow: hidden; pointer-events: none; }
.demo-text .mirror mark { color: transparent; background: none; background-image: var(--wave); background-repeat: repeat-x; background-position: 0 100%; background-size: 8px 5px; }
.demo-bar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.demo-out { padding: 22px 24px; background: #fcfcfe; max-height: 340px; overflow-y: auto; }
.demo-out .status { margin: 0 0 14px; font-size: 15px; color: var(--ink-soft); }
.demo-out .status.ok { color: var(--ok); }
.demo-out .status.fail { color: var(--red); }
.dcard { padding: 12px 14px; margin-bottom: 10px; border-radius: 8px; background: #fffaeb; }
.dcard b { display: block; color: var(--red); text-decoration: line-through; font-size: 17px; margin-bottom: 8px; }
.dcard .chips { gap: 6px; }
.dcard .chip { cursor: pointer; font-size: 15px; padding: 3px 10px; }
.dcard .chip:hover { background: var(--desk); }
.dcard .chip.first:hover { background: var(--ink-2); }

/* narxlar */
.trial { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; padding: 20px 24px; border-radius: 12px;
  background: repeating-linear-gradient(135deg, #fff8e0 0 14px, #fff3cc 14px 28px); border: 1px solid #f3e2a6; }
.trial strong { display: block; font-size: 20px; }
.trial span { color: var(--ink-soft); font-size: 16px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; }
.price { padding: 26px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.price:last-child { border-right: 0; }
.price.best { background: #f6f7fb; }
.price h3 { margin: 0; font-size: 18px; }
.amount { font-size: clamp(26px, 2.7vw, 32px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.amount small { font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.price .per { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; flex: 1; }
.save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; background: var(--mark); color: var(--ink); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* savollar */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }

/* yakuniy chaqiriq */
.final { background: var(--ink); color: #fff; padding: 72px 0; }
.final .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.15; max-width: 18em; }
.final p { margin: 8px 0 0; color: #c5cae0; }
.final .btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.final .btn.solid:hover { background: var(--mark); border-color: var(--mark); }

/* ------------------------------------------------ footer */
footer { padding: 40px 0 48px; color: var(--ink-soft); font-size: 14px; border-top: 1px solid var(--rule); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
footer .brand { font-size: 17px; color: var(--ink); margin-right: auto; }
footer .brand img { width: 26px; height: 26px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------ kabinet */
.panel { max-width: 460px; margin: 56px auto; padding: 0 24px; }
.panel h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.02em; }
.tabs { display: flex; margin: 24px 0 20px; border-bottom: 1px solid var(--rule); }
.tabs button { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.field { display: block; margin-bottom: 14px; font-size: 14px; color: var(--ink-soft); }
.field input { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: 16px; color: var(--ink); }
.field input:focus { border-color: var(--ink); outline: none; }
.form-err { min-height: 1.2em; margin: 0 0 12px; color: var(--red); font-size: 14px; }
.form-ok { color: var(--ok); }
.full { width: 100%; }
.alt { margin: 16px 0 0; text-align: center; }
.status-card { padding: 20px; border: 1px solid var(--rule); border-left: 4px solid var(--mark); border-radius: 8px; margin: 20px 0; }
.status-card.premium { border-left-color: var(--ok); }
.status-card h2 { font-size: 20px; margin: 0 0 4px; }
.meter { height: 8px; background: var(--desk); border-radius: 4px; overflow: hidden; margin: 12px 0 6px; }
.meter span { display: block; height: 100%; background: var(--ink); }
.buy { display: grid; gap: 10px; margin: 12px 0 28px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.buy-row strong { display: block; }
.buy-row > div:first-child { flex: 1; min-width: 0; }
.buy-row .per-line { display: block; }
.pay-btns { display: flex; gap: 8px; flex: none; }
.pay-btns .btn { padding: 8px 14px; font-size: 14px; }
.banner { padding: 14px 16px; border-radius: 8px; margin: 16px 0; background: var(--desk); }
.banner.ok { background: #e6f3ec; color: var(--ok); }
.banner.fail { background: #fbe9eb; color: var(--red); }
.panel details { margin: 8px 0 20px; }
.panel summary { cursor: pointer; color: var(--ink-soft); font-size: 15px; }

/* huquqiy sahifalar */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: -0.02em; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p { margin: 0 0 12px; }

/* ------------------------------------------------ moslashuvchanlik */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo { grid-template-columns: 1fr; }
  .demo-input { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top .wrap { gap: 16px; }
  .top-actions .login { display: none; }
  section.block { padding: 64px 0; }
  .word-body { grid-template-columns: 1fr; }
  .pane { display: none; }
  .page { margin: 14px; }
  .features, .steps, .faq { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .price { border-right: 0; border-bottom: 1px solid var(--rule); }
  .buy-row { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard, .fixed { transition: none; }
}
