/* bots.az core styles. No build step: this file is served as is.
   Design source: lead.az/_c/bots (docs/index-ciddi.html). Colours live in the tokens only. */
@import url("/css/fonts.css");

:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #4a4a4a;
  --soft: #e6e6e6;          /* thin dividers */
  --surface-2: #f4f4f4;

  /* agent accents */
  --red: #E5484D; --pink: #D6409F; --green: #30A46C;
  --blue: #3E63DD; --amber: #F5A524; --purple: #6E56CF;

  --ok: #1d7a4c;  --ok-soft: #e4f6ec;
  --err: #b4281c; --err-soft: #fdeceb;

  --stroke: 2.5px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
main { flex: 1; }
svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[x-cloak] { display: none !important; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .8rem 1.4rem; border: var(--stroke) solid var(--ink); border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.outline { background: #fff; color: var(--ink); }
.btn.small { padding: .5rem 1rem; font-size: .95rem; }
.btn.block { width: 100%; }

/* --- Header --- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 36px; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }

/* --- Language switcher --- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); cursor: pointer;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 170px; display: grid; padding: .35rem;
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
}
.lang-menu a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--surface-2); }
.flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--ink); }

/* --- Cards and forms (app pages) --- */
.card { border: var(--stroke) solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 4px 4px 0 var(--ink); background: #fff; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--ink); background: #fff;
  border: var(--stroke) solid var(--ink); border-radius: var(--radius-sm);
}
.field .error { color: var(--err); font-size: .9rem; font-weight: 600; }
.alert { padding: .9rem 1rem; border-radius: var(--radius-sm); border: 2px solid; font-weight: 600; }
.alert-ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.alert-err { background: var(--err-soft); border-color: var(--err); color: var(--err); }

/* --- Status pills --- */
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; border: 2px solid var(--ink); }
.status.live i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); display: inline-block; }
.status.soon { border-style: dashed; color: var(--muted); }

/* --- Home --- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0 4rem; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 1.25rem; max-width: 13ch; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 0 0 2rem; }
.hero .actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .meta { margin-top: 2rem; display: flex; gap: 2rem; flex-wrap: wrap; font-size: .95rem; }
.hero .meta div { border-left: 3px solid var(--ink); padding-left: .75rem; }
.hero .meta b { display: block; font-size: 1.05rem; }

.agent { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4.5rem 0; }
.agent.flip .art { order: 2; }
.agent .art { position: relative; }
.agent .art::before { content: ""; position: absolute; inset: 8% 4% 6% 18%; background: var(--ac); opacity: .12; border-radius: 24px; z-index: -1; }
.agent.flip .art::before { inset: 8% 18% 6% 4%; }
.agent h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); margin: .9rem 0 1rem; }
.agent h2::after { content: ""; display: block; width: 56px; height: 5px; background: var(--ac); border-radius: 3px; margin-top: .9rem; }
.agent p { max-width: 42ch; color: var(--muted); margin: 0 0 1.25rem; }
.agent ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.agent li { position: relative; padding-left: 1.75rem; margin: .45rem 0; font-weight: 600; }
.agent li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .75rem; border-radius: 3px; background: var(--ac); border: 2px solid var(--ink); }

.how { padding: 4.5rem 0; }
.how h2, .balance h2, .final h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); margin: 0 0 2.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { border: var(--stroke) solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 4px 4px 0 var(--ink); }
.step .n { font-weight: 800; font-size: .95rem; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: #fff; margin-bottom: 1rem; }
.step h3 { margin: 0 0 .4rem; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.3; }
.step p { color: var(--muted); }

.balance { padding: 2rem 0 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.balance h2 { margin-bottom: 1rem; }
.balance p { color: var(--muted); max-width: 44ch; }
.wallet { border: var(--stroke) solid var(--ink); border-radius: 18px; padding: 1.5rem; box-shadow: 5px 5px 0 var(--ink); max-width: 420px; justify-self: end; width: 100%; }
.wallet .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: .2rem 0 1rem; }
.wallet .row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 2px solid var(--soft); font-weight: 600; }
.wallet .row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet small { color: var(--muted); font-weight: 600; }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .5rem; border: 2px solid var(--ink); vertical-align: -1px; }

.final { padding: 4rem 0 5rem; text-align: center; }
.final h2 { margin-bottom: 1rem; }
.final p { color: var(--muted); margin: 0 0 2rem; }

/* --- Footer --- */
.site-footer { border-top: var(--stroke) solid var(--ink); padding: 1.5rem 0 2rem; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { color: var(--muted); }


/* --- App pages (auth, dashboard, account) --- */
.small { font-size: .9rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
.app-page { padding: 2rem 0 3rem; }
.narrow { max-width: 640px; }
.section-title { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 1rem; line-height: 1.2; }
.back-link { text-decoration: none; font-weight: 700; }

.auth { padding: 3rem 0 4rem; display: grid; justify-items: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; }
.auth-below { margin-top: 1.5rem; text-align: center; font-weight: 600; }
.auth-below a, .auth-card a { font-weight: 700; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }

.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 190px; display: grid; padding: .35rem;
  background: #fff; border: var(--stroke) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
}
.menu-list a, .menu-list button {
  display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer;
}
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }

