/* ══════════════════════════════════════════════════════════════════════════
 * SalesTeem AI — marketing site (salesteemai.com)
 *
 * Plain CSS, no framework. Ported from the product's landing page when it was
 * lifted out of the Next.js app; the dashboard now lives at app.salesteemai.com
 * and nothing on this site talks to an API.
 *
 * Structure:
 *   1. Tokens (light + dark, switched by [data-theme] on <html>)
 *   2. Base & reset
 *   3. Layout primitives — container, section, split, headings
 *   4. Navbar & mobile drawer
 *   5. Buttons, chips, icon chips
 *   6. Hero
 *   7. Stage — the coloured canvas behind each coded visual
 *   8. .seq — the once-per-scroll sequence system used inside the visuals
 *   9. The visuals themselves
 *  10. Feature / use-case / agency grids
 *  11. Analytics dashboard
 *  12. FAQ accordion
 *  13. Final CTA & footer
 *  14. Reveal-on-scroll (replaces the GSAP ScrollTrigger the React page used)
 *  15. Legal pages
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand: #1CBD58;
  --brand-light: #4ade80;
  --brand-dim: rgba(28, 189, 88, .10);
  --brand-line: rgba(28, 189, 88, .25);
  --wa: #25D366;

  /* Surfaces — light */
  --bg: #f8fafc;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-60: rgba(241, 245, 249, .6);

  /* Ink */
  --text: #0f172a;
  --text-muted: #64748b;

  /* Lines */
  --border: #e2e8f0;

  /* Landing grid texture */
  --grid-dot: rgba(0, 0, 0, .07);

  /* Shadows */
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .10), 0 4px 8px rgba(0, 0, 0, .06);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .15);
  --shadow-stage: 0 20px 60px rgba(6, 78, 59, .25);

  /* Type. The app used "Google Sans", which is not distributed publicly, so
     the closest widely available neutral geometric face stands in for it. */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", arial, sans-serif;

  /* Rhythm */
  --container: 72rem;
  --radius: 1rem;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1611;
  --card: #14231b;
  --muted: #22362b;
  --muted-60: rgba(34, 54, 43, .6);

  --text: #e6ede8;
  --text-muted: #93a89b;

  --border: rgba(255, 255, 255, .10);

  --grid-dot: rgba(255, 255, 255, .06);

  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .5);
  --shadow-stage: 0 20px 60px rgba(0, 0, 0, .4);

  color-scheme: dark;
}

/* ── 2. Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }

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

::selection { background: var(--brand-dim); color: var(--text); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 3. Layout primitives ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }

.section {
  position: relative;
  scroll-margin-top: 4rem;
  padding-block: 80px;
}
@media (min-width: 1024px) { .section { padding-block: 112px; } }

.section--card { background: var(--card); }
.section--base { background: var(--bg); }

.eyebrow {
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.section-heading { max-width: 36rem; }
.section-heading--center {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-heading .lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.section-heading--center .lead { max-width: 36rem; margin-inline: auto; }

/* The one gradient flourish, on a single word per heading. */
.grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse > :first-child { order: 2; }
  .split--reverse > :last-child { order: 1; }
}

.checklist { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text-muted); font-size: 15px; line-height: 1.6;
}
.checklist svg { flex: none; margin-top: 4px; }

