/* AI Bilik · aibilik.az saytının ümumi stili. Rənglər, radius və kart üslubu app/tokens.css və app/styles.css-dən (tətbiqlə eyni). */
:root {
  --p: #6568ee; --p2: #9a6cf6; --ink: #24253f; --muted: #777a90; --bg: #f3f4fa; --card: #fff; --line: #e8e9f2; --soft: #eeedff;
  --green: #197d62; --greenbg: #e9f6ef; --orange: #a56822; --orangebg: #fff3e2; --red: #b94457; --redbg: #fff0f2;
  --grad: linear-gradient(115deg, var(--p), var(--p2));
  --shadow: 0 8px 28px #32326704;
  --font: Montserrat, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --r: 21px; --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #efeff9; --muted: #a0a2bc; --bg: #181927; --card: #242536; --line: #35364b; --soft: #302c4d;
    --p: #aaa0ff; --p2: #b386f3; --green: #7aceb0; --greenbg: #223e37; --orange: #e8b777; --orangebg: #453825; --red: #eea2af; --redbg: #442b38;
  }
}
:root[data-theme="dark"] {
    --ink: #efeff9; --muted: #a0a2bc; --bg: #181927; --card: #242536; --line: #35364b; --soft: #302c4d;
    --p: #aaa0ff; --p2: #b386f3; --green: #7aceb0; --greenbg: #223e37; --orange: #e8b777; --orangebg: #453825; --red: #eea2af; --redbg: #442b38;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light }
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: hidden }
img, svg, iframe { max-width: 100%; display: block }
a { color: var(--p) }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800 }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800 }
h3 { font-size: 18px; font-weight: 700 }
p { margin: 0 0 12px }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px }
.muted { color: var(--muted) } .small { font-size: 14px }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 50 }
.skip:focus { left: 8px }

/* başlıq */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap }
.brand img { width: 34px; height: 34px; border-radius: 10px }
.brand em { font-style: normal; color: var(--p) }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 12px }
.top nav a:hover { background: var(--soft) }
.top nav a.cta { background: var(--grad); color: #fff; padding: 9px 16px }
.theme { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none }
.theme svg { width: 20px; height: 20px } .theme .sun { display: none }
:root[data-theme="dark"] .theme .sun { display: block } :root[data-theme="dark"] .theme .moon { display: none }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block } :root:not([data-theme="light"]) .theme .moon { display: none } }
@media (max-width: 760px) { .top nav a:not(.cta) { display: none } .top nav a.cta { font-size: 14px; padding: 8px 14px } }

/* düymələr */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit }
.btn.main { background: var(--grad); color: #fff; box-shadow: 0 7px 17px #7664ec23 }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line) }
.btn.off { background: var(--card); color: var(--muted); border: 1px dashed var(--line); cursor: default }
.btn svg { width: 22px; height: 22px; flex: none }
.btns { display: flex; flex-wrap: wrap; gap: 12px }

/* bölmələr */
#main > section { padding: 56px 0 }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p); margin-bottom: 10px }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow) }
.grid { display: grid; gap: 16px }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr } .g3 { grid-template-columns: repeat(3, 1fr) } }
@media (min-width: 700px) and (max-width: 979px) { .g3 { grid-template-columns: 1fr 1fr } }

/* hero */
.hero { padding: 40px 0 24px }
.hero .wrap { display: grid; gap: 32px; align-items: center }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr } .hero { padding: 72px 0 40px } }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero .lead { margin-bottom: 24px }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding: 0; list-style: none; font-size: 14px; color: var(--muted) }
.facts li::before { content: "✓ "; color: var(--green); font-weight: 800 }

