/* MultiLLM | Chat — perpl design system v1.1, consolidated.
   One stylesheet for every page and both languages: warm paper, deep teal ink, editorial
   serif accents. One container width, one centred axis, one integer type scale.
   Design rules: no gradients on light surfaces, no glassmorphism, no emoji or decorative
   icons, one dark band per page, dark surfaces only for money and system truth, price never
   hidden behind a click, every animation eased and never jerky. */

:root {
  --paper: #FAF9F4;
  --sand: #F0EBDF;
  --panel: #F4F2EA;
  --sky: #C8E2E1;
  --mint: #EAF4F3;
  --teal: #197A87;
  --teal-deep: #10555F;
  --teal-bright: #57C2CC;
  --ink: #0C1F22;
  --ink-card: #12292E;
  --ink-soft: #435B5E;
  --muted: #5F6F6D;
  --muted-ink: #9FB6B4;
  --terracotta: #B4543A;
  --terracotta-soft: #E08A6F;
  --green: #3E9B58;
  --amber: #D9A441;
  --line: rgba(12, 31, 34, .12);
  --line-strong: rgba(12, 31, 34, .18);
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-chip: 10px;
  /* Golos Text and Literata cover Cyrillic, which the primary faces lack; per-glyph fallback
     keeps Latin on the design fonts and renders Russian in a matching shape, not system-ui. */
  --font-sans: 'Schibsted Grotesk', 'Golos Text', system-ui, sans-serif;
  --font-serif: 'Newsreader', 'Literata', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(12, 31, 34, .05), 0 24px 60px -32px rgba(12, 31, 34, .3);
  --shadow-pop: 0 24px 60px -24px rgba(12, 31, 34, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* one container width for the whole landing, one edge alignment */
  --lp-width: 1120px;
}

* { box-sizing: border-box; }
/* controls inherit the page type instead of the browser's 13.333px control font, so a class
   that forgets to declare a size still lands on the scale */
button, input, select, textarea { font: inherit; color: inherit; }
html, body { margin: 0; padding: 0; background: var(--paper); }
/* anchors glide instead of jumping, and stop clear of the sticky header */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
::selection { background: var(--sky); }
/* one visible focus ring for keyboard users, on everything focusable; pointer clicks stay clean */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.on-ink :focus-visible, .dark-band :focus-visible, .demo-bar ~ * :focus-visible { outline-color: var(--teal-bright); }
img { max-width: 100%; }

/* ---- typography (integer scale, no fractional sizes) ---- */
h1, h2, h3 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -.025em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; }
/* compact heading for narrow columns: declared once, used by the sign-in card and share page */
.h1-compact { font-size: 30px; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--teal); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
}
.muted { color: var(--ink-soft); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.editorial { font-family: var(--font-serif); font-size: 19px; line-height: 1.7; }

/* ---- layout ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: 760px; }
.section { padding: 72px 0; }
/* vertical rhythm for a page that starts right under the header. Longhand on purpose: the
   shorthand would wipe the horizontal padding of .wrap / .wrap-narrow when both classes share
   an element, pushing headings to the screen edge on mobile. */
.section-page { padding-top: 36px; padding-bottom: 72px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: var(--radius-pill); padding: 11px 22px; border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--paper); }
.btn-primary:hover { background: var(--teal-deep); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--teal); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
/* compact size modifier: a class carries the size, never an inline style */
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* the one composer surface: chat and launcher render the same object */
.composer { background: #fff; border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow-card); padding: 16px 18px 13px; }
.composer textarea { border: none; background: none; padding: 0; font-size: 15px; line-height: 1.5; resize: none; width: 100%; color: var(--ink); }
.composer textarea:focus { outline: none; }
.composer:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25,122,135,.12); }

/* the single send button: hero demo, chat composer and launcher all use this one */
.send-round {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans);
  font-size: 16px; line-height: 1; border: none; cursor: pointer; flex: none;
  transition: background .18s var(--ease);
}
.send-round:hover { background: var(--teal); }
.send-round:disabled { opacity: .5; cursor: not-allowed; }

