/* The front page's own design system.
 *
 * Deliberately a second stylesheet rather than an edit to `styles.css`: that file is the one
 * `pricing.html` is built on, and this page's redesign changes tokens, type and component shapes
 * wholesale. Sharing one file would mean either breaking the price list or keeping two conflicting
 * sets of tokens in it. Two files, two pages, still no build step - the property this repository
 * actually cares about. Bringing `pricing.html` onto this system is its own piece of work.
 *
 * Dark-first: the bare `:root` block below is the dark palette, because the page was designed as a
 * control panel and reads as one. A light viewer gets the same design re-tokenised, never inverted.
 */
:root{
  --bg:#0c101c;
  --bg-2:#121829;
  --panel:#151c30;
  --panel-2:#1b2440;
  --line:#25304d;
  --line-soft:#1c2440;
  --ink:#eef2fb;
  --ink-soft:#9aa7c4;
  --ink-faint:#6b7797;
  --blue:#4c8dff;
  --blue-deep:#2f6ce0;
  --blue-glow:rgba(76,141,255,.35);
  --violet:#9d6bff;
  --amber:#f2b23e;
  --green:#3ddc97;
  --r:14px;
  --r-lg:22px;
}
:root[data-theme="light"]{
  --bg:#f4f6fb;
  --bg-2:#eaeff8;
  --panel:#ffffff;
  --panel-2:#f2f5fc;
  --line:#dbe3f2;
  --line-soft:#e8edf8;
  --ink:#0f1728;
  --ink-soft:#4c5878;
  --ink-faint:#7c88a6;
  --blue:#2f6ce0;
  --blue-deep:#1f55bd;
  --blue-glow:rgba(47,108,224,.2);
  --violet:#7c4dff;
  --amber:#b47708;
  --green:#12885c;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#f4f6fb;
    --bg-2:#eaeff8;
    --panel:#ffffff;
    --panel-2:#f2f5fc;
    --line:#dbe3f2;
    --line-soft:#e8edf8;
    --ink:#0f1728;
    --ink-soft:#4c5878;
    --ink-faint:#7c88a6;
    --blue:#2f6ce0;
    --blue-deep:#1f55bd;
    --blue-glow:rgba(47,108,224,.2);
    --violet:#7c4dff;
    --amber:#b47708;
    --green:#12885c;
  }
}

*{box-sizing:border-box;}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:15.5px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Onest','IBM Plex Sans',sans-serif;margin:0;line-height:1.1;text-wrap:balance;font-weight:800;letter-spacing:-.02em;}
h1{font-size:clamp(34px,5.2vw,60px);}
h2{font-size:clamp(25px,3.2vw,38px);}
h3{font-size:17px;font-weight:700;letter-spacing:-.01em;}
p{margin:0;}
a{color:inherit;}
svg{display:block;}
:focus-visible{outline:2.5px solid var(--blue);outline-offset:3px;border-radius:6px;}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;}}
section[id],#calc,#top{scroll-margin-top:84px;}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth;}}

/* Material Symbols, the same icon family the widget itself draws its composer controls from
   (ago-widget's ui/widget.ts) - so a card icon here and a button inside the product are the same
   line weight rather than two unrelated icon sets. */
.ms{
  font-family:'Material Symbols Outlined';font-weight:400;font-style:normal;
  font-size:21px;line-height:1;letter-spacing:normal;text-transform:none;
  display:inline-block;white-space:nowrap;direction:ltr;
  -webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased;
}

.wrap{max-width:1180px;margin:0 auto;padding:0 22px;}
.kicker{font-family:'IBM Plex Mono',monospace;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);}
.muted{color:var(--ink-soft);}
.lede{color:var(--ink-soft);font-size:16.5px;max-width:60ch;}
.num{font-variant-numeric:tabular-nums;font-family:'IBM Plex Mono',monospace;}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:13px 22px;
  font-family:'Onest',sans-serif;font-weight:700;font-size:15px;text-decoration:none;border:1px solid transparent;cursor:pointer;
  transition:background .16s,border-color .16s,transform .12s;}
.btn:active{transform:translateY(1px);}
/* The hero headline's gradient, at half its range: enough for the buttons to echo it, not enough
   to compete with it. */