/* telefon maketi */
.mock { width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px; background: #1b1c2b; box-shadow: 0 30px 60px -30px #3b3d8a99 }
.mock .scr { height: 100%; border-radius: 31px; background: #f3f4fa; color: #24253f; overflow: hidden; display: flex; flex-direction: column; font-size: 12px }
.scr .bar { background: var(--grad); color: #fff; padding: 22px 16px 16px }
.scr .bar b { font-size: 16px; display: block }
.scr .bar span { opacity: .85 }
.scr .body { padding: 12px; display: flex; flex-direction: column; gap: 8px }
.scr .q { background: #fff; border: 1px solid #e3e5f0; border-radius: 14px; padding: 10px; font-family: Georgia, serif; font-size: 14px }
.scr .step { background: #fff; border-radius: 14px; padding: 9px 10px; border: 1px solid #e3e5f0; display: flex; gap: 8px }
.scr .step i { font-style: normal; flex: none; width: 20px; height: 20px; border-radius: 7px; background: #eeedff; color: #6568ee; font-weight: 800; display: grid; place-items: center; font-size: 11px }
.scr .ans { background: #e9f6ef; color: #197d62; border-radius: 14px; padding: 10px; font-weight: 700 }
.scr .chip { align-self: flex-start; background: #eeedff; color: #6568ee; border-radius: 999px; padding: 5px 10px; font-weight: 700 }

/* video */
.video { position: relative; max-width: 880px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #1b1c2b; border: 1px solid var(--line) }
.video iframe, .video img, .video .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover }
.video .poster { display: grid; place-items: center; text-align: center; color: #fff; background: var(--grad); padding: 16px }
.video .poster .play { width: 76px; height: 76px; border-radius: 50%; background: #ffffff33; display: grid; place-items: center; margin: 0 auto 14px; backdrop-filter: blur(4px) }
.video .poster .play::before { content: ""; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px }
.video .poster b { font-size: clamp(18px, 3vw, 26px); display: block }
.video .poster span { opacity: .85; font-size: 14px }

/* imkanlar */
.feat .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--p); display: grid; place-items: center; margin-bottom: 14px }
.feat .ic svg { width: 24px; height: 24px }
.feat p { color: var(--muted); margin: 0; font-size: 15px }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center }

/* qiymətlər */
.tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 20px }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: none; color: var(--muted); padding: 8px 16px; border-radius: 10px; cursor: pointer }
.tabs button[aria-pressed="true"] { background: var(--grad); color: #fff }
.plan { display: flex; flex-direction: column }
.plan.hot { border: 2px solid var(--p) }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--p); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 0 }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted) }
.plan .old { color: var(--muted); font-size: 14px; min-height: 22px }
.plan .old s { margin-right: 6px }
.plan ul { padding: 0; margin: 16px 0 0; list-style: none; font-size: 15px }
.plan li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line) }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800 }
.note { border-radius: 14px; padding: 12px 14px; font-size: 14px; background: var(--soft) }
.note.orange { background: var(--orangebg); color: var(--orange) } .note.green { background: var(--greenbg); color: var(--green) }
table { width: 100%; border-collapse: collapse; font-size: 15px }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font-weight: 700 }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch }
.tbl table { min-width: 520px }
.yes { color: var(--green); font-weight: 700 } .no { color: var(--muted) }

/* yükləmə */
.dl { background: var(--grad); color: #fff; border-radius: 28px; padding: 32px 22px }
.dl h2, .dl p { color: #fff } .dl .muted { color: #ffffffcc }
.dl .btn.main { background: #fff; color: #4b4ed6; box-shadow: none }
.dl .btn.off { background: #ffffff1f; color: #fff; border-color: #ffffff66 }
.dl ol { margin: 12px 0 0; padding-left: 20px } .dl li { margin: 4px 0 }
@media (min-width: 900px) { .dl { padding: 44px } .dl .wrap2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px } }

/* FAQ */
details.q { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin-bottom: 10px }
details.q summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative }
details.q summary::-webkit-details-marker { display: none }
details.q summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--p) }
details.q[open] summary::after { content: "–" }
details.q p { color: var(--muted) }

/* hüquqi səhifələr */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px }
.doc h1 { font-size: clamp(28px, 5vw, 40px) }
.doc h2 { font-size: 22px; margin-top: 36px }
.doc h3 { margin-top: 20px }
.doc ul { padding-left: 22px } .doc li { margin: 4px 0 }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 15px }
.doc .toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2 220px }
.draft { background: var(--orangebg); color: var(--orange); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 20px }

/* altlıq */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; font-size: 14px; color: var(--muted) }
.foot .wrap { display: grid; gap: 20px }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr } }
.foot a { color: var(--muted); text-decoration: none } .foot a:hover { color: var(--p) }
.foot ul { list-style: none; padding: 0; margin: 0 } .foot li { margin: 6px 0 }
.foot b { color: var(--ink) }
mark { background: var(--orangebg); color: var(--orange); border-radius: 6px; padding: 0 4px }