.dash-top { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 2rem; align-items: center; }
.dash-hello h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.wallet-card .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: .1rem 0 1rem; font-variant-numeric: tabular-nums; }

.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.agent-card {
  display: flex; align-items: center; gap: .9rem; padding: .85rem; text-decoration: none; color: var(--ink);
  border: var(--stroke) solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); background: #fff;
  transition: transform .12s, box-shadow .12s;
}
a.agent-card:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
a.agent-card:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.agent-card.is-soon { box-shadow: none; border-style: dashed; cursor: default; }
.agent-card.is-soon .agent-art svg { opacity: .55; }
.agent-art {
  flex: none; display: grid; place-items: center; width: 76px; height: 64px; padding: 4px; overflow: hidden;
  border-radius: 12px; border: 2px solid var(--ink); background: color-mix(in srgb, var(--ac) 14%, #fff);
}
.agent-card.is-soon .agent-art { border-style: dashed; }
.agent-art svg { width: 100%; height: 100%; }
.agent-body { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.agent-head strong { font-size: 1.05rem; letter-spacing: -.01em; }
.agent-body .muted { font-size: .9rem; line-height: 1.4; }
.agent-card .status { flex: none; font-size: .78rem; padding: .2rem .6rem; }

.tx-list { padding: .25rem 1.25rem; }
.tx-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 2px solid var(--soft); }
.tx-row:first-child { border-top: 0; }
.tx-main { display: grid; }
.tx-amount { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-amount.is-plus { color: var(--ok); }

/* Costs per agent: every work (a video) with what it finally cost */
.cost-groups { display: grid; gap: 1rem; }
.cost-group { padding: 0; overflow: hidden; }
.cost-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding: 1rem 1.25rem .6rem; border-left: 6px solid var(--ac, var(--ink)); }
.cost-head strong { font-size: 1.1rem; letter-spacing: -.01em; }
.cost-head .muted { font-size: .9rem; }
.cost-total { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.cost-group .tx-list { border-top: 2px solid var(--soft); }
.cost-group .tx-main a { text-decoration: none; }
.cost-group .tx-main a:hover strong { text-decoration: underline; }
.cost-more { padding: .2rem 1.25rem 1rem; font-size: .9rem; }
.cost-more a { font-weight: 700; }

@media (max-width: 860px) {
  .dash-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero, .agent, .balance { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 2rem; }
  .agent { padding: 3rem 0; }
  .agent.flip .art { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .wallet { justify-self: start; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .nav { gap: .6rem; }
  .logo { font-size: 1.3rem; }
  .nav .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Legal pages: a readable column */
.legal-page { max-width: 820px; padding-top: 2.5rem; padding-bottom: 4rem; }
.legal-head { margin-bottom: 2rem; }
.legal-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.legal-body h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 2.2rem 0 .7rem; line-height: 1.25; }
.legal-body p, .legal-body li { color: #1a1a1a; }
.legal-body p + p { margin-top: .8rem; }
.legal-body ul { margin: .6rem 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.legal-body a { font-weight: 700; }
.legal-links { display: flex; gap: 1.2rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 2px solid var(--soft); }
.legal-links a { font-weight: 700; text-decoration: none; }
.legal-links a[aria-current="page"] { text-decoration: underline; }
