/* ============ Design tokens ============ */
:root {
  --blue-900: #469cda;
  --blue-800: #469cda;
  --blue-700: #469cda;
  --blue-600: #469cda;
  --blue-500: #469cda;
  --blue-bright: #469cda;
  --blue-100: #e1eff9;
  --blue-50: #f2f8fc;
  --blue-ink: #1c5a86;
  --navy-900: #081359;
  --navy-900-rgb: 8, 19, 89;
  --yellow-500: #ffc93c;
  --yellow-600: #f5b300;
  --white: #ffffff;
  --ink-900: #10192b;
  --ink-700: #3a4557;
  --ink-500: #6b7688;
  --border: #e2e7f2;

  --cookie-bar-h: 0px;
  --footer-clear-h: 0px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(16, 25, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 37, 89, 0.10);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  padding-bottom: var(--footer-clear-h);
  transition: padding-bottom .2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; }
h1, h2 { font-weight: 800; }
p { margin: 0 0 1em; color: var(--ink-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ink);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-600);
}

.section {
  padding: 100px 0;
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--blue-50); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { font-size: 17px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--yellow-500);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--yellow-600); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-blue {
  background: var(--blue-700);
  color: var(--ink-900);
}
.btn-blue:hover { background: var(--blue-800); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: var(--blue-100);
  color: var(--blue-ink);
}
.btn-ghost:hover { background: #dce6fb; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-100);
  color: var(--blue-ink);
}
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-caret { width: 10px; height: 10px; flex-shrink: 0; transition: transform .15s ease; }
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--blue-100); color: var(--blue-ink); }
.mobile-nav-sub { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; margin-bottom: 6px; }
.mobile-nav-sub a { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--blue-800);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  position: relative;
  transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 18px; height: 2px; background: var(--ink-900); }
