/* Shared header and footer for every page (partials/header.html, partials/footer.html).
   Selectors are qualified (nav.ag-nav, footer.ag-footer) so they win over each page's own nav/footer styles. */
nav.ag-nav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 48px; margin: 0;
  background: rgba(13,17,23,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'DM Sans', sans-serif; text-align: left;
}
.ag-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.ag-logo img { height: 34px; width: auto; display: block; }
.ag-menu { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex: 1; }
.ag-links { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0 auto; padding: 0; }
.ag-links > li { position: relative; margin: 0; }
.ag-links > li > a, .ag-drop-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(230,231,232,0.78); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  transition: color .2s;
}
.ag-links > li > a:hover, .ag-drop-btn:hover, .ag-has-drop.ag-drop-open > .ag-drop-btn, .ag-has-drop.ag-current > .ag-drop-btn { color: #fff; }
.ag-drop-btn::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.ag-drop {
  list-style: none; position: absolute; top: calc(100% + 12px); left: -18px; min-width: 250px; margin: 0; padding: 10px 0;
  background: #1A2332; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.ag-drop::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.ag-has-drop:hover .ag-drop, .ag-has-drop.ag-drop-open .ag-drop { opacity: 1; visibility: visible; transform: none; }
.ag-drop a { display: block; padding: 9px 20px; font-size: 14px; font-weight: 500; color: rgba(230,231,232,0.82); text-decoration: none; text-transform: none; letter-spacing: 0; }
.ag-drop a:hover, .ag-drop a[aria-current] { color: #fff; background: rgba(255,255,255,0.05); }
.ag-drop-all { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 6px; padding-top: 6px; }
.ag-drop-all a { color: #00A3EE; font-weight: 700; }
.ag-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.ag-login { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(230,231,232,0.78); text-decoration: none; }
.ag-login:hover { color: #fff; }
.ag-cta {
  background: #E83646; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; padding: 10px 26px; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: opacity .2s, transform .2s;
}
.ag-cta:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.ag-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ag-menu-toggle span:not(.ag-sr) { display: block; width: 24px; height: 2px; margin: 5px 0; background: #E6E7E8; transition: transform .2s, opacity .2s; }
.ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 1000px) {
  nav.ag-nav { padding: 12px 20px; }
  .ag-menu-toggle { display: block; }
  .ag-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0D1117; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 8px 20px 24px; max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .ag-open .ag-menu { display: flex; }
  .ag-open .ag-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ag-open .ag-menu-toggle span:nth-child(2) { opacity: 0; }
  .ag-open .ag-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .ag-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .ag-links > li { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .ag-links > li > a, .ag-drop-btn { display: block; width: 100%; text-align: left; padding: 16px 0; font-size: 14px; }
  .ag-drop { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 10px; min-width: 0; }
  .ag-has-drop:hover .ag-drop { display: none; }
  .ag-has-drop.ag-drop-open .ag-drop { display: block; }
  .ag-drop a { padding: 10px 14px; }
  .ag-actions { justify-content: space-between; padding-top: 20px; }
}

footer.ag-footer { background: #002C54; padding: 72px 48px 36px; text-align: left; border-top: 1px solid rgba(255,255,255,0.07); font-family: 'DM Sans', sans-serif; }
.ag-footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
.ag-footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 18px; }
footer.ag-footer p { font-size: 14px; line-height: 1.7; color: rgba(230,231,232,0.62); margin: 0; }
.ag-footer-brand p { max-width: 300px; }
footer.ag-footer .ag-footer-head { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: #E6E7E8; margin-bottom: 14px; }
.ag-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ag-footer-col li { margin: 0 0 9px; }
footer.ag-footer a { color: rgba(230,231,232,0.62); text-decoration: none; font-size: 14px; transition: color .2s; }
footer.ag-footer a[aria-current] { color: #fff; }
footer.ag-footer a:hover { color: #00A3EE; }
.ag-footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer.ag-footer .ag-footer-bottom p { font-size: 13px; }
footer.ag-footer .ag-footer-bottom a { font-size: 13px; color: #00A3EE; }
footer.ag-footer .ag-footer-bottom p.ag-tagline { font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 1; letter-spacing: 2.4px; color: rgba(230,231,232,0.4); }
@media (max-width: 560px) { footer.ag-footer .ag-footer-bottom p.ag-tagline { font-size: 24px; letter-spacing: 1.6px; } }
@media (max-width: 1000px) { .ag-footer-grid { grid-template-columns: 1fr 1fr; } .ag-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { footer.ag-footer { padding: 56px 20px 28px; } .ag-footer-grid { grid-template-columns: 1fr; } }

/* One-color icons (tools/replace_icons.py): inherit the size of the old emoji, take the page accent. */
.ag-icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; color: var(--accent, var(--lt-blue, #00A3EE)); }
/* Icons sitting on a solid color or gradient chip read in white. */
.success-icon .ag-icon, .v-icon .ag-icon, .chat-avatar .ag-icon { color: #fff; }

/* White header, matching the WordPress staging site (Tray 10/15/2026). */
nav.ag-nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #E6E9EE; box-shadow: 0 6px 24px rgba(0,44,84,0.08); }
.ag-links > li > a, .ag-drop-btn { color: #1A2332; }
.ag-links > li > a:hover, .ag-drop-btn:hover, .ag-has-drop.ag-drop-open > .ag-drop-btn, .ag-has-drop.ag-current > .ag-drop-btn, .ag-links > li > a[aria-current] { color: #E83646; }
.ag-drop { background: #fff; border: 1px solid #E6E9EE; box-shadow: 0 18px 40px rgba(0,44,84,0.14); }
.ag-drop a { color: #1A2332; }
.ag-drop a:hover, .ag-drop a[aria-current] { color: #E83646; background: #F4F6F9; }
.ag-drop-all { border-top-color: #E6E9EE; }
.ag-drop-all a { color: #0277B8; }
.ag-login { color: #E83646; }
.ag-login:hover { color: #C41E2E; }
.ag-menu-toggle span:not(.ag-sr) { background: #1A2332; }
@media (max-width: 1000px) {
  .ag-menu { background: #fff; border-bottom: 1px solid #E6E9EE; }
  .ag-links > li { border-bottom-color: #E6E9EE; }
}

/* Industry-page flip cards (tools/vertical_flips.py), matching the WordPress build: white front with the
   icon in the page accent, accent-colored back with the title and a trial button. */
.vf-section { background: #fff; }
.vf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.vf-card { height: 290px; perspective: 1200px; outline: none; }
.vf-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; }
.vf-card:hover .vf-inner, .vf-card:focus-within .vf-inner { transform: rotateY(180deg); }
.vf-face { position: absolute; inset: 0; border-radius: 19px; padding: 28px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.vf-front { background: #fff; box-shadow: 0 6px 24px rgba(0,44,84,0.06); }
.vf-back { background: var(--accent); transform: rotateY(180deg); }
.vf-icon { width: 84px; height: 84px; color: var(--accent); margin-bottom: 18px; flex-shrink: 0; }
.vf-face h3 { font-family: 'DM Sans', sans-serif; font-size: 23px; font-weight: 600; line-height: 1.1; letter-spacing: 0; color: #6B6460; margin: 0 0 12px; }
.vf-front p { font-size: 14px; line-height: 1.35; color: #6B6460; margin: 0; max-width: 280px; }
.vf-back h3 { color: #F5F2EC; font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.vf-btn { display: inline-block; border: 2px solid #fff; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; padding: 10px 20px; border-radius: 4px; transition: background .2s, color .2s; }
.vf-btn:hover, .vf-btn:focus { background: #fff; color: var(--navy, #002C54); }
@media (max-width: 900px) { .vf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vf-grid { grid-template-columns: 1fr; } .vf-card { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .vf-inner { transition: none; } }

/* Header content lines up with the page content (1200px column) instead of the screen edges. */
@media (min-width: 1001px) {
  nav.ag-nav { padding-left: max(48px, calc((100% - 1200px) / 2)); padding-right: max(48px, calc((100% - 1200px) / 2)); }
}
.vf-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vf-grid--4 .vf-face { padding: 24px 22px; }
.vf-grid--4 .vf-face h3 { font-size: 21px; }
@media (max-width: 1100px) { .vf-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vf-grid--4 { grid-template-columns: 1fr; } }

/* Hero text lines up with the header logo (1200px content column) on desktop. */
@media (min-width: 1001px) {
  section.hero { padding-left: max(48px, calc((100% - 1200px) / 2)); padding-right: max(48px, calc((100% - 1200px) / 2)); }
  div.hero { max-width: 1296px; padding-left: 48px; padding-right: 48px; } /* feature pages: centered 1200px grid */
}

/* Feature flip cards (homepage "Every Tool You Need" and every feature page's "Explore Every Feature"), matching the WordPress build (Tray 10/15/2026). Icons are the WordPress set, recolored via currentColor. */
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1160px; margin: 48px auto 0; }
.flip-card { height: 290px; perspective: 1200px; outline: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; }
.flip-card:hover .flip-inner, .flip-card:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; border-radius: 19px; padding: 30px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-front { background: #1A2332; border: 1px solid rgba(255,255,255,.05); }
.flip-back { background: #00A3EE; transform: rotateY(180deg); }
.flip-icon { width: 78px; height: 78px; color: #fff; margin-bottom: 18px; flex-shrink: 0; }
.flip-face h3 { font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.1; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.flip-face p { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.88); margin: 0; }
.flip-back p { font-size: 15px; font-weight: 500; line-height: 1.55; color: #fff; margin-bottom: 22px; }
.flip-btn { display: inline-block; border: 2px solid #fff; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; padding: 10px 18px; border-radius: 4px; transition: background .2s, color .2s; }
.flip-btn:hover, .flip-btn:focus { background: #fff; color: #0277B8; }
.swoosh-under { position: relative; display: inline-block; }
.swoosh-under::after {
  content: ''; position: absolute; left: 2%; right: -6%; bottom: -14px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 18' preserveAspectRatio='none'%3E%3Cpath d='M3 6 C 40 16, 100 16, 137 8' fill='none' stroke='%23E8442E' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
@media (max-width: 1000px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flip-grid { grid-template-columns: 1fr; gap: 16px; } .flip-card { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
/* Feature pages' "Explore Every Feature": darker band so the flip cards stand out; centered label. */
section.all-features-section { background: #0D1117; }
.all-features-section .section-label { text-align: center; display: block; }
.all-features-section .section-title { text-align: center; }
/* 18 feature cards in even rows at every width: 6 / 3 / 2 / 1 across (Tray 10/15/2026). */
.flip-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 1400px; }
.flip-card { height: 320px; }
.flip-face { padding: 26px 18px; }
.flip-icon { width: 68px; height: 68px; }
.flip-face h3 { font-size: 20px; }
.flip-face p { font-size: 13.5px; }
@media (max-width: 1280px) { .flip-grid { grid-template-columns: repeat(3, 1fr); } .flip-card { height: 290px; } }
@media (max-width: 760px) { .flip-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .flip-grid { grid-template-columns: 1fr; } .flip-card { height: 260px; } }

/* Feature pages' "Integration Advantage", matching the WordPress build (Tray 10/15/2026): blue band, red swoosh,
   two rows of three cards with the icon beside the title. */
section.integrations-section { background: #1F4378; }
section.integrations-section::before { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(0,163,238,0.10) 0%, transparent 65%); }
.integrations-section .section-inner { max-width: 1140px; }
.integrations-section .section-label { color: #4FA3F0; font-size: 18px; letter-spacing: 1px; margin-bottom: 6px; }
.integrations-section h2.section-title { color: #fff !important; font-size: clamp(44px, 5.4vw, 70px); line-height: 1; margin-bottom: 36px; }
.integrations-section h2.section-title em, .integrations-section h2.section-title .swoosh-under { color: #4FA3F0 !important; font-style: normal; }
section.integrations-section .integrations-lead { font-size: 16px; color: rgba(255,255,255,.9); max-width: 900px; margin: 0 0 56px; }
section.integrations-section .integrations-lead strong { color: #fff; }
section.integrations-section .int-grid, section.integrations-section .integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
section.integrations-section .int-card, section.integrations-section .integration-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start;
  background: rgba(255,255,255,.09); border: 0; padding: 28px 24px 30px; transform: none;
}
section.integrations-section .int-card:hover, section.integrations-section .integration-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); }
section.integrations-section .int-card-icon, section.integrations-section .integration-card-icon { grid-row: 1 / span 2; font-size: 38px; line-height: 1; margin: 0; }
section.integrations-section .int-card-icon .ag-icon, section.integrations-section .integration-card-icon .ag-icon { color: #4FA3F0; }
section.integrations-section .int-card h4, section.integrations-section .integration-card h4 { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: 0; color: #fff; margin: 2px 0 14px; }
section.integrations-section .int-card p, section.integrations-section .integration-card p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.9); }
section.integrations-section .int-tag, section.integrations-section .integration-tag { display: none; }
@media (max-width: 1000px) { section.integrations-section .int-grid, section.integrations-section .integrations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { section.integrations-section .int-grid, section.integrations-section .integrations-grid { grid-template-columns: 1fr; } }

/* Even rows (Tray's rule, 10/15/2026): six-card grids are 3 + 3, never 4 + 2. */
.use-cases-grid, .features-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 1000px) { .use-cases-grid, .features-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 640px) { .use-cases-grid, .features-grid { grid-template-columns: 1fr !important; } }
/* Four cards: 2 + 2. */
@media (min-width: 641px) { section.integrations-section .int-grid:has(> :nth-child(4):last-child), section.integrations-section .integrations-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* ═══ Design pass (10/15/2026): align cards, icons and headings with the WordPress build ═══ */

/* Section labels: larger, less tracking, like the WordPress labels. */
.section-label { font-size: 15px !important; letter-spacing: 1px !important; font-weight: 600 !important; }
@media (max-width: 640px) { .swoosh-under { display: inline; } .swoosh-under::after { display: none; } }

/* Shared card anatomy: large solid icon beside a sentence-case title, text underneath; flat cards with real gaps. */
section.pain-section .pain-grid,
section.features-section .features-grid,
section.use-cases-section .use-cases-grid,
section.usecases-section .usecases-grid { gap: 26px 22px !important; }

section.pain-section .pain-card,
section.features-section .feature-card,
section.use-cases-section .use-case-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-content: start;
  border: 0 !important; border-radius: 0; padding: 30px 28px 32px; transform: none;
}
section.pain-section .pain-card-icon,
section.features-section .feature-card-icon,
section.use-cases-section .use-case-icon { grid-row: 1 / span 2; font-size: 40px; line-height: 1; margin: 2px 0 0; display: block; }
section.pain-section .pain-card h3,
section.features-section .feature-card h3,
section.use-cases-section .use-case-card h3,
section.usecases-section .usecase-card h3 { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; margin: 0 0 12px; }
section.pain-section .pain-card p,
section.features-section .feature-card p,
section.use-cases-section .use-case-card p,
section.usecases-section .usecase-card p { font-size: 14.5px; line-height: 1.65; }

/* Dark sections (problem cards). */
section.pain-section .pain-card { background: rgba(255,255,255,.07); }
section.pain-section .pain-card:hover { background: rgba(255,255,255,.10); }
section.pain-section .pain-card h3 { color: #fff; }
section.pain-section .pain-card p { color: rgba(255,255,255,.88); }
section.pain-section .pain-card-icon .ag-icon { color: #4FA3F0; }

/* Light sections (feature and use-case cards). */
section.features-section .feature-card,
section.use-cases-section .use-case-card,
section.usecases-section .usecase-card { background: #fff; box-shadow: 0 6px 24px rgba(0,44,84,.07); border: 0 !important; border-radius: 0; }
section.features-section .feature-card:hover,
section.use-cases-section .use-case-card:hover,
section.usecases-section .usecase-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,44,84,.12); }
section.features-section .feature-card h3,
section.use-cases-section .use-case-card h3,
section.usecases-section .usecase-card h3 { color: #002C54; }
section.features-section .feature-card p,
section.use-cases-section .use-case-card p,
section.usecases-section .usecase-card p { color: #4A5566; }
section.features-section .feature-card-icon .ag-icon,
section.use-cases-section .use-case-icon .ag-icon { color: var(--accent, #00A3EE); }

/* "What you can automate" cards already put the icon beside the title: drop the circle, enlarge the icon. */
section.usecases-section .usecase-card { padding: 30px 28px 32px; }
section.usecases-section .usecase-header { gap: 16px; align-items: center; }
section.usecases-section .usecase-header h3 { margin: 0; }
section.usecases-section .usecase-icon { width: auto; height: auto; border: 0; background: none; border-radius: 0; font-size: 38px; line-height: 1; }
section.usecases-section .usecase-icon .ag-icon { color: var(--accent, #00A3EE); }

/* Homepage problem cards: same type treatment and real gaps. */
.problem-grid { gap: 22px !important; }
.problem-card { border: 0 !important; background: rgba(255,255,255,.07) !important; padding: 32px 30px !important; }
.problem-card h3 { font-family: 'DM Sans', sans-serif !important; font-size: 21px !important; font-weight: 600; letter-spacing: 0 !important; text-transform: none; color: #fff !important; }
.problem-card p { font-size: 14.5px !important; color: rgba(255,255,255,.86) !important; }

/* Red swoosh underlines removed site-wide (Tray 10/15/2026): the WordPress version draws them with an animation this build doesn't have. */
.swoosh-under::after, .guide-swoosh::after, .rp-swoosh::before { display: none !important; content: none !important; }

/* "How it works" steps (homepage plan-step, feature-page how-card): same card anatomy as the rest of the site. */
.plan-steps, .how-grid { gap: 22px !important; }
.plan-step, .how-card { background: #fff !important; border: 0 !important; box-shadow: 0 6px 24px rgba(0,44,84,.07); padding: 36px 30px 34px !important; }
.plan-step h3, .how-card h3 { font-family: 'DM Sans', sans-serif !important; font-size: 21px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.2; color: #002C54 !important; margin: 18px 0 12px !important; }
.plan-step p, .how-card p { font-size: 14.5px !important; line-height: 1.65 !important; color: #4A5566 !important; }
.plan-step-num, .how-num { width: 52px !important; height: 52px !important; font-size: 26px !important; }

/* Testimonial cards: larger, brighter quote text. */
.testimonial blockquote, .proof-card blockquote, .proof-quote { font-size: 15.5px !important; color: rgba(255,255,255,.9) !important; }

/* Header matching the WordPress staging site (Tray 10/15/2026): blue contact bar on top, white bar with a 48px logo,
   Montserrat uppercase menu, red Login text and a slanted red demo button. The contact bar folds away once the page scrolls. */
header.ag-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 5px 30px rgba(0,0,0,0.1); }
header.ag-header nav.ag-nav { position: relative; top: auto; padding-top: 15px; padding-bottom: 15px; border-bottom: 0; box-shadow: none; }
body { padding-top: 54px; }
.ag-topbar { background: #204274; max-height: 38px; overflow: hidden; transition: max-height .25s ease; }
.ag-scrolled .ag-topbar { max-height: 0; }
.ag-topbar-in { display: flex; align-items: center; gap: 24px; height: 38px; padding: 0 max(48px, calc((100% - 1200px) / 2)); }
.ag-topbar a { display: inline-flex; align-items: center; gap: 10px; font-family: 'Montserrat', 'DM Sans', sans-serif; font-size: 14px; font-weight: 300; color: #fff; text-decoration: none; transition: color .2s; }
.ag-topbar a:hover { color: #00A3EE; }
.ag-topbar svg { width: 15px; height: 15px; fill: currentColor; }
.ag-logo img { height: 48px; }
.ag-links { gap: 30px; }
.ag-links > li > a, .ag-drop-btn { font-family: 'Montserrat', 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; color: #2A2520; }
.ag-links > li > a:hover, .ag-drop-btn:hover, .ag-has-drop.ag-drop-open > .ag-drop-btn, .ag-has-drop.ag-current > .ag-drop-btn, .ag-links > li > a[aria-current] { color: #00A3EE; }
.ag-drop-btn::after { width: 0; height: 0; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; transform: translateY(-2px); margin-left: 9px; }
.ag-drop a:hover, .ag-drop a[aria-current] { color: #00A3EE; }
.ag-actions { gap: 28px; }
.ag-login { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #E8230A; }
.ag-login:hover { color: #00A3EE; }
.ag-cta { background: #E8230A; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 15px 28px; clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%); transition: background .2s; }
.ag-cta:hover { background: #00A3EE; opacity: 1; transform: none; }
@media (max-width: 1240px) and (min-width: 1001px) { .ag-links { gap: 20px; } .ag-links > li > a, .ag-drop-btn { font-size: 13.5px; } .ag-actions { gap: 18px; } }
@media (max-width: 1000px) {
  header.ag-header nav.ag-nav { padding-top: 12px; padding-bottom: 12px; }
  .ag-logo img { height: 38px; }
  .ag-topbar-in { padding: 0 20px; justify-content: center; }
  body { padding-top: 38px; }
}
@media (max-width: 560px) { .ag-topbar { display: none; } body { padding-top: 0; } }

/* Feature-page "Replaces" row, rebuilt for legibility (Tray 10/15/2026): readable size, near-white text on a visible chip,
   the strike kept but in a thinner red line so the product name still reads. */
div.replaces-row { gap: 10px 12px; margin-top: 8px; }
div.replaces-row .replaces-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #C9CED6; margin-right: 4px; }
div.replaces-row .replaces-pill { font-size: 15px; font-weight: 600; line-height: 1.2; color: #E6E7E8; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22); border-radius: 4px; padding: 7px 14px; text-decoration: line-through; text-decoration-color: #FF5A67; text-decoration-thickness: 1.5px; }

/* Industry pages: the hero's main button takes the industry's color; the header button stays brand red (Tray 10/15/2026). */
body:has(.vf-section) section.hero a.btn-primary { background: var(--accent); }

/* Feature-page "How it works" step numbers, matching the WordPress build (Tray 10/15/2026): large navy disc, heavy white numeral. */
.plan-step .plan-step-num, .how-card .how-num { width: 86px !important; height: 86px !important; border: 0 !important; background: #132449 !important; color: #fff !important; font-family: 'DM Sans', sans-serif !important; font-size: 52px !important; font-weight: 700 !important; line-height: 1 !important; margin: 0 auto 26px !important; box-shadow: 0 8px 20px rgba(19,36,73,0.18); }

/* Feature Deep Dive rows, matching the WordPress build (Tray 10/15/2026): no boxes or seams, content held to the
   1200px column, big Bebas headings, plain blue eyebrow, readable body and checklist, and a clean image slot. */
section.benefits-section { padding: 110px max(48px, calc((100% - 1200px) / 2)); }
section.benefits-section .section-inner { max-width: none; margin: 0; padding: 0; }
section.benefits-section .benefits-intro { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 780px; margin: 22px 0 96px; }
section.benefits-section .feature-row { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin: 0 0 110px; }
section.benefits-section .feature-row:last-child { margin-bottom: 0; }
section.benefits-section .feature-row-text { background: none; padding: 0; }
section.benefits-section .feature-row-text .feature-tag { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; color: #4390E6; margin-bottom: 10px; }
section.benefits-section .feature-row-text h3 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(38px, 4vw, 52px); letter-spacing: 0; line-height: 0.95; color: #fff; margin-bottom: 26px; }
section.benefits-section .feature-row-text p { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.86); margin-bottom: 30px; max-width: 540px; }
section.benefits-section .feature-check-list { gap: 12px; }
section.benefits-section .feature-check-list li { font-size: 16px; line-height: 1.5; color: #fff; gap: 12px; }
section.benefits-section .feature-check-list li::before { color: #4390E6; }
section.benefits-section .feature-row-media { background: none; border: 0; min-height: 0; overflow: visible; }
section.benefits-section .feature-row-media::before { display: none; }
section.benefits-section .feature-row-media-inner { width: 100%; }
section.benefits-section .media-placeholder { aspect-ratio: 16 / 10; background: rgba(255,255,255,0.03); border: 2px dashed rgba(255,255,255,0.18); border-radius: 12px; }
section.benefits-section .media-placeholder-icon { font-size: 40px; opacity: 0.55; }
section.benefits-section .media-placeholder p { font-size: 13px; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); margin: 0; max-width: 80%; text-align: center; }
@media (max-width: 900px) {
  section.benefits-section { padding: 80px 24px; }
  section.benefits-section .benefits-intro { margin-bottom: 56px; }
  section.benefits-section .feature-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  section.benefits-section .feature-row.reversed .feature-row-text { order: 1; }
  section.benefits-section .feature-row.reversed .feature-row-media { order: 2; }
}
p.all-features-more { text-align: center; margin: 40px 0 0; }
p.all-features-more a { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4390E6; text-decoration: none; }
p.all-features-more a:hover { color: #fff; }
/* No connector line behind the How It Works step cards (Tray 10/15/2026). */
.plan-steps::before, .plan-steps::after, .how-grid::before, .how-grid::after { display: none !important; content: none !important; }
/* "How We Stack Up" eyebrow centered over the centered comparison heading on every feature page. */
section.comparison-section .section-label { display: block; text-align: center; }
table.comparison-table td.check { color: #00A3EE; font-weight: 700; font-size: 18px; }
table.comparison-table td.cross { color: #E83646; font-weight: 700; font-size: 16px; }
table.comparison-table td.partial { color: #5A6676; }
@media (max-width: 700px) { table.comparison-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* Contrast rule: no white boxes on near-black sections. How It Works always sits on the light shade so its white step cards stay soft. */
section.how-section { background: #F4F6F9 !important; }
section.how-section .section-title { color: #002C54 !important; }
section.how-section .section-title .swoosh-under { color: #2F7FD8 !important; }

/* Comparison tables: Agora column header shows the logo, not a type treatment. */
th.th-agora img.th-agora-logo { display: block; height: 30px; width: auto; margin: 0 auto; }

/* Integrations logo section (partials/integrations.html, built by tools/build_integrations.py). White background, 12 featured + expandable full list. */
section.ag-integrations { background: #fff; padding: 110px 48px; font-family: 'DM Sans', sans-serif; }
.ag-integrations .int-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.ag-integrations .int-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #00A3EE; margin-bottom: 14px; }
.ag-integrations .int-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: .95; letter-spacing: .5px; color: #002C54; margin: 0; }
.ag-integrations .int-title em { font-style: normal; color: #2F7FD8; }
.ag-integrations .int-lede { font-size: 17px; line-height: 1.7; color: #5A6676; max-width: 660px; margin: 18px auto 52px; }
.ag-integrations ul { list-style: none; margin: 0; padding: 0; }
.ag-integrations .int-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ag-integrations .int-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 12px 22px; background: #fff; border: 1px solid #E6E9EE; border-radius: 10px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ag-integrations .int-tile:hover { border-color: #C9D6E6; box-shadow: 0 8px 24px rgba(0,44,84,.08); transform: translateY(-2px); }
.ag-integrations .int-tile img { width: 48px; height: 48px; object-fit: contain; }
.ag-integrations .int-tile span { font-size: 14px; font-weight: 600; color: #1A2332; }
.ag-integrations .int-more { margin-top: 36px; }
.ag-integrations .int-toggle { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #002C54; color: #002C54; font: 700 13px/1 'DM Sans', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; padding: 15px 28px; border-radius: 6px; cursor: pointer; transition: background .2s, color .2s; }
.ag-integrations .int-toggle:hover { background: #002C54; color: #fff; }
.ag-integrations .int-toggle svg { transition: transform .25s; }
.ag-integrations .int-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ag-integrations .int-toggle-close, .ag-integrations .int-toggle[aria-expanded="true"] .int-toggle-open { display: none; }
.ag-integrations .int-toggle[aria-expanded="true"] .int-toggle-close { display: inline; }
.ag-integrations .int-all { margin-top: 44px; text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.ag-integrations .int-all[hidden] { display: none; }
.ag-integrations .int-group h3 { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5A6676; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #E6E9EE; }
.ag-integrations .int-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ag-integrations .int-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #1A2332; line-height: 1.25; }
.ag-integrations .int-chip img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.ag-integrations .int-note { grid-column: 1 / -1; text-align: center; font-size: 15px; color: #5A6676; margin: 8px 0 0; }
@media (max-width: 1000px) { .ag-integrations .int-grid { grid-template-columns: repeat(4, 1fr); } .ag-integrations .int-all { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { section.ag-integrations { padding: 80px 20px; } .ag-integrations .int-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .ag-integrations .int-tile { padding: 20px 6px 16px; gap: 10px; } .ag-integrations .int-tile img { width: 38px; height: 38px; } .ag-integrations .int-tile span { font-size: 12.5px; } .ag-integrations .int-all { grid-template-columns: 1fr; } }

.ag-integrations .int-note a { color: #2F7FD8; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Deep dive media (screenshots and product animations) */
section.benefits-section .feature-media { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); background: #0D1117; }
section.benefits-section .feature-media--square { max-width: 480px; margin: 0 auto; }
section.benefits-section .feature-media--portrait { max-width: 320px; margin: 0 auto; }

/* Text-only deep dive row: headline + copy left, checklist right */
section.benefits-section .feature-row--split { display: block; padding-top: 72px; border-top: 1px solid rgba(255,255,255,.1); }
section.benefits-section .feature-row--split .feature-row-text { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 72px; align-items: center; }
section.benefits-section .feature-row--split .feature-row-text > * { grid-column: 1; }
section.benefits-section .feature-row--split .feature-row-text > ul { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
section.benefits-section .feature-row--split .feature-row-text > p { margin-bottom: 0; }
@media (max-width: 900px) { section.benefits-section .feature-row--split .feature-row-text { grid-template-columns: 1fr; } section.benefits-section .feature-row--split .feature-row-text > ul { grid-column: 1; grid-row: auto; margin-top: 28px; } }

/* Feature deep dive on a light background (#F1F1F1 matches the product animations' backdrop). Industry pages (.vf-section) keep their own styling. */
section.benefits-section:not(.vf-section) { background: #F1F1F1 !important; }
section.benefits-section:not(.vf-section) .section-label { color: #2F7FD8 !important; }
section.benefits-section:not(.vf-section) .section-title { color: #002C54 !important; }
section.benefits-section:not(.vf-section) .section-title .swoosh-under { color: #2F7FD8 !important; }
section.benefits-section:not(.vf-section) .benefits-intro { color: #4A5566 !important; }
section.benefits-section:not(.vf-section) .feature-row-text .feature-tag { color: #2F7FD8 !important; }
section.benefits-section:not(.vf-section) .feature-row-text h3 { color: #002C54 !important; }
section.benefits-section:not(.vf-section) .feature-row-text p { color: #3A4656 !important; }
section.benefits-section:not(.vf-section) .feature-check-list li { color: #1A2332 !important; }
section.benefits-section:not(.vf-section) .feature-media { box-shadow: 0 14px 36px rgba(0,44,84,.12); background: #F1F1F1; }
section.benefits-section:not(.vf-section) .feature-row--split { border-top-color: rgba(0,44,84,.12); }
section.benefits-section:not(.vf-section) .media-placeholder { border-color: rgba(0,44,84,.2) !important; background: rgba(0,44,84,.03) !important; }
section.benefits-section:not(.vf-section) .media-placeholder p { color: #5A6676 !important; }

/* Industry "Everything You Need" section: intro was white-on-white (invisible) with a 96px bottom margin. Show it and tighten the gap to the cards. */
section.vf-section .benefits-intro { color: #4A5566 !important; margin: 14px 0 0 !important; max-width: 760px; }
section.vf-section .vf-grid { margin-top: 44px; }

/* Managed Growth: "Two Ways to Run It" section on every industry page. Accent comes from each page's --accent. */
section.ag-ways { background: #0D1117; padding: 100px 48px; }
.ag-ways .ways-inner { max-width: 1040px; margin: 0 auto; }
.ag-ways .ways-label { display: block; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.ag-ways .ways-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: .95; letter-spacing: .5px; color: #E6E7E8; text-align: center; margin: 0; }
.ag-ways .ways-title em { font-style: normal; color: var(--accent); }
.ag-ways .ways-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 52px; align-items: stretch; }
.ag-ways .way-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 36px; }
.ag-ways .way-card h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 1px; color: #E6E7E8; margin: 0 0 12px; }
.ag-ways .way-card p { font-size: 15.5px; line-height: 1.72; color: rgba(230,231,232,.82); margin: 0; }
.ag-ways .way-card--managed { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ag-ways .way-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ag-ways .way-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ag-ways .way-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; color: #E6E7E8; }
.ag-ways .way-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; color: var(--accent); }
.ag-ways .ways-note { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: 15px; line-height: 1.7; color: rgba(230,231,232,.72); }
.ag-ways .ways-cta { text-align: center; margin-top: 40px; }
.ag-ways .ways-cta p { font-size: 14px; color: rgba(230,231,232,.6); margin: 14px auto 0; max-width: 560px; line-height: 1.6; }
@media (max-width: 860px) { .ag-ways .ways-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { section.ag-ways { padding: 72px 20px; } .ag-ways .way-list { grid-template-columns: 1fr; } }
.ag-ways .ways-cta .btn-primary { background: var(--accent); }
/* Light variant for pages whose accent is too dark for the dark section (Real Estate navy) */
section.ag-ways.ag-ways--light { background: #F4F6F9; }
.ag-ways--light .ways-title { color: #002C54; }
.ag-ways--light .way-card { background: #fff; border-color: #E1E6EE; }
.ag-ways--light .way-card h3 { color: #002C54; }
.ag-ways--light .way-card p { color: #3A4656; }
.ag-ways--light .way-list li { color: #1A2332; }
.ag-ways--light .ways-note, .ag-ways--light .ways-cta p { color: #5A6676; }
.ag-ways--light .way-card--managed { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
section.benefits-section .feature-media--cutout { box-shadow: none !important; background: none !important; border-radius: 0; filter: drop-shadow(0 18px 28px rgba(0,44,84,.14)); }

/* Feature heroes: top-align copy and graphic; graphic starts level with the eyebrow tag. */
@media (min-width: 1025px) {
  body:not(:has(.vf-section)) section.hero, body:not(:has(.vf-section)) div.hero, body:not(:has(.vf-section)) .hero:has(> .hero-media) { align-items: start !important; }
  .hero > .hero-text { padding-top: 0 !important; margin-top: 0 !important; }
  .hero > .hero-media { margin-top: 8px !important; }
}

/* Industry palette: on dark sections, accent TEXT and ICONS use the brighter partner (--accent-bright) for contrast; fills keep the deep --accent. */
body:has(.vf-section) section.hero .hero-tag,
body:has(.vf-section) section.hero h1 em,
body:has(.vf-section) .ps-section .section-label,
body:has(.vf-section) .ps-section .check-list--solutions li::before,
body:has(.vf-section) .proof-section .section-label,
body:has(.vf-section) .proof-section .swoosh-under,
body:has(.vf-section) .proof-section h2 em,
body:has(.vf-section) .proof-section .testimonial::before,
section.ag-ways:not(.ag-ways--light) .ways-label,
section.ag-ways:not(.ag-ways--light) .ways-title em,
section.ag-ways:not(.ag-ways--light) .way-kicker,
section.ag-ways:not(.ag-ways--light) .way-list li::before { color: var(--accent-bright, var(--accent)) !important; }
body:has(.vf-section) section.hero .stat { border-left-color: var(--accent-bright, var(--accent)) !important; }
section.ag-ways:not(.ag-ways--light) .way-card--managed { border-color: var(--accent-bright, var(--accent)); background: color-mix(in srgb, var(--accent-bright, var(--accent)) 8%, transparent); }
/* Light sections on industry pages keep accent text in the deep tone */
/* B2B integrations band and replace strip sit on dark backgrounds */
body:has(.vf-section) .integration-section .section-label, body:has(.vf-section) .integration-section .swoosh-under, body:has(.vf-section) .integration-section li::before, body:has(.vf-section) .replace-arrow { color: var(--accent-bright, var(--accent)) !important; }
body:has(.vf-section) .integration-section .integration-card { border-top-color: var(--accent-bright, var(--accent)) !important; }
/* Real Estate: its sections are light and blue-tinted, so small accent text uses a slightly deeper indigo */
body:has(.vf-section) .ag-ways--light .way-kicker, body:has(.vf-section) .ag-ways--light .way-list li::before { color: var(--accent-text, var(--accent)) !important; }

/* Book a Full Demo popup (partials/footer.html) */
.ag-demo-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ag-demo-modal[hidden] { display: none; }
.ag-demo-backdrop { position: absolute; inset: 0; background: rgba(13,17,23,.72); backdrop-filter: blur(3px); animation: agFade .2s ease; }
.ag-demo-panel { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); padding: 36px 32px 20px; animation: agPop .25s ease; font-family: 'DM Sans', sans-serif; }
.ag-demo-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F4F6F9; color: #002C54; font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s; }
.ag-demo-close:hover { background: #E1E6EE; }
.ag-demo-head { text-align: center; max-width: 560px; margin: 0 auto 8px; }
.ag-demo-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #E83646; margin-bottom: 8px; }
.ag-demo-head h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1; color: #002C54; margin: 0 0 10px; }
.ag-demo-head p { font-size: 15px; line-height: 1.6; color: #5A6676; margin: 0; }
.ag-demo-frame iframe { display: block; width: 100%; min-height: 600px; border: 0; }
html.ag-modal-open { overflow: hidden; }
@keyframes agFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes agPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .ag-demo-modal { padding: 0; } .ag-demo-panel { max-height: 100vh; height: 100%; border-radius: 0; padding: 56px 12px 12px; } }
@media (prefers-reduced-motion: reduce) { .ag-demo-backdrop, .ag-demo-panel { animation: none; } }
.comparison-note a { color: #2F7FD8; font-weight: 600; text-decoration: none; } .comparison-note a:hover { text-decoration: underline; }

/* Capture / Nurture / Close funnel section (homepage + live demo) */
section.ag-funnel { background: #fff; padding: 110px 48px; font-family: 'DM Sans', sans-serif; }
.ag-funnel .fn-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.ag-funnel .fn-art img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.ag-funnel .fn-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #2F7FD8; margin-bottom: 14px; }
.ag-funnel .fn-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: .95; letter-spacing: .5px; color: #002C54; margin: 0; }
.ag-funnel .fn-title em { font-style: normal; color: #2F7FD8; }
.ag-funnel .fn-intro { font-size: 17px; line-height: 1.7; color: #4A5566; margin: 16px 0 34px; max-width: 560px; }
.ag-funnel .fn-stage { padding: 0 0 0 20px; border-left: 3px solid var(--fn, #002C54); margin-bottom: 26px; }
.ag-funnel .fn-stage:last-child { margin-bottom: 0; }
.ag-funnel .fn-stage h3 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; letter-spacing: 1px; line-height: 1; color: var(--fn, #002C54); margin: 0 0 8px; }
.ag-funnel .fn-stage p { font-size: 15.5px; line-height: 1.65; color: #3A4656; margin: 0; }
@media (max-width: 900px) { .ag-funnel .fn-grid { grid-template-columns: 1fr; gap: 44px; } .ag-funnel .fn-art img { max-width: 320px; } }
@media (max-width: 560px) { section.ag-funnel { padding: 80px 20px; } }
.ag-ways .ways-cta p a { color: var(--accent-bright, #4FA3F0); font-weight: 700; text-decoration: none; }
.ag-ways .ways-cta p a:hover { text-decoration: underline; }
.ag-ways--light .ways-cta p a { color: var(--accent-text, var(--accent)); }
.ag-ways .ways-cta p { max-width: 620px; }

/* Industry pages without testimonials: centered headline above the industry pills */
section.proof-section--types .section-label, section.proof-section--types .section-title { text-align: center !important; margin-left: auto !important; margin-right: auto !important; display: block; }
section.proof-section--types .types-row { margin-top: 40px !important; }

/* Industry pills ("Who It's Built For"): subtle hover */
.types-row .type-pill { cursor: default; transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.types-row .type-pill:hover { color: var(--accent-bright, var(--accent)) !important; border-color: var(--accent-bright, var(--accent)) !important; background-color: color-mix(in srgb, var(--accent-bright, var(--accent)) 10%, transparent) !important; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
body:has(.ag-ways--light) .types-row .type-pill:hover { color: #fff !important; background-color: var(--accent) !important; border-color: var(--accent) !important; box-shadow: 0 6px 16px rgba(77,101,199,.25); }
@media (prefers-reduced-motion: reduce) { .types-row .type-pill:hover { transform: none; } }

/* Replaces strip: real crossed-out logos on white (B2B, Coaches) */
.replace-strip--logos { background: #fff !important; border-top: 1px solid #E6E9EE !important; border-bottom: 1px solid #E6E9EE !important; padding: 36px 48px !important; }
.replace-strip--logos .replace-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 24px; }
.replace-strip--logos .replace-strip-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; margin-right: 8px; color: #5A6676; }
.replace-logos { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 16px; align-items: center; }
.replace-logos img { display: block; width: 100%; max-width: 180px; height: auto; margin: 0 auto; transition: transform .25s ease; }
.replace-logos li:hover img { transform: translateY(-3px) scale(1.04); }
@media (max-width: 900px) { .replace-strip--logos .replace-strip-inner { flex-direction: column; align-items: center; } .replace-logos { grid-template-columns: repeat(3, 1fr); width: 100%; } }
@media (max-width: 480px) { .replace-strip--logos { padding: 28px 20px !important; } .replace-logos { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .replace-logos li:hover img { transform: none; } }

/* Features mega menu (partials/header.html) */
@media (min-width: 1001px) {
  .ag-links > li.ag-has-drop:has(.ag-mega) { position: static; }
  .ag-drop.ag-mega { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 4px 12px; width: min(780px, calc(100vw - 48px)); top: 100%; left: 50%; transform: translate(-50%, 6px); padding: 22px 24px; border-radius: 12px; }
  .ag-has-drop:hover .ag-drop.ag-mega, .ag-has-drop.ag-drop-open .ag-drop.ag-mega { transform: translate(-50%, 0); }
  .ag-drop.ag-mega::before { top: -16px; height: 16px; }
}
.ag-mega a { display: flex !important; align-items: center; gap: 14px; padding: 12px 14px !important; border-radius: 8px; font-family: 'Montserrat', 'DM Sans', sans-serif; font-size: 14.5px !important; font-weight: 600 !important; color: #fff !important; transition: background .2s, color .2s; }
.ag-mega a:hover, .ag-mega a[aria-current] { background: rgba(0,44,84,.18) !important; color: #fff !important; }
.ag-mega-ic { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; color: #002C54; transition: transform .2s; }
.ag-mega a:hover .ag-mega-ic { transform: scale(1.08); }
.ag-mega-svg { width: 30px; height: 30px; }
.ag-mega-svg [fill]:not([fill="none"]) { fill: currentColor; }
.ag-mega-all a { color: #fff !important; }
@media (max-width: 1000px) {
  .ag-mega a { padding: 10px 14px !important; }
  .ag-mega-ic { width: 26px; height: 26px; } .ag-mega-svg { width: 22px; height: 22px; }
}

/* Mega menus: brand-blue panel */
nav.ag-nav .ag-drop.ag-mega { background: #00A3EE !important; border-color: #00A3EE !important; box-shadow: 0 22px 50px rgba(0,44,84,.30) !important; }
.ag-mega-svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
@media (min-width: 1001px) { .ag-drop.ag-mega.ag-mega--4 { grid-template-columns: repeat(4, minmax(200px, 1fr)); width: min(1000px, calc(100vw - 48px)); } }
@media (max-width: 1000px) { nav.ag-nav .ag-drop.ag-mega { border-radius: 10px; padding: 6px !important; } }

/* FAQ answers: larger, higher-contrast text */
section.faq-section .faq-answer p { font-family: 'DM Sans', sans-serif !important; font-size: 16.5px !important; font-weight: 400 !important; line-height: 1.75 !important; color: #D5DAE1 !important; letter-spacing: 0 !important; }
section.faq-section .faq-answer p a { color: #4FB8F5 !important; font-weight: 600; }
/* Industry pages have light FAQ sections */
body:has(.vf-section) section.faq-section .faq-answer p { color: #3A4656 !important; }
body:has(.vf-section) section.faq-section .faq-answer p a { color: var(--accent) !important; }
