/* OPERATOR — concept site design system
   Apple-grade light theme. Tokens first, components after. */

:root {
  /* ink */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-page: #fbfbfd;
  --hairline: #d2d2d7;
  --hairline-soft: #e8e8ed;
  /* accent */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #06c;
  /* semantic */
  --green: #1d9d5f;
  --amber: #b06000;
  /* dark section */
  --dark-bg: #000000;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  /* radii */
  --r-card: 18px;
  --r-big: 28px;
  --r-pill: 980px;
  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.47;
}
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.container { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.container.wide { max-width: 1200px; }
section { padding: 110px 0; }
section.tight { padding: 72px 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,251,253,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; gap: 28px;
}
.nav .logo { font-weight: 700; font-size: 1.05em; letter-spacing: -0.02em; color: var(--ink); }
.nav .logo:hover { text-decoration: none; }
.nav .logo .dot { color: var(--blue); }
.nav a.item { color: var(--ink-2); font-size: 0.8em; }
.nav a.item:hover { color: var(--ink); text-decoration: none; }
.nav .spacer { flex: 1; }
.nav .cta {
  background: var(--blue); color: #fff; font-size: 0.75em;
  padding: 6px 14px; border-radius: var(--r-pill);
}
.nav .cta:hover { background: var(--blue-hover); text-decoration: none; }
.nav a.item, .nav .cta { white-space: nowrap; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 30px; height: 30px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer { display: none; }
@media (max-width: 720px) {
  .nav a.item.hide-m { display: none; }
  .nav-inner { gap: 16px; }
  .nav .logo { font-size: 0.95em; }
  .nav a.item { font-size: 0.72em; }
  .nav .cta { font-size: 0.7em; padding: 5px 11px; }
  .nav-toggle { display: flex; }
  .nav-drawer {
    display: none; flex-direction: column; padding: 6px 22px 16px;
    border-top: 1px solid var(--hairline-soft);
  }
  .nav.open .nav-drawer { display: flex; }
  .nav-drawer .item { padding: 10px 0; font-size: 0.85em; border-bottom: 1px solid var(--hairline-soft); }
  .nav-drawer .item:last-child { border-bottom: none; }
}

/* ---------- typography ---------- */
.display {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.05;
}
.headline {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.subhead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 400; color: var(--ink-2); line-height: 1.4; letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.center { text-align: center; }
.measure { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: var(--font);
  background: var(--blue); color: #fff; font-size: 1.02em;
  padding: 12px 26px; border-radius: var(--r-pill);
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn.secondary {
  background: transparent; color: var(--link);
  border: 1px solid var(--link);
}
.btn.secondary:hover { background: rgba(0,102,204,0.06); }
.btn.small { font-size: 0.85em; padding: 8px 18px; }
.btn.big { font-size: 1.15em; padding: 15px 32px; }
.btn.disabled, .btn:disabled { background: var(--hairline); color: #999; cursor: not-allowed; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- focus states (keyboard) ---------- */
a:focus-visible, .btn:focus-visible, .scoop:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px;
}
.btn:focus-visible, .nav .cta:focus-visible { border-radius: var(--r-pill); }
.scoop:focus-visible, .tile:focus-visible { border-radius: var(--r-card); }
.dark a:focus-visible, .dark .btn:focus-visible { outline-color: #2997ff; }

/* ---------- cards & tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.tile {
  background: var(--bg); border-radius: var(--r-card);
  padding: 30px 26px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
}
.tile .icon { font-size: 1.9em; margin-bottom: 14px; display: block; }
.tile h3 { font-size: 1.15em; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: 0.9em; line-height: 1.5; }
.tile .tag { display: inline-block; margin-top: 12px; font-size: 0.7em; font-weight: 600; color: var(--ink-3); background: var(--bg-soft); padding: 3px 10px; border-radius: var(--r-pill); }

/* ---------- dark band ---------- */
.dark { background: var(--dark-bg); color: var(--dark-ink); }
.dark .subhead { color: var(--dark-ink-2); }
.dark .eyebrow { color: #2997ff; }

/* comparison columns (assistant vs employee) */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 54px; }
@media (max-width: 720px) { .duel { grid-template-columns: 1fr; } }
.duel .side { border-radius: var(--r-big); padding: 38px 32px; }
.duel .side.them { background: #161617; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.duel .side.us { background: linear-gradient(160deg, #0a2540 0%, #123a63 100%); box-shadow: 0 0 0 1px rgba(41,151,255,0.35), 0 20px 60px rgba(41,151,255,0.15); }
.duel h3 { font-size: 1.3em; font-weight: 700; margin-bottom: 4px; }
.duel .who { color: var(--dark-ink-2); font-size: 0.82em; margin-bottom: 22px; }
.duel ul { list-style: none; }
.duel li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.95em; color: var(--dark-ink); display: flex; gap: 12px; align-items: baseline; }
.duel li .mark { flex: 0 0 auto; font-weight: 700; }
.duel .them .mark { color: #6e6e73; }
.duel .us .mark { color: #2997ff; }

/* ---------- pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.tier {
  background: var(--bg); border-radius: var(--r-big); padding: 34px 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; position: relative;
}
.tier.popular { box-shadow: 0 0 0 2px var(--blue), 0 16px 44px rgba(0,113,227,0.18); }
.tier .pop-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 0.68em; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill);
}
.tier h3 { font-size: 1.35em; font-weight: 700; letter-spacing: -0.01em; }
.tier .for { color: var(--ink-3); font-size: 0.82em; margin: 4px 0 18px; }
.tier .price { font-size: 2.4em; font-weight: 700; letter-spacing: -0.03em; }
.tier .price .per { font-size: 0.38em; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.tier ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.tier li { padding: 8px 0; font-size: 0.9em; color: var(--ink-2); border-top: 1px solid var(--hairline-soft); display: flex; gap: 10px; }
.tier li .check { color: var(--green); font-weight: 700; }
.tier .btn { text-align: center; }

/* ---------- comparison table (Dropbox/Webflow style) ---------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-big); background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
table.cmp th, table.cmp td { padding: 16px 18px; text-align: center; font-size: 0.88em; }
table.cmp th { position: sticky; top: 52px; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); z-index: 5; }
table.cmp thead th { border-bottom: 1px solid var(--hairline); vertical-align: bottom; padding-top: 26px; }
table.cmp thead .plan-name { font-size: 1.15em; font-weight: 700; letter-spacing: -0.01em; display: block; }
table.cmp thead .plan-price { color: var(--ink-3); font-weight: 400; font-size: 0.82em; display: block; margin: 4px 0 10px; }
table.cmp th.popular-col, table.cmp td.popular-col { background: rgba(0,113,227,0.045); }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; font-weight: 400; color: var(--ink-2); max-width: 300px; }
table.cmp tbody tr { border-top: 1px solid var(--hairline-soft); }
table.cmp tr.group td {
  text-align: left; font-weight: 700; color: var(--ink); font-size: 0.95em;
  padding-top: 30px; background: transparent;
}
table.cmp .yes { color: var(--green); font-weight: 700; font-size: 1.05em; }
table.cmp .no { color: var(--hairline); font-weight: 400; }
table.cmp .lim { color: var(--ink-3); font-size: 0.85em; }

/* ---------- configurator (scoops) ---------- */
.config-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
@media (max-width: 900px) {
  .config-layout { grid-template-columns: 1fr; padding-bottom: 96px; }
  /* order box becomes a sticky bottom bar: total + continue always visible while scooping */
  .order { position: fixed; bottom: 12px; left: 12px; right: 12px; top: auto; z-index: 90;
           display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; }
  .order h3, .order .sub, .order ul, .order .hint, .order .form-note { display: none; }
  .order .total-row { border: 0; margin: 0; padding: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 0; }
  .order .total-row > span:first-child { font-size: 0.68em; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
  .order .total-row > span:last-child { white-space: nowrap; font-size: 0.95em; }
  .order .btn { width: auto; margin: 0; padding: 10px 22px; }
}
.scoop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.scoop {
  background: var(--bg); border-radius: var(--r-card); padding: 22px 20px;
  border: 2px solid transparent; cursor: pointer; user-select: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05);
  transition: border-color .12s, transform .12s, box-shadow .12s;
  position: relative;
}
.scoop:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 14px 30px rgba(0,0,0,0.09); }
.scoop.on { border-color: var(--blue); }
.scoop.locked { cursor: default; opacity: 0.95; }
.scoop.locked:hover { transform: none; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05); }
.scoop .icon { font-size: 1.7em; display: block; margin-bottom: 10px; }
.scoop h4 { font-size: 1em; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.scoop p { color: var(--ink-2); font-size: 0.8em; line-height: 1.45; }
.scoop .price { margin-top: 12px; font-size: 0.85em; font-weight: 600; color: var(--ink); }
.scoop .price .incl { color: var(--green); }
.scoop .tick {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--hairline); display: flex; align-items: center; justify-content: center;
  font-size: 0.75em; color: transparent; background: var(--bg);
  transition: all .12s;
}
.scoop.on .tick { background: var(--blue); border-color: var(--blue); color: #fff; }

.order {
  position: sticky; top: 76px;
  background: var(--bg); border-radius: var(--r-big); padding: 28px 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08);
}
.order h3 { font-size: 1.2em; font-weight: 700; margin-bottom: 4px; }
.order .sub { color: var(--ink-3); font-size: 0.8em; margin-bottom: 18px; }
.order ul { list-style: none; min-height: 60px; }
.order li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 0.86em; color: var(--ink-2); border-top: 1px solid var(--hairline-soft); }
.order li .nm { display: flex; gap: 8px; }
.order .total-row { display: flex; justify-content: space-between; border-top: 1px solid var(--hairline); margin-top: 12px; padding-top: 14px; font-weight: 700; font-size: 1.05em; }
.order .hint {
  margin-top: 14px; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px;
  font-size: 0.78em; color: var(--ink-2); line-height: 1.5;
}
.order .hint b { color: var(--green); }
.order .btn { width: 100%; text-align: center; margin-top: 16px; }

/* ---------- forms / signup ---------- */
.flow-card {
  max-width: 480px; margin: 0 auto; background: var(--bg); border-radius: var(--r-big);
  padding: 40px 36px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.08);
}
.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 34px; }
.step-dot { display: flex; align-items: center; gap: 8px; font-size: 0.75em; color: var(--ink-3); }
.step-dot .n {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); font-weight: 600; font-size: 0.95em;
}
.step-dot.active { color: var(--ink); font-weight: 600; }
.step-dot.active .n { background: var(--blue); color: #fff; }
.step-dot.done .n { background: var(--green); color: #fff; }
.step-sep { width: 26px; height: 1px; background: var(--hairline); align-self: center; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.8em; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password] {
  width: 100%; font-family: var(--font); font-size: 1em; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85em; color: var(--ink-2); margin: 18px 0; }
.checkline input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }
.code-row { display: flex; gap: 10px; justify-content: center; margin: 22px 0; }
.code-row input {
  width: 52px; height: 62px; text-align: center; font-size: 1.6em; font-weight: 600;
  border: 1px solid var(--hairline); border-radius: 12px; outline: none; font-family: var(--font);
}
.code-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.form-note { font-size: 0.75em; color: var(--ink-3); text-align: center; margin-top: 16px; line-height: 1.5; }
.concept-pill {
  display: inline-block; background: #fff3dc; color: var(--amber); font-size: 0.7em; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 18px;
}

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; max-width: 940px; margin: 0 auto; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.pay-card { background: var(--bg); border-radius: var(--r-big); padding: 34px 30px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.07); }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- provisioning (welcome) ---------- */
.prov { max-width: 460px; margin: 40px auto 0; text-align: left; }
.prov .p-step { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hairline-soft); font-size: 0.95em; color: var(--ink-3); transition: color .3s; }
.prov .p-step .st {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid var(--hairline); display: flex; align-items: center; justify-content: center; font-size: 0.7em; color: transparent;
  transition: all .3s;
}
.prov .p-step.done { color: var(--ink); }
.prov .p-step.done .st { background: var(--green); border-color: var(--green); color: #fff; }
.prov .p-step.doing { color: var(--ink); }
.prov .p-step.doing .st { border-color: var(--blue); border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- book a call (slot picker) ---------- */
.slot-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 640px; margin: 0 auto; }
.slot-day { background: var(--bg); border-radius: var(--r-big); padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05); }
.slot-day h4 { font-size: 1.05em; font-weight: 700; margin-bottom: 14px; }
.slot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-btn {
  font-family: var(--font); font-size: 0.88em; font-weight: 600; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--hairline-soft); border-radius: 12px;
  padding: 12px 8px; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.slot-btn:hover { border-color: var(--blue); }