.nav-toggle span::after { position: absolute; top: 6px; width: 18px; height: 2px; background: var(--ink-900); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background-image: url("../assets/illustrations/hero-pattern.svg?v=2"), radial-gradient(1200px 500px at 15% -10%, var(--blue-bright), transparent 60%), linear-gradient(160deg, var(--blue-900), var(--blue-bright));
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 300px 300px, auto, auto;
  color: var(--white);
  overflow: hidden;
  padding-bottom: 64px;
}
/* Yellow corner glow. Was `.hero::after` until a navy overlay was added - moved to
   ::before to free up ::after for that overlay; position is self-contained so it
   behaves identically either way. */
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,60,0.25), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
/* Navy overlay (client's #081359), requested to "ground" the hero - it read as too
   bright with only light blue/yellow/white. Tints ONLY the background: transparent for
   the top 55%, ramping to ~28% opacity at the bottom edge (0.28 not 0.34 because the
   base blue here is #469cda, lighter than the #1a9bd7 the mockup assumed), plus a faint
   left-to-right weighting. Sits below all content and the white wave divider. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom,
      rgba(var(--navy-900-rgb), 0) 55%,
      rgba(var(--navy-900-rgb), 0.16) 78%,
      rgba(var(--navy-900-rgb), 0.28) 100%),
    linear-gradient(to right,
      rgba(var(--navy-900-rgb), 0) 0%,
      rgba(var(--navy-900-rgb), 0.07) 100%);
}
.hero-divider {
  display: block;
  position: relative;
  width: 100%;
  height: 64px;
  margin-top: -64px;
  color: var(--white);
  z-index: 1; /* stay above the navy .hero::after overlay so the wave renders pure white */
}
.hero-inner {
  position: relative;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  color: var(--white);
  text-shadow: 0 3px 10px rgba(10, 30, 60, 0.35);
}
.hero h1 .hl { color: var(--yellow-500); }
.hero p.lead {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 520px;
}
.hero-stat b {
  display: block;
  font-size: 26px;
  color: var(--yellow-500);
}
.hero-stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row:hover {
  transform: scale(1.045);
  background: rgba(255,255,255,0.07);
}
.hero-panel-row:hover .hero-panel-icon {
  background: var(--blue-100);
  color: var(--blue-700);
}
.hero-panel-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--yellow-500);
  color: var(--blue-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-panel-row strong { display: block; font-size: 15px; color: var(--white); }
.hero-panel-row div span { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ============ Hero signal rings (option 3a) ============ */
.hero-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-rings span {
  position: absolute;
  left: 74%;
  top: 46%;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  border: 2px solid rgba(28, 90, 134, 0.40);
  animation: hero-ripple 7.6s linear infinite backwards;
  will-change: transform, opacity;
}
.hero-rings span:nth-child(2) {
  border-color: rgba(255, 201, 60, 0.45);
  animation-delay: 1.9s;
}
.hero-rings span:nth-child(3) {
  border-color: rgba(28, 90, 134, 0.32);
  animation-delay: 3.8s;
}
.hero-rings span:nth-child(4) {
  border-color: rgba(255, 201, 60, 0.30);
  animation-delay: 5.7s;
}

@keyframes hero-ripple {
  0%   { transform: scale(0.25); opacity: 0; }
  14%  { opacity: 0.75; }
  100% { transform: scale(2); opacity: 0; }
}

/* Keep hero content above the rings. */
.hero-inner { z-index: 1; }

/* Rings are decorative — laptop/desktop only. Below the hero's two-column
   breakpoint the panel and copy restack, so the ring origin no longer
   lines up behind the panel. */
@media (max-width: 980px) {
  .hero-rings { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rings { display: none; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 64px 0 56px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,60,0.22), transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 72%);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 52px);
  text-shadow: 0 3px 10px rgba(10, 30, 60, 0.35);
}
.page-hero p { color: rgba(255,255,255,0.85); max-width: 620px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.breadcrumb a { color: var(--yellow-500); font-weight: 600; }

/* ============ Trust bar ============ */
.trust-bar {
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.trust-logos span {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-700);
  font-size: 14px;
  background: var(--blue-50);
}
.trust-logos .logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  height: 112px;
  min-width: 172px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.trust-logos .logo-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.trust-logos .logo-badge img {
  max-height: 68px;
  max-width: 164px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.trust-logos .logo-badge.mono img { color: var(--ink-700); }

#software-integrations {
  border-top: 1px solid var(--border);
}
#software-integrations .trust-logos {
  flex-wrap: nowrap;
  gap: 14px;
}
#software-integrations .trust-logos .logo-badge {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 14px;
}
#software-integrations .trust-logos .logo-badge img {
  max-height: 60px;
  max-width: 100%;
}

/* Scrolling logo marquee */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: logo-marquee-scroll 26s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
.logo-marquee-track .logo-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  height: 96px;
}
.logo-marquee-track .logo-badge img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes logo-marquee-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* Scrolling accessory marquee (2 rows, opposite directions) */
.accessory-marquee { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
.accessory-marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.accessory-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  animation: logo-marquee-scroll 46s linear infinite;
}
.accessory-marquee-row.reverse .accessory-marquee-track {
  animation-direction: reverse;
}
.accessory-marquee-row:hover .accessory-marquee-track,
.accessory-marquee-row.is-paused .accessory-marquee-track {
  animation-play-state: paused;
}
.accessory-card {
  flex-shrink: 0;
  width: 170px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-900);
  transition: transform .15s ease, box-shadow .15s ease;
}
.accessory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.accessory-card img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  margin-bottom: 10px;
}
.accessory-card span {
  font-weight: 700;
  font-size: 14px;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .accessory-marquee-track { animation: none; }
  .accessory-marquee-row { overflow-x: auto; }
}
@media (max-width: 640px) {
  .accessory-card { width: 138px; padding: 12px; }
  .accessory-card img { height: 88px; }
  /* Drift slowly on phones - there's no hover to pause with, and the JS
     tap-to-pause (js/main.js) needs the strip moving gently enough to catch. */
  .accessory-marquee-track { animation-duration: 100s; }
}

