/* ============================================================
   Integra AI — AI Agents for Roofing Companies
   Same dark Integra.ai canvas + brand orange thread as the other
   AI Agents pages, with a roofline motif (hero + finale) and its
   own accent-per-product palette suited to the vertical.
   ============================================================ */

:root {
  --ink: #0a0807;
  --ink-2: #120c09;
  --ink-3: #1a120d;
  --ink-4: #221610;
  --brand: #ff4d1f;
  --brand-bright: #ff6a3c;
  --text: #f2ede7;
  --text-dim: rgba(242, 237, 231, 0.64);
  --text-dim2: rgba(242, 237, 231, 0.4);
  --line: rgba(242, 237, 231, 0.1);
  --line-soft: rgba(242, 237, 231, 0.06);

  --c-voice: #ffb020;
  --c-chatbot: #4fb8ff;
  --c-automation: #35d0a0;
  --c-call: #ff5470;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { overflow: visible; }
.mono { font-family: var(--mono); }
.accent { color: var(--brand-bright); }
section[id] { scroll-margin-top: 84px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary { background: var(--brand); color: #180b06; }
.btn--primary:hover { background: var(--brand-bright); transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 77, 31, 0.65); }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--brand-bright); margin: 0 0 20px;
}
.eyebrow--center { justify-content: center; width: 100%; }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(10, 8, 7, 0.72); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line-soft); }
.nav__inner { max-width: 1280px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
.nav__back {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  margin-right: -14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__back:hover { color: var(--brand-bright); border-color: var(--brand-bright); transform: translateX(-2px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.brand__word { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__ai { color: var(--brand-bright); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__link { font-size: 0.88rem; color: var(--text-dim); position: relative; padding: 4px 0; white-space: nowrap; transition: color 0.2s var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--brand-bright); transition: right 0.25s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }
.nav__link.is-active { color: var(--text); }
.nav__cta { padding: 10px 18px; font-size: 0.86rem; flex: none; }
.nav__burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.nav__burger span { width: 16px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

@media (max-width: 980px) {
  /* Not `inset: 62px 0 0 0` — .nav has backdrop-filter, which makes it the
     containing block for this fixed-position descendant, so a `bottom: 0`
     resolves against .nav's own ~62px height instead of the viewport
     (the menu collapsed to a few px tall). An explicit viewport-unit
     height sidesteps that: height itself isn't affected by which element
     is the containing block. */
  .nav__links { position: fixed; top: 62px; left: 0; right: 0; height: calc(100vh - 62px); height: calc(100dvh - 62px); background: var(--ink); flex-direction: column; justify-content: center; gap: 26px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links .nav__link { font-size: 1.2rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  body.menu-open .nav__burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ============================================================
   HERO — floating AI cards over an animated roofline
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 150px 24px 0; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, black 30%, transparent 75%); }
.hero__glow { position: absolute; top: -10%; left: 50%; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 77, 31, 0.2), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero__copy { position: relative; max-width: 760px; z-index: 3; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 22px; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.16rem); line-height: 1.6; color: var(--text-dim); max-width: 560px; margin: 0 auto 30px; }
.hero__cta { margin-bottom: 8px; }

.hero__stage { position: relative; width: 100%; max-width: 1100px; margin-top: 40px; z-index: 2; }
.hero__cards { position: relative; z-index: 2; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 0 20px 30px; }
.hcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 190px; padding: 16px 18px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(18, 12, 9, 0.75); backdrop-filter: blur(8px);
  animation: hcard-float 5s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.4s);
}
.hcard__icon { width: 26px; height: 26px; margin-bottom: 4px; }
.hcard__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--brand-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hcard--chat .hcard__icon svg { stroke: var(--c-chatbot); }
.hcard--flow .hcard__icon svg { stroke: var(--c-automation); }
.hcard__label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--text-dim2); }
.hcard__value { font-size: 0.86rem; font-weight: 600; color: var(--text); }
@keyframes hcard-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hcard { animation: none; } }

.hero__roofline { position: relative; z-index: 1; display: block; width: 100%; height: 180px; }
.hero__roofline-path { fill: none; stroke: var(--line); stroke-width: 2; }
.hero__roofline-glow { fill: none; stroke: var(--brand-bright); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255, 106, 60, 0.5)); stroke-dasharray: 10 14; animation: roofline-flow 7s linear infinite; }
@keyframes roofline-flow { to { stroke-dashoffset: -240; } }
@media (prefers-reduced-motion: reduce) { .hero__roofline-glow { animation: none; } }