.slot-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- terms ---------- */
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 1.25em; font-weight: 700; margin: 38px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.92em; line-height: 1.65; margin-bottom: 10px; }
.legal ul { margin-left: 22px; }
.legal table.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 18px; }
.legal table.tbl th, .legal table.tbl td { text-align: left; padding: 12px 14px; font-size: 0.88em; line-height: 1.55; vertical-align: top; border-bottom: 1px solid var(--hairline-soft); color: var(--ink-2); }
.legal table.tbl th { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--hairline); }
.legal table.tbl tr:last-child td { border-bottom: none; }
@media (max-width: 620px) { .legal table.tbl th, .legal table.tbl td { padding: 10px 8px; font-size: 0.82em; } }

/* ---------- design system page ---------- */
.ds-block { background: var(--bg); border-radius: var(--r-card); padding: 28px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05); }
.ds-block h3 { font-size: 0.8em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 130px; }
.swatch .chip { height: 64px; border-radius: 12px; border: 1px solid var(--hairline-soft); margin-bottom: 6px; }
.swatch .nm { font-size: 0.75em; font-weight: 600; }
.swatch .hex { font-size: 0.72em; color: var(--ink-3); font-family: ui-monospace, monospace; }

/* ---------- chat ---------- */
.chat-shell {
  max-width: 640px; margin: 40px auto 0; background: var(--bg); border-radius: var(--r-big);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; height: 64vh; min-height: 420px; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hairline-soft); flex: 0 0 auto; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(160deg, #0a2540 0%, #123a63 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.chat-head .nm { font-weight: 700; font-size: 0.98em; }
.chat-head .status { font-size: 0.75em; color: var(--green); display: flex; align-items: center; gap: 6px; }
.chat-head .status .dot2 { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 11px 15px; border-radius: 18px; font-size: 0.92em; line-height: 1.45; }
.msg.op { background: var(--bg-soft); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-left-radius: 18px; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; padding: 15px 16px; align-self: flex-start; background: var(--bg-soft); }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: bounce 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input-row { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hairline-soft); flex: 0 0 auto; }
.chat-input-row input {
  flex: 1; font-family: var(--font); font-size: 0.95em; color: var(--ink);
  padding: 11px 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg-page); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.chat-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.tg-banner { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border-radius: var(--r-card); padding: 16px 20px; margin-top: 18px; max-width: 640px; margin-left: auto; margin-right: auto; text-align: left; }