.btn-primary{color:#fff;background:var(--blue);
  background-image:linear-gradient(105deg,var(--blue),color-mix(in srgb,var(--blue) 55%,var(--violet)));
  box-shadow:0 12px 30px -14px var(--blue-glow);}
.btn-primary:hover{background:var(--blue-deep);
  background-image:linear-gradient(105deg,var(--blue-deep),color-mix(in srgb,var(--blue-deep) 55%,var(--violet)));}
.btn-ghost{border-color:var(--line);color:var(--ink);}
.btn-ghost:hover{border-color:var(--blue);}
.btn-sm{padding:9px 16px;font-size:14px;}

.theme-toggle{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 auto;
  border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink-soft);cursor:pointer;
  transition:border-color .16s,color .16s,background .16s;}
.theme-toggle:hover{border-color:var(--blue);color:var(--ink);}
.theme-toggle .ms{font-size:20px;}

/* nav */
.nav{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-soft);}
.nav-row{display:flex;align-items:center;gap:24px;height:64px;}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-family:'Onest',sans-serif;font-weight:800;font-size:17px;}
.brand .g{width:28px;height:28px;border-radius:8px;background:linear-gradient(140deg,var(--blue),var(--violet));display:grid;place-items:center;color:#fff;font-size:14px;}
.nav-links{display:flex;gap:20px;margin-left:auto;font-size:14.5px;font-weight:500;}
.nav-links a{text-decoration:none;color:var(--ink-soft);}
.nav-links a:hover{color:var(--ink);}
@media(max-width:900px){.nav-links{display:none;}.theme-toggle{margin-left:auto;}}

/* hero */
.hero{padding:70px 0 54px;position:relative;overflow:hidden;}
.hero::before{content:"";position:absolute;inset:-160px 0 auto 0;height:520px;
  background:radial-gradient(620px 260px at 22% 40%,var(--blue-glow),transparent 70%);pointer-events:none;}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:46px;align-items:center;position:relative;}
@media(max-width:960px){.hero-grid{grid-template-columns:1fr;gap:36px;}}
.hero h1{margin:16px 0 18px;}
.hero h1 em{font-style:normal;background:linear-gradient(100deg,var(--blue),var(--violet));-webkit-background-clip:text;background-clip:text;color:transparent;}
.hero-ctas{display:flex;gap:11px;flex-wrap:wrap;margin-top:26px;}
.hero-facts{display:flex;gap:26px;flex-wrap:wrap;margin-top:30px;padding-top:22px;border-top:1px solid var(--line-soft);}
.fact .v{font-family:'Onest',sans-serif;font-weight:800;font-size:23px;}
.fact .k{font-size:12.5px;color:var(--ink-faint);}

