/* =====================================================================
   BCS Platform landing page v2
   Load with: @vite(['resources/css/landing-v2.css', 'resources/js/landing-v2.js'])
   Fonts (in <head>): Funnel Display 500/600/700 + Funnel Sans 400/500/600
   ===================================================================== */

/* ---------- 1. Design tokens ---------------------------------------- */
:root {
  /* Colour: evolved from the current #2563eb brand blue */
  --ink: #0e1b2e;          /* headings, body text, dark bands */
  --ink-2: #34425c;        /* secondary text */
  --muted: #5d6b85;        /* captions, meta */
  --paper: #ffffff;
  --mist: #f3f6fb;         /* alternate section background */
  --line: #dfe5ef;         /* hairlines, borders */
  --relay: #2457f5;        /* brand blue: buttons, links, focus */
  --relay-deep: #1a3fc0;   /* hover / pressed */
  --relay-tint: #e7eeff;   /* tints behind brand elements */
  --signal: #ffb547;       /* "line is live" amber. Live status only */
  --signal-ink: #6b4100;
  --ok: #17905f;           /* resolved / booked */
  --ok-tint: #e3f5ec;

  /* Type */
  --font-display: "Funnel Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;                                   /* 14px captions */
  --step-0: 1.0625rem;                                   /* 17px body */
  --step-1: 1.25rem;                                     /* 20px lead */
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);    /* card titles */
  --step-3: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);       /* section titles */
  --step-4: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem);      /* hero: 36px on phones, 72px max */

  /* Shape and space */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 9vw, 136px);
  --shadow-panel: 0 1px 0 rgba(14, 27, 46, 0.04), 0 24px 60px -24px rgba(14, 27, 46, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body.v2 {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.v2) :is(img, svg) { display: block; max-width: 100%; }
:where(.v2) a { color: var(--relay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.v2) :is(h1, h2, h3) {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
:where(.v2) h2 { font-size: var(--step-3); font-weight: 600; line-height: 1.06; letter-spacing: -0.022em; }
:where(.v2) h3 { font-size: var(--step-2); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
:where(.v2) p { margin: 0; text-wrap: pretty; }
.v2 :focus-visible { outline: 3px solid var(--relay); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.band { padding-block: var(--section-y); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: #dbe3f2; }
.band--ink h2, .band--ink h3 { color: #fff; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.band--ink .lede { color: #b9c5da; }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
/* A section head with its image: the heading and intro on the left, the image on the right, as the integrations
   section splits (one column on small screens, the image under the text) */
.head-media { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.head-media .head { margin-bottom: 0; }
.shot { width: 100%; height: auto; }
/* Pictures beside a heading, in rows or after the cards show at 2 : 1. Their 1200 × 800 files are transparent along the
   top and bottom, and that strip would add to the section's spacing; the drawing, in the middle, keeps its size. */
.head-media .shot, .rows__item > .shot, .shot--after { aspect-ratio: 2 / 1; object-fit: cover; }
/* A mirrored row under the section head: the picture on the left, its title and text on the right */
.head-media--mirror { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.head-media--mirror > .shot { order: -1; }
/* A picture after a section's cards, centered */
.shot--after { max-width: 720px; margin: clamp(40px, 5vw, 64px) auto 0; }

/* ---------- 3. Buttons --------------------------------------------- */
.btn {
  --btn-bg: var(--relay); --btn-fg: #fff; --btn-bd: var(--relay);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--font-text);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { --btn-bg: var(--relay-deep); --btn-bd: var(--relay-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bg: var(--mist); --btn-bd: #c7d0df; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--relay-tint); --btn-bd: var(--relay-tint); }
.btn--on-ink { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.32); }
.btn--on-ink:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- 4. Announcement + header ------------------------------ */
.announce {
  background: var(--ink); color: #dbe3f2; font-size: var(--step--1);
}
.announce .wrap { display: flex; justify-content: center; gap: 12px; padding-block: 10px; text-align: center; }
.announce a { color: #fff; font-weight: 600; }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(14,27,46,.35); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink) !important; text-decoration: none; font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--relay); color: #fff; font-size: 1.05rem; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-pill);
  font: 500 .98rem/1 var(--font-text); color: var(--ink-2); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--ink); background: var(--mist); }
.nav__trigger svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: -12px;
  min-width: 340px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-panel);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s .16s;
}
.nav__item.is-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu a:hover { background: var(--mist); }
.menu a strong { font-weight: 600; font-size: .98rem; }
.menu a span { font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.menu--cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 420px; gap: 0 4px; }
.menu--cols a { padding: 9px 12px; font-size: .95rem; }
.menu--cols .menu__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--relay); border-radius: 0 0 10px 10px; }

.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-actions .login { color: var(--ink); font-weight: 500; text-decoration: none; padding: 10px 14px; border-radius: var(--r-pill); }
.head-actions .login:hover { background: var(--mist); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; margin: auto; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s var(--ease), background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Hero ------------------------------------------------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before { /* soft relay-blue field behind the conversation */
  content: ""; position: absolute; inset: 0 0 0 46%;
  background: radial-gradient(60% 55% at 60% 45%, var(--relay-tint), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__kicker { font-weight: 600; color: var(--relay); margin-bottom: 18px; }
.hero h1 {
  font-size: var(--step-4); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero__sub { margin-top: 28px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 31em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: var(--step--1); color: var(--muted); }

/* The relay: one conversation, answered and handed over */
.relay {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
  padding: 22px;
}
.relay__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.relay__who { display: flex; align-items: center; gap: 12px; }
.relay__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); font: 600 .9rem/1 var(--font-display); color: var(--ink-2); }
.relay__name { font-weight: 600; line-height: 1.25; }
.relay__meta { font-size: var(--step--1); color: var(--muted); }
.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: #fff4e0; color: var(--signal-ink); font-size: .8125rem; font-weight: 600; white-space: nowrap; flex: none;
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,181,71,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,181,71,.65); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,181,71,0); } }

.relay__thread { display: grid; gap: 10px; padding: 18px 0; }
.say { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .96rem; line-height: 1.45; }
.say small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.say--ai { background: var(--relay-tint); border-bottom-left-radius: 6px; }
.say--ai small { color: var(--relay-deep); }
.say--caller { justify-self: end; background: var(--mist); border-bottom-right-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: var(--relay-tint); border-radius: 18px; border-bottom-left-radius: 6px; width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--relay); opacity: .4; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }

.relay__done { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-sm); font-size: .84rem; font-weight: 600; }
.tag--ok { background: var(--ok-tint); color: #0d6a45; }
.tag--ok::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.4 11.2 3.2 8l-1 1 4.2 4.2 8-8-1-1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.4 11.2 3.2 8l-1 1 4.2 4.2 8-8-1-1z'/%3E%3C/svg%3E") center/contain no-repeat; }

.handover {
  margin-top: 16px; padding: 16px; border-radius: var(--r-md);
  background: var(--ink); color: #dbe3f2;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
}
.handover .relay__avatar { background: #22324d; color: #fff; grid-row: span 2; }
.handover strong { color: #fff; font-weight: 600; }
.handover p { font-size: .9rem; line-height: 1.45; color: #b9c5da; }

.relay__channels { display: flex; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.relay__channels span { padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.relay__channels .is-on { border-color: #ffd28f; background: #fff7ea; color: var(--signal-ink); font-weight: 600; }
.relay__caption { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: right; }

/* The showcase's Chat and Call tabs, in the channel chips' look */
.relay__tabs { display: flex; gap: 6px; margin-bottom: 16px; font-size: .82rem; }
.relay__tab { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font: inherit; color: var(--muted); cursor: pointer; }
.relay__tab:hover { background: var(--mist); }
.relay__tab[aria-selected="true"] { border-color: #ffd28f; background: #fff7ea; color: var(--signal-ink); font-weight: 600; }
/* Chat and Call share one cell, so the card keeps the taller one's height and nothing beside it moves; the hidden one
   keeps its place unseen, and the one shown slides in (the reduced-motion rules stop the slide) */
.relay:has(.relay__panels) { overflow: hidden; }
.relay__panels { display: grid; }
.relay__panels > [role="tabpanel"] { grid-area: 1 / 1; min-width: 0; }
.relay__panels > [role="tabpanel"][hidden] { display: block; visibility: hidden; }
.relay__panels > [role="tabpanel"]:not([hidden]) { animation: relay-slide .5s var(--ease); }
@keyframes relay-slide { from { opacity: 0; transform: translateX(28px); } }

/* The call flow: the call, who answers it, and the business it goes to */
.lanes { display: grid; gap: 12px; padding-top: 18px; }
.lane { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.lane small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.lane__path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lane__node { padding: 7px 12px; border-radius: var(--r-sm); background: var(--mist); color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.lane__node--ai { background: var(--relay-tint); color: var(--relay-deep); }
.lane__node--agent { background: #fff4e0; color: var(--signal-ink); }
.lane__node--biz { background: var(--ok-tint); color: #0d6a45; }
.lane__to { font-size: .8rem; color: var(--muted); }
.lane p { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }

/* Load sequence: JS adds .is-playing, then .is-in on each step */
.relay.is-playing [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.relay.is-playing [data-step].is-in { opacity: 1; transform: none; }
.relay .typing { display: none; }
.relay.is-playing .typing.is-in { display: inline-flex; }
.relay.is-playing .typing.is-out { display: none; }

/* The hero animation (#Res/landing/bcs-hero-lottie; landing/hero-animation, landing.js §9), beside the hero's text in the
   usual two columns: the portrait (mobile) file in the column, at most 380 px wide (480 px once the hero stacks), with
   Full view and the pause button under it. Full view opens the desktop file in the overlay. The animation draws its own
   blue field, so the hero's is off. The poster shows until the animation plays. */
.hero--anim::before { content: none; }
.hero-anim { justify-self: center; width: min(100%, 380px); }
.hero-anim__box { position: relative; display: block; width: 100%; aspect-ratio: 480 / 900; cursor: zoom-in; }
.hero-anim__poster, .hero-anim__stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-anim__poster { object-fit: contain; }
.hero-anim.is-loaded .hero-anim__poster { display: none; }
.hero-anim__controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hero-anim__controls button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  font: 600 .875rem/1 var(--font-text); color: var(--ink-2); cursor: pointer;
}
.hero-anim__controls button[hidden] { display: none; }
.hero-anim__controls button:hover { background: var(--mist); }
.hero-anim__controls button:focus-visible { outline: 3px solid var(--relay); outline-offset: 3px; }
.hero-anim__controls svg { width: 16px; height: 16px; }
.hero-anim__icon-play, .hero-anim__pause[aria-pressed="true"] .hero-anim__icon-pause { display: none; }
.hero-anim__pause[aria-pressed="true"] .hero-anim__icon-play { display: block; }
@media (max-width: 860px) {
  .hero-anim { width: min(100%, 480px); }
}
@media (max-width: 700px) {
  .hero-anim__box { cursor: default; }
  .hero-anim__controls .hero-anim__full { display: none; } /* Full view opens from 701 px */
}

/* The Full view overlay (Home's previous one): the desktop file at 4:3, growing out of the card */
.hero-modal {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
.hero-modal::backdrop { background: rgba(14, 27, 46, .62); backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s ease; }
.hero-modal.is-open::backdrop { opacity: 1; }
.hero-modal__stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 3vh 3vw; box-sizing: border-box; }
.hero-modal__panel {
  position: relative; transform-origin: top left;
  width: min(1200px, 94vw, calc((94vh - 20px) * 4 / 3));
  aspect-ratio: 4 / 3;
  background: #fff; border-radius: 24px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.hero-modal__anim { position: absolute; inset: 0; background: center / contain no-repeat; }
.hero-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line, #dfe5ef); color: var(--ink, #0e1b2e);
  cursor: pointer; box-shadow: 0 6px 18px -8px rgba(14, 27, 46, .4);
}
.hero-modal__close svg { width: 18px; height: 18px; }
.hero-modal__close:focus-visible { outline: 3px solid var(--relay, #2457f5); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero-modal::backdrop { transition: none; }
}

/* ---------- 6. Proof strip ----------------------------------------- */
.proof { border-block: 1px solid var(--line); background: #fff; }
.proof .wrap { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; padding-block: 28px; }
.proof p { font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.proof p:only-child { grid-column: 1 / -1; } /* the line alone, until there are logos beside it */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-slot {
  display: grid; place-items: center; height: 48px; border-radius: 10px;
  border: 1.5px dashed #c9d2e1; color: #8a97ad; font-size: .78rem; font-weight: 500;
}
/* When real logos arrive: <img class="logo" src="..." alt="Customer name"> */
.logos .logo { height: 32px; width: auto; margin: auto; filter: grayscale(1); opacity: .7; }

/* ---------- 7. Channel tour (tabs) --------------------------------- */
.tour { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tour__tabs { display: grid; gap: 6px; }
.tour__tab {
  display: grid; gap: 4px; text-align: left; width: 100%;
  padding: 18px 20px; border-radius: var(--r-md);
  background: transparent; border: 1px solid transparent; cursor: pointer;
  font: inherit; color: var(--ink-2);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.tour__tab strong { font: 600 1.15rem/1.25 var(--font-display); color: var(--ink); }
.tour__tab span { font-size: .95rem; line-height: 1.5; }
.tour__tab:hover { background: #fff; }
.tour__tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: inset 3px 0 0 var(--relay); }
.tour__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: 24px; min-height: 380px; }
.tour__panel[hidden] { display: none; }
.hero .tour__panel { min-height: 0; } /* a detail page's hero card: as tall as its content, like the relay */
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.panel-bar b { color: var(--ink); font-weight: 600; font-size: 1rem; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.row__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--relay-tint); color: var(--relay-deep); }
.row__ico svg { width: 18px; height: 18px; }
.row__ico i { font-size: 1rem; }
.row b { display: block; font-weight: 600; font-size: .96rem; }
.row small { color: var(--muted); font-size: .84rem; }
.chip { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.chip--ok { background: var(--ok-tint); color: #0d6a45; }
.chip--warn { background: #fff4e0; color: var(--signal-ink); }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; margin: 6px 0 18px; }
.wave i { width: 4px; border-radius: 2px; background: var(--relay); opacity: .75; }
.mail { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; font-size: .95rem; }
.mail--draft { background: var(--mist); border-style: dashed; }
.mail small { color: var(--muted); }

/* ---------- 8. Hand-off flow --------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 0; align-items: stretch; margin-top: 8px; }
.flow__step { position: relative; padding: 0 28px 0 0; }
.flow__dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--relay); color: var(--relay); font: 600 1rem/1 var(--font-display); position: relative; z-index: 1; }
.flow__step::before { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1.5px; background: var(--relay); opacity: .35; }
.flow__step h3 { margin-top: 20px; font-size: 1.25rem; }
.flow__step p { margin-top: 8px; color: var(--ink-2); font-size: .98rem; max-width: 24ch; }
.flow__ends { display: grid; gap: 12px; align-content: start; }
.end { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.end b { font: 600 1.05rem/1.3 var(--font-display); }
.end p { margin-top: 4px; font-size: .92rem; color: var(--ink-2); }
.end--ok { border-color: #bfe6d2; background: #f4fbf7; }
.end--person { border-color: #ffd9a0; background: #fffaf1; }
.can { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.can p { color: var(--ink-2); }
.can b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- 9. Marketplace (dark band) ----------------------------- */
.bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.rings { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(185,197,218,.28); display: grid; place-items: start center; }
.ring:nth-child(1) { inset: 0; }
.ring:nth-child(2) { inset: 16%; border-color: rgba(185,197,218,.4); }
.ring:nth-child(3) { inset: 33%; background: var(--relay); border: 0; place-items: center; }
.ring__label { margin-top: 14px; font-size: .82rem; color: #b9c5da; background: var(--ink); padding: 2px 10px; }
.ring:nth-child(3) .ring__label { margin: 0; background: none; color: #fff; font: 600 1.05rem/1.2 var(--font-display); text-align: center; padding: 0 12px; }
.seat { position: absolute; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 .78rem/1 var(--font-display); color: var(--ink); background: #dbe3f2; border: 3px solid var(--ink); }
.seat--busy { background: var(--signal); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.paths--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* three steps, e.g. For agents' set up, get work, do the work */
.path { padding: 22px; border-radius: var(--r-md); border: 1px solid rgba(185,197,218,.22); background: rgba(255,255,255,.03); display: grid; gap: 10px; align-content: start; }
.path h3 { font-size: 1.2rem; }
.path p { color: #b9c5da; font-size: .96rem; }
.path .btn { justify-self: start; margin-top: 6px; }
.pools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pools span { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid rgba(185,197,218,.3); font-size: .9rem; color: #dbe3f2; }
/* The two groups: employees and teams, and the agent marketplace */
.groups { display: grid; margin: 28px 0 0; }
.group { display: grid; grid-template-columns: minmax(150px, .4fr) 1fr; gap: 6px 20px; padding: 16px 0; border-top: 1px solid rgba(185,197,218,.22); }
.group dt { font: 600 1.05rem/1.35 var(--font-display); color: #fff; }
.group dd { grid-column: 2; margin: 0; color: #b9c5da; font-size: .96rem; }
.group dd b { color: #dbe3f2; font-weight: 600; }
/* "More" links: from a home section to its detail page */
.more a { font-weight: 600; }
.paths + .more { margin-top: 24px; }
.band--ink .more a { color: #fff; }

/* ---------- 10. Steps ---------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; margin: 0; padding: 0; }
.steps li { list-style: none; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li::before { counter-increment: step; content: counter(step); display: block; font: 600 var(--step-3)/1 var(--font-display); color: var(--relay); margin-bottom: 18px; }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 10px; color: var(--ink-2); }

/* ---------- 11. Industries (typographic list) ---------------------- */
.industries { columns: 3 260px; column-gap: clamp(24px, 4vw, 56px); margin: 0; padding: 0; }
.industries li { list-style: none; break-inside: avoid; border-top: 1px solid var(--line); }
.industries a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px 0 18px; text-decoration: none; color: var(--ink); }
/* Each industry's icon, in the channel tour's row-icon look, beside its name and one-liner */
.industries a .industries__ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--relay-tint); color: var(--relay-deep); font-size: 1rem; }
.industries a b { font: 600 1.45rem/1.15 var(--font-display); letter-spacing: -0.01em; transition: color .15s var(--ease); }
.industries a span { font-size: .93rem; color: var(--muted); }
.industries a:hover b { color: var(--relay); }

/* ---------- 12. Integrations --------------------------------------- */
.integrate { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mark { display: flex; align-items: center; justify-content: center; gap: 10px; height: 76px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; font: 600 1.02rem/1 var(--font-display); color: var(--ink-2); }
.mark i { font-size: 1.35em; }
.mark--wordmark i { font-size: 2.2em; }
.mark--more { background: transparent; border-style: dashed; color: var(--muted); font-family: var(--font-text); font-weight: 500; font-size: .9rem; }

/* ---------- 13. Customer story (placeholder until approved) -------- */
.story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.story blockquote { margin: 0; font: 500 clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem)/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--ink); }
.story figcaption { margin-top: 24px; display: flex; align-items: center; gap: 14px; color: var(--muted); }
.story figcaption .relay__avatar { width: 52px; height: 52px; }
.results { display: grid; gap: 14px; }
.result { padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.result b { display: block; font: 600 var(--step-3)/1 var(--font-display); color: var(--relay); }
.result span { color: var(--ink-2); font-size: .95rem; }
.placeholder { outline: 1.5px dashed #c9d2e1; outline-offset: 6px; border-radius: var(--r-md); position: relative; }
.placeholder-note { display: inline-block; margin-bottom: 18px; font-size: .8rem; font-weight: 600; color: var(--signal-ink); background: #fff4e0; padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- 14. Pricing + trust ------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.split--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* detail pages' scenario cards */
.plan { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.plan h3 { font-size: 1.5rem; }
.plan p { color: var(--ink-2); }
.plan ul { margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.plan li { list-style: none; padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-tint); box-shadow: inset 0 0 0 4px var(--ok-tint), inset 0 0 0 10px var(--ok); }
/* A scenario card's picture: a tile above its title, or an image across the top */
.plan__icon { width: 88px; height: auto; }
.plan__shot { width: 100%; height: auto; }
/* Scenario rows: each scenario's card beside its image, sides alternating (one column on small screens) */
.rows { display: grid; gap: clamp(32px, 4vw, 56px); }
.rows__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.rows__item:nth-child(even) > .shot { order: -1; }
.pricing-foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; color: var(--ink-2); }
.control { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.control div { padding-top: 18px; border-top: 1px solid var(--line); }
.control b { display: block; font: 600 1.15rem/1.3 var(--font-display); margin-bottom: 8px; }
.control p { color: var(--ink-2); font-size: .97rem; }

/* ---------- 15. FAQ ------------------------------------------------ */
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font: 600 1.15rem/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center/12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 12px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- 16. Closing CTA ---------------------------------------- */
.closing { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--relay); color: #e7eeff; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: end; }
.closing::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); pointer-events: none; }
.closing h2 { color: #fff; max-width: 14ch; }
.closing p { margin-top: 16px; font-size: var(--step-1); max-width: 30em; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- 17. Footer --------------------------------------------- */
.site-foot { background: var(--ink); color: #b9c5da; padding-block: 72px 32px; margin-top: var(--section-y); font-size: .95rem; }
.site-foot .brand { color: #fff !important; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot-grid h3 { font: 600 .95rem/1.3 var(--font-text); color: #fff; margin-bottom: 14px; }
.foot-grid ul { margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid li { list-style: none; }
.foot-grid a { color: #b9c5da; text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-about p { margin-top: 16px; max-width: 30ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(185,197,218,.18); font-size: .88rem; }
.foot-base a { color: #b9c5da; }

/* ---------- 18. Chat teaser --------------------------------------- */
.teaser {
  /* Sits 12px above the 56px chat launcher, which is 20px from the corner */
  position: fixed; z-index: 60; right: 20px; bottom: 88px; width: min(280px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(14, 27, 46, .35);
  padding: 12px 12px 12px 14px; display: grid; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transform-origin: bottom right;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.teaser[data-side="left"] { right: auto; left: 20px; transform-origin: bottom left; }
.teaser.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.teaser__top { display: flex; gap: 8px; align-items: flex-start; }
.teaser__top p { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.teaser__top p b { display: block; font-weight: 600; color: var(--ink); }
.teaser__close { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.teaser__close:hover { background: var(--mist); }
.teaser__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.teaser__chips button { font: 500 .8125rem/1.2 var(--font-text); padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid #c9d6ff; background: #fff; color: var(--relay-deep); cursor: pointer; text-align: left; }
.teaser__chips button:hover { background: var(--relay-tint); }

/* ---------- 19. Responsive ----------------------------------------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .head-actions .login { display: none; }
  .head-actions .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; }
  .head-actions { margin-left: auto; }
  .site-head .wrap { gap: 12px; }
  .menu-btn { display: block; margin-left: 0; }
  .site-head.is-menu-open .nav {
    display: grid; position: absolute; top: 100%; left: 0; right: 0; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 96px; margin: 0; /* room for the chat launcher */
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .site-head.is-menu-open .nav__link, .site-head.is-menu-open .nav__trigger { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-head.is-menu-open .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; min-width: 0; display: none; }
  .site-head.is-menu-open .nav__item.is-open .menu { display: grid; }
  .site-head.is-menu-open .nav-mobile-actions { display: grid; gap: 10px; margin-top: 18px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .control { grid-template-columns: 1fr 1fr; }
  .split--3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
.nav-mobile-actions { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .tour, .bench, .integrate, .story, .faq, .split, .closing, .head-media, .rows__item { grid-template-columns: 1fr; }
  .rows__item:nth-child(even) > .shot { order: 0; }
  .head-media--mirror > .shot { order: 0; }
  .hero::before { inset: 40% 0 0 0; }
  .hero h1 { max-width: 13ch; }
  .proof .wrap { grid-template-columns: 1fr; gap: 16px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps, .can { grid-template-columns: 1fr; }
  .marks { grid-template-columns: repeat(3, 1fr); }
  .closing h2 { max-width: none; }
  .tour__tab { padding: 14px 16px; }
  .tour__tab:not([aria-selected="true"]) span { display: none; }
  .teaser { display: none; } /* on phones a floating card covers content (as Klaviyo's does); the header keeps Book a demo */
}
@media (max-width: 560px) {
  .brand { font-size: 1.02rem; gap: 8px; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .flow { grid-template-columns: 1fr; }
  .flow__step::before { display: none; }
  .paths, .control { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; }
  .group dd { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .marks { grid-template-columns: repeat(2, 1fr); }
  .relay { padding: 16px; }
  .say { max-width: 94%; }
  .tour__panel { padding: 16px; min-height: 0; }
  .row { grid-template-columns: auto 1fr; }
  .row .chip { grid-column: 2; justify-self: start; }
}

/* ---------- 20. Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .relay.is-playing [data-step] { opacity: 1; transform: none; }
}

/* Reference design for an AI-first chat panel.
   The real panel lives in your widget iframe app; use this as the spec for its layout and states.
   In the preview page it also powers a scripted demo.

   Sizes are set against the four reference sites (measured Nov 2026 at 1024 x 571):
   launchers are 53-56 px circles 14-24 px from the corner; open panels are 296-500 px wide
   (Klaviyo 296, Delight 400, Cresta 500) and never taller than the window.
   This panel: 56 px launcher, 360 px wide, at most 540 px tall, and always leaves room for the header. */
:root {
  --cw-edge: 20px;          /* distance from the window corner */
  --cw-launcher: 56px;      /* launcher diameter */
  --cw-gap: 12px;           /* space between launcher and panel */
  --cw-width: 360px;
  --cw-max-height: 540px;
}

.cw-launcher {
  position: fixed; right: var(--cw-edge); bottom: var(--cw-edge); z-index: 70;
  display: grid; place-items: center;
  width: var(--cw-launcher); height: var(--cw-launcher); padding: 0; border: 0; border-radius: 50%;
  background: var(--relay, #2457f5); color: #fff; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(36, 87, 245, .55);
  transition: transform .15s ease, background-color .15s ease;
}
.cw-launcher:hover { background: var(--relay-deep, #1a3fc0); transform: translateY(-1px); }
.cw-launcher svg { width: 26px; height: 26px; }
.cw-launcher .cw-dot { position: absolute; right: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #2bd47f; border: 2px solid var(--relay, #2457f5); }
.cw-launcher[aria-expanded="true"] .cw-dot { display: none; }

.cw-panel {
  position: fixed; z-index: 70;
  right: var(--cw-edge); bottom: calc(var(--cw-edge) + var(--cw-launcher) + var(--cw-gap));
  width: min(var(--cw-width), calc(100vw - 2 * var(--cw-edge)));
  height: min(var(--cw-max-height), calc(100vh - var(--cw-edge) - var(--cw-launcher) - var(--cw-gap) - 120px)); /* 120px keeps the site header and top bar visible */
  height: min(var(--cw-max-height), calc(100dvh - var(--cw-edge) - var(--cw-launcher) - var(--cw-gap) - 120px));
  min-height: 320px;
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: #fff; border: 1px solid #dfe5ef; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(14, 27, 46, .4);
  font-family: var(--font-text, system-ui, sans-serif); font-size: 14px; color: #0e1b2e;
  opacity: 0; visibility: hidden; transform: translateY(8px); transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
.cw-panel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.cw-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid #dfe5ef; }
.cw-head .cw-face { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--relay, #2457f5); color: #fff; font: 700 .9rem/1 var(--font-display, system-ui); }
.cw-head b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.cw-head small { color: #5d6b85; font-size: 12px; display: flex; align-items: center; gap: 5px; line-height: 1.3; }
.cw-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2bd47f; }
.cw-head .cw-more { margin-left: auto; }
.cw-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: #34425c; font-size: 17px; line-height: 1; }
.cw-icon:hover { background: #f3f6fb; }
.cw-menu { position: absolute; right: 44px; top: 46px; background: #fff; border: 1px solid #dfe5ef; border-radius: 10px; box-shadow: 0 14px 34px -16px rgba(14,27,46,.4); padding: 4px; display: none; z-index: 2; }
.cw-menu.is-open { display: grid; }
.cw-menu button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; font: 500 13px/1.2 inherit; cursor: pointer; color: #0e1b2e; white-space: nowrap; }
.cw-menu button:hover { background: #f3f6fb; }

.cw-log { overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.cw-msg { max-width: 84%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.cw-msg--ai { align-self: flex-start; background: #eef2fd; border-bottom-left-radius: 4px; }
.cw-msg--me { align-self: flex-end; background: var(--relay, #2457f5); color: #fff; border-bottom-right-radius: 4px; }
.cw-msg--note { align-self: center; background: none; color: #5d6b85; font-size: 12px; padding: 2px; }
.cw-inline { align-self: flex-start; display: flex; gap: 6px; width: 84%; }
.cw-inline input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #c9d2e1; border-radius: 8px; font: inherit; font-size: 14px; }
.cw-inline button { height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--relay, #2457f5); color: #fff; font: 600 13px/1 inherit; cursor: pointer; }
/* Ask with a form: the hand-over email box's inputs, one under another */
.cw-form { flex-direction: column; }
.cw-form input { flex: none; }
.cw-form button { align-self: flex-start; }
/* Links in messages, a file an agent sends (an image, or a chip that opens it), and a link's preview card */
.cw-msg a { color: inherit; text-decoration: underline; word-break: break-word; }
.cw-file { display: block; color: inherit; text-decoration: underline; word-break: break-word; }
.cw-img { align-self: flex-start; max-width: 84%; border-radius: 14px; border-bottom-left-radius: 4px; overflow: hidden; }
.cw-img img { display: block; max-height: 200px; width: auto; max-width: 100%; }
.cw-card { align-self: flex-start; width: 84%; max-width: 300px; border: 1px solid #dfe5ef; border-radius: 12px; overflow: hidden; background: #fff; color: #0e1b2e; text-decoration: none; }
.cw-card:hover { background: #f3f6fb; }
.cw-card img { display: block; width: 100%; height: 120px; object-fit: cover; }
.cw-card span { display: block; padding: 8px 10px; }
.cw-card small { display: block; font-size: 11px; line-height: 1.3; color: #5d6b85; }
.cw-card b { display: block; font-size: 13px; line-height: 1.3; }
.cw-card em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; font-size: 12px; line-height: 1.35; color: #34425c; }
.cw-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 12px; background: #eef2fd; border-radius: 14px; border-bottom-left-radius: 4px; }
.cw-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--relay, #2457f5); opacity: .4; animation: cwdot 1s infinite; }
.cw-typing i:nth-child(2) { animation-delay: .15s; } .cw-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cwdot { 50% { opacity: 1; } }

.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.cw-chips:empty { display: none; }
.cw-chips button { border: 1px solid #c9d6ff; background: #fff; color: #1a3fc0; border-radius: 999px; padding: 6px 10px; font: 500 13px/1.2 inherit; cursor: pointer; }
.cw-chips button:hover { background: #eef2fd; }
.cw-compose { display: flex; gap: 6px; align-items: center; padding: 10px 10px 6px; border-top: 1px solid #dfe5ef; }
.cw-compose input { flex: 1; min-width: 0; height: 40px; border: 1px solid #dfe5ef; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; }
.cw-compose input:focus { outline: 2px solid var(--relay, #2457f5); outline-offset: 1px; }
.cw-send { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--relay, #2457f5); color: #fff; cursor: pointer; display: grid; place-items: center; }
.cw-foot { padding: 0 12px 8px; font-size: 11px; color: #8a97ad; text-align: center; line-height: 1.35; }

/* Phones: same 56 px launcher in the corner; the open panel takes the screen, like Crisp and Delight do. */
@media (max-width: 560px) {
  :root { --cw-edge: 16px; }
  .cw-panel { right: 0; left: 0; bottom: 0; top: 0; width: 100%; height: 100%; min-height: 0; border-radius: 0; border: 0; }
  .cw-launcher[aria-expanded="true"] { display: none; } /* the panel header has its own close button */
}
@media (prefers-reduced-motion: reduce) { .cw-panel, .cw-launcher { transition: none; } .cw-typing i { animation: none; } }
