/* =========================================================
   AcquihireTech — Apple.com design system
   Exact SF Pro Display type scale, Apple color tokens,
   dark translucent global nav, tile product grid, gray footer.
   ========================================================= */

:root {
  /* Apple color tokens (exact) */
  --text:            #1d1d1f;
  --text-secondary:  #86868b;
  --text-dim:        #6e6e73;
  --text-on-dark:    #f5f5f7;
  --text-on-dark-muted: #a1a1a6;

  --bg:              #ffffff;
  --bg-tint:         #f5f5f7;
  --bg-near-white:   #fbfbfd;
  --bg-dark:         #000000;

  --link:            #0066cc;    /* Apple link blue — used ONLY for text links */
  --link-hover:      #0077ed;
  --link-dark:       #2997ff;    /* link blue on dark bg */
  --accent:          #1d1d1f;    /* Primary action = black (Apple style) */
  --accent-hover:    #000000;
  --accent-dark:     #2997ff;    /* kept for legacy inline refs */

  --border:          #d2d2d7;
  --border-light:    #e8e8ed;
  --border-dark:     #424245;
  --divider:         rgba(0, 0, 0, 0.08);

  /* Aliases for inline-styled legacy content */
  --text-muted:      #86868b;
  --text-dark:       #f5f5f7;
  --text-dark-muted: #a1a1a6;
  --accent-link:     #2997ff;
  --bg-tint2:        #f5f5f7;
  --bg-dark2:        #000000;
  /* Legacy blue alias — maps to link for inline refs */
  --accent-blue:     #0066cc;

  /* Shape */
  --r-tile:  18px;
  --r-card:  18px;
  --r-pill:  980px;
  --r-input: 12px;

  /* Nav */
  --nav-h: 48px;
  --nav-h-mobile: 48px;

  /* Container widths (Apple.com uses 980 / 1440) */
  --container:      980px;
  --container-wide: 1440px;

  /* Font stack — Apple's exact stack */
  --font: "SF Pro Display", "SF Pro Icons", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 22px;
}

/* =========================================================
   TYPOGRAPHY — Apple's exact SF Pro Display scale
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
}

/* Hero headline — Apple's "headline-super" scale */
.display {
  font-size: 80px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
}
@media (max-width: 1068px) { .display { font-size: 64px; line-height: 1.0625; } }
@media (max-width: 734px)  { .display { font-size: 48px; line-height: 1.08349; letter-spacing: -0.003em; } }

/* Section/tile headline — Apple's "headline" scale */
.headline, .tile h2 {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
}
@media (max-width: 1068px) { .headline, .tile h2 { font-size: 48px; line-height: 1.08349; } }
@media (max-width: 734px)  { .headline, .tile h2 { font-size: 40px; line-height: 1.1; letter-spacing: 0; } }

/* Tile sub-headline */
.tile h3, .subhead {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}
@media (max-width: 1068px) { .tile h3, .subhead { font-size: 32px; line-height: 1.125; } }
@media (max-width: 734px)  { .tile h3, .subhead { font-size: 28px; line-height: 1.14286; } }

/* Intro copy / lead — Apple's "intro" body scale */
.lead {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  color: var(--text);
  max-width: 58ch;
}
@media (max-width: 734px) { .lead { font-size: 19px; line-height: 1.4211; } }

/* Eyebrow / tile label — Apple uses gray, not colored */
.eyebrow, .tile-eyebrow {
  display: block;
  font-size: 21px;
  line-height: 1.19048;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  margin: 0 0 6px;
}
@media (max-width: 734px) { .eyebrow, .tile-eyebrow { font-size: 19px; } }

/* Small copy */
p { letter-spacing: -0.022em; }

/* =========================================================
   GLOBAL NAV — Apple's signature dark translucent bar
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  height: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  opacity: 0.92;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.brand:hover { opacity: 1; }
/* Legacy .brand-mark kept for fallback; new logo uses .brand-logo SVG */
.brand-mark {
  display: none; /* hidden — replaced by .brand-logo SVG */
}
.brand-logo {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}
/* Footer brand logo: slightly larger */
.footer-brand .brand-logo { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
  list-style: none;
}
.nav-links li { display: flex; }
.nav-links a {
  font-size: 12px;
  line-height: 1.33337;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  opacity: 0.8;
  padding: 0 10px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }

/* Highlighted Contact CTA pill in nav */
.nav-links a.nav-cta {
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-pill);
  padding: 5px 16px;
  height: auto;
  margin-left: 4px;
  opacity: 1;
  font-weight: 500;
  transition: background 0.2s, opacity 0.2s;
}
.nav-links a.nav-cta:hover { background: rgba(255,255,255,0.22); opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.nav-phone {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-phone:hover { opacity: 1; }

.menu-toggle {
  display: none;
  width: 18px;
  height: 18px;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: #f5f5f7;
  transition: transform 0.3s;
}
.menu-toggle span { position: absolute; top: 50%; left: 0; }
.menu-toggle span::before { content: ""; position: absolute; top: -5px; left: 0; }
.menu-toggle span::after  { content: ""; position: absolute; top: 5px;  left: 0; }

/* Mobile nav */
@media (max-width: 833px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: #1d1d1f;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0 48px;
    gap: 0;
    overflow-y: auto;
    z-index: 9998;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-links li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 12px;
  }
  .nav-links a {
    font-size: 17px;
    line-height: 1.17648;
    letter-spacing: -0.022em;
    font-weight: 400;
    padding: 18px 0;
    height: auto;
    opacity: 0.92;
    width: 100%;
    color: #f5f5f7;
    transition: opacity 0.3s;
  }
  .nav-links a:hover { opacity: 1; }
  .nav-links a.active { opacity: 1; font-weight: 600; }
  .mobile-open .nav-links { display: flex; }
  .mobile-open .menu-toggle span { background: transparent; }
  .mobile-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
  .mobile-open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }
  .nav-phone { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: block; }
}

/* =========================================================
   BUTTONS — Apple's pill buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  letter-spacing: -0.022em;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  min-width: 28px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #000; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover { background: var(--text); color: #fff; }

.btn-dark-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-dark-outline:hover { background: var(--text); color: #fff; }

.btn-light-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-light-outline:hover { background: #fff; color: var(--text); }

.btn-white {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,0.88); }

.btn-large { padding: 13px 28px; font-size: 17px; }

/* =========================================================
   CHEVRON LINK — Apple's signature "Learn more ›"
   ========================================================= */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  font-size: 17px;
  line-height: 1.29;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--link);
  transition: color 0.2s;
}
.link-arrow span { border-bottom: 0; }
.link-arrow::after {
  content: "\203A";
  margin-left: 4px;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.2s;
}
.link-arrow:hover { color: var(--link-hover); }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow.sm { font-size: 15px; }
.link-arrow.light { color: var(--accent-dark); }
.link-arrow.light:hover { color: #5cb5ff; }

/* =========================================================
   HERO — centered, tall, white
   ========================================================= */
.hero {
  background: var(--bg);
  padding: 68px 0 18px;
  text-align: center;
}
.hero .eyebrow {
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.hero .display {
  max-width: 18ch;
  margin: 0 auto 12px;
}
.hero .lead {
  margin: 0 auto 18px;
  max-width: 640px;
}
.hero-actions {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
@media (max-width: 734px) {
  .hero { padding: 48px 0 10px; }
  .hero-actions { gap: 16px; }
}

/* PAGE HERO — shorter variant for inner pages */
.page-hero {
  background: var(--bg);
  padding: 82px 0 28px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--text-secondary); margin-bottom: 8px; }
.page-hero h1 {
  font-size: 72px;
  line-height: 1.05556;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin: 0 auto 14px;
}
@media (max-width: 1068px) { .page-hero h1 { font-size: 56px; line-height: 1.07143; } }
@media (max-width: 734px)  { .page-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.003em; } }
.page-hero .lead { margin: 0 auto; max-width: 640px; }
@media (max-width: 734px) { .page-hero { padding: 56px 0 18px; } }

/* =========================================================
   TILE GRID — Apple product showcase
   ========================================================= */
.tile-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 12px;
}
.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 833px) {
  .tile-row { grid-template-columns: 1fr; }
}