/* ── 4. Navbar ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo { display: flex; align-items: center; transition: opacity .15s; }
.nav__logo:hover { opacity: .8; }
.nav__logo img { height: 28px; width: auto; }
.logo--dark { display: none; }
[data-theme="dark"] .logo--light { display: none; }
[data-theme="dark"] .logo--dark { display: block; }

.nav__links { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .nav__links { display: flex; } }
.nav__links a {
  position: relative;
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--text);
  transition: width .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 36px; width: 36px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--muted); color: var(--text);
  transition: transform .15s;
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle svg { position: absolute; transition: opacity .3s, transform .3s; }
.theme-toggle .icon-moon { opacity: 0; transform: scale(.5) rotate(90deg); }
.theme-toggle .icon-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: scale(.5) rotate(-90deg); }

.nav__burger {
  display: flex; align-items: center; justify-content: center;
  height: 36px; width: 36px;
  border: 1px solid var(--border); border-radius: 10px;
  transition: background .15s;
}
.nav__burger:hover { background: var(--muted); }
@media (min-width: 768px) { .nav__burger { display: none; } }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer {
  position: fixed; top: 0; right: 0; z-index: 9999;
  display: flex; flex-direction: column;
  height: 100dvh; width: 100%; max-width: 20rem;
  background: var(--bg);
  box-shadow: -8px 0 40px rgba(0, 0, 0, .2);
  transform: translateX(100%);
  transition: transform .3s ease-out;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: translateX(0); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer__head img { height: 28px; width: auto; }
.drawer__close {
  display: flex; align-items: center; justify-content: center;
  height: 36px; width: 36px;
  border: 1px solid var(--border); border-radius: 8px;
  transition: background .15s;
}
.drawer__close:hover { background: var(--muted); }
.drawer__links { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.drawer__links a {
  padding: 14px 16px; border-radius: 12px;
  font-size: 16px; font-weight: 500;
  transition: background .15s;
}
.drawer__links a:hover { background: var(--muted); }
.drawer__cta { margin-top: auto; padding: 20px 20px 40px; border-top: 1px solid var(--border); }

/* ── 5. Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: opacity .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(22, 163, 74, .5);
}
.btn--primary:hover { opacity: .9; }

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 500;
}
.btn--ghost:hover { border-color: color-mix(in srgb, var(--text) 30%, transparent); }

.btn--sm { padding: 8px 16px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--brand-line); border-radius: 999px;
  background: var(--brand-dim); color: var(--brand);
  font-size: 12px; font-weight: 600;
}

/* Tinted square behind an icon. */
.icon-chip {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  height: 44px; width: 44px;
  border-radius: 12px;
}
.icon-chip--sm { height: 36px; width: 36px; }

/* Saturated gradient tile, used where a feature needs its own colour. */
.icon-tile {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  height: 40px; width: 40px;
  border-radius: 12px;
  color: #fff;
}

/* ── 6. Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 28px 28px;
  padding-block: 48px 64px;
}
@media (min-width: 640px) { .hero { padding-top: 80px; } }
@media (min-width: 1024px) { .hero { padding-top: 96px; padding-bottom: 96px; } }

.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 70% 40%, rgba(28, 189, 88, .10) 0%, transparent 100%);
}

.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  align-items: center; gap: 40px;
}
@media (min-width: 768px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 20px; max-width: 28rem;
  color: var(--text-muted);
  font-size: 16px; line-height: 1.7;
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }

.proof {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-top: 56px;
}
@media (min-width: 420px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proof { grid-template-columns: repeat(4, 1fr); margin-top: 80px; } }

.proof li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1px solid var(--border); border-radius: 16px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: blur(4px);
}
/* Scoped past `.proof span` below. That selector is (0,1,1) and would otherwise
   win over a bare `.proof__icon` (0,1,0), repainting the icon muted grey and
   turning it into a block — which loses the centring as well as the colour. */
.proof .proof__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 40px; width: 40px;
  border-radius: 12px; background: var(--brand-dim); color: var(--brand);
}
/* The value sits inside the text wrapper, which is muted — so it has to take
   the foreground colour back or the headline renders grey. Same for the
   equivalent <b> in .steps and .channel below. */