/* one style for every inline message action (copy, retry, canvas, run, ask another, edit) */
.msg-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.act-copy, .act-retry, .act-canvas, .act-run, .act-another, .edit-msg {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: color .18s var(--ease);
}
.act-copy:hover, .act-retry:hover, .act-canvas:hover, .act-run:hover, .act-another:hover, .edit-msg:hover { color: var(--teal); }
/* the one emphasised action in the row */
.act-another { color: var(--teal); font-weight: 600; }
.act-another:hover { color: var(--teal-deep); }

/* ---- chips & plaques ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 5px 11px;
}
/* chip modifiers: the variants a chip is allowed to have, declared once each */
.chip-strong { font-weight: 600; }
.chip-accent { border-color: var(--teal); color: var(--teal); }
.chip-dashed { border-style: dashed; }
.chip-action { cursor: pointer; }
.chip-action:hover { border-color: var(--teal); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--terracotta); }
.plaque {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius-chip); padding: 5px 11px; background: #fff;
}
.plaque .mult { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--ink-soft); }

/* ---- cards ---- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px 24px;
}
/* card size modifiers: one compact padding and one scroll container, declared once */
.card-tight { padding: 13px 16px; }
.card-scroll { padding: 8px; overflow-x: auto; }
/* a card rendered as a button must not fall back to the browser's control font */
button.card { font-family: var(--font-sans); font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; }
.card-hover { transition: transform .2s var(--ease), border-color .2s var(--ease); }
.card-hover:hover { transform: translateY(-3px); border-color: var(--teal); }
.card-lift { box-shadow: var(--shadow-card); }

/* dark surface: money & system truth only */
.ink-band { background: var(--ink); color: var(--paper); border-radius: var(--radius-card); padding: 22px 24px; }
.ink-band .on-ink { color: var(--teal-bright); }
.ink-band .on-ink-soft { color: var(--muted-ink); }

/* ---- meters ---- */
.meter { height: 6px; border-radius: var(--radius-pill); background: var(--sand); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--teal); transition: width .5s var(--ease); }
.ink-band .meter { background: var(--ink-card); }
.ink-band .meter > span { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }

/* ---- site header / footer ---- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 244, .9);
  backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 15px; }
.brand .bar { color: var(--ink-soft); font-weight: 400; }
.logo { width: 22px; height: 22px; display: inline-flex; align-items: center; }
.logo span { width: 14px; height: 14px; border-radius: 50%; opacity: .82; }
.logo .a { background: var(--teal); animation: vennA 3s ease-in-out infinite; }
.logo .b { background: var(--ink); margin-left: -6px; animation: vennB 3s ease-in-out infinite; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 8px 14px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
/* :not(.btn) so a button in the nav keeps its own colour, size and weight.
   One class of element, one style: a context selector never overrides .btn. */
.nav-links a:not(.btn) { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin: 0 0 12px; }
/* :not(.brand) so the wordmark keeps its own size and colour in the footer too.
   One class of element, one style: a context selector never overrides an object class. */
