/* ==========================================================================
   CasaTelecom marketing site
   One stylesheet for every public page. No inline styles are used anywhere,
   so the Content-Security-Policy can stay strict.
   ========================================================================== */

:root {
  --brand: #3b82f6;          /* logo coral */
  --brand-600: #1d4ed8;      /* buttons and links: 4.6:1 on white */
  --brand-700: #1e40af;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;

  /* logo coral: a small secondary accent so the red & black logo belongs to the blue design */
  --accent: #ee4b2f;
  --accent-600: #d8391e;
  --accent-50: #fff4f1;

  --ink: #0f172a;
  --ink-2: #252d36;          /* logo charcoal */
  --text: #3a434f;
  --muted: #677180;
  --line: #e2e7ef;
  --line-2: #edf1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-warm: #edf1f8;

  --dark: #0b1220;
  --dark-2: #111a2b;
  --dark-3: #1a2538;
  --dark-line: #243147;
  --dark-text: #b8bfca;

  --green: #16a34a;
  --green-50: #e9f8ef;
  --blue: #2f6bff;
  --blue-50: #ecf2ff;
  --amber: #d97706;
  --amber-50: #fff6e5;
  --violet: #7a5af8;
  --violet-50: #f2efff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(18, 22, 28, .06), 0 1px 1px rgba(18, 22, 28, .04);
  --shadow: 0 12px 32px -12px rgba(18, 22, 28, .18), 0 2px 6px rgba(18, 22, 28, .05);
  --shadow-lg: 0 40px 80px -24px rgba(18, 22, 28, .28), 0 12px 24px -12px rgba(18, 22, 28, .12);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.035em; font-weight: 750; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.25; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-head { max-width: 760px; margin: 0 0 clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section-dark .section-head p { color: var(--dark-text); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }

/* ---------- text helpers ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 18px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .kicker { color: #93c5fd; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hl { color: var(--brand-600); }
.hl-underline { background: linear-gradient(transparent 62%, var(--brand-100) 62%, var(--brand-100) 92%, transparent 92%); padding: 0 .06em; }
.text-gradient { background: linear-gradient(100deg, #2563eb 10%, #0891b2 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1; border: 1px solid transparent; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--brand-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cbd5e3; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .6); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-600); }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 22, 28, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 158px; height: auto; }
.primary-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: .95rem; font-weight: 550; color: var(--ink-2); background: none; border: 0; transition: background-color .15s ease, color .15s ease; }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current="page"] { background: var(--bg-warm); color: var(--ink); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-item.has-menu:hover .chev, .nav-item.has-menu.open .chev { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.mega { position: absolute; top: calc(100% + 10px); left: -20px; width: min(760px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.mega.mega-3 { grid-template-columns: repeat(3, 1fr); width: min(940px, 92vw); left: -120px; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.has-menu:hover > .mega, .nav-item.has-menu:focus-within > .mega, .nav-item.has-menu.open > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-group { padding: 8px; }
.mega-title { font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; transition: background-color .15s ease; }
.mega a:hover, .mega a:focus-visible { background: var(--bg-soft); }
.mega a strong { display: block; font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega a span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.mi svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b4c0d1; }
.breadcrumbs a:hover { color: var(--brand-600); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 380px at 85% 10%, rgba(59, 130, 246, .13), transparent 70%),
  radial-gradient(520px 340px at 0% 0%, rgba(56, 189, 248, .14), transparent 70%),
  linear-gradient(180deg, #f7f9fd 0%, #fff 70%);
  z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(18, 22, 28, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 22, 28, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 60% 0%, #000 0%, transparent 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-center { text-align: center; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .86rem; font-weight: 550; color: var(--ink-2); margin-bottom: 26px; }
.pill b { background: var(--brand-600); color: #fff; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; font-weight: 650; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .9rem; color: var(--muted); list-style: none; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.hero-visual { position: relative; }

/* ---------- app window mockups ---------- */
.app-window { position: relative; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.app-window.dark { background: var(--dark-2); border-color: var(--dark-line); color: #d6dbe3; }
.aw-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: #fafbfd; }
.dark .aw-bar { background: #0f172a; border-color: var(--dark-line); }
.aw-dots { display: flex; gap: 6px; }
.aw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d8e0ec; }
.aw-dots i:nth-child(1) { background: #ff6159; }
.aw-dots i:nth-child(2) { background: #ffbd2e; }
.aw-dots i:nth-child(3) { background: #28c941; }
.aw-url { flex: 1; max-width: 340px; margin: 0 auto; text-align: center; font-size: 11.5px; color: var(--muted); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dark .aw-url { background: #1b2028; border-color: var(--dark-line); color: #8b94a3; }
.aw-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: 360px; }
.aw-body.no-side { grid-template-columns: minmax(0, 1fr); }
.aw-side { background: #f7f9fc; border-right: 1px solid var(--line-2); padding: 14px 10px; }
.aw-side .aw-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 13px; padding: 2px 8px 14px; }
.aw-side .aw-logo i { width: 22px; height: 22px; border-radius: 7px; background: var(--brand); display: block; }
.aw-nav-title { font-size: 9.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #929daf; padding: 10px 8px 4px; }
.aw-nav a, .aw-nav span { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12px; color: #5b6471; }
.aw-nav .on { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.aw-nav i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .28; flex: none; }
.aw-nav .on i { opacity: .7; }
.aw-main { padding: 18px; min-width: 0; }
.aw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.aw-head h4 { font-family: var(--font-body); font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.dark .aw-head h4 { color: #fff; }
.aw-head .aw-sub { font-size: 11.5px; color: var(--muted); }
.aw-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--brand-600); color: #fff; white-space: nowrap; }
.aw-btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background: #fff; }
.kpi small { display: block; font-size: 10.5px; color: var(--muted); }
.kpi b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--green); }
.kpi em.down { color: var(--brand-600); }
.panel { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 12px; }
.panel + .panel { margin-top: 10px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.panel-title span { font-weight: 500; color: var(--muted); font-size: 11px; }
.chart svg { width: 100%; height: auto; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-variant-numeric: tabular-nums; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-warm); color: var(--ink-2); white-space: nowrap; }
.tag.green { background: var(--green-50); color: #11803b; }
.tag.blue { background: var(--blue-50); color: #2453c9; }
.tag.amber { background: var(--amber-50); color: #a35a00; }
.tag.violet { background: var(--violet-50); color: #5b3fd1; }
.tag.brand { background: var(--brand-50); color: var(--brand-700); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* form-like controls inside mockups */
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.f-row.one { grid-template-columns: 1fr; }
.f-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-field small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.f-input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f-input.select::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #9aa1ab; border-bottom: 1.5px solid #9aa1ab; transform: rotate(45deg) translateY(-2px); flex: none; }
.f-input.area { white-space: normal; line-height: 1.55; align-items: flex-start; min-height: 86px; color: #4a5361; font-size: 11.5px; }
.toggle { width: 30px; height: 17px; border-radius: 999px; background: #d9d3cd; position: relative; flex: none; display: inline-block; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle.on { background: var(--green); }
.toggle.on::after { left: 15px; }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 6px; font-size: 12px; }
.tool-row .t-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); min-width: 0; }
.tool-row .t-name em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.ico-gcal { background: #4285f4; }
.ico-sheets { background: #0f9d58; }
.ico-supa { background: #1f9e6e; }
.ico-noco { background: #6b4ce6; }
.ico-mysql { background: #00758f; }
.ico-api { background: var(--ink-2); }
.ico-cal { background: var(--brand); }
.ico-mail { background: #0e7490; }
.ico-hub { background: #ff7a59; }
.ico-air { background: #2d7ff9; }
.ico-wp { background: #21759b; }

/* transcript */
.transcript { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.msg small { display: block; font-size: 9.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: 2px; }
.msg.caller { background: var(--bg-warm); color: var(--ink-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.agent { background: var(--ink-2); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.dark .msg.caller { background: #252b35; color: #e6e9ee; }
.dark .msg.agent { background: var(--brand-600); }
.msg-tool { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: #5b3fd1; background: var(--violet-50); border: 1px dashed #c9bdfd; padding: 4px 10px; border-radius: 999px; }
.dark .msg-tool { background: rgba(122, 90, 248, .14); border-color: rgba(122, 90, 248, .45); color: #c7b9ff; }
.msg-tool.ok { color: #11803b; background: var(--green-50); border-color: #a7e3bd; }
.dark .msg-tool.ok { background: rgba(22, 163, 74, .14); border-color: rgba(22, 163, 74, .4); color: #8be0ad; }

/* call flow canvas */
.flow-canvas { position: relative; background-color: #f8fafd; background-image: radial-gradient(#d6dfeb 1px, transparent 1px); background-size: 16px 16px; border-radius: 12px; border: 1px solid var(--line-2); padding: 18px 12px; overflow: hidden; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-cols { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: center; }
.flow-col { display: flex; flex-direction: column; gap: 12px; }
.node { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; box-shadow: var(--shadow-sm); font-size: 11.5px; min-width: 0; }
.node b { display: block; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node span { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .n-type { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.node.n-number { border-left: 3px solid var(--blue); } .node.n-number .n-type { color: var(--blue); }
.node.n-ai { border-left: 3px solid var(--brand); background: linear-gradient(180deg, #fff, var(--brand-50)); } .node.n-ai .n-type { color: var(--brand-600); }
.node.n-ivr { border-left: 3px solid var(--violet); } .node.n-ivr .n-type { color: var(--violet); }
.node.n-rg { border-left: 3px solid var(--green); } .node.n-rg .n-type { color: var(--green); }
.node.n-queue { border-left: 3px solid var(--amber); } .node.n-queue .n-type { color: var(--amber); }
.node.n-conf { border-left: 3px solid #0891b2; } .node.n-conf .n-type { color: #0891b2; }
.node.n-ext { border-left: 3px solid var(--ink-2); } .node.n-ext .n-type { color: var(--ink-2); }
.node.n-msg { border-left: 3px solid #db2777; } .node.n-msg .n-type { color: #db2777; }

/* calendar mock */
.cal { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; font-size: 10.5px; }
.cal > div { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-height: 34px; padding: 3px; position: relative; }
.cal .ch { font-weight: 650; text-align: center; color: var(--ink-2); background: #f7f9fc; min-height: 0; padding: 6px 2px; }
.cal .ct { color: #939eb0; font-size: 9.5px; text-align: right; padding-right: 5px; }
.ev { display: block; border-radius: 6px; padding: 3px 5px; font-size: 9.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.a { background: var(--brand-50); color: var(--brand-700); border-left: 2px solid var(--brand); }
.ev.b { background: var(--blue-50); color: #2453c9; border-left: 2px solid var(--blue); }
.ev.c { background: var(--green-50); color: #11803b; border-left: 2px solid var(--green); }
.ev.d { background: var(--violet-50); color: #5b3fd1; border-left: 2px solid var(--violet); }
.ev i { font-style: normal; font-weight: 500; opacity: .8; }

/* dialer / webphone */
.phone-mock { width: 270px; background: var(--dark-2); color: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--dark-line); }
.phone-mock .pm-top { display: flex; justify-content: space-between; font-size: 11px; color: #8b94a3; margin-bottom: 14px; }
.phone-mock .pm-num { font-size: 22px; font-weight: 650; letter-spacing: .02em; text-align: center; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.phone-mock .pm-sub { text-align: center; font-size: 11px; color: #8b94a3; margin-bottom: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad span { height: 46px; border-radius: 50%; background: #262c36; display: grid; place-items: center; font-size: 17px; font-weight: 600; width: 46px; margin: 0 auto; }
.pm-call { margin: 14px auto 0; width: 54px; height: 54px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.pm-call svg { width: 22px; height: 22px; color: #fff; }

/* waveform */
.wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.wave i { width: 3px; border-radius: 3px; background: var(--brand); opacity: .85; height: 30%; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 45%; } .wave i:nth-child(5n) { height: 90%; } .wave i:nth-child(7n) { height: 55%; } .wave i:nth-child(2n+1) { height: 38%; } .wave i:nth-child(11n) { height: 100%; }
.wave.muted i { background: #c9c1b9; }
.audio-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 6px; }
.play { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; }
.play::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.audio-row b { display: block; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-row span { display: block; font-size: 10.5px; color: var(--muted); }

/* floating cards around mockups */
.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 12.5px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); z-index: 3; }
.float-card b { display: block; color: var(--ink); font-size: 13px; }
.float-card span { display: block; color: var(--muted); font-size: 11.5px; }
.float-card .fc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .fc-ico svg { width: 17px; height: 17px; }
.fc-green { background: var(--green-50); color: var(--green); }
.fc-brand { background: var(--brand-50); color: var(--brand-600); }
.fc-blue { background: var(--blue-50); color: var(--blue); }
.fc-violet { background: var(--violet-50); color: var(--violet); }
.fc-tl { top: -18px; left: -26px; }
.fc-tr { top: 22px; right: -22px; }
.fc-bl { bottom: 28px; left: -30px; }
.fc-br { bottom: -18px; right: 24px; }
.float-anim { animation: floaty 6s ease-in-out infinite; }
.float-anim.delay { animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* visual frame for mockups in content sections */
.shot { position: relative; padding: clamp(14px, 2.4vw, 28px); border-radius: var(--radius-xl); background: linear-gradient(135deg, #eaf2ff 0%, #f6faf8 45%, #eef6ff 100%); border: 1px solid var(--line-2); }
.shot.dark { background: radial-gradient(500px 300px at 80% 0%, rgba(59, 130, 246, .25), transparent 70%), linear-gradient(160deg, #162033, #0b1220); border-color: var(--dark-line); }
.shot .app-window { box-shadow: var(--shadow); }
.shot-caption { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.card p + .link-arrow, .card p + p { margin-top: 14px; }
a.card:hover, .card.hoverable:hover { border-color: #ced8e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card-icon.ink { background: var(--ink-2); color: #fff; }
.card-icon.blue { background: var(--blue-50); color: var(--blue); }
.card-icon.green { background: var(--green-50); color: var(--green); }
.card-icon.violet { background: var(--violet-50); color: var(--violet); }
.card-icon.amber { background: var(--amber-50); color: var(--amber); }
.card .link-arrow { margin-top: 16px; font-size: .95rem; }
.card-link-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.section-dark .card { background: var(--dark-2); border-color: var(--dark-line); }
.section-dark .card p { color: var(--dark-text); }
.section-dark .card-icon { background: rgba(59, 130, 246, .14); color: #93c5fd; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 4; }
.bento .b-half { grid-column: span 3; }
.bento .b-full { grid-column: span 6; }
.bento-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .2s ease, box-shadow .2s ease; }
.bento-card:hover { border-color: #ced8e6; box-shadow: var(--shadow); }
.bento-card p { color: var(--muted); font-size: .98rem; }
.bento-card .bento-visual { margin-top: auto; padding-top: 20px; }
.bento-card.tint { background: linear-gradient(160deg, var(--brand-50), #fff 60%); }
.bento-card.ink { background: var(--dark-2); border-color: var(--dark-line); color: var(--dark-text); }
.bento-card.ink h3 { color: #fff; }
.bento-card.ink p { color: var(--dark-text); }

/* feature list */
.feature-list { list-style: none; display: grid; gap: 14px; margin: 26px 0 30px; }
.feature-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.feature-list .fl-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin-top: 1px; }
.feature-list .fl-ico svg { width: 15px; height: 15px; }
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); font-size: .97rem; }
.section-dark .feature-list .fl-ico { background: rgba(59, 130, 246, .16); color: #93c5fd; }
.section-dark .feature-list span { color: var(--dark-text); }
.check-list { list-style: none; display: grid; gap: 10px; margin: 20px 0 28px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.check-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--brand-600); margin-bottom: 18px; letter-spacing: .02em; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
.section-dark .step { background: var(--dark-2); border-color: var(--dark-line); }
.section-dark .step p { color: var(--dark-text); }
.section-dark .step::before { color: #93c5fd; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .95rem; }
.section-dark .stats { background: transparent; border-color: var(--dark-line); }
.section-dark .stat { border-color: var(--dark-line); }
.section-dark .stat b { color: #fff; }

/* logos / integrations strip */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logo-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: border-color .2s ease, transform .2s ease; }
a.logo-chip:hover { border-color: #c8d3e2; transform: translateY(-1px); }
.logo-chip .app-ico { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }
.strip-label { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }

/* product tour tabs */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tour-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: all .18s ease; }
.tour-tab:hover { border-color: #c8d3e2; }
.tour-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tour-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.tour-panel p { color: var(--muted); }

/* use cases */
.usecase { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.usecase .uc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.usecase h3 { font-size: 1.1rem; margin: 0; }
.usecase p { color: var(--muted); font-size: .96rem; margin: 0 0 14px; }
.usecase .uc-quote { font-size: .9rem; color: var(--ink-2); background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; border-left: 3px solid var(--brand); margin: 0; }

/* comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; font-size: .97rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg-soft); font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #ced8e6; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; color: var(--ink); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg-warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252d36' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-xl); background: var(--dark); color: var(--dark-text); padding: clamp(40px, 6vw, 72px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 65%); }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 560px; }

/* notes / callouts */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-size: .96rem; }
.note svg { width: 20px; height: 20px; flex: none; color: var(--brand-600); margin-top: 3px; }
.note p { margin: 0; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .opt { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d2dbe7; border-radius: 12px; background: #fff; padding: 13px 14px; font-size: 1rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23677180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bec9da; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 130, 246, .14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.field-error { display: block; min-height: 0; font-size: .84rem; color: #b91c1c; margin-top: 6px; }
.field-error:empty { display: none; }
.field-hint { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.checkbox { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .92rem; color: var(--text); }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-600); }
.checkbox a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-footer .small { margin: 0; color: var(--muted); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { display: none; gap: 12px; padding: 16px 18px; border-radius: 14px; margin-bottom: 22px; font-size: .96rem; align-items: flex-start; }
.form-alert.show { display: flex; }
.form-alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-alert.ok { background: var(--green-50); color: #0f6b32; border: 1px solid #b9e8ca; }
.form-alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-alert p { margin: 0; }
.form-alert strong { color: inherit; }
.contact-aside { display: grid; gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.contact-card h3 { font-size: 1.08rem; margin-bottom: 12px; }
.contact-line { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; }
.contact-line .ci { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; }
.contact-line .ci svg { width: 18px; height: 18px; }
.contact-line small { display: block; color: var(--muted); font-size: .8rem; }
.contact-line a, .contact-line span { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-line a:hover { color: var(--brand-600); }

/* ---------- prose (terms) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 2.2em 0 .6em; padding-top: .4em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; font-size: .9rem; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.toc h2 { font-size: .78rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.toc a:hover { background: var(--bg-soft); color: var(--brand-600); }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; margin-bottom: 18px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: clamp(56px, 8vw, 88px) 0 32px; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-brand .f-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.footer-brand .f-logo img { width: 140px; }
.footer-brand p { max-width: 320px; }
.footer-col h3 { font-family: var(--font-body); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 650; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--dark-text); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 8px; margin-top: 18px; font-size: .9rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .85rem; color: #8790a0; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .fc-tl, .fc-bl { left: -8px; }
  .fc-tr { right: -8px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px var(--gutter) 32px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; border-top: 1px solid var(--line); }
  .nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-2); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 1.05rem; }
  .nav-link:hover, .nav-item:focus-within > .nav-link { background: none; }
  .mega, .mega.mega-3 { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; grid-template-columns: 1fr; }
  .nav-item.has-menu.open > .mega { display: grid; }
  .nav-item.has-menu:hover > .mega { display: none; }
  .nav-item.has-menu.open:hover > .mega { display: grid; }
  .mega-group { padding: 0; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .nav-cta .btn { width: 100%; min-height: 52px; }
  .hero-grid, .split, .tour-panel, .faq-layout, .contact-grid, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .toc { position: static; max-height: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *, .bento .b-wide, .bento .b-half { grid-column: span 3; }
  .bento .b-full { grid-column: span 6; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .steps, .steps.three, .check-list.two { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento .b-wide, .bento .b-half, .bento .b-full { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .section-dark .stat { border-color: var(--dark-line); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .aw-body { grid-template-columns: minmax(0, 1fr); }
  .aw-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .float-card { display: none; }
  .flow-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-svg { display: none; }
  .tour-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { flex: none; }
  .actions .btn { flex: 1 1 auto; }
  .hide-sm { display: none !important; }
  .f-row, .f-row.three { grid-template-columns: minmax(0, 1fr); }
  .tbl .hide-sm-col { display: none; }
  .cal { grid-template-columns: 30px repeat(3, minmax(0, 1fr)); }
  .cal .hide-sm { display: none; }
  .phone-mock { width: 100%; max-width: 280px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .brand img { width: 140px; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   App screenshots: match the real customer app (one blue accent, dark active menu)
   ========================================================================== */
.app-window { --app: #2563eb; --app-50: rgba(37, 99, 235, .1); --app-ink: #1f2331; }
.app-window .aw-btn { background: var(--app); }
.app-window .aw-btn.ghost { background: #fff; color: var(--ink-2); }
.app-window .aw-nav .on { background: linear-gradient(135deg, #1f2937, #374151); color: #fff; }
.app-window .aw-nav .on i { opacity: .9; background: #fff; }
.app-window .msg.agent { background: var(--app); }
.app-window.dark .msg.agent { background: var(--app); }
.app-window .toggle.on { background: var(--app); }
.app-window .f-input.focus { border-color: var(--app); box-shadow: 0 0 0 3px var(--app-50); }
.aw-steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.aw-steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 5px 10px 5px 5px; border-radius: 999px; background: #f6f7fb; }
.aw-steps span b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: #e3e6ee; color: #4b5163; }
.aw-steps span.done b { background: #16864a; color: #fff; }
.aw-steps span.on { color: var(--app-ink); background: var(--app-50); }
.aw-steps span.on b { background: var(--app); color: #fff; }
.aw-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; overflow: hidden; }
.aw-tabs span { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-bottom: 2px solid transparent; white-space: nowrap; }
.aw-tabs span.on { color: var(--app); border-color: var(--app); }
.code-block { margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 1.55; background: #0f172a; color: #c9f2d9; border-radius: 10px; padding: 10px 12px; white-space: pre; overflow: hidden; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted); background: #fff; display: flex; align-items: center; gap: 8px; }
.tile b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.tile .ti { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #f6f7fb; color: var(--app, #2563eb); flex: none; }
.tile .ti svg { width: 14px; height: 14px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tpl { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; background: #fff; font-size: 11px; color: var(--muted); line-height: 1.4; min-width: 0; }
.tpl b { display: block; font-size: 12px; color: var(--ink); margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl .tpl-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--app-50, #e8f0fe); color: var(--app, #2563eb); }
.tpl .tpl-ico svg { width: 14px; height: 14px; }
.tpl.sel { border-color: var(--app, #2563eb); box-shadow: 0 0 0 3px var(--app-50, rgba(37, 99, 235, .1)); }
.tpl .tag { margin-top: 6px; }
.dest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dest { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; font-size: 11px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; background: #fff; white-space: nowrap; overflow: hidden; }
.dest svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.dest.on { border-color: var(--app, #2563eb); background: var(--app-50, #e8f0fe); color: var(--app-ink, #1f2331); }
.dest.on svg { color: var(--app, #2563eb); }
.flowstrip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.flowstrip .fs { font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: #f6f7fb; color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.flowstrip .fs.ok { background: var(--green-50); color: #11803b; border-color: #c4ead3; }
.flowstrip .fs.ai { background: var(--app-50, #e8f0fe); color: var(--app, #2563eb); border-color: rgba(37, 99, 235, .25); }
.flowstrip .arr { color: #a5b0c2; font-size: 11px; }
.dark .flowstrip .fs { background: #232934; border-color: var(--dark-line); color: #d6dbe3; }
.dark .flowstrip .fs.ok { background: rgba(22, 163, 74, .14); color: #8be0ad; border-color: rgba(22, 163, 74, .35); }
.dark .flowstrip .fs.ai { background: rgba(37, 99, 235, .2); color: #9cc8f0; border-color: rgba(37, 99, 235, .4); }
.meter { height: 6px; border-radius: 6px; background: #eef0f5; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--app, #2563eb); border-radius: 6px; width: 60%; }
.meter.m3 i { width: 60%; } .meter.m4 i { width: 80%; } .meter.m2 i { width: 40%; }
.rec { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed #f3b4a7; background: #fff8f6; margin-bottom: 10px; }
.rec .rec-dot { width: 30px; height: 30px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 5px rgba(229, 72, 77, .15); flex: none; }
.rec b { font-size: 12px; color: var(--ink); display: block; }
.rec span { font-size: 10.5px; color: var(--muted); }
.rec .wave { flex: 1; }
.voice-list .tool-row.sel { border-color: var(--app, #2563eb); background: var(--app-50, #e8f0fe); }
.qcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.qcards div { text-align: center; border-radius: 10px; padding: 8px 4px; background: #f6f7fb; font-size: 10.5px; color: var(--muted); }
.qcards b { display: block; font-size: 17px; color: var(--ink); }
.qcards .w { background: var(--amber-50); } .qcards .w b { color: #a35a00; }
.qcards .t { background: var(--green-50); } .qcards .t b { color: #11803b; }
@media (max-width: 760px) {
  .tiles, .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-grid, .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.msg-tool svg { width: 12px; height: 12px; flex: none; }
.app-ico svg { width: 13px; height: 13px; }
.aw-head h4 .live-dot { vertical-align: middle; }
/* screenshots adapt to the space they get, like the real app's collapsible menu */
.app-window { container-type: inline-size; container-name: aw; }
.aw-body { grid-template-columns: 156px minmax(0, 1fr); }
.tool-row .t-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tool-row .t-name .app-ico, .tool-row .t-name .play { display: inline-grid; vertical-align: middle; margin-right: 8px; }
.tool-row > :last-child { flex: none; }
@container aw (max-width: 640px) {
  .aw-body { grid-template-columns: 46px minmax(0, 1fr); }
  .aw-side { padding: 12px 6px; }
  .aw-side .aw-logo { font-size: 0; padding: 0 0 10px; justify-content: center; }
  .aw-nav-title { font-size: 0; padding: 4px 0; border-top: 1px solid var(--line-2); margin-top: 4px; }
  .aw-nav span { font-size: 0; justify-content: center; padding: 7px 0; gap: 0; }
  .aw-main { padding: 14px; }
}
@container aw (max-width: 440px) {
  .aw-body { grid-template-columns: minmax(0, 1fr); }
  .aw-side { display: none; }
  .kpis, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .f-row.three { grid-template-columns: minmax(0, 1fr); }
}
/* the menu never makes a screenshot taller than its content */
.aw-side { position: relative; padding: 0; }
.aw-side-in { position: absolute; inset: 0; padding: 14px 10px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.aw-body { min-height: 300px; }
@container aw (max-width: 640px) { .aw-side-in { padding: 12px 6px; } }
.group-title { font-size: 1.15rem; margin: 44px 0 16px; }
.group-title:first-of-type { margin-top: 0; }
.flags { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; list-style: none; }
.flags li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.flags img { width: 26px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); flex: none; }
@media (max-width: 1024px) { .flags { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.actions.centered { justify-content: center; }
ul.logo-strip { list-style: none; padding: 0; }
.h3-size { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-bottom: 6px; }
.uc-head .app-ico { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.kicker .app-ico { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.hero-grid .hero-copy h1 { font-size: clamp(2.3rem, 4.1vw, 3.6rem); }
.hero-center h1 { max-width: 920px; margin-left: auto; margin-right: auto; }
.tour-tab svg { width: 16px; height: 16px; flex: none; }
.logo-chip .mi { width: 30px; height: 30px; border-radius: 50%; }
.logo-chip .mi svg { width: 16px; height: 16px; }
.uc-head .card-icon { margin: 0; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.usecase p:last-child { margin-bottom: 0; }
/* backdrop-filter would trap the fixed mobile menu inside the header box */
@media (max-width: 1024px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
  .nav-open .site-header { background: #fff; }
  .primary-nav { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
}
.nav-link .chev { flex: none; }
.f-input.area { display: block; }
.aw-head > div:last-child { display: flex; gap: 6px; align-items: center; flex: none; }
.aw-head > div:first-child { min-width: 0; }
@container aw (max-width: 440px) { .tbl td { white-space: normal; } .aw-head { flex-wrap: wrap; } }
.hero + .section-tight { padding-top: 0; }
.notfound .lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Logo accent: coral from the CasaTelecom logo, used sparingly next to blue
   ========================================================================== */
.kicker::before { background: var(--accent); width: 22px; }
.pill b { background: var(--accent-600); }
.hero::before { background:
  radial-gradient(620px 380px at 88% 8%, rgba(59, 130, 246, .16), transparent 70%),
  radial-gradient(420px 300px at 62% 92%, rgba(238, 75, 47, .07), transparent 70%),
  radial-gradient(520px 340px at 0% 0%, rgba(56, 189, 248, .12), transparent 70%),
  linear-gradient(180deg, #f7f9fd 0%, #fff 70%); }
.aw-side .aw-logo i { background: var(--accent); }
.cta-band { background:
  radial-gradient(420px 280px at 0% 110%, rgba(238, 75, 47, .22), transparent 70%),
  var(--dark); }
.footer-brand .f-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 30px -12px rgba(238, 75, 47, .45); }
.step::before { background: linear-gradient(90deg, var(--brand-600), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-dark .step::before { background: linear-gradient(90deg, #93c5fd, #ff8a73); -webkit-background-clip: text; background-clip: text; }
.notfound .code { background: linear-gradient(100deg, var(--brand-600) 20%, var(--accent) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-rule { height: 3px; background: linear-gradient(90deg, var(--brand-600) 0 70%, var(--accent) 70% 100%); }
.brand-rule { position: absolute; top: 0; left: 0; right: 0; }
