/* shell.css — XBOT design system + site chrome.
 *
 * The single stylesheet for every frontend page. It owns:
 *   1. design tokens (colour, type, spacing, radii, elevation)
 *   2. base layout + typography
 *   3. the header/footer shell (.ms-*, injected by shell.js)
 *   4. shared components: buttons, cards, chips, badges, forms,
 *      pricing tiers, FAQ disclosures, prose, landing sections
 * Pages keep only a one-line <style> that sets --main-w (their
 * content width) plus anything genuinely unique to that page.
 *
 * Dark-first: the brand surface is the near-black + teal identity
 * of the bot avatar. A light scheme follows prefers-color-scheme.
 * No webfonts, no libraries — one cached request, system type.
 */

/* ------------------------------------------------ tokens ---- */
:root {
  color-scheme: dark;

  --bg: #0a0f0d;
  --bg-2: #0c130f;
  --surface: #101915;
  --surface-2: #14211b;
  --surface-3: #1b2b23;
  --border: #22332b;
  --border-strong: #30463b;

  --text: #eaf3ef;
  --muted: #a9c0b5;
  --faint: #84a093;

  --teal: #0d9488;
  --teal-bright: #2dd4bf;
  --teal-deep: #0b8577;
  --link: #2dd4bf;
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --main-w: 720px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 10px 30px rgb(0 0 0 / .28);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 24px 60px rgb(0 0 0 / .45);
  --ring: 0 0 0 3px rgb(45 212 191 / .28);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f6f4;
    --bg-2: #ebf0ed;
    --surface: #ffffff;
    --surface-2: #f8faf9;
    --surface-3: #edf3f0;
    --border: #d9e3dd;
    --border-strong: #bccfc4;
    --text: #0c1a13;
    --muted: #44604f;
    --faint: #56755f;
    --link: #0b7566;
    --danger: #b91c1c;
    --warn: #b45309;
    --ok: #047857;
    --shadow: 0 1px 2px rgb(12 26 19 / .06), 0 10px 30px rgb(12 26 19 / .08);
    --shadow-lg: 0 2px 6px rgb(12 26 19 / .08), 0 24px 60px rgb(12 26 19 / .14);
    --ring: 0 0 0 3px rgb(11 133 119 / .25);
  }
}

/* -------------------------------------------------- base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(720px 340px at 50% -80px, rgb(13 148 136 / .14), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
  max-width: var(--main-w);
  padding: 36px 24px 8px;
}

::selection { background: rgb(13 148 136 / .4); }

a { color: var(--link); }
a:hover { text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------- typography ---- */
h1 {
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.14;
  margin: 0 0 12px;
}
h1 .brand { color: var(--teal-bright); }

p.sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}
p.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 8px;
}
.note { font-size: 13px; color: var(--faint); line-height: 1.55; }
.err { color: var(--danger); font-size: 13.5px; min-height: 20px; white-space: pre-wrap; }

h2.section {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 64px 0 10px;
}
p.section-sub { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(52 211 153 / .18);
}

/* ------------------------------------------------ header ---- */
.ms-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.ms-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ms-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.ms-logo:hover { text-decoration: none; }
.ms-logo-accent { color: var(--teal-bright); }
.ms-logo-mark {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #14b8a6, var(--teal-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(13 148 136 / .35);
}
.ms-logo-mark svg { width: 17px; height: 17px; }

.ms-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.ms-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
}
.ms-nav a:hover { color: var(--text); background: var(--surface-2); }
.ms-nav a.ms-active { color: var(--text); background: var(--surface-3); }
/* Operator links: dashed underline marks them as the platform's own
   control room, distinct from customer pages at a glance. */
