/* =========================================================
   AVANSER — Fable design system (v2)
   Self-hosted Manrope variable font, zero external requests.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2");
}

:root {
  --brand: #2945d9;
  --brand-deep: #1c30ad;
  --brand-darkest: #16256e;
  --violet: #6d3df0;
  --gradient: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);

  --brand-tint: #eef1fd;
  --brand-tint-2: #dde4fb;

  --ink: #0b0e1a;
  --body: #454b63;
  --muted: #7b829b;

  --bg: #ffffff;
  --bg-alt: #f5f6fc;
  --navy: #0c1026;
  --footer-bg: #0b0e1a;

  --border: #e6e9f4;
  --border-strong: #d5daee;
  --border-dark: #232849;

  --success: #0fae7a;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 14, 26, 0.05), 0 1px 1px rgba(11, 14, 26, 0.03);
  --shadow-md: 0 10px 30px rgba(11, 14, 26, 0.09), 0 2px 8px rgba(11, 14, 26, 0.04);
  --shadow-lg: 0 30px 70px rgba(11, 14, 26, 0.16), 0 10px 26px rgba(11, 14, 26, 0.08);
  --shadow-brand: 0 12px 28px rgba(41, 69, 217, 0.28);

  --container: 1180px;
  --header-h: 74px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- reset & base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
svg { display: block; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  font-weight: 450;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(41, 69, 217, 0.35), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(109, 61, 240, 0.25), transparent 60%),
    var(--navy);
  color: rgba(255, 255, 255, 0.72);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lede { color: rgba(255, 255, 255, 0.66); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gradient);
}

.section-head { max-width: 680px; margin: 0 0 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }

.statement {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-deep); }
.hero-cta-pulse { animation: assessment-pulse 3s ease-in-out infinite; }
.hero-cta-pulse:hover { animation-play-state: paused; transform: translateY(-2px) scale(1.02); }
@keyframes assessment-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 28px rgba(41, 69, 217, 0.22); }
  50% { transform: scale(1.025); box-shadow: 0 14px 34px rgba(41, 69, 217, 0.36); }
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* sliding arrow on the two loudest CTA styles */
.btn-primary::after, .btn-white::after {
  content: "";
  width: 8px; height: 8px;
  border-top: 2.2px solid currentColor;
  border-right: 2.2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
  margin-left: 2px;
}
.btn-primary:hover::after, .btn-white:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ---------------- reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: 0s;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Frosted glass lives on a pseudo-element: backdrop-filter on the header
   itself would create a containing block that traps the fixed mobile nav
   overlay inside the header's 74px box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(11, 14, 26, 0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { flex-shrink: 0; display: flex; }
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-item.is-active > .nav-link { background: var(--brand-tint); color: var(--brand); }
.nav-link .chev { width: 11px; height: 11px; opacity: 0.55; transition: transform 0.2s ease; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -8px;
  min-width: 330px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  transition: background 0.14s ease;
}
.nav-dropdown a:hover { background: var(--bg-alt); }
.dd-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.dd-icon svg { width: 17px; height: 17px; }
.dd-text { display: flex; flex-direction: column; gap: 1px; }
.dd-text strong { font-size: 0.92rem; color: var(--ink); font-weight: 700; }
.dd-text span { font-size: 0.8rem; color: var(--muted); }

.nav-dropdown--wide { min-width: 620px; }
.nav-dropdown-inner--cols { flex-direction: row; align-items: flex-start; gap: 4px; }
.dd-col { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dd-col + .dd-col { border-left: 1px solid var(--border); padding-left: 8px; margin-left: 4px; }
.dd-col-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 12px 4px;
}