.hero__scroll { position: relative; z-index: 2; margin-top: -10px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--text-dim2); }
.hero__scroll-line { width: 1px; height: 24px; background: linear-gradient(180deg, var(--text-dim2), transparent); }

@media (max-width: 640px) {
  .hero { padding-top: 130px; }
  .hcard { width: 150px; padding: 13px 14px; }
  .hero__roofline { height: 110px; }
}

/* ============================================================
   VIDEO — cinematic empty placeholder
   ============================================================ */
.video { max-width: 1100px; margin: 0 auto; padding: 40px 24px 120px; text-align: center; }
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), var(--ink-3) 60%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.video__glow {
  position: absolute; inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--brand), var(--c-chatbot), var(--c-automation), var(--c-call), var(--brand));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  animation: video-spin 10s linear infinite;
  transition: opacity 0.3s var(--ease);
}
@keyframes video-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .video__glow { animation: none; } }
.video__el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #000;
  touch-action: pan-y;
}
.video__progress {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.video__progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
}
.video__frame.is-playing .video__progress { opacity: 1; }
.video__play {
  position: relative; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 8, 7, 0.7); backdrop-filter: blur(6px);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), opacity 0.3s var(--ease);
}
.video__play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.video__play:hover { transform: scale(1.08); border-color: var(--brand-bright); background: rgba(255, 106, 60, 0.14); }
.video__caption { position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-dim2); transition: opacity 0.3s var(--ease); }
.video__frame.is-playing .video__glow,
.video__frame.is-playing .video__play,
.video__frame.is-playing .video__caption {
  opacity: 0;
  pointer-events: none;
}
.video__cursor {
  position: fixed; z-index: 6;
  top: 0; left: 0;
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 8, 7, 0.6);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video__cursor.is-playing { background: rgba(255, 106, 60, 0.18); border-color: var(--brand-bright); }
@media (hover: hover) and (pointer: fine) {
  .video__frame { cursor: none; }
  .video__frame:hover { transform: scale(1.006); border-color: rgba(255, 106, 60, 0.35); }
  .video__frame:hover .video__glow,
  .video__frame:hover .video__play { opacity: 0; pointer-events: none; }
  .video__cursor.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .video__frame, .video__cursor { transition: none; } }

/* ============================================================
   STATS — interactive Without AI / With Integra AI comparison
   ============================================================ */
.stats { padding: 10px 24px 140px; }
.stats__inner { max-width: 1120px; margin: 0 auto; }
.stats__title { text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.stats__sub { text-align: center; font-size: 1rem; line-height: 1.65; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

.stats__toggle {
  position: relative; display: flex; width: max-content;
  margin: 44px auto 56px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--ink-3);
}
.stats__toggle-thumb {
  position: absolute; top: 5px; left: 5px; bottom: 5px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--brand-bright));
  box-shadow: 0 6px 20px -6px rgba(255, 77, 31, 0.6);
  transition: left 0.4s var(--ease), width 0.4s var(--ease), background 0.4s var(--ease);
}
.stats--before .stats__toggle-thumb { background: linear-gradient(120deg, #7a746e, #5c5550); box-shadow: none; }
.stats__toggle-btn {
  position: relative; z-index: 2;
  padding: 11px 22px; border: none; background: transparent;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--text-dim); cursor: pointer; border-radius: 999px;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.stats__toggle-btn.is-active { color: #180b06; }
@media (prefers-reduced-motion: reduce) { .stats__toggle-thumb { transition: none; } }

.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 34px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), var(--ink-3) 65%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 60, 0.35); }

.stat-card__ring { position: relative; width: 92px; height: 92px; }
.stat-card__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--line); stroke-width: 6; }
.ring__fill {
  fill: none; stroke: var(--brand-bright); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 263.9; stroke-dashoffset: 263.9;
  filter: drop-shadow(0 0 6px rgba(255, 106, 60, 0.55));
  transition: stroke 0.4s var(--ease), filter 0.4s var(--ease);
}
.stats--before .ring__fill { stroke: var(--c-call); filter: drop-shadow(0 0 6px rgba(255, 84, 112, 0.4)); }
.stat-card__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text); transition: color 0.4s var(--ease);
}
.stat-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stats--before .stat-card__icon { color: var(--text-dim); }

