/* Shared theme surfaces for the landing page and legal pages. */
:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eff5f1;
  --accent: #f4967e;
  --accent-text: #95452f;
  --accent-soft: #fff0e9;
  --action-text: #ffffff;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #17181a;
  --surface: #212326;
  --surface-soft: #292b2e;
  --ink: #f3f4f4;
  --muted: #bfc4c7;
  --green: #95dfd2;
  --paper: #292b2e;
  --line: #45484d;
  --accent-text: #ffaf99;
  --accent-soft: #422f29;
  --action-text: #152323;
  --night: #101113;
  --on-night: #f3f4f4;
  --night-muted: #bfc4c7;
}
body {
  background: var(--canvas);
}
h1 em:after {
  border-color: var(--accent);
  opacity: 0.95;
}
.capability-index {
  color: var(--accent-text);
}

/* All header controls share a measured icon box instead of a font baseline. */
.theme-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  place-items: center;
  transition:
    background 0.18s,
    border-color 0.18s;
}
[data-theme] .theme-toggle {
  display: grid;
  visibility: hidden;
}
.theme-ready .theme-toggle {
  visibility: visible;
}
.theme-toggle:hover {
  background: var(--paper);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .theme-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .theme-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .theme-sun {
  display: block;
}
.site-header.is-dark .theme-toggle {
  color: var(--on-night);
  border-color: #ffffff35;
}
.site-header.is-dark .theme-toggle:hover {
  background: #ffffff0d;
}
.button > .arrow-icon,
.text-link > .arrow-icon,
.arrow-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  font-size: 0;
  line-height: 0;
}
.arrow-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Channel labels are capability labels, not fake connected-account controls. */
.hero-channels,
.channel-sources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}
.hero-channels {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 10px;
}
.hero-channels > span,
.channel-sources > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.channel-icon {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 32px;
  block-size: 32px;
  margin: 8px;
}
.channel-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.channel-icon .channel-dark,
[data-theme="dark"] .channel-icon .channel-light {
  display: none;
}
[data-theme="dark"] .channel-icon .channel-dark {
  display: block;
}
.hero-caption {
  margin-top: 19px;
}
.channel-map {
  max-width: 355px;
  margin: 24px 0 13px;
}
.channel-sources {
  gap: 0;
  justify-content: space-around;
  font-size: 10px;
  color: var(--muted);
}
.channel-sources > span {
  flex-direction: column;
  gap: 5px;
  width: 33.333%;
}
.channel-routes {
  display: block;
  height: 34px;
  width: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}
