/* ============================================================
   Pipeline.ai — Design System
   Type:   Bricolage Grotesque (display) · Instrument Sans (body)
           Spline Sans Mono (labels/data)
   Color:  Paper #FAF9F7 · Ink #0B1530 · Brand #2848D8 · Amber #D98E2B
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

:root {
  /* Color tokens */
  --paper:    #FAF9F7;
  --paper-2:  #F2F0EB;
  --paper:    #F8F7F3;
  --paper-2:  #EFEDE5;
  --ink:      #0A1124;
  --ink-soft: #19223E;
  --ink-2:    #4B5570;
  --ink-3:    #7C8398;
  --line:     #E7E3DA;
  --line-2:   #D9D4C8;
  --brand:    #1F44C2;
  --brand-deep: #16348F;
  --brand-tint: #E9EDFA;
  --brand-tint-2: #D6DEF6;
  --amber:    #BC8742;
  --amber-tint: #F5EDDF;
  --green:    #1C7D57;
  --green-tint: #E4F1EA;
  --white:    #FFFFFF;

  /* Dark-section tokens */
  --d-bg:     #0A1124;
  --d-bg-2:   #101A38;
  --d-card:   #131E40;
  --d-line:   #233156;
  --d-text:   #ECEFF8;
  --d-text-2: #97A1C0;

  /* Type */
  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --f-body:    'Instrument Sans', 'Helvetica Neue', sans-serif;
  --f-mono:    'Spline Sans Mono', 'SF Mono', monospace;

  /* Scale */
  --fs-hero:  clamp(2.7rem, 5.4vw, 4.35rem);
  --fs-h2:    clamp(1.9rem, 3.4vw, 2.85rem);
  --fs-h3:    clamp(1.35rem, 2vw, 1.6rem);
  --fs-h4:    1.16rem;
  --fs-body:  1.04rem;
  --fs-small: 0.92rem;
  --fs-tiny:  0.8rem;

  /* Spacing & shape */
  --sp-section: clamp(72px, 9vw, 124px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11,21,48,.05), 0 2px 8px rgba(11,21,48,.04);
  --shadow-md: 0 2px 6px rgba(11,21,48,.06), 0 12px 32px rgba(11,21,48,.09);
  --shadow-lg: 0 4px 12px rgba(11,21,48,.08), 0 28px 64px rgba(11,21,48,.14);
  --container: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; font-family: var(--f-body); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }

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