.footer-grid a:not(.brand) { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 8px; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.footer-note { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* ---- forms ---- */
input, textarea, select {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; width: 100%;
}
textarea { resize: vertical; }
label.field { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.pill-input { border-radius: var(--radius-pill); padding: 13px 22px; }

/* ---- toast / notice ---- */
.notice { border: 1px solid rgba(180,84,58,.4); background: #FAF0EC; border-radius: 16px; padding: 14px 18px; color: var(--terracotta); }
#toast-host { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 18px; font-size: 14px; box-shadow: var(--shadow-pop); }

/* ---- cookie banner ---- */
/* the banner sits on the landing's own width, not a narrow box in the middle */
#cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: var(--lp-width); margin: 0 auto;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px 24px;
  box-shadow: var(--shadow-card); z-index: 110; display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap; justify-content: space-between;
}
#cookie-banner p { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1 1 420px; }
#cookie-banner .row { flex: none; }
#cookie-banner[hidden] { display: none; }

/* ================= landing system =================
   Every section shares .lp: one width (--lp-width), one centred axis, one padding.
   Nothing invents its own width; prose never runs flush-left across the viewport. */
.lp { max-width: var(--lp-width); margin-inline: auto; padding: 0 40px; }
.lp-section { margin-top: 116px; }
.lp-head { max-width: 660px; margin-inline: auto; text-align: center; }
.lp-head p { margin: 18px auto 0; }
.measure { max-width: 680px; margin-inline: auto; }
.lp-h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.lp-h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.lp-lead { max-width: 600px; margin: 22px auto 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--teal); }
/* .on-ink is the declared dark-surface inversion: type keeps its size and weight, only the
   palette flips. Declared once here so no page carries an inline colour. */
.on-ink .serif-accent { color: var(--teal-bright); }
.on-ink .lp-h2, .on-ink h2, .on-ink h3 { color: var(--paper); }
.on-ink .lp-lead, .on-ink p { color: var(--muted-ink); }

/* ---- hero ---- */
/* same container width as every other section, so the headline holds one line */
.lp-hero { max-width: var(--lp-width); margin-inline: auto; padding: 84px 40px 0; text-align: center; }
.lp-hero .lp-h1 { margin-top: 22px; }
.lp-hero .lp-lead { margin-top: 24px; }
/* the model-count accent: a compact designed strip, not a mono kicker and not a marquee */
.count-accent { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.count-accent span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; font-size: 14px; color: var(--ink-soft); }
.count-accent span + span { border-left: 1px solid var(--line); }
.count-accent span b { font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---- provider wall (static, replaces the marquee) ---- */
.logo-wall { max-width: var(--lp-width); margin: 56px auto 0; padding: 0 40px; }
.logo-wall .rule { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 22px; }
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.logo-grid span { background: var(--paper); text-align: center; padding: 18px 8px; font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .18s var(--ease), background .18s var(--ease); }
.logo-grid span:hover { color: var(--ink); background: #fff; }

/* ---- generic section grids and cards (one card style everywhere) ---- */
.lp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.lp-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.lp-card h3 { font-size: 20px; }
/* one paragraph size inside cards, one line-height, so every card holds the same measure */
.lp-card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 8px 0 0; }

/* ---- how it works: three steps, each with a small visual, equal short copy ---- */
.step { position: relative; }
.step .step-viz { height: 96px; border-radius: 14px; background: var(--mint); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 20px; }
.step h3 { font-size: 20px; margin-top: 0; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 8px 0 0; }
.step-num { position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
/* step 1: a caret typing into a line */
.viz-type { display: flex; align-items: center; gap: 3px; }
.viz-type i { display: block; height: 8px; border-radius: 4px; background: var(--teal); opacity: .35; }
.viz-type i:nth-child(1){ width: 46px; animation: typeGrow 2.4s var(--ease) infinite; }
.viz-type i:nth-child(2){ width: 28px; opacity: .2; }
.viz-caret { width: 2px; height: 20px; background: var(--teal); animation: blink 1.1s step-end infinite; }
/* step 2: two model dots handing the thread over */
.viz-swap { position: relative; width: 96px; height: 40px; }
.viz-swap i { position: absolute; top: 8px; width: 24px; height: 24px; border-radius: 50%; }
.viz-swap i.a { left: 8px; background: var(--teal); animation: swapA 3s var(--ease) infinite; }
.viz-swap i.b { right: 8px; background: var(--ink); animation: swapB 3s var(--ease) infinite; }
/* step 3: a price counting up next to a send dot */
.viz-price { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--teal-deep); }

/* ---- built-in features: line icon + one short line each ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.feat:hover { transform: translateY(-3px); border-color: var(--teal); }
/* one icon tile: same size and shape wherever a feature or a payment method uses it */
.ico { width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--teal-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat h3 { font-size: 20px; }
.feat p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 6px 0 0; }

/* ---- payment methods (RU track) ---- */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.pay-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.pay-card h3 { font-size: 20px; }
.pay-card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 8px 0 0; }

/* ---- Telegram screen: a phone that plays the conversation ---- */
.tg-stage { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; margin-top: 52px; }
.tg-phone { border: 1px solid var(--line-strong); border-radius: 28px; background: var(--panel); overflow: hidden; box-shadow: 0 40px 90px -50px rgba(12,31,34,.5); }
.tg-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); padding: 14px 16px; }
.tg-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.tg-title { display: grid; line-height: 1.25; }
.tg-title b { color: var(--paper); font-size: 14px; }
.tg-title span { color: var(--muted-ink); font-size: 12px; }
.tg-body { height: 330px; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.tg-u { align-self: flex-end; max-width: 84%; background: var(--sky); border-radius: 14px 14px 4px 14px; padding: 9px 13px; font-size: 14px; line-height: 1.45; animation: fadeUp .4s var(--ease) both; }
.tg-a { align-self: flex-start; max-width: 88%; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 13px; animation: fadeUp .4s var(--ease) both; }
.tg-a .tg-who { display: block; font-size: 12px; font-weight: 600; color: var(--teal); }
.tg-a p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.tg-switch { align-self: center; font-family: var(--font-mono); font-size: 11px; color: var(--teal-deep); background: var(--mint); border-radius: var(--radius-pill); padding: 5px 12px; animation: fadeUp .4s var(--ease) both; }
.tg-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px; font-size: 14px; color: var(--muted); }
.tg-send { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.tg-notes { display: grid; gap: 22px; align-content: start; }
.tg-note .tg-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.tg-note h3 { font-size: 20px; margin-top: 4px; }
.tg-note p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 6px 0 0; }