.stat-card__num {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-card__label { font-size: 0.86rem; line-height: 1.4; color: var(--text-dim); }

@media (max-width: 860px) {
  .stats { padding-bottom: 100px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .stats__grid { grid-template-columns: 1fr; gap: 14px; }
  .stat-card { padding: 28px 18px; }
  .stats__toggle { width: 100%; }
  .stats__toggle-btn { flex: 1; text-align: center; padding: 11px 10px; }
}

/* ============================================================
   PRODUCT SECTIONS — shared
   ============================================================ */
.product { position: relative; max-width: 1280px; margin: 0 auto; padding: 110px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.product--reverse .product__copy { order: 2; }
.product--reverse .product__visual { order: 1; }
.product__title { font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; }
.product__sub { font-size: 1rem; line-height: 1.7; color: var(--text-dim); margin: 0 0 28px; max-width: 540px; }
.eyebrow--voice { color: var(--c-voice); }
.eyebrow--voice .eyebrow__dot { background: var(--c-voice); box-shadow: 0 0 10px var(--c-voice); }
.eyebrow--chatbot { color: var(--c-chatbot); }
.eyebrow--chatbot .eyebrow__dot { background: var(--c-chatbot); box-shadow: 0 0 10px var(--c-chatbot); }
.eyebrow--automation { color: var(--c-automation); }
.eyebrow--automation .eyebrow__dot { background: var(--c-automation); box-shadow: 0 0 10px var(--c-automation); }
.eyebrow--call { color: var(--c-call); }
.eyebrow--call .eyebrow__dot { background: var(--c-call); box-shadow: 0 0 10px var(--c-call); }

.feature-list { display: flex; flex-direction: column; gap: 13px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.93rem; color: var(--text); }
.feature-list__icon { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; border-radius: 50%; padding: 2px; background: currentColor; }
.product--voice .feature-list__icon { color: var(--c-voice); }
.product--chatbot .feature-list__icon { color: var(--c-chatbot); }
.product--automation .feature-list__icon { color: var(--c-automation); }
.product--call .feature-list__icon { color: var(--c-call); }

.product--stacked { grid-template-columns: 1fr; gap: 50px; }
.product__intro { max-width: 760px; }

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; padding: 80px 22px; gap: 40px; }
  .product--reverse .product__copy, .product--reverse .product__visual { order: initial; }
}

/* ============================================================
   VOICE AGENT — phone mockup
   ============================================================ */
.phone { position: relative; width: min(360px, 100%); margin: 0 auto; border-radius: 40px; padding: 20px 20px 22px; background: linear-gradient(155deg, rgba(255, 176, 32, 0.08), var(--ink-3) 40%); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 176, 32, 0.3); }
.phone__notch { width: 70px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 16px; }
.phone__status { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); margin-bottom: 18px; }
.phone__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-voice); box-shadow: 0 0 8px var(--c-voice); animation: dot-blink 1.6s ease-in-out infinite; }
@keyframes dot-blink { 50% { opacity: 0.25; } }
.phone__orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 20px; }
.phone__orb { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, var(--c-voice) 60%, #8a5a10 100%); box-shadow: 0 0 40px 6px rgba(255, 176, 32, 0.4); animation: orb-pulse 2.2s ease-in-out infinite; }
@keyframes orb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.phone__wave { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.phone__wave span { width: 3px; border-radius: 3px; background: var(--c-voice); opacity: 0.85; animation: wave-bar 1.1s ease-in-out infinite; }
.phone__wave span:nth-child(1){height:30%;animation-delay:0s}
.phone__wave span:nth-child(2){height:60%;animation-delay:.08s}
.phone__wave span:nth-child(3){height:90%;animation-delay:.16s}
.phone__wave span:nth-child(4){height:45%;animation-delay:.24s}
.phone__wave span:nth-child(5){height:75%;animation-delay:.32s}
.phone__wave span:nth-child(6){height:100%;animation-delay:.4s}
.phone__wave span:nth-child(7){height:55%;animation-delay:.48s}
.phone__wave span:nth-child(8){height:80%;animation-delay:.56s}
.phone__wave span:nth-child(9){height:35%;animation-delay:.64s}
.phone__wave span:nth-child(10){height:65%;animation-delay:.72s}
.phone__wave span:nth-child(11){height:90%;animation-delay:.8s}
.phone__wave span:nth-child(12){height:40%;animation-delay:.88s}
@keyframes wave-bar { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .phone__wave span, .phone__orb, .phone__status-dot { animation: none; } }

.phone__transcript { min-height: 128px; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.phone__transcript .line { font-family: var(--mono); font-size: 0.76rem; line-height: 1.5; padding: 8px 12px; border-radius: 12px; max-width: 86%; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.phone__transcript .line.is-shown { opacity: 1; transform: translateY(0); }
.phone__transcript .line[data-who="ai"] { align-self: flex-start; background: rgba(255, 176, 32, 0.12); color: #ffe2ad; border: 1px solid rgba(255, 176, 32, 0.24); }
.phone__transcript .line[data-who="caller"] { align-self: flex-end; background: var(--ink-4); color: var(--text-dim); border: 1px solid var(--line); }

.phone__lead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(53, 208, 160, 0.1); border: 1px solid rgba(53, 208, 160, 0.28); opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.phone__lead.is-shown { opacity: 1; transform: translateY(0) scale(1); }
.phone__lead-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--c-automation); flex: none; }
.phone__lead-name { font-size: 0.76rem; font-weight: 600; text-align: right; }

/* ============================================================
   CHATBOT — browser + widget mockup, chat -> lead card
   ============================================================ */
.browser { position: relative; width: min(420px, 100%); margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); box-shadow: 0 30px 80px -30px rgba(79, 184, 255, 0.28); }
.browser__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--ink-2); }
.browser__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.browser__url { margin-left: 10px; font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim2); background: var(--ink); padding: 3px 10px; border-radius: 999px; }
.browser__page { padding: 20px; opacity: 0.5; }
.ph-block { background: var(--line-soft); border-radius: 8px; }
.ph-block--hero { height: 56px; margin-bottom: 12px; }
.ph-block--line { height: 8px; margin-bottom: 8px; }
.ph-block--grid { display: flex; gap: 8px; margin-top: 14px; }
.ph-block--grid span { flex: 1; height: 44px; background: var(--line-soft); border-radius: 8px; }