/* TILE — centered, text top-anchored, product viz below */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-tile);
  min-height: 580px;
  padding: 58px 44px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-near-white);
}
.tile-hero { min-height: 692px; }
.tile-light { background: var(--bg-near-white); color: var(--text); }
.tile-tint  { background: var(--bg-tint); color: var(--text); }
.tile-dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.tile-dark .tile-sub, .tile-dark p { color: var(--text-on-dark-muted); }
.tile-blue {
  background: linear-gradient(168deg, #1d1d1f 0%, #2d2d2d 50%, #3a3a3c 100%);
  color: #fff;
}
.tile-blue .tile-sub, .tile-blue p { color: rgba(255, 255, 255, 0.72); }

.tile-eyebrow { color: var(--text-secondary); margin-bottom: 4px; }
.tile-dark .tile-eyebrow { color: var(--text-on-dark-muted); }
.tile-blue .tile-eyebrow { color: rgba(255, 255, 255, 0.6); }

.tile h2 { max-width: 16ch; margin: 0 auto 8px; color: inherit; }
.tile h3 { max-width: 14ch; margin: 0 auto 8px; color: inherit; }

.tile-sub {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  max-width: 46ch;
  margin: 0 auto 18px;
  color: inherit;
}
@media (max-width: 734px) { .tile-sub { font-size: 17px; } }

.tile-actions {
  display: inline-flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tile-visual {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.tile-visual svg { max-width: 100%; height: auto; }

@media (max-width: 1068px) {
  .tile { padding: 50px 34px 0; min-height: 520px; }
  .tile-hero { min-height: 620px; }
}
@media (max-width: 833px) {
  .tile { min-height: 480px; padding: 50px 24px 0; }
  .tile-hero { min-height: 560px; }
}
@media (max-width: 734px) {
  .tile-actions { gap: 16px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 100px 0; }
.section-tight { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { color: var(--text-secondary); margin-bottom: 8px; }
.section-head .headline { margin-bottom: 16px; }
.section-head .lead { margin: 0 auto; }

/* =========================================================
   OUTCOMES BAND
   ========================================================= */
.outcomes-band {
  padding: 100px 0;
  background: var(--bg);
}
.outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.outcome {
  text-align: left;
  padding: 28px 0 4px;
  border-top: 1px solid var(--border);
}
.outcome .num {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 22px;
}
.outcome h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.011em;
  margin-bottom: 6px;
}
.outcome p {
  font-size: 14px;
  line-height: 1.4286;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}
@media (max-width: 833px) {
  .outcomes { grid-template-columns: 1fr 1fr; gap: 24px; }
  .outcome .num { font-size: 40px; }
}

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry {
  display: block;
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 32px 28px 36px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.industry:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.industry-icon {
  width: 40px;
  height: 40px;
  color: var(--text);
  margin-bottom: 22px;
}
.industry h4 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.19048;
  margin-bottom: 8px;
}
.industry p {
  font-size: 15px;
  line-height: 1.42859;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}
@media (max-width: 833px) { .industries { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   WHO THIS IS FOR — rich client-recognition cards
   ========================================================= */
.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.for-card {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.for-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
.for-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.for-card h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}
.for-desc {
  font-size: 15px;
  line-height: 1.58;
  color: var(--text-secondary);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.for-problem {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}
.for-problem strong, .for-fix strong {
  color: var(--text);
  font-weight: 600;
}
.for-fix {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.for-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.for-link:hover { opacity: 0.6; }
.for-not {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 36px 40px;
}
.for-not h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}
.for-not ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 48px;
  padding: 0;
}
.for-not ul li {
  font-size: 15px;
  line-height: 1.52;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  letter-spacing: -0.012em;
}
.for-not ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--border);
}
.for-transition {
  margin-top: 64px;
  text-align: center;
}
.for-transition p.lead {
  margin: 0 auto 28px;
  max-width: 50ch;
  text-align: center;
}
@media (max-width: 833px) {
  .for-grid { grid-template-columns: 1fr; }
  .for-not { padding: 28px 24px; }
  .for-not ul { grid-template-columns: 1fr; }
}

/* Extended "For" grid — compact cards (6 secondary industries) */
.for-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 56px 0 18px;
}
.for-grid-extended {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.for-card--compact {
  padding: 26px 24px 22px;
}
.for-card--compact .for-tag {
  margin-bottom: 10px;
}
.for-card--compact h3 {
  font-size: 16px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.for-card--compact .for-desc {
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.for-card--compact .for-fix {
  font-size: 13px;
  margin-bottom: 0;
}
.for-unifying {
  margin-top: 44px;
  padding: 30px 36px;
  background: var(--bg-tint);
  border-radius: var(--r-card);
  border-left: 3px solid #f97316;
  max-width: 780px;
}
.for-unifying p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (max-width: 1068px) {
  .for-grid-extended { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 833px) {
  .for-grid-extended { grid-template-columns: 1fr; }
  .for-unifying { padding: 24px 22px; }
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  padding: 32px 0 8px;
  border-top: 1px solid var(--border);
}
.step-num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.011em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.step h4 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.004em;
  line-height: 1.16667;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  line-height: 1.42859;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}
@media (max-width: 833px) { .process-steps { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.service-section { padding: 6px 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 56px auto 0;
  text-align: left;
}
.service-detail-grid h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.011em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.service-detail-grid ul li {
  font-size: 17px;
  line-height: 1.47;
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--divider);
}
.service-detail-grid ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 833px) { .service-detail-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   OFFERS / PACKAGES
   ========================================================= */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px 0 56px;
}
.offer {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}
.offer.featured {
  background: var(--text);
  color: var(--text-on-dark);
}
.offer.featured h3, .offer.featured .offer-price { color: #fff; }
.offer.featured p, .offer.featured li { color: rgba(255, 255, 255, 0.82); }
.offer.featured ul li::before { background: rgba(255, 255, 255, 0.4); }
.offer.span-2 { grid-column: span 2; }

.offer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.offer-tag { color: var(--text); }
.offer h3 {
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 12px;
}
.offer > p {
  font-size: 15px;
  line-height: 1.47;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: -0.016em;
}
.offer-price {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1;
  margin-bottom: 24px;
}
.offer-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}
.offer ul {
  margin-bottom: 32px;
  flex: 1;
}
.offer ul li {
  font-size: 15px;
  line-height: 1.4667;
  color: var(--text);
  padding: 7px 0 7px 24px;
  position: relative;
  letter-spacing: -0.016em;
}
.offer ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
}
.offer .btn { align-self: flex-start; }
@media (max-width: 833px) {
  .offers-grid { grid-template-columns: 1fr; }
  .offer.span-2 { grid-column: auto; }
}

/* Values grid (offers page "how we price" / about page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 32px 28px;
}
.value .num-big {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.011em;
}
.value h4 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.19048;
  margin-bottom: 8px;
}
.value p {
  font-size: 15px;
  line-height: 1.47;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}
@media (max-width: 833px) { .values-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  line-height: 1.19048;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}
.faq-q::after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 26px; }
.faq-a p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
  letter-spacing: -0.022em;
}

/* =========================================================
   CLIENTS
   ========================================================= */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.client-card {
  background: #fff;
  border-radius: var(--r-card);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
}
.client-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
}
.client-type {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 14px;
}
.client-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 980px;
}
.client-status.active {
  background: #e8f5e9;
  color: #2e7d32;
}
.client-status.onboarding {
  background: #fff3e0;
  color: #e65100;
}
@media (max-width: 833px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .client-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   POSTS (insights)
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease;
}
.post-card:hover { transform: translateY(-2px); }
.post-art {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8e8ed, #d2d2d7);
  color: #1d1d1f;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.post-art svg { width: 72px; height: 72px; }
.post-art img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}
.post-card:hover .post-art img { transform: scale(1.03); }
.post-body { padding: 28px 28px 36px; }
.post-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.post-body h3 {
  font-size: 24px;
  line-height: 1.16667;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 12px;
}
.post-body p {
  font-size: 15px;
  line-height: 1.47;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: -0.016em;
}
@media (max-width: 833px) { .posts-grid { grid-template-columns: 1fr; } }

/* =========================================================
   ABOUT
   ========================================================= */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px 0;
}
.vm-card {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 48px 44px;
}
.vm-card .eyebrow { color: var(--text-secondary); }
.vm-card h2 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  margin: 8px 0 16px;
}
.vm-card p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
}
@media (max-width: 833px) { .vm-grid { grid-template-columns: 1fr; } }