/* ---- compare visual ---- */
.compare-stage { max-width: 920px; margin: 52px auto 0; }
.compare-prompt { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 20px; text-align: center; font-size: 16px; color: var(--ink); box-shadow: var(--shadow-card); }
.compare-prompt .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 6px; }
.compare-fan { display: flex; justify-content: center; margin: 6px 0; }
.compare-fan svg { width: 260px; height: 40px; }
.compare-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.compare-col { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.compare-col .who { justify-content: space-between; width: 100%; }
.compare-col p { font-size: 15px; line-height: 1.55; color: var(--ink); margin: 12px 0 0; }
.compare-col.keep { border-color: var(--teal); box-shadow: 0 20px 50px -36px rgba(12,31,34,.5); }
.compare-col .keep-tag { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--teal); }

/* ================= live demo (MAC window) ================= */
.demo-window { max-width: 960px; margin: 40px auto 0; border-radius: 16px; border: 1px solid var(--line-strong); overflow: hidden; box-shadow: 0 44px 100px -50px rgba(12,31,34,.45); background: #fff; }
.demo-bar { display: flex; align-items: center; gap: 14px; background: var(--ink); padding: 14px 18px; }
.demo-lights { display: inline-flex; gap: 8px; }
.demo-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.demo-lights i:nth-child(1){ background: #E06B52; }
.demo-lights i:nth-child(2){ background: var(--amber); }
.demo-lights i:nth-child(3){ background: var(--green); }
.demo-tab { flex: 1; text-align: center; font-size: 13px; color: var(--muted-ink); }
.demo-tab b { color: var(--paper); font-weight: 600; }
.demo-body { display: flex; flex-direction: column; height: 460px; background: var(--paper); }
.demo-scroll { flex: 1; overflow-y: auto; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.demo-u { align-self: flex-end; max-width: 78%; background: var(--ink); color: var(--paper); border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.demo-a { align-self: flex-start; max-width: 90%; }
/* the model author label: one object, same look in the demo thread and in compare columns */
.who { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.who .mult { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--ink-soft); }
.demo-a .body { font-size: 15px; line-height: 1.6; color: var(--ink); margin-top: 8px; white-space: pre-wrap; }
.demo-switch { align-self: stretch; border-left: 2px solid var(--teal); background: var(--mint); border-radius: 0 10px 10px 0; padding: 8px 14px; font-size: 13px; color: var(--teal-deep); }
.demo-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .4; animation: bounce 1.2s var(--ease) infinite; }
.demo-dots i:nth-child(2){ animation-delay: .15s; }
.demo-dots i:nth-child(3){ animation-delay: .3s; }
/* one composer row: every control shares the centre line, whatever its own height */
.demo-composer { border-top: 1px solid var(--line); background: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.demo-model { position: relative; flex: none; display: flex; align-items: center; }
/* the model control carries .chip plus the declared modifiers, so it is the same object
   as the model chip in the chat composer */
.demo-model-btn { background: #fff; }
.demo-menu { position: absolute; bottom: 46px; left: 0; width: 300px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 8px; z-index: 5; }
.demo-menu[hidden] { display: none; }
.demo-menu .grp { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.demo-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; background: none; border: none; text-align: left; font-family: var(--font-sans); font-size: 14px; color: var(--ink); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.demo-menu button:hover { background: var(--panel); }
.demo-menu button .mult { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.demo-menu button.locked { color: var(--ink-soft); }
.demo-input { flex: 1; border: none; background: none; resize: none; font-size: 15px; line-height: 24px; padding: 8px 4px; height: 40px; max-height: 120px; color: var(--ink); }
.demo-input:focus { outline: none; }
.demo-composer:focus-within { box-shadow: inset 0 0 0 2px rgba(25,122,135,.25); }
.demo-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.demo-cta { align-self: stretch; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.demo-cta p { margin: 0; font-size: 15px; line-height: 1.5; }
.demo-cta p b { color: var(--teal-bright); }

/* ---- the receipt: one message with its price attached ---- */
.receipt { max-width: 560px; margin: 52px auto 0; background: var(--ink-card); border: 1px solid rgba(250,249,244,.1); border-radius: 18px; padding: 22px 24px; }
.receipt-head { display: flex; align-items: center; justify-content: space-between; }
.receipt-head .who { color: var(--paper); }
.receipt-head .mono { font-size: 12px; color: var(--muted-ink); }
.receipt-msg { font-size: 16px; line-height: 1.55; color: var(--paper); margin: 14px 0 18px; }
.receipt-total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed rgba(250,249,244,.18); padding-top: 16px; }
.receipt-tokens { font-family: var(--font-mono); font-size: 13px; color: var(--muted-ink); }
.receipt-price { font-size: 40px; font-weight: 600; letter-spacing: -.02em; color: var(--teal-bright); transition: opacity .3s var(--ease); }
.receipt-price.swap { opacity: 0; }

.price-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.price-class { display: grid; gap: 2px; text-align: left; background: transparent; border: 1px solid rgba(250,249,244,.14); border-radius: 14px; padding: 16px 18px; cursor: pointer; font-family: var(--font-sans); font-size: 14px; transition: border-color .18s var(--ease), background .18s var(--ease); }
.price-class:hover { border-color: var(--teal-bright); }
.price-class.on { background: rgba(87,194,204,.1); border-color: var(--teal-bright); }
.price-class .pc-name { font-size: 14px; font-weight: 600; color: var(--paper); }
.price-class .pc-price { font-size: 22px; font-weight: 600; color: var(--teal-bright); margin-top: 6px; }
.price-class .pc-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted-ink); }
.price-class .pc-msgs { font-size: 13px; color: var(--muted-ink); margin-top: 8px; }

/* ---- dark band: pricing classes (money truth) ---- */
.dark-band { background: var(--ink); margin-top: 116px; padding: 100px 0; color: var(--paper); }
.dark-band .inner { max-width: var(--lp-width); margin-inline: auto; padding: 0 40px; }
/* ---- pricing ---- */
.plan-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--teal); box-shadow: 0 24px 60px -40px rgba(12,31,34,.45); }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 42px; font-weight: 600; letter-spacing: -.02em; margin-top: 14px; transition: opacity .3s var(--ease); }
.plan .price.swap { opacity: 0; }
.plan .price-sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; min-height: 20px; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .plan-cta { margin-top: auto; padding-top: 24px; }
.pack-row { display: flex; justify-content: space-between; font-size: 15px; }
.pack-row .mono { color: var(--ink); }

/* ---- FAQ (smooth expand) ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; gap: 20px; align-items: center; width: 100%; background: none; border: none; text-align: left; cursor: pointer; font-family: var(--font-sans); font-size: 19px; font-weight: 600; color: var(--ink); padding: 22px 0; }
.faq-q .sign { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .sign::before, .faq-q .sign::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-q .sign::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-q .sign::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-q[aria-expanded="true"] .sign::after { transform: rotate(90deg); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-a-wrap.open { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 22px; max-width: 760px; }

/* ---- final CTA ---- */
.cta-final { text-align: center; }
.cta-final .lp-h2 { max-width: 760px; margin-inline: auto; }
.cta-final .line { display: block; }

/* product mock frame and the auth shell (kept for other pages) */
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-panel { background: var(--panel); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.thankyou-check { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto; }

/* ---- animations ---- */
@keyframes vennA { 0%,100%{transform:translateX(0)} 50%{transform:translateX(1.5px)} }
@keyframes vennB { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-1.5px)} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes bounce { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(-4px);opacity:1} }
@keyframes typeGrow { 0%,100%{width:20px} 50%{width:56px} }
@keyframes swapA { 0%,100%{transform:translateX(0);z-index:2} 50%{transform:translateX(48px);z-index:1} }
@keyframes swapB { 0%,100%{transform:translateX(0);z-index:1} 50%{transform:translateX(-48px);z-index:2} }
.reveal { animation: fadeUp .6s var(--ease) both; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--teal); margin-left: 3px; vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .logo .a, .logo .b, .viz-type i, .viz-caret, .viz-swap i.a, .viz-swap i.b, .demo-dots i { animation: none; }
}