.widget { position: relative; margin: -46px 16px 16px auto; width: min(280px, 78%); border-radius: 16px; background: rgba(18, 12, 9, 0.92); backdrop-filter: blur(10px); border: 1px solid rgba(79, 184, 255, 0.28); box-shadow: 0 20px 50px -18px rgba(79, 184, 255, 0.4); overflow: hidden; }
.widget__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 0.82rem; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.widget__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-chatbot); box-shadow: 0 0 8px var(--c-chatbot); }
.widget__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }

.bubble { font-size: 0.78rem; line-height: 1.5; padding: 9px 12px; border-radius: 12px; max-width: 88%; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.bubble.is-shown { opacity: 1; transform: translateY(0); }
.bubble--bot { align-self: flex-start; background: rgba(79, 184, 255, 0.14); border: 1px solid rgba(79, 184, 255, 0.24); color: #d3ecff; }
.bubble--user { align-self: flex-end; background: var(--ink-4); border: 1px solid var(--line); color: var(--text-dim); }

.widget__lead { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ink-2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.widget__lead.is-shown { opacity: 1; transform: translateY(0); }
.widget__lead-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--c-automation); }
.widget__lead-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); }
.widget__lead-row span { font-size: 0.7rem; color: var(--text-dim2); }
.widget__lead-row b { font-size: 0.78rem; font-weight: 600; }

/* ============================================================
   AUTOMATION — linear 4-stage flow
   ============================================================ */
.flow { width: 100%; }
.flow__track { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 24px; }
.flow__line { position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--c-automation), var(--brand-bright)); opacity: 0.35; }
.flow__particle { position: absolute; top: 46px; left: 6%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--c-automation); box-shadow: 0 0 10px var(--c-automation); opacity: 0; animation: flow-travel 4.5s linear infinite; animation-delay: calc(var(--pd) * 1.5s); }
@keyframes flow-travel { 0% { left: 6%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 94%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow__particle { animation: none; opacity: 0; } }

.flow__stage { position: relative; z-index: 2; flex: 1; max-width: 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(255, 255, 255, 0.025), var(--ink-3) 60%); }
.flow__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(53, 208, 160, 0.12); }
.flow__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--c-automation); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow__stage h3 { font-size: 1.02rem; margin: 0; }
.flow__stage p { font-size: 0.84rem; line-height: 1.55; color: var(--text-dim); margin: 0; }