.not-section {
  background: var(--text);
  color: var(--text-on-dark);
  border-radius: var(--r-tile);
  padding: 80px 60px;
  margin: 40px 0;
  text-align: center;
}
.not-section .eyebrow { color: var(--text-on-dark-muted); }
.not-section h2 {
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 8px auto 16px;
  max-width: 22ch;
}
.not-section .lead { color: var(--text-on-dark-muted); margin: 0 auto 48px; }
.not-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.not-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-card);
  padding: 28px 26px;
  transition: background 0.2s, border-color 0.2s;
}
.not-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.not-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
}
.not-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.not-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
  letter-spacing: -0.01em;
}
@media (max-width: 1068px) {
  .not-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  .not-section { padding: 56px 28px; }
  .not-section h2 { font-size: 36px; }
  .not-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
}

.legal-card {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 44px 44px;
  max-width: 900px;
  margin: 40px auto 0;
}
.legal-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 20px;
}
.legal-card dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 24px;
}
.legal-card dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-card dd {
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.016em;
}
@media (max-width: 734px) {
  .legal-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-card dd { margin-bottom: 14px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 32px 32px;
}
.contact-card .lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-card .val {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.004em;
  line-height: 1.16667;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-card .note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  letter-spacing: -0.016em;
}
.contact-form {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 48px 44px;
}
.contact-form h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.004em;
  line-height: 1.125;
  margin-bottom: 8px;
}
.form-intro {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: -0.016em;
}
.form-success {
  display: none;
  background: #dcf5e4;
  color: #006b27;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
}
.form-success.visible { display: block; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.016em;
  transition: border-color 0.2s;
}
.form-field textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
}
.form-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.4;
  letter-spacing: -0.016em;
}
@media (max-width: 833px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER — Apple's signature gray footer
   ========================================================= */
.site-footer {
  background: var(--bg-tint);
  color: var(--text-secondary);
  padding: 20px 0 20px;
  margin-top: 60px;
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}
.site-footer .container-wide {
  max-width: 1024px;
  padding: 0 22px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 14px;
  opacity: 1;
}
.footer-brand p {
  font-size: 12px;
  line-height: 1.33337;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-legal {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.footer-legal p {
  font-size: 12px;
  line-height: 1.33337;
  margin-bottom: 6px;
  max-width: 92ch;
  letter-spacing: -0.01em;
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}
.footer-bottom a {
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 833px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   PHONE-SPECIFIC OVERRIDES (max-width: 480px)
   Everything that's still 2-col at 833px goes to 1-col here.
   ========================================================= */
@media (max-width: 480px) {
  /* Outcomes — stack to 1 col */
  .outcomes { grid-template-columns: 1fr !important; gap: 20px !important; }
  .outcome .num { font-size: 36px; }

  /* Industries — stack to 1 col */
  .industries { grid-template-columns: 1fr !important; }

  /* Process steps — stack to 1 col */
  .process-steps { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Values grid — stack to 1 col */
  .values-grid { grid-template-columns: 1fr !important; }

  /* Engine detail grids (services.html inline styles) */
  .engine-detail { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Tile visual SVGs — constrain width */
  .tile-visual svg { max-width: 320px; }

  /* Tile padding tighter */
  .tile { padding: 40px 20px 0; min-height: 420px; }
  .tile-hero { min-height: 480px; }

  /* Hero tighter */
  .hero { padding: 40px 0 10px; }
  .hero-actions { flex-direction: column; gap: 14px; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  /* Page hero tighter */
  .page-hero { padding: 44px 0 14px; }

  /* Section spacing */
  .section { padding: 60px 0; }
  .section-tight { padding: 50px 0; }
  .section-head { margin-bottom: 36px; }

  /* Offer cards */
  .offer { padding: 32px 24px; }
  .offer h3 { font-size: 26px; }
  .offer-price { font-size: 26px; }

  /* FAQ */
  .faq-q { font-size: 18px; padding: 20px 0; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Legal card dl */
  .legal-card { padding: 32px 24px; }
  .legal-card dl { grid-template-columns: 1fr !important; gap: 4px 0 !important; }
  .legal-card dd { margin-bottom: 12px; }

  /* Not section */
  .not-section { padding: 48px 24px; }
  .not-section h2 { font-size: 32px; }

  /* VM grid */
  .vm-card { padding: 36px 28px; }
  .vm-card h2 { font-size: 32px; }

  /* Posts grid */
  .post-body { padding: 22px 22px 28px; }
  .post-body h3 { font-size: 21px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ========== Article page ========== */
.article-header {
  padding: 80px 0 48px;
  text-align: center;
}
.article-header .eyebrow { margin-bottom: 16px; }
.article-header h1 {
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.003em;
  font-weight: 700;
  max-width: 780px;
  margin: 0 auto 20px;
}
.article-header .article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px 100px;
}
.article-body h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.003em;
  line-height: 1.125;
  margin: 56px 0 16px;
  color: var(--text);
}
.article-body h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1.2;
  margin: 40px 0 12px;
  color: var(--text);
}
.article-body p {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 24px 24px;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--border);
  margin: 32px 0;
  padding: 16px 24px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
}
.article-body strong { font-weight: 600; }
.article-body a { color: var(--link); }
.article-body a:hover { text-decoration: underline; }
.article-body .callout {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 28px 32px;
  margin: 32px 0;
}
.article-body .callout h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.article-body .callout p { margin-bottom: 0; }
.article-body .table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--r-card);
  border: 1px solid var(--border-light);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-text);
  font-size: 15px;
}
.article-body th {
  text-align: left;
  font-weight: 600;
  background: var(--bg-tint);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.article-body td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.article-body tr:last-child td { border-bottom: none; }

/* Article bottom nav */
.article-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 40px;
}
.article-nav a {
  color: var(--link);
  font-size: 15px;
  font-weight: 500;
}
.article-nav a:hover { text-decoration: underline; }

/* Article responsive */
@media (max-width: 734px) {
  .article-header { padding: 60px 0 36px; }
  .article-header h1 { font-size: 32px; line-height: 1.12; }
  .article-body h2 { font-size: 26px; margin-top: 40px; }
  .article-body h3 { font-size: 21px; }
  .article-body blockquote { font-size: 17px; padding: 14px 18px; }
  .article-body .callout { padding: 22px 20px; }
  .article-nav { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ========== Multi-step form ========== */
.audit-form {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  padding: 48px 40px;
  max-width: 680px;
  margin: 0 auto;
}
.audit-form h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}
.audit-form .form-intro {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

/* Progress bar */
.step-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}
.step-progress .step-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border-light);
  transition: background 0.3s;
}
.step-progress .step-dot.active {
  background: var(--accent);
}
.step-progress .step-dot.done {
  background: var(--accent);
}

/* Step panels */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.form-step .step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-step h4 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Form navigation buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}
.form-nav .btn-back {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
}
.form-nav .btn-back:hover { color: var(--text); }

/* Checkbox group for multi-select */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-input);
  transition: border-color 0.2s, background 0.2s;
}
.checkbox-group label:hover {
  border-color: var(--border);
  background: var(--bg-tint);
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.checkbox-group input[type="checkbox"]:checked + span {
  font-weight: 500;
}

@media (max-width: 734px) {
  .audit-form { padding: 32px 22px; }
  .checkbox-group { grid-template-columns: 1fr; }
}

/* ========== Process / How We Work page ========== */
.phase {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}
.phase:last-child { border-bottom: none; }
.phase-meta {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: flex-start;
}
.phase-num {
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.phase-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 10px;
}
.phase-body h3 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.phase-lead {
  font-size: 19px;
  line-height: 1.42;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 60ch;
}
.phase-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.phase-cols h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.phase-cols ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase-cols li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.phase-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.phase-output {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 24px 28px;
}
.phase-output .output-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.phase-output p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
@media (max-width: 1068px) {
  .phase { grid-template-columns: 1fr; gap: 24px; }
  .phase-meta { position: static; display: flex; align-items: baseline; gap: 16px; }
  .phase-num { font-size: 44px; }
  .phase-label { margin-top: 0; }
}
@media (max-width: 734px) {
  .phase { padding: 40px 0; }
  .phase-body h3 { font-size: 28px; }
  .phase-lead { font-size: 17px; }
  .phase-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ========== Social proof / client proof bar ========== */
.proof-bar {
  padding: 40px 0 20px;
  text-align: center;
}
.proof-bar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.proof-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.5;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.proof-logo:hover { opacity: 0.9; }
.proof-logo--img { display: flex; align-items: center; }
.proof-logo--img img { height: 28px; width: auto; opacity: 0.5; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.proof-logo--img:hover img { opacity: 0.85; filter: grayscale(0.3); }
@media (max-width: 734px) {
  .proof-logos { gap: 28px; }
  .proof-logo { font-size: 17px; }
  .proof-logo--img img { height: 22px; }
}

/* ========== Founder section (about page) ========== */
@media (max-width: 734px) {
  .founder-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .founder-grid img {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ========== Results snapshot (homepage) ========== */
.results-snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.result-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.result-card .industry {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.result-card .metric {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.result-card .metric-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
}
.result-card .result-detail {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 1068px) { .results-snapshot { grid-template-columns: 1fr; gap: 16px; } }

/* =========================================================
   PROOF / CASE STUDY SECTION
   ========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.case-card {
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.case-client {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--border-light);
}
.case-co {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 5px;
}
.case-sector {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.case-engine-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-tint);
  color: var(--text);
  border-radius: 100px;
  padding: 4px 12px;
}
.case-block {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-light);
  flex: 1;
}
.case-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 9px;
}
.case-block p {
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: -0.01em;
}
.case-result {
  padding: 20px 28px;
  background: var(--bg-tint);
}
.case-result-metric {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 7px;
}
.case-result p {
  font-size: 13px;
  line-height: 1.52;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: -0.01em;
}
.case-quote {
  padding: 16px 28px;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
.case-quote p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}
.case-quote cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

/* Proof roster strip */
.proof-roster {
  margin-top: 52px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.proof-roster-label {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.proof-roster-sub {
  font-size: 15px;
  line-height: 1.52;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.proof-clients-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.proof-client-item {
  background: var(--bg-tint);
  border-radius: 14px;
  padding: 16px 18px;
}
.proof-client-item .pci-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.proof-client-item .pci-sector {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.proof-client-item .pci-status {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.pci-status.live { color: #006b27; }
.pci-status.onboarding { color: var(--text-secondary); }
@media (max-width: 1068px) {
  .case-grid { grid-template-columns: 1fr; }
  .proof-roster { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 734px) {
  .proof-roster { padding: 28px 24px; }
  .proof-clients-strip { grid-template-columns: 1fr; }
}

/* ========== Systems Audit / Discovery Call section ========== */
.audit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}
.audit-steps {
  display: flex;
  flex-direction: column;
  margin-top: 44px;
}
.audit-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.audit-step:last-child { border-bottom: none; }
.audit-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  min-width: 24px;
  padding-top: 4px;
  flex-shrink: 0;
}
.audit-step-body h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
}
.audit-step-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.62;
  margin: 0;
}
.audit-fit-card {
  background: var(--bg-tint);
  border-radius: var(--r-card);
  padding: 36px 32px;
  position: sticky;
  top: 100px;
}
.audit-fit-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.audit-fit-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.audit-fit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #006b27;
  font-size: 12px;
  font-weight: 700;
  top: 1px;
}
.audit-fit-list--not li::before {
  content: "—";
  color: var(--border);
  font-weight: 400;
}
@media (max-width: 833px) {
  .audit-grid { grid-template-columns: 1fr; gap: 48px; }
  .audit-fit-card { position: static; }
}

/* ========== Engagement rows (offers page) ========== */
.eng-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
}
.eng-left {
  padding: 44px 40px;
  background: var(--bg-tint);
  display: flex;
  flex-direction: column;
}
.eng-right {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-light);
}
.eng-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eng-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 10px;
}
.eng-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.58;
  margin-bottom: 28px;
}
.eng-for-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.eng-for-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.eng-for-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
  margin-bottom: 7px;
}
.eng-for-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  font-size: 11px;
  top: 3px;
}
.eng-problem {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.68;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  flex: 1;
}
.eng-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 28px;
  margin-bottom: 12px;
}
.eng-section-label:first-child { margin-top: 0; }
.eng-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.eng-deliverables li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.eng-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #006b27;
  font-size: 12px;
  font-weight: 700;
  top: 1px;
}
.eng-outcome {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.58;
}
.eng-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.eng-meta-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.eng-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.eng-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eng-stat-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
/* Partnership dark variant */
.eng-row--dark { background: var(--bg-dark); border-color: var(--bg-dark); }
.eng-row--dark .eng-left { background: rgba(255,255,255,0.04); }
.eng-row--dark .eng-right { border-left-color: rgba(255,255,255,0.1); }
.eng-row--dark .eng-name { color: #fff; }
.eng-row--dark .eng-meta { color: rgba(255,255,255,0.4); }
.eng-row--dark .eng-tagline,
.eng-row--dark .eng-for-label,
.eng-row--dark .eng-for-list li,
.eng-row--dark .eng-for-list li::before,
.eng-row--dark .eng-problem,
.eng-row--dark .eng-section-label,
.eng-row--dark .eng-deliverables li,
.eng-row--dark .eng-stat-label { color: rgba(255,255,255,0.6); }
.eng-row--dark .eng-stat-val { color: #fff; }
.eng-row--dark .eng-outcome { color: #fff; }
.eng-row--dark .eng-problem { border-top-color: rgba(255,255,255,0.12); }
.eng-row--dark .eng-footer { border-top-color: rgba(255,255,255,0.12); }
.eng-row--dark .eng-deliverables li::before { color: rgba(90,200,110,0.9); }
@media (max-width: 1068px) {
  .eng-row { grid-template-columns: 1fr; }
  .eng-right { border-left: none; border-top: 1px solid var(--border-light); }
  .eng-row--dark .eng-right { border-top-color: rgba(255,255,255,0.12); }
  .eng-left, .eng-right { padding: 32px 28px; }
}
@media (max-width: 767px) {
  .offers-framing-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ========== WhatsApp floating CTA ========== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.24);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
@media (max-width: 734px) {
  .wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* =========================================================
   HERO IMAGE BAND (industry pages, about page)
   Wide editorial photo that sits directly below a page hero.
   ========================================================= */
.hero-image-band {
  padding: 8px 0 72px;
  background: var(--bg);
}
.hero-image-band .container {
  padding-left: 22px;
  padding-right: 22px;
}
.hero-image-band figure {
  margin: 0;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.hero-image-band img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--r-tile);
  background: var(--bg-tint);
}
.hero-image-band figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: -0.01em;
}
@media (max-width: 1068px) {
  .hero-image-band img { height: 380px; }
}
@media (max-width: 833px) {
  .hero-image-band { padding: 4px 0 56px; }
  .hero-image-band img { height: 300px; border-radius: 16px; }
}
@media (max-width: 734px) {
  .hero-image-band img { height: 240px; }
}
@media (max-width: 480px) {
  .hero-image-band img { height: 200px; border-radius: 14px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* =========================================================
   HERO — 3D CANVAS VARIANT (homepage only)
   ========================================================= */
.hero-3d {
  position: relative;
  background: #0f0e10;
  padding: 96px 0 60px;
  text-align: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-3d .container {
  position: relative;
  z-index: 1;
}
.hero-3d .eyebrow {
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.hero-3d .display {
  color: #f5f5f7;
  max-width: 18ch;
  margin: 0 auto 16px;
}
.hero-3d .lead {
  color: rgba(245,245,247,0.72);
  margin: 0 auto 28px;
  max-width: 620px;
  line-height: 1.7;
}
.hero-3d .hero-actions {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}
.hero-3d .hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.01em;
}
/* Gradient fade at bottom to blend into proof bar */
.hero-3d::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0f0e10);
  pointer-events: none;
  z-index: 0;
}
/* Dark mode button overrides for 3D hero */
.hero-3d .btn-primary {
  background: #fff;
  color: #1d1d1f;
}
.hero-3d .btn-primary:hover {
  background: #f0f0f0;
}
.hero-3d .btn-dark-outline {
  border-color: rgba(255,255,255,0.28);
  color: #f5f5f7;
}
.hero-3d .btn-dark-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 734px) {
  .hero-3d { padding: 72px 0 44px; }
  .hero-3d .hero-actions { gap: 12px; }
}

/* =========================================================
   SMART CHAT BOT  (#at-chat widget)
   ========================================================= */

/* Container */
#at-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (max-width: 480px) {
  #at-chat { bottom: 16px; right: 16px; }
}

/* Trigger button */
.at-trigger {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1d1d1f;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.at-trigger:hover {
  background: #2d2d2f;
  transform: scale(1.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.32);
}
.at-trigger.at-active {
  background: var(--at-accent);
  border-color: transparent;
}
.at-trigger-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.at-trigger-status {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #30d158;
  border: 2px solid #1d1d1f;
}
.at-active .at-trigger-status {
  border-color: var(--at-accent);
}

/* Chat window */
.at-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-height: 540px;
  background: rgba(22, 22, 26, 0.97);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
  transform-origin: bottom right;
}
.at-window.at-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
@media (max-width: 480px) {
  .at-window {
    width: calc(100vw - 32px);
    max-height: 70vh;
    right: 0;
    bottom: 68px;
  }
}

/* Header */
.at-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.at-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.at-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a20;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.at-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}
.at-header-status {
  font-size: 11.5px;
  color: rgba(245,245,247,0.5);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.at-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  display: inline-block;
  flex-shrink: 0;
}
.at-close {
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(245,245,247,0.6);
  transition: background 0.15s, color 0.15s;
  outline: none;
}
.at-close:hover { background: rgba(255,255,255,0.14); color: #f5f5f7; }

/* Messages */
.at-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.at-messages::-webkit-scrollbar { width: 4px; }
.at-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 2px; }