.dd-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-login { font-weight: 800; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  align-items: center;
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-extras { display: none; }

/* ---------------- hero ---------------- */
.hero { padding: 72px 0 104px; overflow: hidden; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero--home .hero-copy h1 { margin-bottom: 14px; }
.hero--home .hero-copy .hero-message {
  max-width: 540px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.03rem + 0.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}
.hero--home .hero-copy .lede {
  margin-bottom: 24px;
  font-size: clamp(0.98rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.5;
}
.hero-copy .lede { margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-trust { margin-top: 56px; }
.hero-trust-label {
  display: block;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-trust-slider.logo-slider { margin: 0; }
.hero-trust-slider .logo-slider-track img { height: 30px; max-width: 108px; }

.hero-stage { position: relative; }
.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--brand-tint) 0%, #fff 65%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.15;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Homepage hero only: stretch the visual to the full height of the copy
   column (reaching the top, level with the headline) instead of the fixed
   4:3.15 ratio every other page's hero photo uses. Scoped to .hero--home
   (only set when trust_logos is present) so product/About hero images are
   untouched. */
.hero--home .hero-inner { align-items: stretch; }
.hero--home .hero-stage { height: 100%; }
.hero--home .hero-visual { height: 100%; aspect-ratio: unset; }

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  animation: float 7s ease-in-out infinite;
}
.hero-float-1 { top: 8%; left: -34px; }
.hero-float-2 { bottom: 10%; right: -26px; animation-delay: -3.5s; }
.hf-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hf-icon svg { width: 17px; height: 17px; }
.hf-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.hf-text strong { font-size: 1.05rem; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero--decorative::before,
.hero--decorative::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: blob 13s ease-in-out infinite;
}
.hero--decorative::before {
  width: 340px; height: 340px; right: 4%; top: -60px;
  background: radial-gradient(circle, rgba(109, 61, 240, 0.35), transparent 70%);
}
.hero--decorative::after {
  width: 260px; height: 260px; left: 0; bottom: -50px;
  background: radial-gradient(circle, rgba(41, 69, 217, 0.3), transparent 70%);
  animation-delay: -6.5s;
}
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 20px) scale(1.1); }
}

