:root {
  --bg: #f6fbfc;
  --ink: #101828;
  --muted: #475467;
  --brand: #e80909;
  --brand-dark: #b50707;
  --teal: #1fa7a1;
  --card: #ffffff;
  --line: #d9e6ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(700px, 100%);
}

.site-header {
  background: #ffffffdd;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-image {
  display: block;
  width: 160px;
  height: auto;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.site-nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta .btn {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.nav-toggle:hover {
  border-color: #cfdce5;
}

.nav-toggle:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232, 9, 9, 0.16);
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 20px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 4.5rem 0;
}

.section-top {
  padding-top: 3.5rem;
}

.section-muted {
  background: #edf5f8;
}

.hero {
  padding: 4.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
}

.hero-copy {
  color: var(--muted);
  max-width: 62ch;
}

.hero-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-art img,
.hero-art-svg {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f4fafc 0%, #ffffff 100%);
}

.hero-art-svg {
  display: block;
  height: auto;
  font-family: "Inter", sans-serif;
}

.hero-flow-inbound-bg {
  fill: #ffffff;
  stroke: var(--teal);
  stroke-width: 1.6;
}

.hero-flow-inbound-icon path {
  fill: var(--teal);
}

.hero-flow-pulse {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  opacity: 0;
  animation: callPulse 2.6s ease-in-out infinite;
}

.hero-flow-link {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: flowDash 3.2s linear infinite;
}

.hero-flow-link-out-1 { animation-delay: 0.3s; }
.hero-flow-link-out-2 { animation-delay: 0.6s; }
.hero-flow-link-out-3 { animation-delay: 0.9s; }

.hero-flow-agent {
  fill: var(--brand);
  stroke: var(--brand);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeBreathe 3.2s ease-in-out infinite;
}