/* calculator */
.calc{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:0 40px 80px -50px #000;}
.calc-head{padding:16px 20px;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;gap:10px;background:var(--panel-2);}
.calc-head .kicker{margin-right:auto;}
.calc-head .unit{font-size:12.5px;color:var(--ink-faint);}
.calc-body{padding:20px;display:flex;flex-direction:column;gap:18px;}
.ctl-label{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;font-weight:600;margin-bottom:9px;gap:12px;}
.ctl-label .val{font-family:'IBM Plex Mono',monospace;color:var(--blue);font-size:14px;}
input[type=range]{width:100%;accent-color:var(--blue);height:22px;}
.chgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
@media(max-width:420px){.chgrid{grid-template-columns:repeat(2,1fr);}}
.chbtn{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:transparent;color:var(--ink-soft);
  border-radius:9px;padding:9px 10px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;text-align:left;transition:.15s;}
/* `25-171`: the five channels' real brand icon files, byte-identical to the ones `25-172` shipped
   into ago-widget's own channel switcher - copied in under `icons/`, never redrawn or recolored here.
   A channel not yet toggled on stays desaturated via `filter:grayscale`, the same dim/highlight the
   old hand-drawn placeholders used, so an unselected real logo doesn't read as more "official" than a
   selected one. */
.chbtn .mk{flex:0 0 auto;width:18px;height:18px;border-radius:5px;display:grid;place-items:center;
  filter:grayscale(1);opacity:.55;transition:filter .15s,opacity .15s;}
.chbtn .mk.round{border-radius:50%;}
.chbtn .mk img{width:100%;height:100%;display:block;}
/* MAX's native art is a rounded square (`rect ry="249.681"` on a 1000x1000 viewBox) - the other four
   already render as full circles from their own path data, so MAX alone needs this crop (identical
   technique to ago-widget's `25-172`). */
.chbtn .mk img.mk-crop{clip-path:circle(50% at 50% 50%);}
/* Avito's four colored circles don't fill a circular bounding box the way the other marks do - sized
   down within the existing badge rather than stretched edge-to-edge, so it doesn't read as oversized
   next to its neighbors. */
.chbtn .mk img.mk-compact{width:76%;height:76%;}
.chbtn[aria-pressed="true"]{border-color:var(--blue);color:var(--ink);background:color-mix(in srgb,var(--blue) 12%,transparent);}
.chbtn[aria-pressed="true"] .mk{filter:none;opacity:1;}
.calc-note{margin-top:10px;font-size:12.5px;color:var(--ink-faint);}
.calc-out{border-top:1px solid var(--line-soft);padding:18px 20px;background:var(--panel-2);}
.bill{display:flex;flex-direction:column;gap:7px;font-size:13.5px;}
.bill .row{display:flex;justify-content:space-between;gap:12px;color:var(--ink-soft);}
.bill .row b{color:var(--ink);font-weight:600;}
.total{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:15px;padding-top:15px;border-top:1px dashed var(--line);}
.total .lbl{font-size:13px;color:var(--ink-faint);}
.total .amt{font-family:'Onest',sans-serif;font-weight:800;font-size:38px;line-height:1;font-variant-numeric:tabular-nums;}
/* No published price for one of the parts: the sum is a sentence, not a figure, and must not be
   set at headline size as if it were one. */
.total .amt.unpriced{font-size:16px;font-weight:600;color:var(--ink-soft);line-height:1.4;max-width:26ch;}
.free-note{margin-top:10px;font-size:12.5px;color:var(--green);}
.calc-link{display:inline-block;margin-top:12px;font-size:13px;color:var(--ink-soft);text-decoration:underline;
  text-underline-offset:3px;text-decoration-color:var(--line);}
.calc-link:hover{color:var(--blue);text-decoration-color:var(--blue);}

/* sections */
section{padding:72px 0;}
.head{max-width:64ch;display:flex;flex-direction:column;gap:13px;margin-bottom:36px;}

/* capability grid */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
@media(max-width:940px){.grid3{grid-template-columns:repeat(2,1fr);}}
@media(max-width:620px){.grid3{grid-template-columns:1fr;}}
.cap{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:9px;transition:border-color .16s;}
.cap:hover{border-color:var(--blue);}
.cap .ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--blue) 15%,transparent);color:var(--blue);}
.cap p{font-size:14px;color:var(--ink-soft);}

/* widget */
.demo-split{display:grid;grid-template-columns:.95fr 1.05fr;gap:44px;align-items:center;}
@media(max-width:960px){.demo-split{grid-template-columns:1fr;gap:32px;}}
.screen{background:linear-gradient(160deg,var(--panel-2),var(--bg-2));border:1px solid var(--line);border-radius:var(--r-lg);padding:30px 26px 26px;display:flex;flex-direction:column;align-items:center;gap:18px;}
.screen-tag{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-faint);text-align:center;max-width:36ch;line-height:1.55;}

/* The widget below is the real one: class names, sizes, colours and icon paths come from
   ago-widget's own src/ui/styles.ts and src/ui/widget.ts, not redrawn by eye. Keeping the two in
   step matters more than it looks - a picture of a product that does not match the product is the
   kind of thing a visitor notices the moment they open the demo. */
