/* Botifire website. Same tokens as the product (apps/web/src/styles/tokens.css): DM Sans, light grey canvas,
   soft white 20px cards, warm orange → green gradient, coloured icon discs, gradient "active" pills.
   Layout: floating card header, then a column of full-width bands whose content sits in white cards on the canvas. */
:root {
  --canvas: #f1f1f1;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --sunk: #f2f2f4;
  --border: #ebebeb;
  --border-strong: #e2e3e6;
  --text: #000000;
  --text-2: #373737;
  --muted: #66696f;
  --faint: #737680;
  --brand: #317c66;
  --brand-hover: #2a6d59;
  --brand-text: #25805d;
  --on-brand: #ffffff;
  --orange: #fea775;
  --orange-text: #96582a;
  --peach: #f8ece5;
  --peach-2: #fff0e5;
  --mint: #ebfaf2;
  --teal: #3a876d;
  --vivid: #10c656;
  --disc-ink: #000000;
  --ai-bubble: #fef6f0;
  --human-bubble: #ebfaf2;
  --gradient: linear-gradient(160deg, #d29f6c 0%, #a1986e 45%, #4c8d73 100%);
  --gradient-deep: linear-gradient(150deg, #a8703f 0%, #77744f 48%, #2e6b55 100%);
  --gradient-btn: linear-gradient(180deg, #d4a072 0%, #5f8c71 100%);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(16, 198, 86, 0.10), transparent 70%);
  --shadow-pop: 0 18px 44px -16px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-control: 10px;
  --r-card: 20px;
  --r-sheet: 28px;
  --r-pill: 999px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0f1110; --surface: #1a1c1b; --surface-2: #212423; --sunk: #252827; --border: #2a2d2c; --border-strong: #353938;
    --text: #f5f5f4; --text-2: #d6d7d6; --muted: #a3a6a4; --faint: #8a8d8b;
    --brand: #317c66; --brand-hover: #378a72; --brand-text: #5fd39f; --on-brand: #ffffff;
    --orange-text: #f2b48a; --peach: rgba(254, 167, 117, 0.14); --peach-2: rgba(254, 167, 117, 0.14); --mint: rgba(16, 198, 86, 0.12);
    --disc-ink: #f5f5f4; --ai-bubble: rgba(254, 167, 117, 0.12); --human-bubble: rgba(16, 198, 86, 0.12);
    --shadow-pop: 0 18px 44px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0f1110; --surface: #1a1c1b; --surface-2: #212423; --sunk: #252827; --border: #2a2d2c; --border-strong: #353938;
  --text: #f5f5f4; --text-2: #d6d7d6; --muted: #a3a6a4; --faint: #8a8d8b;
  --brand: #317c66; --brand-hover: #378a72; --brand-text: #5fd39f; --on-brand: #ffffff;
  --orange-text: #f2b48a; --peach: rgba(254, 167, 117, 0.14); --peach-2: rgba(254, 167, 117, 0.14); --mint: rgba(16, 198, 86, 0.12);
  --disc-ink: #f5f5f4; --ai-bubble: rgba(254, 167, 117, 0.12); --human-bubble: rgba(16, 198, 86, 0.12);
  --shadow-pop: 0 18px 44px -12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--canvas); }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── layout ── */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 24px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: clamp(48px, 7vw, 96px); }
.band-tight { padding-block: clamp(32px, 4vw, 56px); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--orange-text); }
.h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }

/* ── cards & surfaces ── */
.card { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); min-width: 0; }
.card-sunk { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.grad { background: var(--gradient); color: #fff; }
.grad-deep { background: var(--gradient-deep); color: #fff; }
.glow { background-image: var(--glow); background-repeat: no-repeat; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: var(--r-control); border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none;
  cursor: pointer; transition: background .15s var(--ease), transform .15s var(--ease), border-color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-white { background: #fff; color: #111312; }
.btn-white:hover { background: #f4f1ec; }
.btn-line-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-line-white:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn:active { transform: translateY(1px); }

/* ── pills, chips, badges ── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; background: var(--peach-2); color: var(--orange-text); white-space: nowrap; }
.pill.green { background: var(--mint); color: var(--brand-text); }
.pill.plain { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.pill svg { width: 15px; height: 15px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill);
  background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.chip .disc { width: 30px; height: 30px; }
.chip .disc svg { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px;
  font-weight: 500; background: var(--sunk); color: var(--text-2); }

/* icon discs, as on the dashboard KPI cards */
.disc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.disc svg { width: 22px; height: 22px; }
.disc.orange { background: var(--orange); }
.disc.teal { background: var(--teal); }
.disc.ink { background: var(--disc-ink); color: var(--canvas); }
.disc.vivid { background: var(--vivid); }
.disc.soft { background: var(--peach); color: var(--orange-text); }
.disc.mint { background: var(--mint); color: var(--brand-text); }

/* segmented control with the dashboard's gradient "active" pill (1H 4H 1D …) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.seg button { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font: 600 14px/1 var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gradient-btn); color: #fff; box-shadow: 0 6px 14px -8px rgba(49, 124, 102, 0.8); }

/* ── header ── */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; }
.nav { position: relative; display: flex; align-items: center; gap: 10px; height: 68px; padding-block: 0; padding-inline: 20px 12px; border-radius: var(--r-card);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--shadow-soft); }
.logo { display: inline-flex; align-items: center; height: 40px; flex: none; }
.logo img { height: 30px; width: auto; display: block; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
.nav-links { display: flex; gap: 2px; margin-inline-start: 18px; }
.nav-links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; text-decoration: none;
  font-weight: 500; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current="page"] { background: var(--peach); color: var(--orange-text); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); }
.theme button { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--text-2); }
.theme button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); color: var(--text); }
.theme svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-end .signin { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 10px; border-radius: var(--r-card);
    background: var(--surface); box-shadow: var(--shadow-pop); }
  .mobile-nav a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--peach); color: var(--orange-text); }
  .mobile-nav .btn { margin-top: 6px; }
}
@media (max-width: 520px) { .nav { padding-inline-start: 14px; } .nav-end .trial { display: none; } .logo img { height: 26px; } }

/* ── hero ── */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand-text); }
.stage { position: relative; border-radius: var(--r-sheet); background: var(--gradient); padding: clamp(18px, 3vw, 34px); overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: auto -20% -40% 30%; height: 70%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); pointer-events: none; }
.stage-label { position: relative; z-index: 1; display: inline-flex; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, 0.22); padding: 6px 12px; border-radius: var(--r-pill); }

/* product mock: conversation */
.convo { position: relative; z-index: 1; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-pop); overflow: hidden; }
.convo-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none;
  background: var(--peach); color: #93582a; }
:root[data-theme="dark"] .avatar { color: #f6c4a2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: #f6c4a2; } }
.convo-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; background: var(--surface-2); color: var(--text); }
.msg .who { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
.msg.ai { align-self: flex-end; background: var(--ai-bubble); border-end-end-radius: 6px; }
.msg.human { align-self: flex-end; background: var(--human-bubble); border-end-end-radius: 6px; }
.msg.visitor { border-end-start-radius: 6px; }
.msg .src { display: flex; margin-top: 6px; font-size: 12px; color: var(--orange-text); font-weight: 500; }
.sys { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 5px 12px; border-radius: var(--r-pill); }
.handler { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.handler.ai { background: var(--peach); color: var(--orange-text); }
.handler.human { background: var(--mint); color: var(--brand-text); }
.float-kpi { position: absolute; z-index: 2; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 10px; }
.float-kpi .disc { width: 36px; height: 36px; }
.float-kpi .disc svg { width: 18px; height: 18px; }
.float-kpi b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.float-kpi span { font-size: 12px; color: var(--muted); }
.kpi-a { inset-inline-end: clamp(10px, 2vw, 22px); top: 70px; }
.kpi-b { inset-inline-start: clamp(10px, 2vw, 22px); bottom: 22px; }
@media (max-width: 560px) { .float-kpi { position: static; margin-top: 10px; } .kpi-a, .kpi-b { box-shadow: none; } }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--ai-bubble); align-self: flex-end; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange-text); opacity: .4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }

/* channels strip */
.channels { display: flex; flex-wrap: wrap; gap: 10px; }
.channels-band { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 860px) { .channels-band { grid-template-columns: 1fr; } }

/* ── grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* bento of products (home) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > *, .bento > .wide { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-text); margin-top: auto; }
.more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.feature:hover .more svg { transform: translateX(3px); }

/* steps (real sequence, so numbered) */
.flow-band { border-radius: var(--r-sheet); padding: clamp(26px, 4vw, 52px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r-card); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; color: #fff; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #2e6b55; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.step p { color: rgba(255, 255, 255, 0.9); font-size: 15px; }

/* KPI tiles like the dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 14px; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-label { color: var(--text-2); font-size: 15px; }
.kpi-value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* chart card */
.chart-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .chart-card { grid-template-columns: 1fr; } }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { fill: var(--faint); font: 11px var(--font); }
.chart .grid { stroke: var(--border); }
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; }
.meter-track { height: 6px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.meter-track i { display: block; height: 100%; border-radius: 6px; background: var(--orange); }
.meter-track i.g { background: var(--brand); }

/* trust list */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand-text); }

/* languages */
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .langs { grid-template-columns: 1fr; } }
.lang { background: var(--surface-2); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lang .greet { font-size: 17px; font-weight: 500; }
.lang[dir="rtl"] .greet { font-family: 'Noto Sans Arabic', var(--font); }

/* CTA banner */
.cta { border-radius: var(--r-sheet); padding: clamp(30px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.92); margin-top: 12px; max-width: 56ch; }

/* ── page header for inner pages ── */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 36px); }
.page-hero .lead { margin-top: 16px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.subnav a { text-decoration: none; }

/* product sections */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 40px); align-items: center;
  scroll-margin-top: 110px; }
.product.flip > .product-copy { order: 2; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product.flip > .product-copy { order: 0; } }
.product + .product { margin-top: clamp(20px, 3vw, 28px); }
.product-copy { display: flex; flex-direction: column; gap: 16px; }
.product-copy .row { gap: 12px; }
.product-visual { border-radius: var(--r-sheet); padding: clamp(16px, 2.6vw, 28px); min-width: 0; }
.panel { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-pop); padding: 16px; min-width: 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; min-width: 0; }
.li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .disc { width: 30px; height: 30px; }
.li .disc svg { width: 15px; height: 15px; }

/* flow builder mock */
.canvas { position: relative; height: 300px; border-radius: 16px; background-color: var(--surface);
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 18px 18px; box-shadow: var(--shadow-pop); overflow: hidden; }
.node { position: absolute; width: 168px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong);
  font-size: 13px; box-shadow: var(--shadow-soft); }
.node b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.node b i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.node span { color: var(--muted); font-size: 12px; }
.canvas svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.canvas svg.edges path { fill: none; stroke: var(--faint); stroke-width: 1.5; }