::selection { background: var(--brand-tint-2); color: var(--ink); }
.on-dark ::selection, .hero ::selection, .cta-banner ::selection { background: rgba(157,176,242,.32); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px;
  z-index: 200; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.section { padding: var(--sp-section) 0; }
.section-tight { padding: calc(var(--sp-section) * 0.6) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.13rem; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: var(--brand); border-radius: 2px; flex: none;
}
.on-dark .eyebrow { color: #9DB0F2; }
.on-dark .eyebrow::before { background: #9DB0F2; }

/* ---------- Live feed eyebrow (hero ticker) ---------- */
.eyebrow-ticker {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 7px 17px 7px 13px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line-2);
  font-family: var(--f-body); font-weight: 600; font-size: 0.86rem;
  color: var(--ink-soft); width: fit-content; margin-bottom: 18px;
}
.eyebrow-ticker .et-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(28,125,87,.16);
  animation: et-pulse 1.8s ease-in-out infinite;
}
.eyebrow-ticker .et-dot::before,
.eyebrow-ticker .et-dot::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--green); opacity: 0; pointer-events: none;
}
.eyebrow-ticker.is-ringing .et-dot { animation: et-pulse .55s ease-in-out infinite; }
.eyebrow-ticker.is-ringing .et-dot::before { animation: et-ring 1.1s ease-out infinite; }
.eyebrow-ticker.is-ringing .et-dot::after  { animation: et-ring 1.1s ease-out .55s infinite; }
@keyframes et-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(28,125,87,.16); }
  50%     { box-shadow: 0 0 0 7px rgba(28,125,87,0); }
}
@keyframes et-ring {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(3.4); opacity: 0; }
}
.eyebrow-ticker .et-text {
  display: inline-block; overflow: hidden; white-space: nowrap;
  height: 1.25em; line-height: 1.25em;
  transition: width .42s cubic-bezier(.7,0,.2,1);
}
.eyebrow-ticker .et-inner { display: inline-block; transition: opacity .18s ease; }
.eyebrow-ticker .et-text b { color: var(--brand); font-weight: 600; }
.eyebrow-ticker .et-dots { display: inline-block; vertical-align: middle; }
.eyebrow-ticker .et-dots i {
  display: inline-block; width: 3px; height: 3px; margin-left: 3px;
  border-radius: 50%; background: var(--green); opacity: .25;
  font-style: normal; vertical-align: middle;
  animation: et-typ 1.1s infinite;
}
.eyebrow-ticker .et-dots i:nth-child(2) { animation-delay: .18s; }
.eyebrow-ticker .et-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes et-typ { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.eyebrow-ticker .et-measure {
  position: absolute !important; left: -9999px; top: 0;
  visibility: hidden; width: auto !important; white-space: nowrap; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow-ticker .et-dot,
  .eyebrow-ticker .et-dot::before,
  .eyebrow-ticker .et-dot::after,
  .eyebrow-ticker .et-dots i { animation: none !important; }
  .eyebrow-ticker .et-text { transition: none !important; }
}

/* ---------- Dark sections ---------- */
.on-dark {
  background: var(--d-bg);
  color: var(--d-text);
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .muted, .on-dark .section-head p { color: var(--d-text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(22,52,143,.3); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 4px 14px rgba(22,52,143,.32); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-2); background: var(--white); }
.on-dark .btn-secondary, .hero .btn-secondary, .cta-banner .btn-secondary { color: var(--d-text); border-color: var(--d-line); }
.on-dark .btn-secondary:hover, .hero .btn-secondary:hover, .cta-banner .btn-secondary:hover { border-color: var(--d-text-2); background: rgba(255,255,255,.05); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-ghost {
  background: none; border: none; padding: 0;
  color: var(--brand); font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; cursor: pointer;
}
.btn-ghost::after { content: "→"; transition: transform .18s ease; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-lg { padding: 16px 32px; font-size: 1.07rem; border-radius: 12px; }
.btn-sm { padding: 9px 18px; font-size: var(--fs-small); border-radius: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 70px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.28rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
}
.logo-mark {
  height: 28px; width: auto; flex: none;
  display: block;
}
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink-2);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-phone {
  font-family: var(--f-mono); font-size: var(--fs-small); font-weight: 500;
  color: var(--ink-2); text-decoration: none;
}
.nav-phone:hover { color: var(--ink); }
.nav-signin { font-weight: 500; font-size: 0.97rem; color: var(--ink-2); text-decoration: none; }
.nav-signin:hover { color: var(--ink); }
.nav-burger {
  display: none; background: none; border: none;
  padding: 6px; margin-right: -6px; cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center;
}
.nav-burger svg { width: 24px; height: 24px; display: block; }
.nav-burger .nb-close { display: none; }
.nav-burger[aria-expanded="true"] .nb-open { display: none; }
.nav-burger[aria-expanded="true"] .nb-close { display: block; }
.nav-mobile { display: none; }
.nav-mobile.open {
  display: block; border-top: 1px solid var(--line);
  background: var(--paper); padding: 12px 0 20px;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0 clamp(20px,4vw,40px); }
.nav-mobile a {
  display: block; padding: 12px 4px; text-decoration: none;
  font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 16px; width: 100%; }
.nav-mobile a.btn { color: #fff; border-bottom: none; }

/* ---------- Footer ---------- */
.footer { background: var(--d-bg); color: var(--d-text-2); font-size: var(--fs-small); }
.footer-main {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px; padding: 72px 0 56px;
}
.footer h5 {
  font-family: var(--f-mono); font-size: var(--fs-tiny); font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--d-text-2); margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--d-text); text-decoration: none; opacity: .85; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-blurb { max-width: 280px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--d-line);
  padding: 24px 0; display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
}
.footer-bottom ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 20px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Stat cards ---------- */
.stat-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
}
.stat-num {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.4rem, 3.6vw, 3.2rem); line-height: 1;
  letter-spacing: -0.02em; color: var(--ink);
  display: flex; align-items: baseline; gap: 2px;
}
.stat-num .unit { font-size: 0.55em; color: var(--amber); font-weight: 700; }
.stat-label { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }
.on-dark .stat-num { color: #fff; }
.on-dark .stat-label { color: var(--d-text-2); }

/* ---------- Quote / testimonial cards ---------- */
.quote-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 24px;
}
.quote-card blockquote {
  margin: 0; font-size: 1.12rem; line-height: 1.55;
  font-weight: 500; color: var(--ink-soft);
}
.quote-card blockquote::before { content: "“"; color: var(--amber); font-family: var(--f-display); font-weight: 800; }
.quote-card blockquote::after { content: "”"; color: var(--amber); font-family: var(--f-display); font-weight: 800; }
.quote-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 0.88rem;
  background: var(--brand-tint); color: var(--brand-deep);
}
.avatar.warm { background: var(--amber-tint); color: var(--amber); }
.avatar.green { background: var(--green-tint); color: var(--green); }
.quote-who .name { font-weight: 600; font-size: var(--fs-small); }
.quote-who .role { color: var(--ink-3); font-size: var(--fs-tiny); }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  align-items: center; justify-content: center;
}
.client-logo {
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink-3); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  filter: grayscale(1); opacity: .8; padding: 8px 0;
}
.client-logo .mk {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  background: var(--ink-3); opacity: .5;
}
.client-logo .mk.r { border-radius: 50%; }
.client-logo .mk.d { transform: rotate(45deg); border-radius: 3px; width: 15px; height: 15px; }