@media (max-width: 860px) {
  .flow__track { flex-direction: column; padding-top: 0; }
  .flow__line, .flow__particle { left: 27px; right: auto; top: 24px; bottom: 24px; height: auto; width: 2px; }
  .flow__particle { top: 24px; left: 27px; margin-top: 0; margin-left: -3.5px; animation-name: flow-travel-v; }
  @keyframes flow-travel-v { 0% { top: 24px; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { top: calc(100% - 24px); opacity: 0; } }
  .flow__stage { max-width: none; flex-direction: row; align-items: center; padding: 14px 16px; margin-left: 0; }
}

/* ============================================================
   CALL AGENT — converging calls
   ============================================================ */
.converge { width: min(800px, 100%); min-width: 0; margin: 0 auto; }
.converge__diagram { position: relative; width: 100%; aspect-ratio: 800 / 380; }
.converge__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.converge__wire { fill: none; stroke: var(--c-call); stroke-width: 1.3; opacity: 0.3; }
.converge__particle { fill: var(--c-call); filter: drop-shadow(0 0 5px var(--c-call)); }

.converge__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(56px, 13vw, 92px); height: clamp(56px, 13vw, 92px); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, var(--ink-4), var(--ink-2)); border: 1px solid rgba(255, 84, 112, 0.3); box-shadow: 0 0 44px 5px rgba(255, 84, 112, 0.25); }
.converge__core-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 84, 112, 0.3); animation: core-pulse 2.6s var(--ease) infinite; }
@keyframes core-pulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.14); opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) { .converge__core-ring { animation: none; } }
.converge__core-word { font-family: var(--mono); font-size: clamp(0.78rem, 2.6vw, 1rem); font-weight: 600; color: var(--c-call); letter-spacing: 0.04em; }

.converge__call { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: clamp(3px, 1.4vw, 8px); padding: clamp(3px, 1.8vw, 9px) clamp(6px, 2.8vw, 14px); border-radius: 999px; font-size: clamp(0.5rem, 2.1vw, 0.78rem); font-weight: 600; white-space: nowrap; background: rgba(18, 12, 9, 0.78); backdrop-filter: blur(6px); border: 1px solid var(--line); color: var(--text-dim); }
@media (max-width: 440px) { .converge__call svg { display: none; } }
.converge__call svg { width: clamp(11px, 3vw, 15px); height: clamp(11px, 3vw, 15px); fill: none; stroke: var(--c-call); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.converge__call--tl { left: 7.5%; top: 16%; }
.converge__call--bl { left: 7.5%; top: 84%; }
.converge__call--tr { left: 92.5%; top: 16%; }
.converge__call--br { left: 92.5%; top: 84%; }

.converge__stages { margin: 22px auto 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 6px; gap: clamp(4px, 1.4vw, 8px); width: max-content; max-width: 92vw; }
.converge__line { width: clamp(10px, 3vw, 20px); height: 1px; background: var(--line); flex: none; }
.converge__stage { font-family: var(--mono); font-size: clamp(0.56rem, 1.8vw, 0.68rem); letter-spacing: 0.04em; color: var(--text-dim2); padding: clamp(3px, 1vw, 5px) clamp(7px, 2vw, 10px); border-radius: 999px; white-space: nowrap; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
.converge__stage.is-active { color: var(--c-call); background: rgba(255, 84, 112, 0.1); }

/* The diagram stays the exact same composition and animation at every
   width — same wires, same converging calls, same cycling stages — it
   just scales down fluidly with clamp() rather than switching to a
   different mobile layout. The call chips keep their fixed --tl/--bl/
   --tr/--br anchor points (7.5% / 92.5%, matching the SVG wire
   endpoints), so only their own size needs to shrink to avoid crowding
   a narrower box. The stage row lives outside .converge__diagram's
   aspect-ratio box in normal flow (not absolutely positioned against
   it), so wrapping to two lines on a narrow phone can never overlap
   the diagram above it. */

/* ============================================================
   AI ESTIMATOR — interactive multi-step demo widget
   ============================================================ */
.estimator { max-width: 760px; margin: 0 auto; padding: 40px 24px 130px; }
.estimator__title { text-align: center; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.estimator__sub { text-align: center; font-size: 1rem; line-height: 1.65; color: var(--text-dim); max-width: 540px; margin: 0 auto; }

.estimator__card {
  margin-top: 44px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.03), var(--ink-3) 60%);
  box-shadow: 0 40px 100px -40px rgba(255, 77, 31, 0.25);
  overflow: hidden;
}
.estimator__header { display: flex; align-items: center; gap: 12px; padding: 18px 22px; }
.estimator__badge { flex: none; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 176, 32, 0.4); color: var(--c-voice); background: rgba(255, 176, 32, 0.1); }
.estimator__back {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  display: grid; place-items: center; cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.estimator__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.estimator__back:hover { color: var(--brand-bright); border-color: var(--brand-bright); }
.estimator__back[hidden] { display: none; }
.estimator__header-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.estimator__eyebrow { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--brand-bright); }
.estimator__step { font-size: 0.86rem; color: var(--text-dim); }
.estimator__progress { height: 2px; background: var(--line-soft); }
.estimator__progress-fill { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transition: width 0.4s var(--ease); }