.at-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}
.at-msg--bot { align-self: flex-start; align-items: flex-start; }
.at-msg--user { align-self: flex-end; align-items: flex-end; }

.at-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.at-msg--bot .at-bubble {
  background: rgba(255,255,255,0.08);
  color: rgba(245,245,247,0.92);
  border-bottom-left-radius: 4px;
}
.at-msg--user .at-bubble {
  background: var(--at-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Link button below bot message */
.at-link-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: var(--at-accent-dim);
  color: #fdba74;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.at-link-btn:hover { background: var(--at-accent-dim2); }

/* Typing indicator */
.at-typing-row { margin-bottom: 2px; }
.at-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  min-width: 52px;
}
.at-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245,245,247,0.45);
  animation: at-bounce 1.1s infinite ease-in-out;
  display: inline-block;
}
.at-typing span:nth-child(2) { animation-delay: 0.18s; }
.at-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes at-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* Quick replies */
.at-quick-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 4px;
  flex-shrink: 0;
}
.at-quick-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: rgba(245,245,247,0.8);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  outline: none;
  white-space: nowrap;
}
.at-quick-btn:hover {
  background: var(--at-accent-dim2);
  border-color: rgba(249,115,22,0.5);
  color: #f5f5f7;
}

/* Input row */
.at-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.at-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #f5f5f7;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.at-input::placeholder { color: rgba(245,245,247,0.35); }
.at-input:focus {
  border-color: rgba(249,115,22,0.6);
  background: rgba(255,255,255,0.1);
}
.at-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--at-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
  outline: none;
}
.at-send:hover { background: var(--at-accent-hover); transform: scale(1.06); }
.at-send:active { transform: scale(0.95); }