/* ---------- Integration badges ---------- */
.int-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 22px 10px 12px;
  font-weight: 600; font-size: var(--fs-small); color: var(--ink-soft);
}
.int-badge .mk {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600;
  background: var(--paper-2); color: var(--ink-2);
}

/* ---------- Audio cards ---------- */
.audio-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow .25s ease;
}
.audio-card:hover { box-shadow: var(--shadow-md); }
.audio-top { display: flex; align-items: center; gap: 16px; }
.audio-play {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  transition: background .18s ease, transform .18s ease;
}
.audio-play:hover { background: var(--brand); transform: scale(1.05); }
.audio-play .tri {
  width: 0; height: 0; margin-left: 3px;
  border-left: 14px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  color: #fff;
}
.audio-play.playing .tri {
  border: none; width: 12px; height: 14px; margin-left: 0;
  border-left: 4px solid #fff; border-right: 4px solid #fff;
}
.audio-meta { min-width: 0; }
.audio-title { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.audio-tag {
  font-family: var(--f-mono); font-size: var(--fs-tiny); color: var(--ink-3);
  margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap;
}
.audio-wave {
  display: flex; align-items: center; gap: 3px; height: 36px;
}
.audio-wave i {
  flex: 1; background: var(--line-2); border-radius: 2px;
  min-height: 4px; transition: background .2s ease;
}
.audio-card .audio-wave i.on { background: var(--brand); }
.audio-desc { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.55; }

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  position: relative; padding: 28px 24px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.step-num {
  font-family: var(--f-mono); font-weight: 600; font-size: var(--fs-tiny);
  color: var(--brand); letter-spacing: .1em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: var(--fs-small); }

/* How it works — connected track */
.trackA { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.trackA .node { position: relative; padding: 0 clamp(14px,1.6vw,22px); }
.trackA .node:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; right: 0; width: 100%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
  transform: translateX(50%); z-index: 0;
}
.trackA .bead {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brand); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 22px;
  box-shadow: 0 0 0 6px var(--paper);
}
.trackA .hiw-ico { width: 24px; height: 24px; }
.trackA .knum { font-family: var(--f-mono); font-size: var(--fs-tiny); color: var(--brand); letter-spacing: .12em; margin-bottom: 9px; }
.trackA h4 { margin-bottom: 8px; }
.trackA p { color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- Feature rows (alternating) ---------- */
.feat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
  padding: calc(var(--sp-section) * .55) 0;
}
/* Blend white illustration backgrounds into the paper bg (light sections only) */
.feat-row figure img,
.pillar-art img,
.flow-art img {
  mix-blend-mode: multiply;
}
.on-dark .feat-row figure img,
.on-dark .pillar-art img,
.on-dark .flow-art img {
  mix-blend-mode: normal;
}
.feat-row.flip .feat-copy { order: 2; }
.feat-row .feat-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.feat-bullets { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 13px; }
.feat-bullets li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.feat-bullets li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  background: var(--green-tint); color: var(--green);
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
}