/* kimlər üçün */
.who { display: flex; flex-direction: column }
.who .role { display: flex; align-items: center; gap: 12px; margin-bottom: 14px }
.who .role .ic { margin: 0 }
.who ul { padding: 0; margin: 0 0 16px; list-style: none; font-size: 15px; flex: 1 }
.who li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line) }
.who li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800 }
.who .free { font-size: 13px; color: var(--muted); margin: 0 }

/* necə işləyir: 4 addım */
.flow { display: grid; gap: 16px; counter-reset: f }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr) } }
.flow .card { counter-increment: f; position: relative; padding-top: 56px }
.flow .card::before { content: counter(f); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px }
.flow p { color: var(--muted); font-size: 15px; margin: 0 }

/* video yerləri */
.vgrid { display: grid; gap: 16px }
@media (min-width: 700px) { .vgrid { grid-template-columns: 1fr 1fr } }
.vgrid figure { margin: 0 }
.vgrid figcaption { padding: 10px 2px 0; font-size: 15px } .vgrid figcaption b { display: block }
.vgrid figcaption span { color: var(--muted); font-size: 14px }
.slot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #1b1c2b; border: 1px solid var(--line) }
.slot img, .slot iframe, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover }
.slot button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; padding: 0 }
.slot .soon { position: absolute; left: 12px; top: 12px; background: #000a; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px }
.vgrid figure:first-child { grid-column: 1 / -1 }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, 1fr) } .vgrid figure:first-child { grid-column: 1 / -1 } .vgrid figure:first-child .slot { max-width: 880px; margin: 0 auto } .vgrid figure:first-child figcaption { max-width: 880px; margin: 0 auto } }

/* dil seçimi: bayraqlar tətbiqin başlanğıc ekranındakı kimi (app/styles.css .flag) */
.lang { position: relative; flex: none }
.lang > button { height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; cursor: pointer }
.lang [role="menu"] { position: absolute; right: 0; top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px #0002; min-width: 150px; z-index: 30 }
.lang [role="menu"] button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; border-radius: 10px; cursor: pointer; text-align: left }
.lang [role="menu"] button:hover, .lang [role="menu"] button[aria-checked="true"] { background: var(--soft) }
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; position: relative; flex: none; background: linear-gradient(#13a0cf 33.3%, #ef4057 33.3%, #ef4057 66.6%, #00ad68 66.6%) }
.flag.az::after { content: '☾'; font-size: 9px; line-height: 12px; color: #fff; position: absolute; left: 6px; top: 0 }
.flag.en { background: linear-gradient(90deg, transparent 39%, #fff 39%, #fff 61%, transparent 61%), linear-gradient(transparent 35%, #fff 35%, #fff 65%, transparent 65%), #244479 }
.flag.en::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, #c84555 45%, #c84555 55%, transparent 55%), linear-gradient(transparent 42%, #c84555 42%, #c84555 58%, transparent 58%) }
.flag.ru { background: linear-gradient(#fff 33%, #3264b6 33%, #3264b6 66%, #d84a57 66%) }
:focus-visible { outline: 3px solid var(--p); outline-offset: 2px }
.lang-note { background: var(--orangebg); color: var(--orange); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 20px }

/* mağaza nişanları: rəsmi şəkillər dəyişdirilmir; Google PNG-də boşluq (clear space) şəklin içindədir */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 18px }
.store { position: relative; display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; border-radius: 10px }
.store img { display: block; width: auto; max-width: none }
.store.gp img { height: 58px } .store.as img { height: 40px; margin: 9px 0 }
.store small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: -2px }
.store[aria-disabled="true"] img { opacity: .6 }
.dl .store small { color: #ffffffcc }
@media (max-width: 420px) { .stores { flex-direction: column; align-items: flex-start } }
.foot .stores { margin-top: 12px } .foot .store.gp img { height: 46px } .foot .store.as img { height: 32px; margin: 7px 0 }
.plans-wait { color: var(--muted); padding: 20px 0 }
.top nav { gap: 6px }
@media (max-width: 760px) { .top nav .theme, .top .lang > button { width: 38px; height: 38px; padding: 0; justify-content: center } .top .lang > button b { display: none } }