.ms-nav a.ms-nav-op { text-decoration: underline dashed var(--border-strong); text-underline-offset: 5px; }
.ms-nav a.ms-cta {
  margin-left: 10px;
  padding: 9px 16px;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b8577, #096a5d);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 6px 16px rgb(13 148 136 / .28);
}
.ms-nav a.ms-cta:hover { background: linear-gradient(180deg, #0a7566, #085e50); color: #fff; }

@media (max-width: 820px) {
  .ms-nav a.ms-nav-hide-sm { display: none; }
  .ms-header-inner { gap: 10px; padding: 10px 16px; }
  main { padding: 28px 18px 8px; }
}

/* ------------------------------------------------ footer ---- */
.ms-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 13.5px;
  color: var(--muted);
}
.ms-footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 42px;
}
.ms-footer-inner p { margin: 5px 0; line-height: 1.6; }
.ms-footer a { color: var(--text); opacity: .82; text-decoration: none; }
.ms-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ms-footer .ms-status { font-weight: 600; color: var(--text); }
.ms-footer .ms-status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 7px;
  box-shadow: 0 0 0 3px rgb(52 211 153 / .15);
}

/* ----------------------------------------------- buttons ---- */
.btn, a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--text);
  font: 600 15px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.sm { min-height: 44px; padding: 9px 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn.lg { min-height: 52px; padding: 14px 27px; font-size: 16px; border-radius: var(--r); }

.btn.teal, .btn.primary {
  background: linear-gradient(180deg, #0b8577, #096a5d);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 8px 20px rgb(13 148 136 / .25);
}
.btn.tg { background: linear-gradient(180deg, #1779ab, #12688f); color: #fff; box-shadow: 0 8px 20px rgb(34 158 217 / .22); }
.btn.wa { background: linear-gradient(180deg, #0f7a3f, #0d6e37); color: #fff; }
.btn.eps { background: #e2136e; color: #fff; }
.btn.np { background: #7c3aed; color: #fff; }
.btn.gmail { background: #c93327; color: #fff; }
.btn.gcal { background: #2f6fd6; color: #fff; }
.btn.gmeet { background: #00832d; color: #fff; }
.btn.grey { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }

.btn.soon, .btn:disabled, button.btn:disabled {
  background: var(--surface-3);
  color: var(--faint);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}
.btn:disabled:hover { filter: none; }

/* ------------------------------------------------- cards ---- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card li { margin-bottom: 5px; }

/* ------------------------------------------- chips/badges ---- */
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 550;
}
.chip::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-bright);
  flex: none;
}
.chip.soon { border-style: dashed; color: var(--muted); font-weight: 500; }
.chip.soon::before { background: var(--faint); }

.badge {
  display: inline-block;
  vertical-align: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge.model { background: rgb(13 148 136 / .16); border-color: rgb(13 148 136 / .45); color: var(--teal-bright); }

/* ------------------------------------------------- forms ---- */
label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font: 400 15px/1.45 var(--font);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--ring);
}
textarea { min-height: 96px; resize: vertical; }
form { display: grid; gap: 10px; }

.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 200px; }
.hidden { display: none !important; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

details.disclosure { margin-bottom: 18px; }
details.disclosure > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  padding: 6px 0;
  list-style: none;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: " +"; color: var(--teal-bright); font-weight: 700; }
details.disclosure[open] > summary::after { content: " –"; }

/* --------------------------------------------------- FAQ ---- */
.faq details {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  min-height: 44px;
  font-size: 16px;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 2px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------------------------------------------- pricing ---- */
.toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.toggle button {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13.5px var(--font);
  cursor: pointer;
}
.toggle button.on { background: var(--teal-deep); color: #fff; }

#plans, .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { #plans, .plans { grid-template-columns: 1fr; } }
#plans .card, .plans .card { margin-bottom: 0; display: flex; flex-direction: column; }
#plans .card .btn, .plans .card .btn { margin-top: auto; }
.plan .price, #plans .price {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.plan .price small, #plans .price small { font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.card p.tag { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.plan.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 18px 44px rgb(13 148 136 / .18);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--teal-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.why ul { list-style: none; padding-left: 0; }
.why li { padding-left: 2px; }
.toggle-wrap { margin-bottom: 20px; }

/* ----------------------------------------------- landing ---- */
.hero { padding: 30px 0 6px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { font-size: clamp(37px, 5.6vw, 57px); line-height: 1.07; margin: 18px 0 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }

.proof {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 2px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 820px) { .proof { grid-template-columns: 1fr 1fr; } }
.proof b { display: block; font-size: 16.5px; letter-spacing: -.01em; margin-bottom: 2px; }
.proof span { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }

/* Stylised product visual: the agent confirming before it acts. */
.mock {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.mock-avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, var(--teal-deep));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.mock-head .who { line-height: 1.25; }
.mock-head .who b { font-size: 14.5px; display: block; }
.mock-head .who span { font-size: 12px; color: var(--ok); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.55;
}
.msg.user {
  margin-left: auto;
  background: linear-gradient(180deg, #12a594, var(--teal-deep));
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.bot {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.voice { display: flex; align-items: center; gap: 11px; }
.voice .play {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: rgb(255 255 255 / .22);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.voice .bars { display: inline-flex; align-items: center; gap: 2.5px; height: 22px; }
.voice .bars i { width: 3px; border-radius: 2px; background: rgb(255 255 255 / .85); display: block; }
.plan-card {
  border: 1px dashed var(--teal);
  background: rgb(13 148 136 / .08);
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 9px;
}
.plan-card b { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-bright); }
.plan-card ol { margin: 7px 0 11px; padding-left: 19px; font-size: 13.5px; line-height: 1.55; }
.confirm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm-yes, .confirm-edit {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.confirm-yes { background: var(--teal-deep); color: #fff; }
.confirm-edit { border: 1px solid var(--border-strong); color: var(--text); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps .card { margin-bottom: 0; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0b8577, #096a5d);
  color: #fff;
  font-size: 15px; font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgb(13 148 136 / .3);
}

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.why-grid .card { margin-bottom: 0; }
.ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgb(13 148 136 / .13);
  color: var(--teal-bright);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.ic svg { width: 21px; height: 21px; }

.feature-band {
  border: 1px solid var(--teal);
  background: linear-gradient(180deg, rgb(13 148 136 / .1), var(--surface));
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature-band h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.feature-band p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.final-cta {
  margin-top: 68px;
  border-radius: 24px;
  padding: 42px;
  background:
    radial-gradient(560px 260px at 85% -40px, rgb(45 212 191 / .25), transparent 70%),
    linear-gradient(135deg, #0b3f39, #082a26);
  border: 1px solid rgb(45 212 191 / .3);
  color: #fff;
}
.final-cta h2 { font-size: clamp(25px, 3.6vw, 33px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.2; }
.final-cta h3 { font-size: clamp(25px, 3.6vw, 33px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.2; font-weight: 750; }
.final-cta p { color: rgb(255 255 255 / .86); font-size: 15.5px; line-height: 1.6; max-width: 560px; }

/* ------------------------------------------- prose/legal ---- */
.prose h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 34px 0 8px; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--link); text-underline-offset: 3px; }

/* ---------------------------------------------- tool bits ---- */
pre.prompt {
  white-space: pre-wrap;
  word-break: break-word;
  font: 400 13.5px/1.6 var(--mono);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 10px;
}
.why { font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.alts { font-size: 13.5px; margin: 10px 0 0; padding-left: 19px; line-height: 1.65; color: var(--muted); }
.copied { font-size: 12.5px; color: var(--teal-bright); font-weight: 600; min-height: 17px; }
.bot { border-top: 1px solid var(--border); padding: 10px 0; }
.bot:first-of-type { border-top: 0; }
.bot .nm { font-weight: 650; font-size: 14.5px; }
.bot .sp { font-size: 12.5px; color: var(--muted); margin-left: 8px; }

.autos-label { font-weight: 650; }
ul.autos { margin: 0 0 4px; }
.warn { font-size: 13.5px; color: var(--warn); margin-bottom: 16px; }

/* ===================== brand pass: header session, mobile nav,
   footer columns, console components (dashboard / settings) ==== */

/* Logo lockup: gradient tile + the X strokes from favicon.svg,
   wordmark set tight and heavy. Used in header and footer. */
.ms-logo-word { font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.ms-logo-mark svg { width: 16px; height: 16px; display: block; }

/* Session cluster (right side of the header). shell.js renders the
   signed-out default (Sign in + Telegram CTA) and swaps in the
   identity chip + Dashboard + Logout once /auth/session verifies
   the stored marker — the cluster never claims a sign-in the
   server hasn't confirmed. */
.ms-session {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ms-nav + .ms-session { margin-left: 6px; }
.ms-session .ms-signin {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.ms-session .ms-signin:hover { color: var(--text); background: var(--surface-2); }
.ms-session a.ms-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 9px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #0b8577, #096a5d);
  color: #fff; font-size: 14px; font-weight: 650; text-decoration: none;
  box-shadow: 0 6px 16px rgb(13 148 136 / .28); white-space: nowrap;
}
.ms-session a.ms-cta:hover { background: linear-gradient(180deg, #0a7566, #085e50); }
.ms-user {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface-2);
  font-size: 13.5px; font-weight: 600; color: var(--text);
  max-width: 240px;
}
.ms-user svg { width: 16px; height: 16px; color: var(--teal-bright); flex: none; }
.ms-user .ms-user-id {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-session .ms-dash-link, .ms-session .ms-logout-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.ms-session .ms-dash-link:hover, .ms-session .ms-logout-link:hover {
  color: var(--text); background: var(--surface-2);
}

/* Burger + collapsible mobile menu. The desktop nav and session
   cluster hand over to the panel below 900px; every row in the
   panel is a full-width ≥44px target. */
.ms-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}
.ms-burger svg { width: 21px; height: 21px; }
.ms-mobile-menu {
  border-top: 1px solid var(--border);
  padding: 10px 16px 16px;
  display: grid;
  gap: 2px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.ms-mobile-menu[hidden] { display: none; }
.ms-mobile-menu a {
  display: flex; align-items: center; min-height: 46px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--text);
  text-decoration: none;
}
.ms-mobile-menu a:hover { background: var(--surface-2); }
.ms-mobile-menu a.ms-active { background: var(--surface-3); }
.ms-mobile-menu .ms-menu-label {
  padding: 12px 12px 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.ms-mobile-menu a.ms-mcta {
  margin-top: 8px; justify-content: center;
  background: linear-gradient(180deg, #0b8577, #096a5d);
  color: #fff;
}
.ms-mobile-menu .ms-muser {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 4px; font-size: 13.5px; font-weight: 600;
  color: var(--muted);
}
.ms-mobile-menu .ms-muser svg { width: 16px; height: 16px; color: var(--teal-bright); flex: none; }
.ms-mobile-menu .ms-msep { border-top: 1px solid var(--border); margin: 8px 0 4px; }

@media (max-width: 1180px) {
  /* Mid band: the secondary console links (Inbox / Profile /
     Playground) hand over to the Dashboard and the mobile menu so
     the bar never wraps. */
  .ms-nav a.ms-nav-hide-sm { display: none; }
}
@media (max-width: 900px) {
  .ms-nav, .ms-session { display: none; }
  .ms-burger { display: inline-flex; }
}
@media (min-width: 901px) {
  .ms-mobile-menu { display: none !important; }
}

/* Footer: brand / Product / Resources / Operator / Support & status
   columns over a bottom bar. Stacks 5 → 2 → 1 as the viewport narrows. */
.ms-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.3fr;
  gap: 28px;
}
@media (max-width: 900px) { .ms-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ms-footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.ms-footer-brand .ms-logo { margin-bottom: 12px; }
.ms-footer-brand p { max-width: 300px; }
.ms-powered { font-weight: 700; color: var(--text); letter-spacing: .01em; }
.ms-footer-h {
  font-size: 12px; font-weight: 750; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text);
  margin: 4px 0 10px;
}
.ms-footer-col { display: grid; gap: 2px; align-content: start; }
.ms-footer-col a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 6px 0;
}
.ms-footer-status { margin-top: 10px; }
.ms-footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}

/* Console components (dashboard, settings, profile-style pages). */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-grid .card { margin-bottom: 0; }
.card-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 10px; }
.card-head .ic { margin-bottom: 0; flex: none; }
.card-head h3 { margin: 2px 0 3px; }
.card-head p { margin: 0; }

dl.kv { margin: 0; }
.kv-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 8px 0;
  border-top: 1px solid var(--border);
}
.kv-row:first-child { border-top: 0; padding-top: 2px; }
.kv-row dt { font-size: 13px; font-weight: 600; color: var(--faint); flex: none; }
.kv-row dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.badge.ok { background: rgb(22 163 74 / .16); border-color: rgb(22 163 74 / .5); color: var(--ok); }
.badge.warn { background: rgb(217 119 6 / .14); border-color: rgb(217 119 6 / .5); color: var(--warn); }
.badge.info { background: rgb(13 148 136 / .14); border-color: rgb(13 148 136 / .45); color: var(--teal-bright); }
@media (prefers-color-scheme: light) {
  .badge.ok { color: #146c34; }
  .badge.warn { color: #a34a08; }
  .badge.info { color: #0b7566; }
}

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .qa-grid { grid-template-columns: 1fr; } }
.qa-card {
  display: flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface-2); color: var(--text);
  font-size: 14.5px; font-weight: 650; text-decoration: none;
}
.qa-card:hover { background: var(--surface-3); text-decoration: none; }
.qa-card .ic { width: 34px; height: 34px; border-radius: 10px; margin: 0; flex: none; }
.qa-card .ic svg { width: 17px; height: 17px; }
.qa-card small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }

.check-row {
  display: flex; align-items: center; gap: 11px;
  min-height: 44px; cursor: pointer;
  font-size: 14.5px; font-weight: 550;
}
.check-row input[type="checkbox"] {
  width: 22px; height: 22px; min-height: 0; flex: none;
  padding: 0; accent-color: var(--teal);
  cursor: pointer;
}
.provider-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.provider-row:first-of-type { border-top: 0; }
.provider-row .ic { width: 38px; height: 38px; margin: 0; flex: none; }
.provider-row .ic svg { width: 19px; height: 19px; }
.provider-row .grow { flex: 1; min-width: 0; }
.provider-row h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.provider-row p { margin: 0; }

/* Storefront agent-presence card. */
.agent-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 30px;
  background:
    radial-gradient(480px 220px at 100% -60px, rgb(13 148 136 / .16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
@media (max-width: 680px) {
  .agent-card { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
}
.agent-avatar {
  width: 96px; height: 96px; border-radius: 26px;
  box-shadow: 0 14px 34px rgb(13 148 136 / .35);
  display: block;
}
@media (max-width: 680px) { .agent-avatar { width: 76px; height: 76px; border-radius: 21px; } }
.agent-card h3 { font-size: 23px; margin: 0 0 6px; letter-spacing: -.015em; }
.agent-card .agent-sub { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; max-width: 560px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgb(22 163 74 / .5);
  background: rgb(22 163 74 / .12);
  color: var(--ok);
  font-size: 12.5px; font-weight: 700;
}
.status-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(52 211 153 / .18);
}
@media (prefers-color-scheme: light) { .status-chip { color: #146c34; } }

/* Small-screen rhythm: cards and big panels breathe less at
   phone widths so nothing crowds or clips. */
@media (max-width: 640px) {
  .card { padding: 19px; }
  .final-cta { padding: 28px 22px; }
  .feature-band { padding: 22px; }
  .proof { gap: 14px; padding: 18px 2px; }
  .mock-body { padding: 14px; }
  .msg { max-width: 94%; }
  .ms-footer-inner { padding: 28px 18px 34px; }
  h2.section { margin-top: 48px; }
}

/* ------------------------------------------------ motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp .65s cubic-bezier(.2, .7, .3, 1) both; }
  .fade-up.d1 { animation-delay: .08s; }
  .fade-up.d2 { animation-delay: .16s; }
  .mock { animation: floaty 7s ease-in-out infinite; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== Phase 6: visuals, diagrams, content ======
   Hover + motion polish (transform/opacity only), photographic
   frames, the inline-SVG diagram system, and the components the
   content pages share (use cases, people, articles, press kit,
   onboarding). The reduced-motion guard at the end of the motion
   section above still neutralises every transition below. */

/* Hover lift for interactive surfaces — pointer-fine devices only,
   so touch never gets a stuck hover state. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .qa-card, .plan, .mock { transition: transform .18s ease, box-shadow .18s ease; }
  #plans .card:hover, .plans .card:hover, .uc-card:hover, .article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  .qa-card:hover { transform: translateY(-2px); }
  .chip { transition: border-color .15s ease, transform .15s ease; }
  .chip:hover { transform: translateY(-1px); border-color: var(--teal); }
  .ms-logo:hover .ms-logo-mark { transform: rotate(-6deg) scale(1.06); }
  .ms-logo-mark { transition: transform .18s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .photo-band img, .uc-card img, .article-card img { transition: transform .4s ease; }
  .uc-card:hover img, .article-card:hover img { transform: scale(1.025); }
}

/* Photographic frames. */
.photo-band { margin: 54px 0 0; }
.photo-band img, .framed-img {
  width: 100%; height: auto; display: block;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.photo-band figcaption {
  margin-top: 12px; font-size: 13.5px; color: var(--faint); text-align: center;
}
.img-clip { overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.img-clip img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }

/* Inline-SVG diagrams (how-it-works, billing flow). */
.diagram { margin: 26px 0 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--font); }
.diagram .dg-box { fill: var(--surface-2); stroke: var(--border-strong); }
.diagram .dg-core { fill: rgb(13 148 136 / .12); stroke: var(--teal); }
.diagram .dg-t { fill: var(--text); font-size: 17px; font-weight: 700; }
.diagram .dg-s { fill: var(--muted); font-size: 13.5px; }
.diagram .dg-arrow { stroke: var(--teal-bright); stroke-width: 2.5; fill: none; }
.diagram figcaption { margin-top: 10px; font-size: 13.5px; color: var(--faint); }

/* Use-case cards + the written work definition. */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.uc-card .uc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.uc-card h3 { font-size: 18px; }
.uc-card .uc-who { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-bright); margin: 0 0 6px; }
.wd { margin: 14px 0 0; border-top: 1px solid var(--border); padding-top: 14px; }
.wd h4 { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wd ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.wd ol li { margin-bottom: 5px; }
.wd ol li b { color: var(--text); font-weight: 650; }
.wd .wd-outcome { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.wd .wd-outcome b { color: var(--text); }

/* People (team) — monogram tiles, never invented portraits. */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.person .mono {
  width: 58px; height: 58px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, #14b8a6, var(--teal-deep));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 8px 20px rgb(13 148 136 / .3);
}
.person h3 { margin: 0 0 2px; }
.person .role { font-size: 13px; font-weight: 700; color: var(--teal-bright); margin: 0 0 8px; }
.demo-banner {
  border: 1px dashed var(--warn);
  background: rgb(217 119 6 / .08);
  border-radius: var(--r);
  padding: 13px 17px;
  font-size: 14px;
  margin-bottom: 20px;
}
.demo-banner b { color: var(--warn); }

/* Articles. */
.article-list { display: grid; gap: 16px; }
.article-card { padding: 0; overflow: hidden; }
.article-card .a-body { padding: 20px 24px 22px; }
.article-card h3 { font-size: 18px; margin: 0 0 6px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 3px; }
.article-card .a-meta { font-size: 12.5px; color: var(--faint); margin: 0 0 8px; font-weight: 600; letter-spacing: .02em; }
.prose .figure-img { margin: 22px 0; }
.prose .figure-img img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--border-strong); display: block; }

/* Press kit swatches + downloads. */
.kit-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.swatch {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 14px 7px 8px; font-size: 13px; font-weight: 600;
  background: var(--surface-2);
}
.swatch i { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 1px solid var(--border-strong); }

/* Onboarding steps. */
.ob-progress { display: flex; gap: 6px; margin: 4px 0 20px; }
.ob-progress i { height: 6px; flex: 1; border-radius: 999px; background: var(--surface-3); }
.ob-progress i.on { background: var(--teal); }
.ob-choices { display: grid; gap: 10px; margin: 6px 0 4px; }
.ob-choice {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface-2); color: var(--text);
  font: 550 15px/1.45 var(--font); cursor: pointer;
}
.ob-choice small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ob-choice[aria-pressed="true"] { border-color: var(--teal); background: rgb(13 148 136 / .1); box-shadow: var(--ring); }

/* Bangla copy reads better with a taller line. */
:lang(bn) { line-height: 1.85; }