/* ---------- Mock UI panels ---------- */
.mock {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 0.88rem;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-bar .mock-title {
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3);
  margin-left: 8px; letter-spacing: .04em;
}
.mock-body { padding: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
}
.chip.blue { background: var(--brand-tint); color: var(--brand-deep); }
.chip.green { background: var(--green-tint); color: var(--green); }
.chip.amber { background: var(--amber-tint); color: var(--amber); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip .dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.transcript { display: grid; gap: 10px; }
.t-line { display: flex; gap: 10px; align-items: flex-start; }
.t-who {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  flex: none; width: 52px; padding-top: 7px; text-align: right;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em;
}
.t-bubble {
  background: var(--paper-2); border-radius: 12px;
  padding: 8px 13px; line-height: 1.45; color: var(--ink-soft);
}
.t-line.ai .t-bubble { background: var(--brand-tint); color: var(--ink); }
.t-line.ai .t-who { color: var(--brand); }

/* ---------- Photo placeholders ---------- */
.photo-ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: repeating-linear-gradient(
    -45deg, var(--paper-2), var(--paper-2) 14px, #ECE9E2 14px, #ECE9E2 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  min-height: 280px;
}
.photo-ph span {
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3);
  background: var(--white); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--paper); }
.faq summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.2rem;
  color: var(--ink-3); flex: none; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--d-bg);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  text-align: center; color: var(--d-text);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: auto -20% -65% -20%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(31,68,194,.35), transparent 65%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; max-width: 640px; margin: 0 auto 16px; }