.proof b { display: block; color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.proof span { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.35; }

/* ── 7. Stage ──────────────────────────────────────────────────────────── */
/* A coloured canvas so a coded visual reads as an image rather than as more
   page: a saturated gradient, two soft blooms, and a fading dot texture. */
.stage {
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, #34d399 0%, #14b8a6 45%, #38bdf8 100%);
  box-shadow: var(--shadow-stage);
}
@media (min-width: 640px) { .stage { padding: 48px 40px; } }
[data-theme="dark"] .stage {
  background: linear-gradient(135deg, #065f46 0%, #115e59 45%, #0c4a6e 100%);
}
.stage--violet { background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #38bdf8 100%); }
[data-theme="dark"] .stage--violet {
  background: linear-gradient(135deg, #4c1d95 0%, #312e81 50%, #0c4a6e 100%);
}

.stage__bloom {
  position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(48px);
}
.stage__bloom--a {
  left: -80px; top: -96px; height: 288px; width: 288px;
  background: rgba(253, 230, 138, .6);
}
.stage__bloom--b {
  right: -64px; bottom: -112px; height: 320px; width: 320px;
  background: rgba(240, 171, 252, .45);
}
[data-theme="dark"] .stage__bloom--a { background: rgba(251, 191, 36, .15); }
[data-theme="dark"] .stage__bloom--b { background: rgba(217, 70, 239, .20); }

.stage__texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .4;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
[data-theme="dark"] .stage__texture { opacity: .2; }

.stage__inner { position: relative; }

.visual { width: 100%; max-width: 35rem; margin-inline: auto; }

/* ── 8. .seq — the once-per-scroll sequence inside each visual ─────────── */
/* main.js sets data-seq="pending" on mount and "in" the first time the box
   scrolls into view. Without JavaScript nothing is hidden and nothing moves,
   and prefers-reduced-motion keeps it static. Each piece enters at its own
   --d delay. */
.seq [data-anim="out"] { opacity: 0; }

@keyframes seq-in   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes seq-pop  { from { opacity: 0; transform: scale(.8); }        to { opacity: 1; transform: none; } }
@keyframes seq-fill { from { transform: scaleX(0); }                    to { transform: none; } }
@keyframes seq-out  { from { opacity: 1; }                              to { opacity: 0; } }
@keyframes seq-grow { from { transform: scaleY(0); }                    to { transform: none; } }
@keyframes seq-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes seq-live   { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: no-preference) {
  .seq[data-seq="pending"] [data-anim]   { opacity: 0; }
  .seq[data-seq="pending"] .seq-fill     { transform: scaleX(0); }
  .seq[data-seq="pending"] .seq-seg,
  .seq[data-seq="pending"] .seq-bar      { transform: scaleY(0); }
  .seq[data-seq="pending"] [data-anim="out"] { opacity: 1; }

  .seq[data-seq="in"] [data-anim]        { animation: seq-in .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
  .seq[data-seq="in"] [data-anim="pop"]  { animation-name: seq-pop; animation-duration: .4s; }
  .seq[data-seq="in"] [data-anim="out"]  { animation: seq-out .25s ease-out var(--d, 0s) both; }
  .seq[data-seq="in"] .seq-fill { transform-origin: left; animation: seq-fill 1.3s cubic-bezier(.3,.6,.2,1) var(--d, 0s) both; }
  .seq[data-seq="in"] .seq-seg  { transform-origin: top;  animation: seq-grow 1.1s ease-out var(--d, 0s) both; }
  .seq[data-seq="in"] .seq-bar  { transform-origin: bottom; animation: seq-grow .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }

  .seq-typing { animation: seq-typing 1.2s ease-in-out infinite; }
  .seq-live   { animation: seq-live 2s ease-in-out infinite; }
}

/* ── 9. The coded visuals ──────────────────────────────────────────────── */
/* Shared window chrome: three dots and a title bar, as in the product. */
.win {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .win { border-color: rgba(255, 255, 255, .1); }

.win__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--muted-60);
}
.win__dot { height: 10px; width: 10px; border-radius: 50%; }
.win__title {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 11px; font-weight: 600;
}

/* A card that floats off the edge of a visual. */
.float-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .float-card { border-color: rgba(255, 255, 255, .1); }

.float-pill {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
[data-theme="dark"] .float-pill { border-color: rgba(255, 255, 255, .1); }
.float-pill__tick {
  display: flex; align-items: center; justify-content: center;
  height: 24px; width: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
}

/* — How it works: three step panels on a rail — */
.steps-visual { display: flex; flex-direction: column; gap: 16px; }
.panel { position: relative; display: flex; gap: 16px; }
.panel__seg {
  position: absolute; left: 15px; top: 26px; bottom: -42px;
  width: 2px; border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .45));
}
.panel__node {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; flex: none;
  margin-top: 16px; height: 20px; width: 32px;
}
.panel__node::before {
  content: ""; position: absolute;
  height: 20px; width: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.panel__node::after {
  content: ""; position: relative;
  height: 12px; width: 12px; border-radius: 50%;
  border: 3px solid var(--brand); background: #fff;
}
.panel__body {
  flex: 1; min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .panel__body { border-color: rgba(255, 255, 255, .1); }
.panel__caption {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.45;
}

.url-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg);
  font-size: 13px;
}
.url-row__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-row--dashed { border-style: dashed; background: none; }

.progress {
  overflow: hidden;
  height: 6px; margin-top: 12px;
  border-radius: 999px; background: var(--muted);
}
.progress > i {
  display: block; height: 100%; width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #059669);
}

.ticks {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  margin-top: 12px;
  color: var(--text-muted); font-size: 12px;
}
@media (min-width: 420px) { .ticks { grid-template-columns: repeat(3, 1fr); } }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks i {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 16px; width: 16px; border-radius: 50%;
  background: var(--brand-dim); color: var(--brand);
}

.chat { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.35; }
.chat__ask {
  align-self: flex-start; max-width: 80%;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 6px;
  background: var(--muted);
}
.chat__answer {
  align-self: flex-end; max-width: 85%;
  padding: 8px 12px;
  border-radius: 16px 16px 6px 16px;
  background: var(--brand); color: #fff;
}
.chat__typing {
  align-self: flex-start;
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 6px;
  background: var(--muted);
}
.chat__typing i {
  height: 6px; width: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--text-muted) 60%, transparent);
}

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px 10px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg);
  text-align: center;
}
.tile b { font-size: 12px; font-weight: 600; }
.tile .live {
  display: flex; align-items: center; gap: 4px;
  color: var(--brand); font-size: 11px; font-weight: 500;
}
.tile .live i { height: 6px; width: 6px; border-radius: 50%; background: var(--brand); }