.hero-flow-agent-icon {
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.hero-flow-agent-cup {
  fill: #ffffff;
}

.hero-flow-agent-mic {
  fill: #ffffff;
}

.hero-flow-247-pill {
  fill: #ffffff;
  stroke: var(--brand);
  stroke-width: 1.4;
}

.hero-flow-247-text {
  fill: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hero-flow-pill-dispatch {
  fill: var(--teal);
}

.hero-flow-pill-faq {
  fill: #ffffff;
  stroke: var(--line);
  stroke-width: 1.2;
}

.hero-flow-pill-escalation {
  fill: var(--brand);
}

.hero-flow-pill-text {
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hero-flow-pill-text-on-color {
  fill: #ffffff;
}

.hero-flow-pill-text-neutral {
  fill: var(--ink);
}

.eyebrow {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
}

h2, .section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-intro {
  color: var(--muted);
  max-width: 68ch;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.service-card {
  overflow: hidden;
}

.service-graphic {
  margin-bottom: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbfe);
  padding: 0.35rem 0.55rem;
}

.service-graphic svg {
  display: block;
  width: 100%;
  height: 96px;
}

.service-graphic-voice .sg-phone-badge-caller {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 2.2;
}

.service-graphic-voice .sg-phone-badge-ai {
  fill: var(--brand);
  stroke: var(--brand);
  stroke-width: 2.2;
}

.service-graphic-voice .sg-phone-icon-caller path {
  fill: var(--teal);
}

.service-graphic-voice .sg-phone-icon-ai path {
  fill: #fff;
}

.service-graphic-voice .sg-pulse-ring {
  fill: none;
  stroke-width: 2;
  opacity: 0;
}

.service-graphic-voice .sg-pulse-caller {
  stroke: var(--teal);
  animation: callPulse 2.4s ease-in-out infinite;
}

.service-graphic-voice .sg-pulse-ai {
  stroke: var(--brand);
  animation: callPulse 2.4s ease-in-out infinite 1.2s;
}

.service-graphic-voice .sg-conv-wave {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: flowDash 3.2s linear infinite;
}

.service-graphic-voice .sg-conv-wave-1 {
  stroke: var(--teal);
}

.service-graphic-voice .sg-conv-wave-2 {
  stroke: var(--brand);
  animation-direction: reverse;
}

.service-graphic-workflow .sg-node {
  fill: #fff;
  stroke: var(--brand);
  stroke-width: 2;
}

.service-graphic-workflow .sg-link {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
  animation: flowDash 3.2s linear infinite;
}

.service-graphic-workflow .sg-link-b,
.service-graphic-workflow .sg-link-d {
  animation-delay: 0.45s;
}

.service-graphic-workflow .sg-node-1,
.service-graphic-workflow .sg-node-3 {
  animation: nodeBreathe 2.6s ease-in-out infinite;
}

.service-graphic-workflow .sg-node-2,
.service-graphic-workflow .sg-node-4 {
  animation: nodeBreathe 2.6s ease-in-out infinite 0.5s;
}

.service-graphic-knowledge .sg-sheet {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.6;
}

.service-graphic-knowledge .sg-line {
  fill: #dbe8f2;
}

.service-graphic-knowledge .sg-scan {
  fill: var(--brand);
  opacity: 0.72;
  animation: scanLine 2.8s ease-in-out infinite;
}

@keyframes callPulse {
  0% {
    opacity: 0.6;
    stroke-width: 2;
  }
  100% {
    opacity: 0;
    stroke-width: 0.6;
  }
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -26;
  }
}

@keyframes nodeBreathe {
  0%,
  100% {
    transform: scale(1);
    transform-origin: center;
  }
  50% {
    transform: scale(1.08);
    transform-origin: center;
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(46px);
  }
  100% {
    transform: translateY(0);
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.step span {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  background: linear-gradient(120deg, #0d2038, #123a5d 60%, #116f84);
  color: #fff;
}

.cta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.btn {
  border: none;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.8rem 1.1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-ghost:hover {
  background: #eaf3ff;
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.secondary-contact-cta {
  margin: 0.55rem 0 0;
}

.secondary-email-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(83, 165, 164, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.secondary-email-link:hover {
  color: var(--brand);
  border-bottom-color: rgba(232, 9, 9, 0.35);
}

.secondary-email-link:focus-visible {
  outline: none;
  color: var(--brand);
  border-bottom-color: rgba(232, 9, 9, 0.7);
}

.tier-grid {
  margin-top: 1.2rem;
}

.pricing-cta {
  margin-top: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.section#pricing .section-intro {
  max-width: 62ch;
}

.site-footer .secondary-email-link {
  color: inherit;
  font-weight: 500;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.site-footer .secondary-email-link:hover,
.site-footer .secondary-email-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.section#pricing .tier-card {
  border-color: var(--line);
  box-shadow: none;
}

.tier-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tier-card-static {
  cursor: default;
}

.tier-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #d6e9ff;
}

.tier-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.tier-price {
  font-size: 2rem;
  margin: 0.2rem 0 0.7rem;
  font-weight: 800;
}

.section#pricing .tier-name {
  color: var(--ink);
  font-size: 0.79rem;
}

.section#pricing .tier-price {
  color: var(--ink);
  margin: 0.25rem 0 0.75rem;
  line-height: 1.1;
}

.section#pricing .tier-price span {
  color: var(--muted);
}

.section#pricing .tier-card ul {
  margin-bottom: 0;
}

.tier-price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.tier-card ul {
  padding-left: 1.1rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.tier-card li + li {
  margin-top: 0.45rem;
}

.tier-contact {
  width: 100%;
}

.tier-phone {
  margin-top: 0.7rem;
  display: block;
  text-align: center;
  color: var(--muted);
}

.subscribe-panel {
  margin-top: 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.subscribe-panel h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.subscribe-form {
  display: grid;
  gap: 0.5rem;
}

.subscribe-form label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #344054;
  font-weight: 600;
}

.subscribe-form input {
  border: 1px solid #c8d7e3;
  border-radius: 10px;
  padding: 0.68rem 0.78rem;
  font-size: 1rem;
}

.form-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.7rem 0 0;
}

.form-error {
  margin: 0.35rem 0 0;
  color: #b42318;
  font-weight: 600;
}

.spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid #ffffff7a;
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.45rem;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-content {
  padding: 2rem 0;
  color: var(--muted);
}

.footer-title {
  color: #101828;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease-in-out;
}

.footer-legal a:hover {
  border-bottom-color: var(--brand);
}

.footer-copy {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.sep {
  margin: 0 0.45rem;
}

.legal-page {
  padding-bottom: 2rem;
}

.legal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--teal);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.4rem;
  margin-bottom: 1.6rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
}

.legal-page h3 {
  font-size: 1rem;
  margin: 1.1rem 0 0.4rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink);
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 1rem;
}

.legal-page li + li {
  margin-top: 0.3rem;
}

.legal-page a {
  color: var(--brand-dark);
}

@media (prefers-reduced-motion: reduce) {
  .service-graphic-voice .sg-pulse-ring,
  .service-graphic-voice .sg-conv-wave,
  .service-graphic-workflow .sg-link,
  .service-graphic-workflow .sg-node,
  .service-graphic-knowledge .sg-scan,
  .hero-flow-pulse,
  .hero-flow-link,
  .hero-flow-agent {
    animation: none !important;
  }
  .service-graphic-voice .sg-conv-wave {
    opacity: 0.55;
  }
  .hero-flow-pulse {
    opacity: 0.2;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .cards-3,
  .steps,
  .cta-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-wrap {
    gap: 1rem;
  }

  .cta-actions {
    align-items: flex-start;
  }

  .nav-wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    row-gap: 0;
  }

  .nav-controls {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    margin: 0;
    gap: 0;
    padding: 0.5rem 4% 0.85rem;
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    z-index: 19;
  }

  .site-nav-links.is-open {
    display: flex;
  }

  .site-nav-links a {
    padding: 0.6rem 0;
    width: 100%;
  }
}
