/* AgentBuddy design system.
   Built on the Hendrix Health look: Outfit throughout, deep teal accent,
   white body, full-bleed photo heroes with a dark wash and one teal line.
   Every page on the site pulls this file, so the whole site moves together. */

:root {
  /* AgentBuddy orange. --brand-400 is the logo colour; --brand-500 is the
     button fill, deepened so white text on it stays readable. --brand-300 is
     the accent used on top of dark photos. */
  --brand-50:  #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-300: #ffa94d;
  --brand-400: #ff8a1f;
  --brand-500: #c2410c;
  --brand-600: #9a3412;
  --brand-700: #7c2d12;

  /* Aliases kept so per-page stylesheets written against the old token names
     keep working. Prefer --brand-* in new code. */
  --teal-50:  var(--brand-50);
  --teal-100: var(--brand-100);
  --teal-200: var(--brand-200);
  --teal-300: var(--brand-300);
  --teal-400: var(--brand-400);
  --teal-500: var(--brand-500);
  --teal-600: var(--brand-600);
  --teal-700: var(--brand-700);

  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #52525b;
  --muted-2: #71717a;
  --line: #e4e4e7;
  --paper: #ffffff;
  --tint: #fafafa;
  --tint-teal: var(--teal-50);

  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --pad-x: clamp(20px, 5vw, 44px);
  --section-y: clamp(64px, 8vw, 118px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 var(--pad-x); }
/* Edge to edge, for sections that should fill the screen rather than sit in a column. */
.wrap-full { width: 100%; max-width: none; margin: 0; padding: 0 clamp(20px, 3.5vw, 64px); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }
.section--teal { background: var(--teal-50); }
.section--ink { background: var(--ink); color: #fff; }

/* ---------- Type ---------- */
.display,
h1.display,
h2.display,
h3.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
h1.display { font-size: clamp(40px, 5.6vw, 72px); }
h2.display { font-size: clamp(30px, 3.6vw, 48px); }
h3.display { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15; }
.display em { font-style: normal; color: var(--teal-500); }
.on-dark .display em, .display em.on-dark { color: var(--teal-300); }

.lede {
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  text-wrap: pretty;
}
.small { font-size: 14px; color: var(--muted-2); }
.tight { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--teal-500); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-forest { background: var(--teal-500); color: #fff; }
.btn-forest:hover { background: var(--teal-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); border-color: #d4d4d8; }
.btn-invert { background: #fff; color: var(--ink); }
.btn-invert:hover { background: var(--teal-50); }
.btn-onphoto { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-onphoto:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink { color: var(--teal-500); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.textlink:hover { color: var(--teal-700); }

/* ---------- Header ---------- */
.ab-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.ab-header__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ab-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.ab-brand img { height: 28px; width: 28px; border-radius: 8px; }
.ab-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.ab-nav a { font-size: 15.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .18s ease; }
.ab-nav a:hover { color: var(--teal-500); }
.ab-header__cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 940px) { .ab-header__cta { margin-left: auto; } }

/* Split section: badge, heading, copy on the left, product shot on the right. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: var(--r-pill); border: 1px solid var(--teal-200); background: var(--teal-50); color: var(--teal-700); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.split h2 { margin-bottom: 16px; }
.split__shot { background: #eceff1; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); }
.split__shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.split__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; font-size: 15.5px; font-weight: 600; color: var(--teal-500); text-decoration: none; }
.split__link:hover { color: var(--teal-700); }
@media (max-width: 940px) { .ab-nav { display: none; } }

/* Photo-hero pages: the bar rides over the image, then fades to solid on scroll. */
.has-phero .ab-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.has-phero .ab-brand { color: #fff; transition: color .25s ease; }
.has-phero .ab-nav a { color: rgba(255, 255, 255, .86); }
.has-phero .ab-nav a:hover { color: var(--teal-300); }
.has-phero .ab-header.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.has-phero .ab-header.is-stuck .ab-brand { color: var(--ink); }
.has-phero .ab-header.is-stuck .ab-nav a { color: var(--ink-soft); }
.has-phero .ab-header.is-stuck .ab-nav a:hover { color: var(--teal-500); }

/* ---------- Photo hero ---------- */
.phero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #101214;
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
/* Crop toward the right of the frame: the source photos carry a dark left edge
   from the old dark-site treatment, and it reads as the image not filling. */
.phero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
/* Wash kept light enough that the photograph reads right across the width,
   with just enough weight behind the copy on the left to stay legible. */
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,12,14,.74) 0%, rgba(10,12,14,.5) 42%, rgba(10,12,14,.22) 72%, rgba(10,12,14,.12) 100%),
    linear-gradient(180deg, rgba(10,12,14,.42) 0%, rgba(10,12,14,.1) 34%, rgba(10,12,14,.34) 100%);
}
.phero__in { position: relative; width: 100%; padding: clamp(60px, 9vw, 110px) 0 clamp(88px, 11vw, 140px); }
.phero__copy { max-width: 640px; color: #fff; }
.phero h1 { color: #fff; margin-bottom: 20px; }
.phero h1 em { font-style: normal; color: var(--teal-300); }
.phero .lede { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.phero .btn-row { margin-top: 30px; }
.phero__stat { margin-top: 30px; display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.74); font-size: 14.5px; }
.phero__stat b { color: #fff; font-weight: 600; }
.phero__stat .dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: 0 0 auto; }
/* soft feathered white fade joining the photo to the page below */
.phero__curve {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 128px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, #fff 0%, rgba(255,255,255,.92) 26%, rgba(255,255,255,.5) 60%, rgba(255,255,255,0) 100%);
}

/* ---------- Logo marquee ---------- */
.marquee { padding: clamp(34px, 4vw, 54px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__label { text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px; }
.marquee__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: ab-marquee 38s linear infinite; }
.marquee__viewport:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(22px, 3vw, 46px);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #71717a;
  white-space: nowrap;
  line-height: 1.4;
}
.marquee__logo { height: clamp(28px, 2.8vw, 38px); width: clamp(28px, 2.8vw, 38px); object-fit: contain; flex: 0 0 auto; }
@keyframes ab-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 10px 0; }
}

/* ---------- The conversion block ---------- */
/* One ask, same markup on every page, so it lives here rather than per page. */
.start { background: var(--ink); color: #fff; }
.start h2 { color: #fff; }
.start h2 em { color: var(--brand-300); font-style: normal; }
.start .lede { color: #a1a1aa; }
.start__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .start__grid { grid-template-columns: 1fr; } }
.start__form { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); color: var(--ink); }
.start__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .start__row { grid-template-columns: 1fr; } }
.start__list { list-style: none; margin-top: 26px; }
.start__list li { position: relative; padding-left: 24px; margin-bottom: 12px; color: #a1a1aa; font-size: 15.5px; }
.start__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); }

/* ---------- Contact ---------- */
.contact { background: var(--tint); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 76px); align-items: start; }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }
.contact h2 { margin-bottom: 14px; }
.contact__meta { margin-top: 26px; }
.contact__meta a { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); text-decoration: none; font-size: 15.5px; margin-bottom: 10px; }
.contact__meta a:hover { color: var(--brand-500); }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact__row { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
}
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.frame { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--tint); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
a.pill:hover { background: var(--teal-50); border-color: var(--teal-200); color: var(--teal-700); }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px #0f7c7b26; }
.field input::placeholder, .field textarea::placeholder { color: #a1a1aa; }
.form-msg { font-size: 15px; min-height: 22px; }
.form-msg.ok { color: var(--teal-500); }
.form-msg.err { color: #b3261e; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--teal-500); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 68ch; }

/* ---------- Footer ---------- */
.ab-footer { background: var(--ink); color: #d4d4d8; padding: clamp(52px, 7vw, 88px) 0 28px; }
.ab-footer__in { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ab-footer .ab-brand { color: #fff; margin-bottom: 14px; }
.ab-footer p { color: #a1a1aa; font-size: 14.5px; max-width: 34ch; }
.ab-footer h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.ab-footer a { display: block; color: #a1a1aa; font-size: 14.5px; text-decoration: none; margin-bottom: 9px; transition: color .18s ease; }
.ab-footer a:hover { color: var(--teal-300); }
.ab-footer__bottom { max-width: 1200px; margin: 44px auto 0; padding: 22px var(--pad-x) 0; border-top: 1px solid #27272a; color: #71717a; font-size: 13.5px; }
@media (max-width: 860px) { .ab-footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ab-footer__in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 34px; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rule { height: 1px; background: var(--line); border: 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
