/* Smart Bot Market — shared styles (identical copy in studio/ and form/) */
:root {
  --bg: #17181a;
  --surface: #1f2023;
  --surface-2: #26282b;
  --line: #34363a;
  --line-strong: #4a4d52;
  --text: #e7e6e3;
  --muted: #9b9c9f;
  --accent: #c9a227;
  --accent-hover: #d8b13a;
  --accent-ink: #17181a;
  --danger: #d0645a;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --stripes: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--bg) 10px 20px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.stripes { height: 6px; background: var(--stripes); }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { width: 180px; height: auto; }
@media (max-width: 420px) { .brand-word { width: 132px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: transparent; color: var(--text);
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* type */
.eyebrow {
  font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.lead { color: var(--muted); font-size: 16px; max-width: 640px; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* hero */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 16px; max-width: 820px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; border: 1px solid var(--line); }
.fact { padding: 16px 18px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
@media (max-width: 640px) { .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }
.fact b { display: block; font: 700 20px/1.2 var(--mono); color: var(--accent); margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 13.5px; }

/* filter */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0 20px; }
.segmented { display: flex; border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.segmented button {
  border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 10px 16px; font-family: inherit; font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer;
}
.segmented button:last-child { border-right: 0; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

/* cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 56px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.bot-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.bot-card:hover { border-color: var(--line-strong); }
.bot-card[hidden] { display: none; }
.cover { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); transition: filter .3s; }
.bot-card:hover .cover img { filter: grayscale(.2) brightness(.9); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; font: 700 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tag-live { background: var(--accent); color: var(--accent-ink); }
.tag-soon { background: var(--bg); color: var(--muted); border: 1px solid var(--line-strong); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card-body h2 { font-size: 20px; font-weight: 700; margin: 6px 0 8px; }
.card-body > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 20px; flex: 1; }
.ticks li { position: relative; padding-left: 18px; font-size: 14px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--accent); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* CTA */
.cta { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 32px 28px 32px 40px; margin-bottom: 56px; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--bg) 8px 16px); }
.cta h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 10px 0; letter-spacing: -.01em; }
.cta p { color: var(--muted); max-width: 640px; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* dialog */
dialog { width: min(560px, calc(100% - 32px)); max-height: 88vh; padding: 0; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(10, 10, 11, .78); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 20px; }
.dialog-body h3 { font-size: 22px; margin: 6px 0 10px; }
.dialog-body > p { color: var(--muted); font-size: 14px; }
.dialog-body h4 { margin: 20px 0 8px; font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dialog-body .ticks { margin-bottom: 0; }
.dialog-body .btn { width: 100%; margin-top: 22px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--text); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 16px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--text); }

/* form page */
.narrow { max-width: 720px; }
.steps { list-style: none; padding: 0; display: grid; gap: 0; margin: 28px 0 0; border: 1px solid var(--line); counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { counter-increment: s; content: "0" counter(s); font: 700 16px/1.4 var(--mono); color: var(--accent); }
.steps b { color: var(--text); font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); margin-top: 20px; }
.panel-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-head .num { font: 700 14px/1 var(--mono); color: var(--accent); }
.panel-head h2 { font-size: 16px; font-weight: 700; }
.panel-body { padding: 20px; display: grid; gap: 16px; }
.cols { display: grid; gap: 16px; }
@media (min-width: 580px) { .cols { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: inherit; font-size: 15px; line-height: 1.4;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: #6c6e72; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.note { border-left: 3px solid var(--accent); background: var(--surface-2); padding: 12px 14px; font-size: 13.5px; color: #c9c8c5; }
.note a { color: var(--accent); font-weight: 600; }
.note code { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.note ol { margin: 6px 0 0; padding-left: 18px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin: 24px 0 56px; display: grid; gap: 12px; }
.submit-row .btn { width: 100%; min-height: 52px; font-size: 15px; }
.status { min-height: 1.5em; font-size: 14px; color: var(--danger); }
.done { padding: 36px 24px; text-align: left; }
.done h2 { font-size: 24px; margin: 10px 0 12px; }
.done p { color: var(--muted); margin-bottom: 22px; }
[hidden] { display: none !important; }

/* Subscription payment block (form page) */
.pay { scroll-margin-top: 16px; margin-bottom: 56px; }
.card-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--accent); background: var(--surface-2); }
.card-number span { font: 700 clamp(20px, 5vw, 26px)/1.2 var(--mono); letter-spacing: .08em; color: var(--accent); }
.pay-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; }
.pay-steps a { color: var(--accent); }

/* Prices on catalogue cards */
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 16px; }
.price-row div { padding: 10px 12px; border-right: 1px solid var(--line); }
.price-row div:last-child { border-right: 0; }
.price-row b { display: block; font: 700 18px/1.2 var(--mono); color: var(--accent); }
.price-row span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-row.soon { display: block; padding: 10px 12px; }
.price-row.soon span { margin: 0; font-size: 13px; }
@media (max-width: 380px) { .price-row b { font-size: 16px; } }

/* privacy document */
.doc { max-width: 820px; padding-top: 32px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); margin: 8px 0 14px; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; }
.doc h3 { font-size: 15px; margin: 18px 0 6px; color: var(--muted); }
.doc p, .doc li { line-height: 1.65; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; }
.doc a:not(.btn) { color: var(--accent); }
.doc-lead { color: var(--muted); font-size: 16px; }
.doc-summary { border-color: var(--accent); }
.doc-summary .ticks { margin-bottom: 0; }
.doc-summary .ticks li { font-size: 15px; line-height: 1.55; }
.table-scroll { overflow-x: auto; margin: 0 0 12px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); line-height: 1.5; }
.doc-table th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc-note { margin-top: 28px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* consent in the order form */
.consent { border: 1px solid var(--accent); background: var(--surface); padding: 16px 18px; display: grid; gap: 12px; }
.consent .ticks { margin: 0; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent); font-weight: 600; }
.consent .req { color: var(--accent); font-weight: 700; }
.consent .hint { margin: 0; }
/* language switcher on the privacy page */
.lang-switch { display: flex; border: 1px solid var(--line); }
.lang-switch a { padding: 7px 11px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--accent); color: var(--accent-ink, #1f2023); }
/* header: language switcher next to the order button */
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) { .site-header:has(.header-actions) .brand-word { display: none; } }
/* "Try it in 2 minutes" steps in the catalogue details */
.try-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.try-steps a { color: var(--accent); font-weight: 600; }
.dialog-body .card-actions { grid-template-columns: 1fr; }

/* Catalogue cards: supported languages (flags) and the GEL / USD switch glued to the price row */
.langs-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: -8px 0 14px; }
.langs-row img { display: block; width: 21px; height: 14px; box-shadow: 0 0 0 1px var(--line); }
.cur-switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-bottom: 0; }
.cur-switch button { border: 0; background: transparent; color: var(--muted); font: 600 11px/1 var(--mono); letter-spacing: .08em; padding: 5px 0; cursor: pointer; }
.cur-switch button + button { border-left: 1px solid var(--line); }
.cur-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