/* ---- screen index ---- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.map-card { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--ink); min-width: 0; transition: transform .18s var(--ease), border-color .18s var(--ease); }
.map-card:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--ink); }
.map-card .map-name { font-size: 15px; font-weight: 600; }
.map-card .map-path { font-size: 12px; color: var(--teal); overflow-wrap: anywhere; }
.map-card .map-note { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

/* ---- tables ---- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .lp-grid-3, .feat-grid, .compare-cols, .plan-grid, .class-row, .pay-grid { grid-template-columns: 1fr; }
  .price-classes { grid-template-columns: repeat(2, 1fr); }
  .tg-stage { grid-template-columns: 1fr; gap: 32px; }
  .tg-phone { max-width: 360px; margin-inline: auto; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .class-row { gap: 6px 20px; }
  .class-row .cl-msgs { text-align: left; }
  .lp-section, .dark-band { margin-top: 76px; }
  .lp-hero { padding: 52px 24px 0; }
  .lp, .dark-band .inner, .logo-wall { padding: 0 24px; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 12px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }
  .nav-links .btn { justify-content: center; min-height: 44px; }
  /* footer links get a finger-sized row on touch screens (the wordmark keeps its own layout) */
  .footer-grid a:not(.brand) { padding: 9px 0; margin-bottom: 0; min-height: 40px; display: flex; align-items: center; }
  .logo-grid span { padding: 20px 8px; font-size: 15px; }
  /* touch targets: the wordmark, the sidebar toggle and interactive chips reach ~44px */
  .brand { min-height: 44px; }
  .sidebar-toggle, .btn-sm { min-height: 40px; }
  /* any chip that is a link or button is a real tap target on touch (decorative chips stay) */
  .chip-action, a.chip, button.chip { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
  .app-topbar .chip { min-height: 40px; }
}
@media (max-width: 560px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-body { height: 420px; }
  /* keep the count accent inside the viewport on narrow phones */
  .count-accent { max-width: 100%; }
  .count-accent span { padding: 8px 12px; font-size: 12px; }
  .count-accent span b { font-size: 13px; }
  /* the demo composer wraps so the input keeps a full-width row instead of an 8px sliver */
  .demo-composer { flex-wrap: wrap; }
  .demo-input { order: -1; flex-basis: 100%; min-width: 0; }
  .demo-count { display: none; }
}