/* — Agent Store — */
.store__search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg);
  color: var(--text-muted); font-size: 12px;
}
.store__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text-muted);
  font-size: 11px; font-weight: 500;
}
.chip--on { border-color: transparent; background: var(--brand); color: #fff; }

.store__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 480px) { .store__grid { grid-template-columns: repeat(3, 1fr); } }
.agent-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px 10px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg);
  text-align: center;
}
.agent-card b { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.agent-card__ring {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 12px; box-shadow: 0 0 0 2px var(--brand);
}
.clone-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-muted);
  font-size: 10px; font-weight: 600;
}
.clone-btn--done { border-color: transparent; background: var(--brand); color: #fff; }
.clone-swap { position: relative; }
.clone-swap > .clone-btn:first-child { position: absolute; inset: 0; justify-content: center; }

/* — Inbox — */
.inbox__filters { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.inbox__filters span {
  display: flex; align-items: center; justify-content: center;
  height: 20px; width: 20px; border-radius: 6px; color: #fff;
}
.inbox__list > li + li { border-top: 1px solid var(--border); }
.inbox__row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.inbox__sel { position: absolute; inset: 0; pointer-events: none; background: var(--brand-dim); box-shadow: inset 3px 0 0 var(--brand); }
.avatar {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
  height: 36px; width: 36px; border-radius: 50%;
  color: #fff; font-size: 14px; font-weight: 700;
}
.avatar__badge {
  position: absolute; right: -4px; bottom: -4px;
  display: flex; align-items: center; justify-content: center;
  height: 18px; width: 18px; border-radius: 50%;
  color: #fff; box-shadow: 0 0 0 2px var(--card);
}
.inbox__meta { position: relative; flex: 1; min-width: 0; }
.inbox__top { display: flex; align-items: center; gap: 6px; }
.inbox__name { font-size: 12.5px; font-weight: 600; }
.lang-tag {
  padding: 1px 4px; border-radius: 4px;
  background: var(--muted); color: var(--text-muted);
  font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
}
.inbox__time { margin-left: auto; color: var(--text-muted); font-size: 10.5px; }
.inbox__text {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-muted); font-size: 12px;
}
/* On a narrow screen this pill would sit on top of the translation card. */
.inbox__replied { display: none; }
@media (min-width: 480px) { .inbox__replied { display: flex; } }

/* ── 10. Card grids ────────────────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.feature {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--card);
  transition: box-shadow .2s;
}
.feature:hover { box-shadow: var(--shadow-lg); }
.feature h3 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.usecase { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.usecase h3 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
/* Descendant, not `> p`: the description sits in a <div> with its <h3>, so a
   child combinator never matched it and it fell back to default size/colour. */
.usecase p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.usecase ul { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.usecase li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-muted); font-size: 13px; }
.usecase li i { flex: none; margin-top: 7px; height: 6px; width: 6px; border-radius: 50%; }