.estimator__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }

.estimator__msg {
  align-self: flex-start; display: flex; align-items: flex-start; gap: 10px; max-width: 90%;
  opacity: 0; transform: translateY(8px); animation: estimator-in 0.4s var(--ease) forwards;
}
.estimator__msg-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brand-bright), var(--brand));
  display: grid; place-items: center; margin-top: 2px;
}
.estimator__msg-avatar svg { width: 13px; height: 13px; fill: none; stroke: #180b06; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.estimator__msg-text { font-size: 0.94rem; line-height: 1.55; padding: 11px 15px; border-radius: 14px; border-bottom-left-radius: 4px; background: rgba(255, 255, 255, 0.05); color: var(--text); }
.estimator__msg-text b { color: var(--text); }
@keyframes estimator-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .estimator__msg { animation: none; opacity: 1; transform: none; } }

.estimator__options { display: flex; flex-wrap: wrap; gap: 9px; padding-left: 36px; }
.estimator__opt {
  padding: 10px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--text);
  cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}
.estimator__opt:hover { border-color: var(--brand-bright); background: rgba(255, 106, 60, 0.1); transform: translateY(-1px); }
.estimator__opt--skip { border-style: dashed; color: var(--text-dim2); background: transparent; }
.estimator__opt--chosen { border-color: var(--brand-bright); background: rgba(255, 106, 60, 0.14); color: var(--brand-bright); }

.estimator__field { padding-left: 36px; display: flex; gap: 10px; }
.estimator__input {
  flex: 1; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; color: var(--text); font-size: 0.95rem; font-family: var(--sans);
}
.estimator__input:focus { outline: none; border-color: var(--brand-bright); }
.estimator__input::placeholder { color: var(--text-dim2); }
.estimator__submit {
  flex: none; width: 42px; height: 42px; border-radius: 12px; border: none;
  background: var(--brand); color: #180b06; font-size: 1.1rem; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s var(--ease);
}
.estimator__submit:hover { background: var(--brand-bright); }