/* kanban mock */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--surface-2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col h4 { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.deal { background: var(--surface); border-radius: 10px; padding: 9px 10px; font-size: 13px; box-shadow: var(--shadow-soft); }
.deal span { display: block; color: var(--muted); font-size: 12px; }

/* code */
pre.code { margin: 0; padding: 16px 18px; border-radius: 16px; background: #111312; color: #e6e6e4; font: 13px/1.6 var(--mono);
  overflow-x: auto; box-shadow: var(--shadow-pop); }
pre.code .k { color: #f2b48a; } pre.code .s { color: #8fe3b3; } pre.code .c { color: #8a8d8b; }

/* solutions */
.industry { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 110px; }
.industry .snippet { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border-radius: 16px; padding: 14px; }
.industry .snippet .msg { max-width: 92%; font-size: 13.5px; }
.industry .snippet .msg:not(.ai):not(.human) { background: var(--surface); }
.uses { display: flex; flex-wrap: wrap; gap: 6px; }
.team-card { display: flex; flex-direction: column; gap: 14px; }

/* ── pricing ── */
.billing { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { box-shadow: 0 0 0 2px var(--brand), var(--shadow-pop); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price b { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.plan .note { font-size: 13px; color: var(--muted); min-height: 1.4em; }
.plan .checks li { font-size: 14px; }
.plan .btn { width: 100%; }
.compare-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
table.compare th, table.compare td { padding: 13px 18px; text-align: start; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface-2); font-weight: 600; position: sticky; top: 0; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
table.compare tr.group td { background: var(--surface-2); font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
table.compare .yes { color: var(--brand-text); font-weight: 700; }
table.compare .no { color: var(--faint); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.faq .card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq .card p { color: var(--muted); font-size: 15px; }

/* ── footer ── */
.site-foot { padding-block: 24px 40px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.foot a:hover { color: var(--brand-text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ── nav dropdowns (Solutions, Products, language) ── */
.nav-links a, .nav-drop { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0;
  background: transparent; font: 500 15px/1 var(--font); color: var(--text-2); cursor: pointer; text-decoration: none; }
.nav-drop svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-drop[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.nav-links a:hover, .nav-drop:hover, .nav-drop[aria-expanded="true"] { background: var(--surface-2); }
.nav-links [aria-current="page"] { background: var(--peach); color: var(--orange-text); }
.mega { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; inset-inline-end: 0; z-index: 70; background: var(--surface);
  border-radius: var(--r-sheet); box-shadow: var(--shadow-pop); padding: 26px 26px 18px; border: 1px solid var(--border);
  max-height: calc(100vh - 120px); overflow-y: auto; }
.mega-solutions { inset-inline-end: auto; width: min(760px, 100%); }
.mega-grid { display: grid; gap: 8px 26px; }
.mega-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-col h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 10px 10px; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; text-decoration: none; }
.mega-item:hover, .mega-item:focus-visible { background: var(--surface-2); }
.mega-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--mint); color: var(--brand-text); }
.mega-ic svg { width: 19px; height: 19px; }
.mega-item b { display: block; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.mega-item span span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-foot { margin-top: 14px; padding: 14px 10px 0; border-top: 1px solid var(--border); }
.lang-wrap { position: relative; }
.lang-btn { padding: 0 10px; }
.lang-btn svg:first-child { width: 18px; height: 18px; }
.lang-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 70; min-width: 200px; padding: 8px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow-pop); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.lang-menu[hidden] { display: none; }
.lang-menu a { padding: 11px 14px; border-radius: 12px; text-decoration: none; font-size: 15.5px; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current="true"] { background: var(--peach); color: var(--orange-text); font-weight: 600; }
.lang-menu a[lang="ur-PK"], .mob-langs a[lang="ur-PK"] { font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', var(--font); }
.lang-menu a[lang="ar"], .mob-langs a[lang="ar"] { font-family: 'Noto Sans Arabic', var(--font); }
@media (max-width: 1180px) { .theme { display: none; } }
@media (max-width: 1080px) { .lang-btn span { display: none; } }
@media (max-width: 900px) { .lang-wrap { display: none; } .mega { display: none; } }

/* mobile accordion */
.mobile-nav details { border-radius: 12px; }
.mobile-nav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px;
  font-weight: 500; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mobile-nav details[open] summary svg { transform: rotate(180deg); }
.mob-list { display: flex; flex-direction: column; padding: 0 6px 6px; }
.mob-list a { padding: 9px 12px; font-size: 15px; }
.mob-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.mob-langs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 4px; }
.mob-langs a { padding: 8px 14px !important; border-radius: var(--r-pill) !important; background: var(--surface-2); }
.mob-langs a[aria-current="true"] { background: var(--peach); color: var(--orange-text); }

/* misc */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand-text); }
.group-h { margin-bottom: 16px; font-size: 1.35rem; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.product-visual.grad { color: var(--text); }
.pains svg { color: var(--orange-text); }

/* ── right-to-left (Urdu, Arabic) ── */
[dir="rtl"] .btn svg, [dir="rtl"] .more svg, [dir="rtl"] .mega-foot svg { transform: scaleX(-1); }
a.feature:hover .more svg { transform: translateX(3px); }
[dir="rtl"] a.feature:hover .more svg { transform: scaleX(-1) translateX(3px); }
:root[lang="ar"] { --font: 'Noto Sans Arabic', 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
:root[lang="ur-PK"] { --font: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', 'DM Sans', ui-sans-serif, system-ui, sans-serif; }
:root[lang="ur-PK"] body { line-height: 2.05; }
:root[lang="ur-PK"] h1, :root[lang="ur-PK"] h2, :root[lang="ur-PK"] h3, :root[lang="ur-PK"] .h1 { line-height: 1.75; letter-spacing: 0; }
:root[lang="ur-PK"] .h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { line-height: 1.35; letter-spacing: 0; }
:root[lang="ur-PK"] .eyebrow, :root[lang="ar"] .eyebrow, :root[lang="ur-PK"] .mega-col h4, :root[lang="ar"] .mega-col h4,
:root[lang="ur-PK"] .foot h4, :root[lang="ar"] .foot h4 { letter-spacing: 0; text-transform: none; }
:root[lang="ur-PK"] .btn, :root[lang="ur-PK"] .nav-drop, :root[lang="ur-PK"] .nav-links a { line-height: 2; height: auto; min-height: 46px; padding-block: 4px; }
:root[lang="ur-PK"] .btn-sm, :root[lang="ur-PK"] .nav-drop, :root[lang="ur-PK"] .nav-links a { min-height: 40px; }
:root[lang="ur-PK"] .pill, :root[lang="ur-PK"] .tag, :root[lang="ur-PK"] .handler { height: auto; padding-block: 3px; line-height: 1.9; }
:root[lang="ur-PK"] .msg { line-height: 2; }

.hero-copy > .pill, .hero-copy > .crumbs, .product-copy > .pill { align-self: flex-start; }
.hero-copy > .pill.plain { white-space: normal; height: auto; min-height: 30px; padding-block: 4px; }
.stage .convo { margin-bottom: 58px; }
.kpi-b { bottom: 18px; }
@media (max-width: 560px) { .stage .convo { margin-bottom: 0; } }
.li > svg { width: 18px; height: 18px; flex: none; color: var(--brand-text); }

/* ── motion ──
   Content is fully visible until JS marks a block as in view; then it animates in from below.
   The hero chat replays itself; floating cards bob; reduced-motion users get everything static. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flowdash { to { stroke-dashoffset: -24; } }
@keyframes drift { 0%, 100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes fill { from { width: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .stage, .product-visual.grad, .cta, .flow-band { background-size: 180% 180%; animation: drift 16s ease-in-out infinite; }
  .float-kpi { animation: bob 6s ease-in-out infinite; }
  .kpi-b { animation-delay: -3s; }
  .pill.green .dot, .handler .dot { animation: pulse 2.2s infinite; }
  .canvas svg.edges path { stroke-dasharray: 6 6; animation: flowdash 1.4s linear infinite; }

  .js [data-anim].in .li, .js [data-anim].in .deal, .js [data-anim].in .node, .js [data-anim].in .card-sunk,
  .js [data-anim].in .chip, .js [data-anim].in .kpi, .js [data-anim].in .step, .js [data-anim].in .msg,
  .js [data-anim].in .panel, .js [data-anim].in .col, .js [data-anim].in .meter, .js [data-anim].in pre.code {
    animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-anim].in .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
  .js [data-anim].in .draw { stroke-dasharray: 1; animation: draw 1.6s var(--ease) both .2s; }
  .js [data-anim].in .meter-track i { animation: fill 1.2s var(--ease) both .2s; }

  [data-chat] .convo-body > .seq-hide { display: none; }
  [data-chat] .convo-body > .seq-show { animation: pop .45s var(--ease) both; }
  [data-chat] .typing { animation: pop .3s var(--ease) both; }
  a.feature .disc, .mega-item .mega-ic { transition: transform .25s var(--ease); }
  a.feature:hover .disc, .mega-item:hover .mega-ic { transform: rotate(-8deg) scale(1.06); }
}
.kpi-a { top: 14px; }
.stage .convo { margin-top: 34px; }
@media (max-width: 560px) { .stage .convo { margin-top: 0; } }
:root[lang="ur-PK"] .mega-item b { line-height: 1.9; }
:root[lang="ur-PK"] .mega-item span span { line-height: 2; }
:root[lang="ur-PK"] .stage .convo { margin-bottom: 84px; }
:root[lang="ur-PK"] .float-kpi b { line-height: 1.6; }
@media (max-width: 560px) { :root[lang="ur-PK"] .stage .convo { margin-bottom: 0; } }