/* ============ Cards / grids ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-photo {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  padding: 10px;
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 38% 62% 65% 35% / 45% 40% 60% 55%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: border-radius .35s ease;
}
.card:hover .card-icon { border-radius: 62% 38% 35% 65% / 55% 60% 40% 45%; }
.card h3 { font-size: 19px; }
.card h2 { font-size: 19px; }
.card p { font-size: 15px; margin-bottom: 14px; }
.card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow-500);
  color: var(--ink-900);
  margin-bottom: 12px;
}
.tag-new {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-ink);
  margin-bottom: 10px;
}
.product-card p.coming-soon {
  font-size: 13px;
  color: var(--ink-500);
  font-style: italic;
  margin: 0;
}
.series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.series-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--blue-100);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-ink);
  background: var(--blue-50);
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.series-nav a:hover, .series-nav a.active {
  background: var(--blue-ink);
  color: var(--white);
  border-color: var(--blue-ink);
  box-shadow: var(--shadow-sm);
}

/* Product spec rows - fully visible, no click required */
.product-list { max-width: 1180px; margin: 0 auto; }
.product-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.product-list .product-row:first-child { padding-top: 0; }
.product-list .product-row:last-child { border-bottom: none; padding-bottom: 0; }
.product-row-photo {
  width: 460px;
  height: 460px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-row-body { flex: 1; min-width: 0; }
.product-row-body h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-800);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.product-row-body h3 sup {
  font-size: 15px;
  color: var(--ink-500);
  font-weight: 700;
  cursor: help;
  margin-left: 1px;
}
.feature-row h3 sup {
  font-size: 13px;
  color: var(--yellow-600);
  font-weight: 800;
  cursor: help;
  margin-left: 1px;
}
.feature-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-500);
  margin: 20px 0 0;
}
/* pbx-full-features.html: grouped feature lists that reflow from 4 columns down to 1 */
.feature-list-title {
  max-width: 1000px;
  margin: 40px auto 14px;
  font-size: 18px;
  color: var(--ink-900);
}
.feature-list-title:first-of-type { margin-top: 0; }
.feature-list {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 28px;
}
/* cloudsoftphone-download.html download buttons */
.softphone-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.series-footnote {
  max-width: 1180px;
  margin: 28px auto 0;
  font-size: 13.5px;
  color: var(--ink-500);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.product-row-body .tagline { font-size: 17px; color: var(--ink-500); margin-bottom: 26px; }
.product-row-body .check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.product-row-body .check-list li {
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.product-row-body .check-list li:last-child { border-bottom: none; }
.product-row-body .coming-soon { font-size: 15px; }

@media (max-width: 900px) {
  .product-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .product-row-photo { width: 100%; height: auto; max-height: 380px; }
}

/* Article listing (articles.html) */
.article-list { max-width: 820px; margin: 0 auto; list-style: none; padding: 0; }
.article-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.article-list .article-row:first-child { padding-top: 0; }
.article-list .article-row:last-child { border-bottom: none; padding-bottom: 0; }
.article-row a { font-size: 17px; font-weight: 700; color: var(--blue-ink); }
.article-row a:hover { text-decoration: underline; }
.article-row time { font-size: 13.5px; color: var(--ink-500); white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) {
  .article-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Article detail pages (articles/*.html) */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-ink);
  margin-bottom: 28px;
}
.article-back svg { width: 15px; height: 15px; }
.article-back:hover { text-decoration: underline; }
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { font-size: 16.5px; line-height: 1.7; color: var(--ink-700); margin-bottom: 18px; }
.article-body h2 { font-size: 23px; margin: 38px 0 12px; }
.article-body h2:first-of-type { margin-top: 0; }
.article-body h3 { font-size: 16.5px; color: var(--blue-ink); margin: 20px 0 6px; }
.article-body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 18px;
}
.article-body ul li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.article-body a { color: var(--blue-ink); text-decoration: underline; }
.article-body a:hover { color: var(--blue-800); }

/* Cloud PBX portal screenshot gallery (phone-systems.html) */
.portal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.portal-gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.portal-gallery figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.portal-gallery img { width: 100%; display: block; }
.portal-gallery figcaption {
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-700);
  background: var(--white);
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .portal-gallery { grid-template-columns: 1fr; }
  /* Check-lists laid out as 2-3 column grids via inline styles stack to one column on phones,
     so long words can't spill into the next column (Teams benefits list on phone-systems.html). */
  .check-list[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* Feature list with check icons */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-700);
  padding: 8px 0;
  min-width: 0;
}
.check-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-600);
}