.estimator__upload-zone {
  margin-left: 36px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 26px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.estimator__upload-zone:hover { border-color: var(--brand-bright); background: rgba(255, 106, 60, 0.05); }
.estimator__upload-zone svg { width: 26px; height: 26px; fill: none; stroke: var(--text-dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.estimator__upload-zone span { font-size: 0.88rem; color: var(--text); }
.estimator__upload-zone small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--text-dim2); }
.estimator__upload-count { margin-left: 36px; font-family: var(--mono); font-size: 0.72rem; color: var(--c-automation); }

.estimator__actions { display: flex; gap: 10px; padding-left: 36px; margin-top: 4px; }

.estimator__result { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 10px 6px; }
.estimator__result-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--c-automation); }
.estimator__result-range { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.estimator__result-note { font-size: 0.86rem; color: var(--text-dim); max-width: 380px; }
.estimator__result-cta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.estimator__restart { font-size: 0.84rem; color: var(--text-dim); border-bottom: 1px solid var(--line); padding: 4px 0; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.estimator__restart:hover { color: var(--brand-bright); border-color: var(--brand-bright); }

@media (max-width: 560px) {
  .estimator__options, .estimator__field, .estimator__upload-count, .estimator__actions { padding-left: 0; margin-left: 0; }
  .estimator__body { padding: 18px; }
}

/* ============================================================
   FINALE
   ============================================================ */
.finale { position: relative; min-height: 74vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 90px 24px 60px; overflow: hidden; }
.finale__roofline { position: absolute; bottom: 0; left: 0; width: 100%; height: 130px; fill: none; stroke: var(--line-soft); stroke-width: 2; }
.finale__glow { position: absolute; left: 50%; top: 40%; width: 480px; height: 480px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 77, 31, 0.28), transparent 70%); filter: blur(6px); }
.finale__content { position: relative; z-index: 2; max-width: 640px; }
.finale__title { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; }
.finale__sub { font-size: 1.06rem; color: var(--text-dim); margin: 0 0 32px; line-height: 1.6; }
.finale__cta { margin-bottom: 24px; }
.finale__email { font-size: 0.86rem; color: var(--text-dim2); }
.finale__email .mono { letter-spacing: 0.08em; color: var(--brand-bright); margin-right: 8px; font-size: 0.72rem; }
.finale__email a { border-bottom: 1px solid var(--line); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.finale__email a:hover { color: var(--brand-bright); border-color: var(--brand-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 28px; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand--footer .brand__mark { opacity: 0.85; }
.site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__links a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__copy { font-size: 0.78rem; color: var(--text-dim2); margin: 0; width: 100%; text-align: center; }
@media (min-width: 640px) { .site-footer__copy { width: auto; text-align: right; } }

/* Section rhythm: keep mobile vertical padding reasonable */
@media (max-width: 640px) {
  .video { padding-top: 20px; padding-bottom: 80px; }
  .finale { padding-top: 70px; }
}

/* ============================================================
   Shared site-wide widgets: AI Chatbot + Callbot launcher
   (verbatim from the main site's styles.css, plus the few tokens
   that widget CSS expects but this page doesn't define)
   ============================================================ */
:root {
  --white: #f7f4f2;
  --fog: #9a938e;
  --mist: #6e6661;
  --line-2: rgba(255, 77, 31, 0.28);
  --r-lg: 14px;
}
.brand__dot { color: var(--brand); }
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 900; }
.chatbot__launcher { position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: radial-gradient(circle at 35% 30%, var(--brand-bright), var(--brand)); box-shadow: 0 12px 30px rgba(255, 77, 31, 0.4); display: grid; place-items: center; padding: 0; transition: transform 0.25s var(--ease); }
.chatbot__launcher:hover { transform: scale(1.06); }
.chatbot__launcher-mascot { width: 38px; height: 38px; object-fit: contain; }
.chatbot__launcher-ping { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brand-bright); opacity: 0.55; animation: chatbotPing 2.4s var(--ease) infinite; }
@keyframes chatbotPing { 0% { transform: scale(0.85); opacity: 0.55; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.chatbot__panel { position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(0.92) translateY(12px); opacity: 0; pointer-events: none; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
.chatbot.is-open .chatbot__panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chatbot__header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chatbot__header-mascot { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: rgba(255, 77, 31, 0.12); padding: 4px; }
.chatbot__header-copy { flex: 1; min-width: 0; }
.chatbot__header-name { font-size: 13.5px; font-weight: 600; color: var(--white); }
.chatbot__header-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fog); margin-top: 2px; }
.chatbot__dot { width: 6px; height: 6px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 6px #35d07f; }
.chatbot__history-btn { border: none; background: transparent; color: var(--fog); cursor: pointer; padding: 4px; display: grid; place-items: center; flex-shrink: 0; transition: color 0.2s var(--ease); }
.chatbot__history-btn svg { width: 18px; height: 18px; }
.chatbot__history-btn:hover { color: var(--white); }
.chatbot__close { border: none; background: transparent; color: var(--fog); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.chatbot__close:hover { color: var(--white); }
.chatbot__messages { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chatbot__history-view { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.chatbot__history-head { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chatbot__history-back { border: none; background: transparent; color: var(--fog); cursor: pointer; padding: 4px; display: grid; place-items: center; flex-shrink: 0; transition: color 0.2s var(--ease); }
.chatbot__history-back svg { width: 18px; height: 18px; }
.chatbot__history-back:hover { color: var(--white); }
.chatbot__history-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--white); }
.chatbot__history-new { display: flex; align-items: center; gap: 4px; border: none; background: transparent; color: var(--brand-bright); font-size: 12px; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: background 0.2s var(--ease); }
.chatbot__history-new svg { width: 14px; height: 14px; }
.chatbot__history-new:hover { background: rgba(255, 77, 31, 0.1); }
.chatbot__history-list { flex: 1; overflow-y: auto; padding: 6px 0; display: flex; flex-direction: column; }
.chatbot__history-empty { padding: 24px 16px; text-align: center; font-size: 12.5px; color: var(--fog); }
.chatbot__history-item { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; cursor: pointer; padding: 10px 14px; text-align: left; transition: background 0.2s var(--ease); }
.chatbot__history-item:hover { background: rgba(255, 255, 255, 0.05); }
.chatbot__history-item-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: rgba(255, 77, 31, 0.12); padding: 5px; flex-shrink: 0; }
.chatbot__history-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chatbot__history-item-name { font-size: 13px; font-weight: 600; color: var(--white); }
.chatbot__history-item-preview { font-size: 12px; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbot__history-item-time { font-size: 10.5px; color: var(--fog); flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.chatbot__messages[hidden], .chatbot__form[hidden], .chatbot__history-view[hidden] { display: none !important; }
.chatbot__msg { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.chatbot__msg--bot { align-self: flex-start; background: rgba(255, 255, 255, 0.06); color: var(--white); border-bottom-left-radius: 4px; display: flex; align-items: flex-end; gap: 6px; }
.chatbot__msg-text { flex: 1; min-width: 0; }
.chatbot__msg-speak { flex-shrink: 0; width: 32px; height: 32px; margin: -6px -6px -6px 0; padding: 0; border: none; background: transparent; color: var(--mist); cursor: pointer; display: grid; place-items: center; transition: color 0.2s var(--ease); }
.chatbot__msg-speak svg { width: 16px; height: 16px; }
.chatbot__msg-speak:hover, .chatbot__msg-speak.is-speaking { color: var(--brand-bright); }
.chatbot__msg--user { align-self: flex-end; background: linear-gradient(180deg, var(--brand-bright), var(--brand)); color: #1a0a04; border-bottom-right-radius: 4px; }
.chatbot__msg--error { align-self: flex-start; background: rgba(255, 77, 31, 0.1); color: var(--ember, #ffb27a); border: 1px solid var(--line-2); }
.chatbot__typing { display: flex; gap: 4px; padding: 0 16px 10px; flex-shrink: 0; }
.chatbot__typing[hidden] { display: none; }
.chatbot__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); animation: chatbotTyping 1.1s ease-in-out infinite; }
.chatbot__typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbotTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chatbot__form { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--ink); flex-shrink: 0; }
.chatbot__input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px; color: var(--white); font-size: 16px; font-family: var(--sans); }
.chatbot__input:focus { outline: none; border-color: var(--line-2); }
.chatbot__input::placeholder { color: var(--mist); }
.chatbot__send { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--brand); color: var(--white); font-size: 16px; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background 0.2s var(--ease); }
.chatbot__send:hover { background: var(--brand-bright); }
.chatbot__send:disabled { opacity: 0.5; cursor: not-allowed; }
.callbot { position: fixed; right: 96px; bottom: 24px; z-index: 900; }
.callbot__launcher { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; background: var(--ink-2); color: var(--brand-bright); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); display: grid; place-items: center; padding: 0; transition: transform 0.25s var(--ease); }
.callbot__launcher:hover { transform: scale(1.06); }
.callbot__launcher-icon { width: 22px; height: 22px; }
.callbot__panel { position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 32px); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); overflow: hidden; transform-origin: bottom right; transform: scale(0.92) translateY(12px); opacity: 0; pointer-events: none; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
.callbot.is-open .callbot__panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.callbot__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 4px; }
.callbot__header-title { font-size: 18px; font-weight: 600; color: var(--white); margin: 0 0 4px; }
.callbot__header-sub { font-size: 13px; color: var(--fog); margin: 0; }
.callbot__close { background: none; border: none; color: var(--fog); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; transition: color 0.2s; }
.callbot__close:hover { color: var(--white); }
.callbot__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 20px; }
.callbot__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink); color: var(--white); text-decoration: none; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.callbot__card:hover { border-color: var(--brand-bright); transform: translateY(-2px); }
.callbot__card-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 77, 31, 0.12); color: var(--brand-bright); display: grid; place-items: center; }
.callbot__card-icon svg { width: 20px; height: 20px; }
.callbot__card-title { font-size: 14px; font-weight: 600; }
.callbot__card-sub { font-size: 12px; color: var(--fog); }

@media (max-width: 480px) {
  .chatbot { right: 16px; bottom: 16px; }
  .callbot { right: 86px; bottom: 16px; }
  .callbot__launcher { width: 46px; height: 46px; }
  .callbot__panel { position: fixed; inset: 0; width: auto; max-width: none; border-radius: 0; border: none; display: flex; flex-direction: column; justify-content: center; }
  .callbot__header { padding: 24px 24px 8px; }
  .callbot__options { grid-template-columns: 1fr; padding: 20px 24px 24px; }
  html.callbot-open { overflow: hidden; }
  .chatbot__panel { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; border-radius: 0; border: none; }
  html.chatbot-open { overflow: hidden; }
  html.chatbot-open .callbot { display: none; }
}