.placeholder-art { padding: 44px; text-align: center; }
.placeholder-art::before {
  content: "";
  display: block;
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 13px;
  background: var(--brand-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232945d9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E")
    center / 22px no-repeat;
}
.placeholder-art p { font-style: italic; font-size: 0.86rem; color: var(--muted); max-width: 280px; margin: 0 auto; }

/* ---------------- page hero (inner pages) ---------------- */
.page-hero { padding: 72px 0 56px; text-align: center; }
.page-hero--compact { padding-bottom: 36px; }
.page-hero h1 { max-width: 800px; margin: 0 auto 18px; }
.page-hero .hero-message {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
}
.page-hero .lede { max-width: 640px; margin: 0 auto; }

/* ---------------- stat bar ---------------- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 550; }

/* ---------------- feature grid ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-tint), #fff);
  border: 1px solid var(--brand-tint-2);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.94rem; }
.feature-card--actionable { display: flex; flex-direction: column; }
.feature-card--actionable p { flex: 1; margin-bottom: 22px; }
.feature-card--actionable .btn {
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.api-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.section.api-card-section { padding-top: 32px; }

/* ---------------- feature catalogue ---------------- */
.feature-catalog-nav {
  margin-bottom: 36px;
  padding: 18px;
  background: var(--alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.feature-catalog-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-catalog-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.feature-catalog-nav a:hover { color: var(--brand); border-color: var(--brand); }
.feature-catalog-category {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.feature-catalog-category:first-of-type { padding-top: 0; border-top: 0; }
.feature-catalog-category h2 { margin-bottom: 22px; }
.feature-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.feature-catalog-card h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-catalog-card p { flex: 1; margin-bottom: 18px; font-size: 0.9rem; }
.feature-catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.feature-catalog-card-footer a { color: var(--brand); font-size: 0.83rem; font-weight: 800; }
.feature-catalog-card-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature-catalog-scope {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #454b63;
  background: #f0f1f7;
  border-radius: var(--r-pill);
  font-size: 0.69rem;
  font-weight: 750;
  line-height: 1.2;
}
.feature-catalog-scope--custom { color: #49308b; background: #f0ebff; }
.feature-catalog-scope--integration,
.feature-catalog-scope--configuration { color: #2945a0; background: #edf1ff; }
.feature-catalog-scope--partner { color: #17684d; background: #e6f5ee; }

/* ---------------- product cards (navy band) ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: background 0.25s ease, transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.product-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}
.product-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.product-icon svg { width: 20px; height: 20px; }
.product-card h3 { font-size: 1.05rem; color: #fff; }
.product-card p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); flex: 1; }
.product-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 800; color: #aab8ff;
}
.product-more svg { transition: transform 0.2s var(--ease-out); }
.product-card:hover .product-more svg { transform: translateX(4px); }

/* ---------------- product guide ---------------- */
.product-guide .section-head { max-width: 820px; margin: 0 auto 32px; }
.product-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-guide-card,
.product-guide-note,
.product-guide-workflow {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.product-guide-card { display: flex; flex-direction: column; }
.product-guide-card h3,
.product-guide-note h3,
.product-guide-workflow h3 { margin-bottom: 10px; }
.product-guide-card p { margin-bottom: 12px; }
.product-guide-card .product-guide-role {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.4;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.product-guide-link {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 750;
  margin-top: auto;
  padding-top: 6px;
}
.product-guide-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-guide-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.product-guide-note p,
.product-guide-workflow p { margin-bottom: 0; }
.product-guide-workflow { margin-top: 18px; }
.product-guide-workflow ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
}
.product-guide-workflow li { padding-left: 4px; }

/* ---------------- pipeline (navy flow band) ---------------- */
.eyebrow--light {
  color: #aab8ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.pipeline-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 26px 24px;
}
.pipeline-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #aab8ff;
  border-right: 2px solid #aab8ff;
  transform: translateY(-50%) rotate(45deg);
}
.pipeline-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aab8ff;
}
.pipeline-stage h3 { font-size: 1.02rem; color: #fff; }
.pipeline-stage p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.pipeline-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.pipeline-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.pipeline-link {
  align-self: flex-start;
  margin-top: 6px;
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pipeline-link:hover { color: #fff; }

/* ---------------- split content ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse .split-visual { order: -1; }
.split-visual {
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
/* Homepage ACE flow diagram is a portrait 2:3 graphic; the shared 4:3.2
   frame above forces object-fit: cover to crop into its stacked panels.
   Match this one instance's frame to the image's own ratio so it fills
   edge-to-edge with no crop and no letterboxing, without touching the
   shared .split-visual sizing every other page's photo relies on. */
.split-visual:has(> img[src$="ace-stages.svg"]) { aspect-ratio: 2 / 3; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { margin-bottom: 18px; }
.split-bullets { display: flex; flex-direction: column; gap: 13px; margin: 24px 0 30px; }
.split-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; font-weight: 500; }
.split-bullets .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------------- logo cloud / slider ---------------- */
.cloud-head {
  text-align: center;
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-chip {
  width: 176px; min-height: 104px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-weight: 800;
  color: var(--muted);
  font-size: 0.93rem;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logo-chip img { width: 124px; height: 34px; object-fit: contain; }
.logo-name { color: var(--ink); font-size: 0.75rem; font-weight: 800; line-height: 1.2; text-align: center; }
.logo-mark--google-ads { filter: invert(38%) sepia(96%) saturate(1572%) hue-rotate(198deg) brightness(98%) contrast(95%); }
.logo-mark--google-drive { filter: invert(44%) sepia(91%) saturate(1110%) hue-rotate(90deg) brightness(92%) contrast(91%); }
.logo-mark--google-analytics { filter: invert(47%) sepia(97%) saturate(1727%) hue-rotate(359deg) brightness(98%) contrast(96%); }
.logo-mark--zapier { filter: invert(37%) sepia(97%) saturate(3358%) hue-rotate(359deg) brightness(101%) contrast(104%); }
.logo-mark--zoho { filter: invert(21%) sepia(96%) saturate(4200%) hue-rotate(347deg) brightness(91%) contrast(99%); }
.logo-mark--hubspot { filter: invert(57%) sepia(91%) saturate(1113%) hue-rotate(322deg) brightness(101%) contrast(101%); }
.logo-mark--n8n { filter: invert(42%) sepia(48%) saturate(2687%) hue-rotate(303deg) brightness(96%) contrast(91%); }
.logo-mark--salesforce { filter: invert(51%) sepia(80%) saturate(1056%) hue-rotate(156deg) brightness(88%) contrast(87%); }
.logo-mark--microsoft { filter: invert(37%) sepia(63%) saturate(1785%) hue-rotate(208deg) brightness(88%) contrast(91%); }
.logo-chip:hover { color: var(--ink); border-color: var(--border-strong); }

.logo-slider {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 76px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.logo-slider:hover .logo-slider-track { animation-play-state: paused; }
.logo-slider-track img {
  height: 34px; width: auto; max-width: 148px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- testimonials ---------------- */
.quote-mark {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 10px;
}
.testimonial-quote { font-size: 1.12rem; color: var(--ink); font-weight: 550; margin-bottom: 24px; line-height: 1.55; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.88rem;
  flex-shrink: 0;
}
.author-name { font-weight: 800; color: var(--ink); font-size: 0.93rem; }
.author-role { font-size: 0.82rem; color: var(--muted); }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 34px;
}

.testimonial-video {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
}
.tv-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.t-carousel { max-width: 720px; margin: 0 auto; overflow: hidden; text-align: center; }
.t-track { position: relative; min-height: 220px; }
.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.t-slide.is-active { position: relative; opacity: 1; transform: translateX(0); pointer-events: auto; }
.t-carousel .testimonial-author { justify-content: center; }
.t-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; }
.t-dots { display: flex; gap: 9px; }
.t-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}
.t-dot.is-active { background: var(--brand); transform: scale(1.35); }
.t-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.18s var(--ease-out);
}
.t-arrow:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  padding: 4px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.99rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-tint);
  transition: transform 0.25s var(--ease-out), background 0.2s ease;
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand);
  border-radius: 2px;
}
.faq-plus::before { width: 11px; height: 2px; }
.faq-plus::after { width: 2px; height: 11px; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; font-size: 0.96rem; }
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--brand); text-decoration: underline; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-darkest) 45%, var(--violet) 100%);
  background-size: 220% 220%;
  animation: gradient-drift 11s ease infinite;
  border-radius: var(--r-lg);
  padding: 72px 64px;
  color: #fff;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 34px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
@keyframes gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------------- prose (blog & legal) ---------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2, .prose h3 { margin: 36px 0 14px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 17px; }
.prose ul, .prose ol { margin: 0 0 17px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a.btn-primary { color: #fff; text-decoration: none; }
.api-doc-button::after { display: none; }
.prose img { border-radius: var(--r-md); margin: 26px auto; }
.prose figure { margin: 26px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose blockquote {
  margin: 26px 0; padding: 4px 24px;
  border-left: 3px solid var(--brand);
  color: var(--ink); font-weight: 550;
}

/* ---------------- blog ---------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  min-height: 286px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.blog-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.blog-card-type, .blog-card-cat { display: inline-flex; align-items: center; gap: 8px; }
.blog-card-type { color: var(--ink); font-weight: 650; }
.blog-card-date { color: var(--muted); white-space: nowrap; }
.blog-card-type svg, .blog-card-cat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.blog-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
  font-size: 0.78rem; font-weight: 650;
  color: var(--brand);
}
.blog-card h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.3; }
.blog-card p { font-size: 0.9rem; color: var(--muted); }
.blog-card-foot { padding: 0 22px 18px; margin-top: auto; }
.blog-toolbar {
  display: flex; align-items: end; justify-content: space-between; gap: 22px;
  margin-bottom: 30px;
}
.blog-filter-label { display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.blog-filter-label select {
  min-width: 260px;
  padding: 12px 42px 12px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 550;
}
.blog-count { color: var(--muted); font-size: 0.84rem; padding-bottom: 10px; }
.section.form-embed-section--compact { padding: 38px 0; }
.login-portals-section { padding-top: 24px; }
.login-portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.login-portal-card { min-height: 286px; }
.login-portal-card .blog-card-body { padding-top: 26px; }
.login-portal-card .blog-card-foot .blog-card-cat { gap: 10px; }

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; flex-wrap: wrap; }
.page-link {
  min-width: 42px; height: 42px; padding: 0 13px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-weight: 700; font-size: 0.88rem;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-link.is-disabled { opacity: 0.35; pointer-events: none; }

.post-header { text-align: center; padding: 64px 0 40px; }
.post-header h1 { max-width: 820px; margin: 0 auto; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); }
.post-meta {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  font-size: 0.87rem; color: var(--muted); margin-top: 20px;
}
.post-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: var(--shadow-md);
}
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.post-tag {
  font-size: 0.77rem; font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  color: var(--muted);
}
.post-back { text-align: center; margin-top: 36px; }
.prose--post { font-size: 1.03rem; }

/* ---------------- contact ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { margin-bottom: 14px; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.contact-locations { padding: 0 0 56px; }
.office-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.office-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
}
.office-card h2, .office-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.office-card p { font-size: 0.88rem; }
.office-card a:hover { color: var(--brand); }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.form-embed-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-field { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select {
  font: inherit;
  font-weight: 450;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field input:focus, .form-field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: #fff;
}
.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 0; }
.hidden-field { display: none; }

/* ---------------- AI agent live demo ---------------- */
.ai-demo-section {
  padding: 100px 0;
  background:
    radial-gradient(760px 360px at 88% -5%, rgba(41, 69, 217, 0.09), transparent 62%),
    radial-gradient(620px 340px at -5% 105%, rgba(109, 61, 240, 0.08), transparent 62%),
    var(--bg);
}
.ai-demo-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.ai-demo-layout > * { min-width: 0; }
.ai-demo-form, .score-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone-group { display: flex; gap: 10px; }
.phone-group select { flex: 0 0 118px; }
.phone-group input { flex: 1; min-width: 0; }
.ai-demo-consent { font-size: 0.78rem; font-weight: 450; color: var(--muted); line-height: 1.5; margin: 0; }
.ai-demo-status { font-size: 0.9rem; font-weight: 700; color: var(--success); text-align: center; margin: 0; }
.ai-demo-status.is-error { color: #d23b3b; }

.ai-call-card {
  background:
    radial-gradient(420px 260px at 85% -10%, rgba(41, 69, 217, 0.5), transparent 65%),
    radial-gradient(360px 240px at 0% 110%, rgba(109, 61, 240, 0.35), transparent 65%),
    var(--navy);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ai-call-head { display: flex; align-items: center; gap: 14px; }
.ai-call-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ai-call-avatar svg { width: 22px; height: 22px; }
.ai-call-id { display: flex; flex-direction: column; line-height: 1.3; }
.ai-call-id strong { color: #fff; font-size: 1rem; letter-spacing: -0.01em; }
.ai-call-id span { font-size: 0.8rem; opacity: 0.65; }
.ai-call-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.ai-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5d5d; animation: ai-pulse 1.6s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.ai-wave { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 44px; }
.ai-wave span {
  flex: 0 0 5px;
  border-radius: 3px;
  background: var(--gradient);
  height: 38%;
  animation: ai-wave 1.3s ease-in-out infinite;
}
.ai-wave span:nth-child(2n) { animation-delay: -0.5s; height: 62%; }
.ai-wave span:nth-child(3n) { animation-delay: -0.9s; height: 88%; }
.ai-wave span:nth-child(4n) { animation-delay: -0.2s; height: 48%; }
@keyframes ai-wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

.ai-call-lines { display: flex; flex-direction: column; gap: 10px; }
.ai-line { font-size: 0.92rem; padding: 12px 16px; border-radius: 14px; max-width: 88%; margin: 0; }
.ai-line--caller { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); align-self: flex-start; }
.ai-line--agent { background: rgba(41, 69, 217, 0.32); border: 1px solid rgba(122, 143, 255, 0.35); color: #fff; align-self: flex-end; }

.ai-call-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-call-chips span {
  font-size: 0.76rem; font-weight: 700; color: #cdd6ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  padding: 7px 13px;
  border-radius: var(--r-pill);
}
.ai-call-result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, 0.96); color: var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 10px 10px 20px;
  font-size: 0.88rem; font-weight: 700; letter-spacing: -0.01em;
}
.ai-call-arrow {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- AI Search Score tool ---------------- */
.score-check-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.score-check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.score-check-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; background: var(--gradient); }

.score-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid var(--border);
}
.score-dial { position: relative; width: 112px; height: 112px; margin: 6px auto 0; }
.score-dial svg { transform: rotate(-90deg); }
.score-dial-track, .score-dial-fill { fill: none; stroke-width: 10; }
.score-dial-track { stroke: var(--border); }
.score-dial-fill {
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.8s var(--ease-out), stroke 0.3s ease;
}
.score-dial-fill.is-bad { stroke: #d23b3b; }
.score-dial-fill.is-warn { stroke: #d99a1f; }
.score-dial-fill.is-good { stroke: var(--success); }
.score-dial-num {
  position: absolute; inset: 0;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  font-weight: 800; font-size: 1.9rem; color: var(--ink);
}
.score-dial-num small { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.score-summary { font-size: 0.92rem; color: var(--body); margin: 0; }
.score-factors { display: flex; flex-direction: column; gap: 10px; text-align: left; margin: 0; padding: 0; list-style: none; }
.score-factor { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; }
.score-factor-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--muted); }

/* ---------------- Sydney weather widget ---------------- */
.weather-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
}
.weather-loading, .weather-error { text-align: center; color: var(--muted); font-weight: 700; margin: 0; }
.weather-error { color: #d23b3b; }
.weather-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.weather-icon { position: relative; width: 56px; height: 56px; color: var(--brand); }
.weather-icon-variant { position: absolute; inset: 0; }
.weather-icon-variant svg { width: 100%; height: 100%; }
.weather-temp { display: flex; align-items: flex-start; line-height: 1; color: var(--ink); }
.weather-temp-num { font-size: 4rem; font-weight: 800; letter-spacing: -0.03em; }
.weather-temp-unit { font-size: 1.4rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.weather-desc { font-size: 1.05rem; font-weight: 700; color: var(--body); margin: 0; }
.weather-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.weather-stats dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 4px; }
.weather-stats dd { font-size: 0.98rem; font-weight: 800; color: var(--ink); margin: 0; }
.weather-attribution { text-align: center; font-size: 0.82rem; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 560px) {
  .weather-card { padding: 28px 20px; }
  .weather-temp-num { font-size: 3rem; }
  .weather-stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
.score-factor.is-bad .score-factor-dot { background: #d23b3b; }
.score-factor.is-warn .score-factor-dot { background: #d99a1f; }
.score-factor.is-good .score-factor-dot { background: var(--success); }
.score-factor strong { display: block; color: var(--ink); font-weight: 700; }
.score-factor p { margin: 2px 0 0; color: var(--muted); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, 0.6); padding: 0 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding: 60px 0 56px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.18s var(--ease-out);
}
.footer-social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }

.footer-col h2 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 40px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.84rem;
  text-align: center;
}
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 360px;
}
.footer-divider { flex: 1; height: 1px; background: var(--border-dark); }
.footer-bottom-logo { height: 24px; width: auto; }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal span { color: var(--border-dark); }
.footer-legal a:hover, .footer-bottom a:hover { color: #fff; }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline-stage::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-catalog-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .login-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-float-1 { left: -8px; }
  .hero-float-2 { right: -8px; }
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions { gap: 12px; }

  .main-nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.is-open .nav-link { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 14px 12px; }
  .main-nav.is-open .nav-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    min-width: 0;
  }
  .main-nav.is-open .nav-item.is-expanded .nav-dropdown { display: block; }
  .main-nav.is-open .nav-dropdown-inner { box-shadow: none; border: none; padding: 0 0 8px 10px; }
  .main-nav.is-open .nav-dropdown-inner--cols { flex-direction: column; }
  .main-nav.is-open .dd-col + .dd-col {
    border-left: none; padding-left: 0; margin-left: 0;
    border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px;
  }
  .mobile-extras {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }

  .hero { padding: 40px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-stage { order: -1; }
  .hero--home .hero-stage { order: 0; height: auto; }
  .hero--home .hero-visual { height: auto; aspect-ratio: 640 / 820; }
  .hero-copy .lede { max-width: none; }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split-visual { order: -1; }

  .testimonial-video { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { position: static; }
  .ai-demo-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ai-demo-section { padding: 72px 0; }

  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-grid, .product-grid, .pipeline { grid-template-columns: 1fr; }
  .feature-catalog-grid { grid-template-columns: 1fr; }
  .product-guide-grid, .product-guide-notes { grid-template-columns: 1fr; }
  .api-card-grid { grid-template-columns: 1fr; }
  .login-portal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .cta-banner { padding: 52px 26px; }
  .office-grid { grid-template-columns: 1fr; }
  .office-grid--row { grid-template-columns: 1fr; }
  .blog-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .blog-filter-label select { width: 100%; min-width: 0; }
  .blog-count { padding-bottom: 0; }
  .form-row { grid-template-columns: 1fr; }
  .ai-demo-form, .score-form { padding: 24px; }
  .ai-call-card { padding: 22px; }
  .ai-call-result { font-size: 0.8rem; }
  .logo-slider-track { gap: 48px; }
  .logo-slider-track img { height: 26px; max-width: 104px; }
  .hero-float { display: none; }
  .hero-trust { margin-top: 40px; }
}

@media (max-width: 360px) {
  .header-inner { gap: 12px; padding-inline: 12px; }
  .brand img { height: 26px; }
  .header-actions { gap: 8px; }
  .header-login { padding: 8px 12px; font-size: 0.8rem; }
  .btn-lg { padding: 14px 20px; white-space: normal; text-align: center; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .office-grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta-pulse { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-float, .hero--decorative::before, .hero--decorative::after { animation: none; }
  .logo-slider-track { animation: none; }
  .cta-banner { animation: none; }
  .hero-visual { transition: none; }
  .t-slide { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