.ago-root{width:22rem;max-width:100%;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.4;color:#1a1a1a;}
.ago-panel{display:flex;flex-direction:column;background:#fff;border-radius:.75rem;box-shadow:0 .5rem 2rem rgba(0,0,0,.3);overflow:hidden;}
.ago-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#2f6fed;color:#fff;}
.ago-header h1{font-family:inherit;font-size:1rem;font-weight:600;line-height:1.4;letter-spacing:0;margin:0;}
.ago-close{display:flex;background:transparent;border:none;color:#fff;font-size:1.25rem;line-height:1;padding:.25rem;}
.ago-messages{flex:1;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;}
.ago-message{max-width:85%;padding:.5rem .75rem;border-radius:.75rem;}
.ago-message--visitor{align-self:flex-end;background:#2f6fed;color:#fff;border-bottom-right-radius:.125rem;}
.ago-message--operator{align-self:flex-start;background:#f0f1f4;color:#1a1a1a;border-bottom-left-radius:.125rem;}
.ago-attachment-link{display:flex;align-items:center;gap:.25rem;margin-top:.375rem;color:#fff;text-decoration:underline;font-size:.875rem;}
.ago-primitive{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem;}
.ago-primitive-title{font-weight:600;}
.ago-primitive-choices{display:flex;flex-direction:column;gap:.375rem;}
.ago-primitive-choice{border:1px solid #2f6fed;border-radius:.5rem;background:transparent;color:inherit;font:inherit;text-align:left;padding:.5rem .75rem;}
.ago-module-chip{align-self:flex-end;margin:0 .75rem .5rem;border:none;border-radius:.5rem;background:#2f6fed;color:#fff;font:inherit;font-weight:600;padding:.5rem 1rem;}
.ago-composer{display:flex;flex-direction:column;gap:.5rem;padding:.75rem;border-top:.0625rem solid #e5e7eb;}
.ago-composer-row{display:flex;align-items:flex-end;gap:.5rem;}
.ago-input{flex:1;border:.0625rem solid #d1d5db;border-radius:.5rem;padding:.5rem .625rem;font:inherit;min-height:5.5rem;color:#9ca3af;}
.ago-send{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:#2f6fed;color:#fff;font-size:1rem;line-height:1;}
.ago-composer-controls{display:flex;align-items:center;gap:.5rem;}
.ago-attach,.ago-emoji,.ago-save{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;background:transparent;color:#1a1a1a;font-size:1.25rem;line-height:1;}
.ago-launcher-row{display:flex;justify-content:flex-end;margin-top:1rem;}
.ago-toggle{position:relative;display:flex;align-items:center;justify-content:center;width:3.5rem;height:3.5rem;border-radius:50%;border:none;background:#2f6fed;color:#fff;font-size:1.5rem;box-shadow:0 .25rem .75rem rgba(0,0,0,.25);}
.ago-unread-badge{position:absolute;top:-.1875rem;right:-.1875rem;min-width:1.25rem;height:1.25rem;padding:0 .25rem;border-radius:999px;background:#e5372e;color:#fff;font-size:.6875rem;font-weight:700;line-height:1.25rem;text-align:center;box-shadow:0 0 0 .125rem #fff;}

.ticks{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:11px;font-size:14.5px;}
.ticks li{display:flex;gap:10px;align-items:flex-start;}
.ticks .mk{flex:0 0 auto;width:20px;height:20px;border-radius:6px;display:grid;place-items:center;margin-top:1px;
  background:color-mix(in srgb,var(--blue) 15%,transparent);color:var(--blue);}
.ticks .mk .ms{font-size:14px;}

/* advantages */
.adv{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);padding:30px;}
.adv-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 34px;}
@media(max-width:820px){.adv-grid{grid-template-columns:1fr;}}
.adv-item{display:flex;gap:13px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--line-soft);}
.adv-item:nth-last-child(-n+2){border-bottom:0;}
@media(max-width:820px){.adv-item:nth-last-child(-n+2){border-bottom:1px solid var(--line-soft);}.adv-item:last-child{border-bottom:0;}}
.adv-item .mk{flex:0 0 auto;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--blue) 15%,transparent);color:var(--blue);}
.adv-item .mk .ms{font-size:16px;}
.adv-item b{display:block;font-family:'Onest',sans-serif;font-weight:700;font-size:15.5px;margin-bottom:2px;}
.adv-item p{font-size:14px;color:var(--ink-soft);}
.adv-hi{border:1px solid var(--blue);background:color-mix(in srgb,var(--blue) 9%,transparent);border-radius:var(--r);padding:20px 22px;margin-top:22px;display:flex;gap:14px;align-items:flex-start;}
.adv-hi .mk{flex:0 0 auto;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--blue);color:#fff;}
.adv-hi b{display:block;font-family:'Onest',sans-serif;font-weight:800;font-size:17px;margin-bottom:4px;}
.adv-hi p{font-size:14.5px;color:var(--ink-soft);}

/* closing call to action */
.cta{border:1px solid var(--line);border-radius:var(--r-lg);padding:48px 40px;text-align:center;
  background:radial-gradient(700px 240px at 50% 0%,color-mix(in srgb,var(--blue) 16%,transparent),transparent 70%),var(--panel);
  display:flex;flex-direction:column;align-items:center;gap:16px;}
.cta .roles{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
.cta .role{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:8px 15px;font-size:13.5px;font-weight:600;color:var(--ink-soft);}
.cta .role .ms{font-size:17px;color:var(--blue);}

footer{border-top:1px solid var(--line-soft);margin-top:44px;padding:28px 0 52px;}
.foot-row{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:13.5px;color:var(--ink-faint);}
.foot-row a{color:var(--ink-soft);text-decoration:none;}
.foot-row a:hover{color:var(--ink);}
.foot-brand{font-family:'Onest',sans-serif;font-weight:800;color:var(--ink);}
.foot-hosts{width:100%;font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--ink-faint);}
.lang-switch{display:inline-flex;gap:4px;margin-left:auto;}
.lang-switch button{border:1px solid var(--line);background:transparent;color:var(--ink-faint);
  font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:600;letter-spacing:.06em;
  border-radius:7px;padding:5px 9px;cursor:pointer;}
.lang-switch button.active{border-color:var(--blue);color:var(--ink);background:color-mix(in srgb,var(--blue) 12%,transparent);}

/* ------------------------------------------------------------------ *
 * The price list (pricing.html) - the same tokens, three more parts:  *
 * a back link, the tables themselves, and the closing band.           *
 * ------------------------------------------------------------------ */
.back-link{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--ink-soft);text-decoration:none;}
.back-link:hover{color:var(--blue);}
.page-lede{font-size:17px;}

.price-table-wrap{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;margin-bottom:20px;}
.price-table-head{padding:22px 24px 18px;border-bottom:1px solid var(--line-soft);background:var(--panel-2);}
.price-table-head h3{font-size:19px;margin-bottom:7px;}
.price-table-head p{font-size:14.5px;color:var(--ink-soft);max-width:70ch;}
/* Its own scroller: a three-column table with prose in the last cell outgrows a phone, and the page
   body must never scroll sideways because of it. */
.price-table-scroll{overflow-x:auto;}
.price-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:520px;}
.price-table th,.price-table td{text-align:left;padding:14px 24px;border-bottom:1px solid var(--line-soft);vertical-align:top;}
.price-table thead th{font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-faint);}
.price-table tbody th{font-weight:600;color:var(--ink);width:34%;}
.price-table tbody td{color:var(--ink-soft);}
.price-table tbody tr:last-child th,.price-table tbody tr:last-child td{border-bottom:0;}
.price-table .amount{font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap;font-weight:600;}
/* "No published price" is a sentence, not a figure: it must not be set in the tabular face at the
   weight a real amount gets, or a reader skimming the column reads it as one. */
.amount.unpriced,.num.unpriced,.unpriced{font-family:'IBM Plex Sans',system-ui,sans-serif;font-weight:400;font-size:13.5px;color:var(--ink-faint);white-space:normal;}
.fineprint{font-size:13px;color:var(--ink-faint);max-width:80ch;margin-top:26px;}

.price-path{margin-top:30px;border:1px solid var(--blue);border-radius:var(--r-lg);padding:28px;
  background:radial-gradient(600px 220px at 20% 0%,color-mix(in srgb,var(--blue) 14%,transparent),transparent 70%),var(--panel);
  display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:center;}
@media(max-width:820px){.price-path{grid-template-columns:1fr;}}
.price-path h3{font-size:20px;margin-bottom:8px;}
.price-path p{font-size:14.5px;color:var(--ink-soft);}
.price-path .ctas{display:flex;flex-direction:column;gap:10px;}