/* Feature row (icon + text, used on service pages) */
.feature-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.grid-4 > .feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row .card-icon { margin-bottom: 0; flex-shrink: 0; }
.feature-row h3 { font-size: 16.5px; margin-bottom: 4px; }
.feature-row p { font-size: 14.5px; margin: 0; }

/* Split section (image/panel + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  background: linear-gradient(155deg, var(--blue-100), var(--blue-50));
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}

/* Diagram: how a phone system connects */
.pbx-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(155deg, var(--blue-100), var(--blue-50));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}
.pbx-diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 100px;
}
.pbx-diagram-node .card-icon { margin-bottom: 0; }
.pbx-diagram-node strong { font-size: 13px; color: var(--ink-900); font-weight: 700; }
.pbx-diagram-arrow { color: var(--blue-600); flex-shrink: 0; }
.pbx-diagram-devices {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.card-icon img { width: 58%; height: 58%; object-fit: contain; }
@media (max-width: 640px) {
  .pbx-diagram { padding: 28px 18px; gap: 14px; }
  .pbx-diagram-devices { gap: 12px; }
}

/* Pricing */
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--blue-600);
  box-shadow: var(--shadow-md);
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--yellow-500);
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-card .price {
  font-size: 40px;
  font-weight: 800;
  color: var(--blue-900);
  margin: 14px 0 2px;
}
.price-card .price span { font-size: 15px; font-weight: 600; color: var(--ink-500); }
.price-card .price-note { font-size: 13.5px; color: var(--ink-500); margin-bottom: 22px; }
.price-card .check-list { margin-bottom: 26px; flex-grow: 1; }

/* Pricing data table */
#pricing-table { padding: 36px; }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--white);
}
.pricing-table th, .pricing-table td {
  padding: 14px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
/* On phones the 3-column table has to fit without a hidden sideways scroll -
   the prices column was landing entirely off-screen. Tighten padding, drop the
   min-width, let headers wrap. */
@media (max-width: 640px) {
  #pricing-table { padding: 18px; }
  .pricing-table { min-width: 0; }
  .pricing-table th, .pricing-table td {
    padding: 11px 8px;
    font-size: 13px;
    white-space: normal;
  }
  .pricing-table th { font-size: 10.5px; }
  .pricing-table td:first-child { white-space: nowrap; }
}
.pricing-table th {
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-table td:last-child, .pricing-table th:last-child { font-weight: 700; color: var(--blue-800); }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--blue-50); }
.pricing-footnote { font-size: 12.5px; color: var(--ink-500); margin-top: 14px; }

/* Callout box */
.callout {
  display: flex;
  gap: 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}
.callout .card-icon { background: var(--white); flex-shrink: 0; margin-bottom: 0; }
.callout h3 { font-size: 16px; margin-bottom: 6px; }
.callout p { font-size: 14.5px; margin: 0; }

/* Testimonials */
.testimonial-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 18px;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-100);
  font-family: Georgia, serif;
  z-index: 0;
}
.testimonial-card > * { position: relative; }
.testimonial-quote {
  font-size: 15px;
  color: var(--ink-700);
  flex-grow: 1;
  margin-bottom: 20px;
}
.testimonial-author strong { display: block; font-size: 14.5px; color: var(--ink-900); }
.testimonial-author span { font-size: 13px; color: var(--ink-500); }
.testimonial-company {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 10px;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip b {
  display: block;
  font-size: 34px;
  color: var(--blue-800);
}
.stats-strip span { font-size: 14px; color: var(--ink-500); }

/* Timeline (about page) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow-500);
  border: 3px solid var(--blue-700);
}
.timeline-item h3 { font-size: 16px; margin-bottom: 4px; }
.timeline-item .year { color: var(--blue-ink); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; }

/* Person card */
.person-card { display: flex; gap: 18px; align-items: flex-start; }
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.person-card h3 { margin-bottom: 2px; font-size: 17px; }
.person-card .role { color: var(--blue-ink); font-weight: 700; font-size: 13.5px; margin-bottom: 8px; display: block; }
.person-quote {
  margin: 14px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--yellow-500);
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-700);
}
.person-quote p { margin: 0; }