/* =========================================================
   CHATBOT — ORANGE ACCENT OVERRIDES (scoped to #at-chat)
   All chatbot accents use --at-accent (orange) throughout.
   ========================================================= */
:root {
  --at-accent:       #f97316;   /* fluorescent orange — Growth engine color */
  --at-accent-hover: #ea6c0a;
  --at-accent-dim:   rgba(249,115,22,0.18);
  --at-accent-dim2:  rgba(249,115,22,0.30);
}

/* Trigger button active state → orange */
#at-chat .at-trigger.at-active {
  background: var(--at-accent);
  border-color: transparent;
}
#at-chat .at-trigger.at-active .at-trigger-status {
  border-color: var(--at-accent);
}

/* User message bubble → orange */
#at-chat .at-msg--user .at-bubble {
  background: var(--at-accent);
  color: #fff;
}

/* Send button → orange */
#at-chat .at-send { background: var(--at-accent); }
#at-chat .at-send:hover { background: var(--at-accent-hover); }

/* Quick reply chips hover → orange tint */
#at-chat .at-quick-btn:hover {
  background: var(--at-accent-dim2);
  border-color: rgba(249,115,22,0.5);
}

/* Input focus border → orange */
#at-chat .at-input:focus { border-color: rgba(249,115,22,0.6); }

/* Link button → orange */
#at-chat .at-link-btn {
  background: var(--at-accent-dim);
  color: #fdba74;
}
#at-chat .at-link-btn:hover { background: var(--at-accent-dim2); }

/* Header avatar → 4-ball logo container */
#at-chat .at-avatar-sm {
  background: #111114;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2px;
  overflow: visible;
}
#at-chat .at-avatar-sm svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Bot name + sub-tagline in header */
#at-chat .at-header-sub {
  font-size: 10.5px;
  color: rgba(245,245,247,0.38);
  margin-top: 1px;
  letter-spacing: 0.01em;
}

/* Lead collection highlight messages */
#at-chat .at-msg--collect .at-bubble {
  border-left: 2px solid var(--at-accent);
  background: rgba(249,115,22,0.07);
}