/* Copy beside a visual: an icon tile, a title and a paragraph. */
.point-list { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.point { display: flex; gap: 16px; }
.point h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; }
.point p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.channel-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
@media (min-width: 640px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
.channel { display: flex; gap: 12px; }
.channel b { display: block; color: var(--text); font-weight: 600; }
.channel span { display: block; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
/* Re-assert the tile after `.channel span` above, which is (0,1,1) and would
   otherwise grey out the white channel mark — see `.proof .proof__icon`. */
.channel .icon-tile {
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

.agency-grid { display: grid; grid-template-columns: 1fr; gap: 28px 24px; margin-top: 36px; }
@media (min-width: 640px) { .agency-grid { grid-template-columns: repeat(2, 1fr); } }
.agency-grid h3 { margin: 12px 0 4px; font-weight: 700; }
.agency-grid p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Numbered steps beside the How-it-works visual. */
.steps { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.steps li { display: flex; align-items: flex-start; gap: 20px; }
/* Scoped past `.steps span` below — see the note on `.proof .proof__icon`. */
.steps .steps__num {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 40px; width: 40px;
  border: 1px solid rgba(28, 189, 88, .28); border-radius: 12px;
  background: var(--brand-dim); color: var(--brand);
  font-size: 14px; font-weight: 700;
}
.steps b { display: block; margin-bottom: 6px; color: var(--text); font-size: 16px; font-weight: 600; }
.steps span { display: block; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ── 11. Analytics dashboard ───────────────────────────────────────────── */
.dash {
  overflow: hidden;
  margin-top: 56px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-xl);
}
.dash__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .dash__bar { padding-inline: 24px; } }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { height: 10px; width: 10px; border-radius: 50%; opacity: .7; }
.dash__ranges { display: flex; gap: 8px; }
.dash__ranges span {
  padding: 4px 12px;
  border: 1px solid transparent; border-radius: 6px;
  color: var(--text-muted); font-size: 12px;
}
.dash__ranges .on { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 600; }
.dash__body { padding: 16px; }
@media (min-width: 640px) { .dash__body { padding: 24px; } }

.stats { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.stat__label { margin-bottom: 8px; color: var(--text-muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat__value { margin-bottom: 6px; font-size: 30px; font-weight: 700; }
.stat__delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }

.chart { padding: 20px 16px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--muted); }
@media (min-width: 640px) { .chart { padding-inline: 20px; } }
.chart__title { margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.chart__bars { display: flex; align-items: flex-end; gap: 6px; height: 112px; }
@media (min-width: 640px) { .chart__bars { gap: 8px; } }
.chart__col { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; }
.chart__stack { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; width: 100%; height: 88px; }
.chart__lead { width: 60%; border-radius: 4px 4px 0 0; background: var(--wa); opacity: .85; }
.chart__conv { width: 100%; border-radius: 4px 4px 0 0; background: var(--brand); opacity: .65; }
.chart__day { color: var(--text-muted); font-size: 10px; }
.chart__legend { display: flex; gap: 16px; margin-top: 12px; }
.chart__legend div { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; }
.chart__legend i { height: 10px; width: 10px; border-radius: 2px; }

/* ── 12. FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 42rem; margin-inline: auto; }
.faq__item + .faq__item { border-top: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 0;
  text-align: left;
  font-size: 15px; font-weight: 600; line-height: 1.35;
}
@media (min-width: 640px) { .faq__q { font-size: 16px; } }
.faq__q svg { flex: none; margin-top: 2px; color: var(--brand-light); transition: transform .3s, color .3s; }
.faq__item[open] .faq__q svg,
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--brand); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.faq__foot { margin-top: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }
.faq__foot a { color: var(--brand); font-weight: 600; text-underline-offset: 4px; }
.faq__foot a:hover { text-decoration: underline; }

/* ── 13. Final CTA & footer ────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -112px; height: 320px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(28, 189, 88, .18) 0%, transparent 70%);
}
.cta__inner { position: relative; z-index: 1; max-width: 42rem; margin-inline: auto; text-align: center; }
.cta__inner h2 {
  font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; text-wrap: balance;
}
.cta__inner > p { max-width: 32rem; margin: 20px auto 0; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.cta__points { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin-top: 28px; }
.cta__points li { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; }
.cta__points i { height: 6px; width: 6px; border-radius: 50%; background: var(--brand); }

.footer {
  position: relative;
  padding: 64px 0 40px;
  background: #020617;
  color: #94a3b8;
}
.footer ::selection { background: #15803d; color: #fff; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(28, 189, 88, .75) 50%, transparent 100%);
}
.footer::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 192px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(28, 189, 88, .07) 0%, transparent 100%);
}
.footer__grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 5fr 7fr; } }
.footer__brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  transition: opacity .15s;
}
.footer__brand:hover { opacity: .8; }
.footer__mark {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 36px; width: 36px; border-radius: 12px;
  background: rgba(28, 189, 88, .15); border: 1px solid rgba(28, 189, 88, .25);
}
.footer__brand b { color: #fff; font-size: 18px; font-weight: 700; }
.footer__about { max-width: 20rem; margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; transition: color .15s; }
.footer__mail:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__cols p.h { margin-bottom: 20px; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.footer__cols div.links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__cols a { transition: color .15s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid #1e293b;
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; } }
.footer__bottom p { color: #64748b; font-size: 12px; }
.footer__status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid #1e293b; border-radius: 999px; background: #0f172a;
  font-size: 12px;
}
.footer__status i { height: 6px; width: 6px; border-radius: 50%; background: #34d399; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── 14. Reveal on scroll ──────────────────────────────────────────────── */
/* The React page drove these with GSAP ScrollTrigger. A static page does not
   need a 70 KB animation library for a fade-and-rise, so main.js toggles one
   class and the transition lives here. */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--rd, 0s);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* No JavaScript, or reduced motion: everything is simply visible. A .seq box
   never gets its data-seq attribute without JS, so its pieces are already
   visible — except [data-anim="out"], whose static default is the end state
   (hidden). Restore it, or the "Clone" button it swaps out would be missing. */
.no-js [data-reveal],
.no-js .seq [data-anim],
.no-js .seq [data-anim="out"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .footer__status i { animation: none; }
}

/* ── 15. Hero phone mockup ─────────────────────────────────────────────── */
.phone-wrap { display: flex; justify-content: center; }
.phone-anchor { position: relative; width: 100%; max-width: 285px; }
@media (min-width: 640px) { .phone-anchor { max-width: 300px; } }

.phone-glow {
  position: absolute; inset: -40px; pointer-events: none;
  border-radius: 50px;
  background: radial-gradient(ellipse at center, rgba(28, 189, 88, .18) 0%, transparent 65%);
}

.phone {
  position: relative;
  padding: 10px 8px 18px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2c2c2e 0%, #1a1a1a 100%);
  box-shadow: 0 48px 96px rgba(0, 0, 0, .32), 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .13);
}
.phone__btn {
  position: absolute; width: 3px;
  background: #383838;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.phone__btn--v1 { left: -3px; top: 60px; height: 18px; border-radius: 2px 0 0 2px; }
.phone__btn--v2 { left: -3px; top: 92px; height: 24px; border-radius: 2px 0 0 2px; }
.phone__btn--v3 { left: -3px; top: 122px; height: 24px; border-radius: 2px 0 0 2px; }
.phone__btn--power { right: -3px; top: 96px; height: 42px; border-radius: 0 2px 2px 0; }

.phone__screen { position: relative; overflow: hidden; border-radius: 38px; background: #fff; }
.phone__island {
  position: absolute; top: 9px; left: 50%; z-index: 20;
  transform: translateX(-50%);
  width: 70px; height: 14px;
  border-radius: 8px; background: #1a1a1a;
}

.phone__status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 5px;
  background: #075E54;
}
.phone__time { color: #fff; font-size: 10px; font-weight: 700; }
.phone__signal { display: flex; align-items: center; gap: 4px; }
.phone__battery {
  display: flex; align-items: center; overflow: hidden;
  height: 10px; width: 20px; padding: 0 1px;
  border: 1.5px solid rgba(255, 255, 255, .65); border-radius: 2px;
}
.phone__battery i { height: 5px; width: 68%; border-radius: 1px; background: #fff; }

.phone__header {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px 9px;
  background: #075E54;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}
.phone__avatar {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
  height: 34px; width: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #1CBD58 0%, #22c55e 100%);
  box-shadow: 0 0 10px rgba(28, 189, 88, .38);
}
.phone__avatar em {
  position: absolute; right: -2px; bottom: -1px;
  display: flex; align-items: center; justify-content: center;
  height: 14px; width: 14px; border-radius: 50%;
  background: #1CBD58; border: 1.5px solid #075E54;
  color: #fff; font-size: 6.5px; font-weight: 900; font-style: normal;
}
.phone__who { flex: 1; }
.phone__who b { display: block; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.phone__who em { display: block; margin-top: 1px; color: rgba(255, 255, 255, .6); font-size: 10px; font-style: normal; }
.phone__handoff {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8); font-size: 9px; white-space: nowrap;
}

.phone__msgs {
  display: flex; flex-direction: column; gap: 5px;
  height: 360px; padding: 10px 10px 8px;
  overflow-y: auto;
  background: #ece5dd;
  scrollbar-width: none; -ms-overflow-style: none;
}
.phone__msgs::-webkit-scrollbar { display: none; }
.phone__date {
  align-self: center; margin-bottom: 2px;
  padding: 2px 10px; border-radius: 6px;
  background: rgba(0, 0, 0, .12);
  color: rgba(0, 0, 0, .5); font-size: 9px;
}

@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes live-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }

.msg { display: flex; animation: msg-in .22s ease-out; }
.msg--sent { justify-content: flex-end; }
.msg--recv { justify-content: flex-start; }
.msg > span {
  max-width: 78%; padding: 6px 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  color: #111b21; font-size: 11px; line-height: 1.45;
}
.msg--sent > span { border-radius: 12px 12px 3px 12px; background: #d9fdd3; }
.msg--recv > span { border-radius: 12px 12px 12px 3px; background: #fff; }
.msg time {
  display: flex; align-items: center; justify-content: flex-end; gap: 3px;
  margin-top: 1px;
  color: rgba(0, 0, 0, .4); font-size: 8px;
}
.msg time i { color: #53bdeb; font-size: 9px; font-style: normal; line-height: 1; }

.msg--typing > span { display: flex; align-items: center; gap: 4px; padding: 8px 12px; }
.msg--typing i {
  height: 5px; width: 5px; border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  animation: bounce 1.1s ease-in-out infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }

.phone__input {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px;
  background: #f0f2f5; border-top: 1px solid rgba(0, 0, 0, .06);
}
.phone__emoji { flex: none; color: rgba(0, 0, 0, .32); font-size: 18px; }
.phone__field {
  flex: 1; padding: 5px 12px;
  border: 1px solid rgba(0, 0, 0, .07); border-radius: 20px;
  background: #fff;
  color: rgba(0, 0, 0, .35); font-size: 10px;
}
.phone__send {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 32px; width: 32px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 211, 102, .38);
}
.phone__home { display: block; margin: 10px auto 0; height: 4px; width: 60px; border-radius: 2px; background: rgba(255, 255, 255, .22); }

/* Floating metric badges — only where there is room beside the phone. */
.float-badge {
  position: absolute; z-index: 20;
  display: none; align-items: center; gap: 10px;
  min-width: 148px; padding: 9px 14px 9px 10px;
  border: 1px solid var(--border); border-left-width: 3px; border-radius: 13px;
  background: var(--card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1), 0 1px 4px rgba(0, 0, 0, .06);
}
@media (min-width: 1280px) { .float-badge { display: flex; } }
.float-badge i {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 34px; width: 34px; border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px; font-style: normal;
}
.float-badge b { display: block; color: var(--text-muted); font-size: 9px; font-weight: 400; line-height: 1; }
.float-badge em { display: block; margin-top: 4px; font-size: 13px; font-weight: 800; font-style: normal; line-height: 1; }
.float-badge--1 { top: -8px; right: -138px; border-left-color: #4ade80; }
.float-badge--2 { top: 138px; right: -138px; border-left-color: #60a5fa; }
.float-badge--3 { bottom: 105px; left: -138px; border-left-color: #25D366; }
.float-badge--4 { bottom: 26px; right: -138px; border-left-color: #fb923c; }

.phone-toast {
  position: absolute; left: 50%; top: -48px; z-index: 20;
  display: none; align-items: center; gap: 10px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 13px;
  background: var(--card);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1), 0 1px 4px rgba(0, 0, 0, .06);
}
@media (min-width: 640px) { .phone-toast { display: flex; } }
.phone-toast__dot { position: relative; flex: none; height: 8px; width: 8px; }
.phone-toast__dot i { position: absolute; inset: 0; border-radius: 50%; background: #25D366; }
.phone-toast__dot i:first-child { animation: live-ring 1.8s ease-out infinite; }
.phone-toast b { color: var(--text); font-size: 10px; font-weight: 600; line-height: 1; }
.phone-toast span:last-child { color: var(--text-muted); font-size: 10px; }

/* ── 16. Booking calendar visual ───────────────────────────────────────── */
.cal {
  display: grid; gap: 1px; padding: 1px;
  background: var(--border);
  grid-template-columns: 34px repeat(6, minmax(0, 1fr));
  grid-template-rows: 26px repeat(6, 30px);
}
.cal__cell { background: var(--card); }
.cal__head {
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  color: var(--text-muted); font-size: 10.5px; font-weight: 600;
}
.cal__head--on { color: var(--brand); }
.cal__hour {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 4px;
  background: var(--card);
  color: var(--text-muted); font-size: 9.5px;
}
.cal__ev { margin: 2px; border-radius: 6px; }
.cal__ev--new {
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  padding-inline: 6px;
  background: linear-gradient(135deg, #34d399, var(--brand));
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand);
  color: #fff;
}
.cal__ev--new b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 700; line-height: 1.15; }
.cal__ev--new em { font-size: 8.5px; font-style: normal; line-height: 1.15; opacity: .9; }

.cal__chat {
  position: absolute; left: -8px; top: 0;
  display: flex; flex-direction: column; gap: 6px;
  width: min(270px, 88%);
}
@media (min-width: 640px) { .cal__chat { left: -20px; } }
.cal__ask {
  align-self: flex-start; max-width: 85%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 16px 16px 16px 6px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
}
[data-theme="dark"] .cal__ask { border-color: rgba(255, 255, 255, .1); }
.cal__confirm {
  align-self: flex-start;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 6px;
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 12px; font-weight: 500;
}

/* ── 17. Agency dashboard visual ───────────────────────────────────────── */
.ag__url {
  display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0;
  margin-left: 12px; padding: 4px 10px;
  border-radius: 6px; background: var(--bg);
  color: var(--text-muted); font-size: 11px;
}
.ag__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag__url b { color: var(--text); font-weight: 600; }

.ag__side { display: none; flex-direction: column; flex: none; gap: 8px; width: 112px; padding: 12px; border-right: 1px solid var(--border); }
@media (min-width: 440px) { .ag__side { display: flex; } }
.ag__brand { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ag__mark {
  display: flex; align-items: center; justify-content: center;
  height: 24px; width: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-size: 10px; font-weight: 800;
}
.ag__brand b { font-size: 11px; font-weight: 700; }
.ag__nav { padding: 4px 8px; border-radius: 6px; color: var(--text-muted); font-size: 10.5px; font-weight: 500; }
.ag__nav--on { background: #f97316; color: #fff; }

.ag__main { position: relative; flex: 1; min-width: 0; padding: 14px; }
.ag__topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ag__client {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
  font-size: 11px; font-weight: 600;
}
.ag__client i { height: 12px; width: 12px; border-radius: 50%; }

.ag__switcher {
  position: absolute; left: 14px; top: 44px; z-index: 10;
  width: 176px; padding: 6px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-xl);
}
.ag__switcher p {
  padding: 2px 8px 4px;
  color: var(--text-muted); font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.ag__opt {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  color: var(--text-muted); font-size: 11.5px; font-weight: 500;
}
.ag__opt--on { background: var(--muted); color: var(--text); }
.ag__opt i {
  display: flex; align-items: center; justify-content: center;
  height: 20px; width: 20px; border-radius: 50%;
  color: #fff; font-size: 9px; font-style: normal; font-weight: 700;
}

.ag__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ag__stats > span { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.ag__stats em { display: block; color: var(--text-muted); font-size: 9.5px; font-style: normal; }
.ag__stats b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

.ag__chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 80px; margin-top: 8px; padding: 12px 10px 8px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
}
.ag__chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(#f97316, #f9731666); }

/* ── 18. Legal pages ───────────────────────────────────────────────────── */
.legal { max-width: 48rem; margin-inline: auto; padding-block: 64px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.legal .updated { margin-top: 12px; color: var(--text-muted); font-size: 14px; }
.legal h2 {
  margin-top: 40px; margin-bottom: 12px;
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
}
.legal h3 { margin-top: 24px; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--brand); text-underline-offset: 2px; text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }
.legal__note {
  margin-top: 16px; padding: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
/* Scoped: bare `.legal__foot` loses its font-size to `.legal p` above (0,1,1). */
.legal .legal__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
.legal code {
  padding: 1px 5px; border-radius: 4px;
  background: var(--muted); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
}
.legal__table { overflow-x: auto; margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal__table th {
  padding: 10px 16px; background: var(--muted);
  text-align: left; font-weight: 500; color: var(--text);
  white-space: nowrap;
}
.legal__table td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-muted); }