/* Personal welcome letter (about.html) */
.greeting-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-bottom: 5px solid var(--blue-700);
  padding: 48px 56px 40px;
}
.greeting-card h2 { text-align: center; margin-bottom: 14px; }
.greeting-card h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--yellow-500);
}
.greeting-card p { font-size: 16px; line-height: 1.7; color: var(--ink-700); margin-bottom: 16px; }
.greeting-card .greeting-sign { font-weight: 700; color: var(--ink-900); margin: 24px 0 0; }
@media (max-width: 640px) {
  .greeting-card { padding: 32px 22px 28px; }
}

/* CTA band */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,60,0.28), transparent 70%);
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 72%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-card:last-child { border-bottom: none; }
.contact-card h3 { font-size: 15.5px; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--ink-700); margin: 0; }
.contact-card a:hover { color: var(--blue-700); }

.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  /* 16px minimum - anything smaller makes iOS Safari zoom the page on focus. Harmless on Android/desktop. */
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: var(--white);
  color: var(--ink-900);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-500);
}
.field-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue-700);
  cursor: pointer;
}
.field-check label { cursor: pointer; }
/* contact.html: legal line under the submit button */
.form-legal {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
}
.form-legal a { color: var(--blue-ink); text-decoration: underline; }
.form-note {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 12px;
  text-align: center;
}
#form-success {
  display: none;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-800);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 18px;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 420px;
  height: 320px;
  background: url("../assets/illustrations/connected-world.png") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}
.site-footer .container { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand {
  display: inline-flex;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand .brand-logo-img {
  height: 60px;
  filter: brightness(0) invert(1);
}
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col h3 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.72); transition: color .15s ease; }
.footer-col a:hover { color: var(--yellow-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow-500);
  color: var(--blue-900);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .18s ease, color .18s ease;
}
.footer-social a:hover { background: var(--blue-100); color: var(--blue-700); }
.footer-social a svg { width: 18px; height: 18px; }

.footer-contact { margin: 16px 0 0; }
.footer-contact li { margin-bottom: 7px; font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-contact a { font-weight: 700; color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.footer-contact a:hover { color: var(--yellow-500); }

.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.6); transition: color .15s ease; }
.footer-legal a:hover { color: var(--yellow-500); }

/* ============ Cookie bar ============ */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink-900);
  color: rgba(255,255,255,0.82);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: 13.5px; max-width: 560px; color: rgba(255,255,255,0.82); }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-bar { justify-content: flex-start; padding: 14px 16px; }
  .cookie-bar-actions { width: 100%; }
  .cookie-bar-actions .btn { flex: 1; }
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  left: 24px;
  bottom: calc(24px + var(--cookie-bar-h));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease, bottom .25s ease;
  z-index: 60;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-700); }

/* ============ Mascot assistant ============ */
.mascot-widget {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--cookie-bar-h));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  transition: bottom .25s ease;
  pointer-events: none; /* the container's own box spans the (invisible-when-closed) bubble
    plus the avatar - without this it silently blocks clicks on whatever's behind that
    empty space (e.g. the footer's Company column). Real children opt back in below. */
}
.mascot-avatar {
  pointer-events: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 37, 89, 0.22);
  transform: scale(0);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease;
  animation: mascot-pop-in .5s cubic-bezier(.34,1.56,.64,1) .6s forwards;
}
.mascot-avatar:hover { box-shadow: 0 10px 30px rgba(16, 37, 89, 0.3); transform: scale(1.06); }
.mascot-avatar img { width: 100%; height: auto; display: block; }
.mascot-avatar .mascot-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow-500);
  border: 2px solid var(--white);
}
@keyframes mascot-pop-in {
  0% { transform: scale(0) translateY(20px); }
  100% { transform: scale(1) translateY(0); }
}