.cta-banner p { color: var(--d-text-2); max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-banner .btn-row { justify-content: center; }
.cta-phone {
  font-family: var(--f-mono); font-size: var(--fs-small);
  color: var(--d-text-2); margin-top: 24px !important;
}
.cta-phone a { color: var(--d-text); text-decoration: none; border-bottom: 1px solid var(--d-line); }
.cta-phone a:hover { color: #fff; }

/* ---------- Tables ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 760px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th {
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  background: var(--paper);
}
.cmp thead th.hl { background: var(--brand-tint); color: var(--brand-deep); }
.cmp .cat td {
  font-family: var(--f-mono); font-size: var(--fs-tiny); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
  background: var(--paper); padding-top: 20px;
}
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: var(--line-2); }
.cmp td.hl { background: var(--brand-tint); }
.cmp .val { font-weight: 600; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.plan.popular {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.plan-for { color: var(--ink-2); font-size: var(--fs-small); margin: 6px 0 22px; min-height: 42px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt {
  font-family: var(--f-display); font-weight: 800;
  font-size: 2.7rem; letter-spacing: -0.02em; line-height: 1;
}
.plan-price .per { color: var(--ink-3); font-size: var(--fs-small); }
.plan-sub { font-size: var(--fs-tiny); color: var(--ink-3); margin-top: 8px; min-height: 18px; font-family: var(--f-mono); }
.plan .btn { margin: 22px 0; width: 100%; }
.plan-feats { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan-feats li { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); align-items: flex-start; }
.plan-feats li::before {
  content: "✓"; color: var(--green); font-weight: 700; flex: none; font-size: 0.8rem; margin-top: 2px;
}
.plan-feats li.hdr {
  font-family: var(--f-mono); font-size: var(--fs-tiny); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em;
}
.plan-feats li.hdr::before { content: none; }

.billing-toggle {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px;
}
.billing-toggle button {
  border: none; background: none; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: var(--fs-small);
  padding: 9px 22px; border-radius: 999px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s ease, color .18s ease;
}
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.save-badge {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  background: var(--green-tint); color: var(--green);
  padding: 3px 8px; border-radius: 999px;
}
.billing-toggle button[aria-pressed="true"] .save-badge { background: rgba(255,255,255,.16); color: #9FE8C6; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint-2);
}
.form-status {
  width: 100%; min-height: 1.4em; margin: 0;
  color: var(--ink-2); font-size: .9rem; text-align: center;
}
.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: #B42318; }
.on-dark-form-status { color: var(--d-text-2); }
.on-dark-form-status[data-state="success"] { color: #8FE0AF; }
.on-dark-form-status[data-state="error"] { color: #FFB4AB; }
.field .hint { font-size: var(--fs-tiny); color: var(--ink-3); }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .65s cubic-bezier(.2,.6,.2,1), transform .65s cubic-bezier(.2,.6,.2,1);
  }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .08s; }
  .reveal[data-delay="2"] { transition-delay: .16s; }
  .reveal[data-delay="3"] { transition-delay: .24s; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--d-bg);
  color: var(--d-text);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  height: 100%;
  background:
    radial-gradient(120% 62% at 50% -12%, rgba(40,72,216,.46), transparent 56%),
    linear-gradient(180deg, rgba(31,68,194,.16), transparent 42%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
  padding: clamp(64px, 8vw, 110px) 0 clamp(72px, 9vw, 120px);
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--d-text-2); max-width: 480px; margin-bottom: 34px; }
.hero-note { font-family: var(--f-mono); font-size: var(--fs-tiny); color: var(--d-text-2); margin-top: 22px !important; }

/* ---------- Home: centered hero with logos in-viewport ---------- */
.hero-home { display: flex; flex-direction: column; min-height: calc(100svh - 70px); }
.hero-home > .container { flex: 1 1 auto; display: flex; flex-direction: column; }
.hero-home .hero-grid {
  grid-template-columns: 1fr; text-align: center;
  flex: 1 1 auto; align-content: center; justify-items: center;
  padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
}
.hero-home .hero-c { max-width: 768px; }
.hero-home .lede { margin-left: auto; margin-right: auto; max-width: 560px; }
.hero-home .btn-row { justify-content: center; }

/* Live-status pill under the buttons */
.status-strip {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px; padding: 10px 10px 10px 18px;
  background: var(--d-card); border: 1px solid var(--d-line);
  border-radius: 999px; font-family: var(--f-mono); font-size: 0.78rem;
  color: var(--d-text-2);
}
.status-strip .live { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.status-strip .live .dot { width: 8px; height: 8px; border-radius: 50%; background: #5BD6A0; box-shadow: 0 0 0 4px rgba(91,214,160,.18); flex: none; }
.status-strip .sep { width: 1px; height: 16px; background: var(--d-line); }
.status-strip .booked { color: #9DB0F5; }

/* In-hero trust bar — logos rendered as uniform light silhouettes on dark */
.hero-trust { flex: none; padding-bottom: clamp(26px, 3.5vw, 44px); }
.hero-trust .trust-label {
  text-align: center; font-family: var(--f-mono); font-size: var(--fs-tiny);
  letter-spacing: .12em; text-transform: uppercase; color: var(--d-text-2);
  margin-bottom: 22px;
}
.hero-trust .client-slot img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .46;
}
.hero-trust .marquee:hover .client-slot img { opacity: .4; }
.hero-trust .client-slot img:hover { opacity: .85 !important; filter: grayscale(1) brightness(0) invert(1); }

/* ---------- Anchor nav (features page) ---------- */
.anchor-nav {
  position: sticky; top: 70px; z-index: 50;
  background: rgba(250,249,247,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.anchor-nav ul {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0;
  overflow-x: auto;
}
.anchor-nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 600; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.anchor-nav a:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- Misc ---------- */
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.kbd-note { font-family: var(--f-mono); font-size: var(--fs-tiny); color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4, .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trackA { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .trackA .node:nth-child(2)::after { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone, .nav-signin, .nav-cta .btn { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid, .feat-row { grid-template-columns: 1fr; }
  .feat-row.flip .feat-copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .trackA { grid-template-columns: 1fr; gap: 32px; }
  .trackA .node::after { display: none !important; }
  .nav-cta .btn { padding: 9px 16px; font-size: var(--fs-small); }
}
@media (max-width: 560px) {
  .grid-4, .plans { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Voice agent widget (launcher + popup) ---------- */
.voice-launcher {
  position: fixed; z-index: 300;
  right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  display: flex; align-items: center; gap: 12px;
}

.voice-fab {
  position: relative; flex: none;
  width: 62px; height: 62px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(22,52,143,.36), 0 2px 6px rgba(10,17,36,.2);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.voice-fab:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(22,52,143,.42); }
.voice-fab:active { transform: translateY(0); }
.voice-fab .vf-ico { grid-area: 1 / 1; display: grid; place-items: center; }
.voice-fab .vf-ico svg { width: 25px; height: 25px; display: block; }
.voice-fab .vf-ico-close { display: none; }
.voice-fab[aria-expanded="true"] .vf-ico-mic { display: none; }
.voice-fab[aria-expanded="true"] .vf-ico-close { display: grid; }
.voice-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(31,68,194,.5); pointer-events: none;
  animation: vfPulse 2.6s ease-out infinite;
}
.voice-fab[aria-expanded="true"]::after { animation: none; }
@keyframes vfPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,68,194,.45); }
  70%  { box-shadow: 0 0 0 17px rgba(31,68,194,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,68,194,0); }
}

.voice-panel {
  position: fixed; z-index: 300;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + 76px);
  width: min(384px, calc(100vw - 32px));
  height: min(624px, calc(100dvh - 132px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.7,.2,1);
}
.voice-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.voice-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 14px 15px 17px;
  background: var(--d-bg); color: #fff; flex: none;
}
.vh-t { flex: 1; min-width: 0; }
.vh-title { font-family: var(--f-display); font-weight: 700; font-size: 1.04rem; line-height: 1.15; }
.vh-sub { font-size: 0.78rem; color: var(--d-text-2); display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.vh-dot { width: 7px; height: 7px; border-radius: 50%; background: #5BD6A0; flex: none; box-shadow: 0 0 0 0 rgba(91,214,160,.6); animation: vhDot 1.9s ease-out infinite; }
@keyframes vhDot { 0% { box-shadow: 0 0 0 0 rgba(91,214,160,.55); } 70% { box-shadow: 0 0 0 7px rgba(91,214,160,0); } 100% { box-shadow: 0 0 0 0 rgba(91,214,160,0); } }
.voice-close {
  flex: none; width: 33px; height: 33px; border-radius: 9px; border: none; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center;
  transition: background .15s ease;
}
.voice-close svg { width: 17px; height: 17px; }
.voice-close:hover { background: rgba(255,255,255,.22); }
.voice-body { flex: 1; position: relative; background: var(--paper); min-height: 0; }
.voice-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.voice-mask {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  background: #fff; z-index: 2; pointer-events: none;
}
.voice-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-3); font-size: 0.84rem; font-family: var(--f-mono); letter-spacing: .04em;
}
.voice-foot {
  flex: none; padding: 9px 16px; font-size: 0.72rem; color: var(--ink-3);
  text-align: center; border-top: 1px solid var(--line); background: var(--white);
}

@media (max-width: 520px) {
  .voice-panel { left: 12px; right: 12px; width: auto; bottom: 88px; height: min(72dvh, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .voice-fab::after, .vh-dot { animation: none; }
  .voice-panel { transition: opacity .14s ease; transform: none; }
  .vf-label { transition: opacity .14s ease; }
}
@media print { .voice-launcher, .voice-panel { display: none !important; } }

/* ---------- Cookie consent bar ---------- */
.cookie-bar {
  position: fixed; z-index: 280;
  left: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .28s ease, transform .32s cubic-bezier(.2,.7,.2,1);
}
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-bar h4 {
  font-family: var(--f-display); font-weight: 700; font-size: 1.02rem;
  margin: 0 0 6px; color: var(--ink);
}
.cookie-bar p { margin: 0 0 16px; font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
.cookie-bar p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 9px 18px; font-size: 0.88rem; }
.cookie-actions .btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line);
}
.cookie-actions .btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 460px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-actions .btn { flex: 1; text-align: center; }
  body:has(.cookie-bar.show) .voice-launcher { bottom: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: opacity .16s ease; transform: none; }
}
@media print { .cookie-bar { display: none !important; } }

/* ---------- Trustpilot attribution ---------- */
.tp-bar {
  display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap;
  margin: -12px 0 30px; text-decoration: none;
}
.tp-stars { display: flex; gap: 3px; }
.tp-tile { width: 28px; height: 28px; background: #00B67A; border-radius: 3px; display: grid; place-items: center; }
.tp-tile svg { width: 18px; height: 18px; }
.tp-score { font-size: var(--fs-small); color: var(--ink-2); }
.tp-score strong { color: var(--ink); font-weight: 600; }
.tp-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.04rem;
  letter-spacing: -0.01em; color: var(--ink);
}
.tp-logo svg { width: 19px; height: 19px; }
.tp-sep { width: 1px; height: 18px; background: var(--line-2); }
/* Compact variant */
.tp-bar.tp-sm { gap: 8px 10px; margin: 0 0 28px; flex-wrap: nowrap; white-space: nowrap; }
.tp-bar.tp-sm .tp-tile { width: 16px; height: 16px; border-radius: 2px; }
.tp-bar.tp-sm .tp-tile svg { width: 11px; height: 11px; }
.tp-bar.tp-sm .tp-score { font-size: var(--fs-tiny); }
.tp-bar.tp-sm .tp-logo { font-size: 0.88rem; }
.tp-bar.tp-sm .tp-logo svg { width: 13px; height: 13px; }
.tp-bar.tp-sm .tp-sep { height: 12px; }
@media (max-width: 520px) { .tp-bar.tp-sm { flex-wrap: wrap; white-space: normal; } }
.tp-verified {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: var(--fs-tiny); color: var(--ink-3);
  margin-top: 4px;
}
.tp-verified svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 480px) { .tp-bar .tp-sep { display: none; } }