.tg-banner .ic { font-size: 1.7em; flex: 0 0 auto; }
.tg-banner p { font-size: 0.85em; color: var(--ink-2); flex: 1; }
.tg-banner .btn { flex: 0 0 auto; }

/* ---------- connect (telegram install) ---------- */
.install-steps { max-width: 620px; margin: 44px auto 0; text-align: left; }
.install-step { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--hairline-soft); }
.install-step:first-child { border-top: none; padding-top: 0; }
.install-step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9em; flex: 0 0 auto;
}
.install-step h4 { font-size: 1.05em; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 5px; }
.install-step p { color: var(--ink-2); font-size: 0.9em; line-height: 1.55; }
.store-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  padding: 9px 16px; border-radius: 12px; font-size: 0.82em; font-weight: 600;
}
.store-badge:hover { background: #000; text-decoration: none; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--hairline-soft); padding: 34px 0 48px; margin-top: 40px;
  color: var(--ink-3); font-size: 0.78em; line-height: 1.7;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site a { color: var(--ink-2); }
footer.site .concept { margin-top: 18px; color: var(--ink-3); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Which page you are on. The underline is drawn under the label rather than the whole
   item, so it reads as a tab marker and not as a hover state. */
.nav .item.here { color: var(--ink); font-weight: 600; position: relative; }
.nav .item.here::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--blue); }

/* The nav is sticky, so anything you jump or scroll to needs to clear it. */
section[id], .vs, .cmp-wrap { scroll-margin-top: 84px; }