.mascot-bubble {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(16, 37, 89, 0.25);
  border: 1px solid var(--border);
  padding: 16px;
  transform-origin: bottom right;
  transform: scale(0.85) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.mascot-bubble.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mascot-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mascot-bubble-head strong {
  font-size: 14.5px;
  color: var(--ink-900);
}
.mascot-bubble-head span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-500);
  font-weight: 600;
}
.mascot-bubble-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-500);
  /* ~40px hit area for thumbs; negative margin keeps the header layout unchanged */
  padding: 10px;
  margin: -10px -8px -10px 0;
  flex-shrink: 0;
  border-radius: 8px;
  line-height: 0;
  display: inline-flex;
}
.mascot-bubble-close:hover { color: var(--ink-900); background: var(--blue-50); }

.mascot-chat-log {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 2px 10px;
  margin-bottom: 8px;
}
.mascot-msg {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.mascot-msg.bot {
  align-self: flex-start;
  background: var(--blue-50);
  color: var(--ink-900);
  border-bottom-left-radius: 4px;
}
.mascot-msg.user {
  align-self: flex-end;
  background: var(--blue-600);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.mascot-msg-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.mascot-msg-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-ink);
  transition: border-color .15s ease, background .15s ease;
}
.mascot-msg-links a:hover { background: var(--blue-100); border-color: var(--blue-600); }
.mascot-msg-links a svg { width: 12px; height: 12px; flex-shrink: 0; }
.mascot-typing { display: flex; gap: 4px; padding: 4px 2px; }
.mascot-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-500);
  animation: mascot-typing-bounce 1.2s infinite ease-in-out;
}
.mascot-typing span:nth-child(2) { animation-delay: .15s; }
.mascot-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mascot-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.mascot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.mascot-chips button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.mascot-chips button:hover { background: var(--blue-50); border-color: var(--blue-600); }

.mascot-input-row { display: flex; gap: 8px; }
.mascot-input-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--white);
}
.mascot-input-row input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.mascot-input-row button {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--blue-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease;
}
.mascot-input-row button:hover { background: var(--blue-700); }
.mascot-input-row button svg { width: 16px; height: 16px; }
.niall-turnstile:empty, .form-turnstile:empty { display: none; }
.niall-turnstile { margin-top: 8px; }
.form-turnstile { margin: 0 0 14px; }
.form-error { margin: 0 0 14px; font-size: 14px; color: #b42318; }
.mascot-handoff p { margin: 0 0 8px; }
.mascot-handoff input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  background: var(--white);
}
.mascot-handoff input:focus { outline: none; border-color: var(--blue-700); }
.mascot-handoff button {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.mascot-handoff button:hover { background: var(--blue-700); }
.mascot-handoff button:disabled { opacity: 0.7; cursor: default; }
.mascot-handoff .mascot-handoff-error { margin: 6px 0 0; font-size: 12.5px; color: #b42318; }
.mascot-note { margin: 8px 0 0; font-size: 9.5px; line-height: 1.4; color: var(--ink-500); }

@media (max-width: 640px) {
  .mascot-widget { right: 14px; bottom: calc(14px + var(--cookie-bar-h)); }
  .mascot-avatar { width: 64px; height: 64px; }
  .mascot-bubble { width: calc(100vw - 60px); max-width: 320px; }
  .mascot-chat-log { max-height: 260px; }
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.grid-2 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2), .grid-4 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3), .grid-4 .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #software-integrations .trust-logos { flex-wrap: wrap; }
  #software-integrations .trust-logos .logo-badge { flex: 1 1 40%; min-width: 130px; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-700);
}
.mobile-nav a.active, .mobile-nav a:hover { background: var(--blue-100); color: var(--blue-700); }