.route-track {
  stroke: var(--line);
  stroke-width: 1;
}
.route-pulse {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 7 155;
  animation: route-travel 3.6s linear infinite;
  animation-delay: var(--route-delay, 0s);
}
.route-pulse:nth-of-type(3) {
  --route-delay: -1s;
}
.route-pulse:nth-of-type(4) {
  --route-delay: -2s;
}
.hub-destination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
}
.hub-destination > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.channel-map figcaption {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
@keyframes route-travel {
  from {
    stroke-dashoffset: 162;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.motion-paused .route-pulse {
  animation: none;
  stroke-dasharray: none;
  opacity: 0.55;
}
.pricing-scope {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  margin: -14px 0 23px;
  max-width: 900px;
}
.pricing-scope > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.pricing-disclosure {
  margin-top: 0;
}

/* A purposeful footer: orientation, next steps and real information pages. */
.footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  align-items: start;
  gap: 42px;
  padding-block: 48px 32px;
}
.footer-description {
  color: var(--night-muted);
  font-size: 12px;
  max-width: 250px;
  line-height: 1.8;
  margin: 18px 0 17px;
}
.footer .endorsement {
  margin-left: 0;
}
.footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: 12px;
}
.footer-heading {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #ffaf99;
  margin: 8px 0 12px;
}
.footer nav a {
  min-height: 44px;
  gap: 6px;
  line-height: 1.6;
}
.footer nav .arrow-icon {
  width: 14px;
  height: 14px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #c2e0d12c;
  padding-block: 17px;
  font-size: 10px;
  color: var(--night-muted);
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.back-top span {
  color: var(--on-night);
  font-size: 17px;
  transition: transform 0.2s;
}
.back-top:hover span {
  transform: translateY(-3px);
}

/* Dark mode colors every interface surface, including synthetic chats. */
[data-theme="dark"] .site-header:not(.is-dark) {
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  border-color: var(--line);
}
[data-theme="dark"] .site-header .logo-light {
  opacity: 0;
}
[data-theme="dark"] .site-header .logo-dark {
  opacity: 1;
}
[data-theme="dark"] .button:not(.light) {
  color: var(--action-text);
}
[data-theme="dark"] .button:not(.light):hover {
  background: #abe9dc;
}
[data-theme="dark"] .site-header.is-dark .header-contact {
  background: var(--on-night);
  color: var(--night);
}
[data-theme="dark"] .hero-wash {
  background: radial-gradient(ellipse at 50% 80%, #839a981a, transparent 65%);
}
[data-theme="dark"] .floating-chat,
[data-theme="dark"] .typing-card,
[data-theme="dark"] .mobile-menu {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .floating-chat.assistant {
  background: var(--surface-soft);
}
[data-theme="dark"] .peach {
  color: #ffaf99;
  background: var(--accent-soft);
}
[data-theme="dark"] .teal,
[data-theme="dark"] .business-avatar {
  background: #30383a;
  color: var(--green);
}
[data-theme="dark"] .scroll-track {
  border-color: var(--line);
}
[data-theme="dark"] .service-plan-link {
  border-color: var(--line);
}
[data-theme="dark"] .capability-panel {
  background: linear-gradient(135deg, var(--surface-soft), var(--surface));
}
[data-theme="dark"] .capability-row {
  border-color: var(--line);
}
[data-theme="dark"] .capability-tag {
  background: #2a3636;
  color: #b5e4d3;
  border-color: #455453;
}
[data-theme="dark"] .scene-tabs button:hover:not([aria-selected="true"]) {
  background: #ffffff08;
}
[data-theme="dark"] .chat-date,
[data-theme="dark"] .demo-message > small,
[data-theme="dark"] .demo-message time {
  color: var(--muted);
}
[data-theme="dark"] .demo-message {
  background: #2d3034;
}
[data-theme="dark"] .demo-message.outgoing {
  background: #273b38;
}
[data-theme="dark"] .demo-message.agent {
  background: #303b45;
}
[data-theme="dark"] .demo-message.outgoing > small,
[data-theme="dark"] .demo-message.agent > small {
  color: #b0e7d4;
}
[data-theme="dark"] .process-panel {
  background: var(--surface-soft);
  border-color: var(--line);
}
[data-theme="dark"] .pricing-section {
  background: linear-gradient(var(--surface-soft), var(--canvas));
}
[data-theme="dark"] .plan-card:not(.plan-full) {
  background: var(--surface);
}
[data-theme="dark"] .plan-card:not(.plan-full):hover {
  border-color: #8b9b99;
}
[data-theme="dark"] .site-header.is-dark .motion-toggle:hover {
  background: #ffffff0d;
}

@media (max-width: 1150px) and (min-width: 701px) {
  .header-contact {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    gap: 0;
  }
  .header-contact .cta-label {
    display: none;
  }
  .hero {
    min-height: 850px;
  }
  .orbit-one {
    top: 580px;
  }
  .orbit-two {
    top: 595px;
  }
}
@media (max-width: 999px) {
  .footer {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-description {
    max-width: 400px;
  }
  .pricing-scope {
    max-width: 600px;
    margin-inline: auto;
  }
}
@media (max-width: 700px) {
  .header-contact {
    gap: 0;
    display: grid;
    place-items: center;
  }
  .header-contact > .arrow-icon {
    width: 20px;
    height: 20px;
  }
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
  .hero-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 300px;
    margin-top: 18px;
  }
  .hero-channels > span {
    flex-direction: column;
    gap: 2px;
  }
  .hero-caption {
    margin-top: 13px;
  }
  .channel-map {
    max-width: 320px;
    margin-block: 22px 12px;
  }
  .pricing-scope {
    margin-top: -8px;
    line-height: 1.8;
  }
  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
    padding-block: 32px 24px;
  }
  .footer nav:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .footer nav:last-child .footer-heading {
    grid-column: 1 / -1;
  }
  .footer-description {
    max-width: 290px;
  }
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 16px;
  }
  .footer-bottom > span {
    grid-column: 1;
  }
  .footer-bottom .back-top {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
@media (max-width: 359px) {
  .header {
    padding-inline: 12px;
    gap: 8px;
  }
  .header .brand-art {
    width: 86px;
  }
  .header-actions {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route-pulse {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.55;
  }
}
