/* =========================================================================
   (AU) Rebuilt AU guide pages on the "Article (page)" template — au.109
   Account-Based Marketing guide: banner CTA, chapter numbers, videos,
   callouts, cards, number grids, download pop-ups and the contact band.
   Presentation only; text comes from the page content.
   ========================================================================= */

/* ---------- Banner (live H1, sub-heading, hero image, DOWNLOAD EBOOK) ---------- */
.xg-post-scope .article-banner--au-guide .article-banner__title{font-size:clamp(26px,2.6vw,38px)}
.xg-post-scope .article-banner--au-guide .article-banner__deck{font-size:17px;color:rgba(255,255,255,.78)}
.xg-post-scope .article-banner--au-guide .article-banner__image{display:flex;align-items:center;justify-content:center;padding:28px 28px 28px 8px}
.xg-post-scope .article-banner--au-guide .article-banner__image img{object-fit:contain;aspect-ratio:auto;height:auto;max-height:340px;border-radius:0;filter:drop-shadow(0 18px 40px rgba(8,0,24,.45))}
.xg-post-scope .article-banner__cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin-top:26px;padding:15px 28px;border-radius:999px;background:#FD625E;color:#fff!important;font:700 14px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;text-decoration:none!important;border:0!important;box-shadow:0 10px 26px rgba(253,98,94,.35);transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
.xg-post-scope .article-banner__cta::after{content:"";width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v10m0 0l-4-4m4 4l4-4M2 14h12' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v10m0 0l-4-4m4 4l4-4M2 14h12' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.xg-post-scope .article-banner__cta:hover,.xg-post-scope .article-banner__cta:focus-visible{background:#ff7470;transform:translateY(-1px);box-shadow:0 14px 30px rgba(253,98,94,.45)}
@media (max-width:860px){
  .xg-post-scope .article-banner--au-guide .article-banner__image{padding:24px 24px 0}
  .xg-post-scope .article-banner--au-guide .article-banner__image img{max-height:220px;width:auto;max-width:100%;aspect-ratio:auto}
  .xg-post-scope .article-banner__cta{align-self:flex-start}
}

/* ---------- Chapter number (live "1", "2" … badge above each chapter heading) ---------- */
.article-body .xg-abmg-chapnum{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:64px 0 14px!important;border-radius:50%;background:#FFE9E8;color:#FD625E;font:700 17px/1 Inter,sans-serif;letter-spacing:0}
.article-body .xg-abmg-chapnum + h2{margin-top:0;font-size:26px;line-height:1.25}
.article-body h2.xg-no-toc{margin-top:48px}
.article-body h2[id],.article-body h3[id]{scroll-margin-top:110px}

/* ---------- Click-to-play video (YouTube, loads on click) ---------- */
.article-body .xg-abmg-video{position:relative;aspect-ratio:16/9;margin:28px 0 32px;border-radius:16px;overflow:hidden;background:#23044C;box-shadow:0 14px 40px rgba(31,33,58,.16)}
.article-body .xg-abmg-video img,.article-body .xg-abmg-video iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0;margin:0;border-radius:0}
.article-body .xg-abmg-video__play{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
.article-body .xg-abmg-video__play::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(35,4,76,0) 55%,rgba(35,4,76,.28));pointer-events:none}
.article-body .xg-abmg-video__btn{position:absolute;z-index:1;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px;border-radius:50%;background:#FD625E;display:flex;align-items:center;justify-content:center;padding-left:5px;box-shadow:0 10px 28px rgba(253,98,94,.45);transition:transform .2s ease}
.article-body .xg-abmg-video__play:hover .xg-abmg-video__btn,.article-body .xg-abmg-video__play:focus-visible .xg-abmg-video__btn{transform:scale(1.08)}
.article-body .xg-abmg-video__play:focus-visible{outline:3px solid #FD625E;outline-offset:-3px}

/* ---------- Callouts (live "informative boxes") ---------- */
.article-body .xg-abmg-note{display:flex;align-items:center;gap:16px;margin:28px 0;padding:18px 22px;border-radius:12px;background:#FFF1F0;border-left:3px solid #FD625E}
.article-body .xg-abmg-note__icon{flex:0 0 40px;width:40px;height:40px;margin:0;border-radius:0}
.article-body .xg-abmg-note__text{margin:0!important;font-size:16px;line-height:1.55;color:#23044C}
.article-body .xg-abmg-note__text strong{color:#23044C}
.article-body a.xg-abmg-note__text{font-weight:600;color:#23044C;border-bottom:0;text-decoration:underline;text-decoration-color:rgba(253,98,94,.6);text-underline-offset:3px}
.article-body a.xg-abmg-note__text:hover{color:#D90041}

/* ---------- Cards (5 pillars) ---------- */
.article-body .xg-abmg-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 32px}
.article-body .xg-abmg-card{background:#fff;border:1px solid #E6E8F0;border-radius:14px;padding:22px 22px 18px;box-shadow:0 6px 20px rgba(31,33,58,.05)}
.article-body .xg-abmg-cards .xg-abmg-card:last-child:nth-child(odd){grid-column:1/-1}
.article-body .xg-abmg-card__title{margin:0 0 10px!important;font-size:18px;line-height:1.3;color:#23044C}
.article-body .xg-abmg-card p,.article-body .xg-abmg-card li{font-size:15px;line-height:1.6;margin-bottom:6px}
.article-body .xg-abmg-card ul,.article-body .xg-abmg-card ol{margin:0;padding-left:18px}
.article-body .xg-abmg-eyebrow{display:block;margin:0 0 6px;font-size:12px;font-weight:700!important;letter-spacing:.14em;text-transform:uppercase;color:#FD625E!important}

/* ---------- Closed rates flow (3 cards + arrows) ---------- */
.article-body .xg-abmg-flow{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr);align-items:stretch;gap:10px;margin:16px 0 28px}
.article-body .xg-abmg-flow .xg-abmg-card{padding:18px 18px 16px;display:flex;flex-direction:column}
.article-body .xg-abmg-flow .xg-abmg-card__title{font-size:16px;margin:0 0 6px!important}
.article-body .xg-abmg-flow .xg-abmg-card:last-child{background:#23044C;border-color:#23044C}
.article-body .xg-abmg-flow .xg-abmg-card:last-child .xg-abmg-card__title{color:#FD625E}
.article-body .xg-abmg-flow .xg-abmg-card:last-child p{color:rgba(255,255,255,.8)}
.article-body .xg-abmg-flow__arrow{align-self:center;width:32px;height:32px;border-radius:50%;background:#FD625E;position:relative}
.article-body .xg-abmg-flow__arrow::after{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;border-top:2px solid #fff;border-right:2px solid #fff;transform:translate(-65%,-50%) rotate(45deg)}

/* ---------- Number grid (01 … 0n) ---------- */
.article-body .xg-abmg-numgrid{list-style:none!important;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin:24px 0 32px;padding:0!important;counter-reset:none}
.article-body .xg-abmg-numgrid__item{display:flex;flex-direction:column;gap:8px;margin:0!important;padding:18px 18px 16px!important;border-radius:12px;background:#F4F6FA;border:1px solid #E6E8F0}
.article-body .xg-abmg-numgrid__item::marker{content:none}
.article-body .xg-abmg-numgrid__num{font:800 22px/1 Inter,sans-serif;color:#FD625E;letter-spacing:-.01em}
.article-body .xg-abmg-numgrid__text{font-size:15px;line-height:1.5;color:#23044C;font-weight:600}

/* ---------- Numbered sub-headings ---------- */
.article-body h3.xg-abmg-step{display:flex;align-items:flex-start;gap:12px;margin-top:34px}
.article-body .xg-abmg-step__num{flex:0 0 28px;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-top:-1px;border-radius:50%;background:#FD625E;color:#fff!important;font-size:13px;font-weight:700!important;line-height:1}
.article-body .xg-abmg-tool{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:34px 0 10px;padding-bottom:12px;border-bottom:1px solid #E6E8F0}
.article-body .xg-abmg-tool h3.xg-abmg-step{margin:0}
.article-body .xg-abmg-tool__logo{flex:0 0 auto;max-height:30px;max-width:140px;width:auto;margin:0;border-radius:0}

/* ---------- Templates ---------- */
.article-body h3.xg-abmg-tplhead{margin-top:44px;font-size:20px;color:#23044C}
.article-body .xg-abmg-btnrow{margin:18px 0 8px}
.article-body a.xg-abmg-btn{display:inline-flex;align-items:center;padding:14px 26px;border-radius:999px;background:#23044C;color:#fff;font:700 13px/1 Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;border:0;transition:background-color .2s ease,transform .2s ease}
.article-body a.xg-abmg-btn:hover,.article-body a.xg-abmg-btn:focus-visible{background:#FD625E;color:#fff;transform:translateY(-1px)}
.article-body a.xg-abmg-tplbanner{display:block;margin:32px 0;border:0;border-radius:16px;overflow:hidden;box-shadow:0 12px 32px rgba(31,33,58,.12);transition:transform .2s ease,box-shadow .2s ease}
.article-body a.xg-abmg-tplbanner:hover,.article-body a.xg-abmg-tplbanner:focus-visible{transform:translateY(-2px);box-shadow:0 18px 40px rgba(31,33,58,.18)}
.article-body a.xg-abmg-tplbanner img{width:100%;margin:0;border-radius:0}
.article-body .wp-block-image img{border-radius:12px}

/* ---------- FAQ + author profile ---------- */
.xg-faq-section .xg-faq-section__answer{display:block!important}
.xg-faq-section .xg-faq-section__answer ul{margin:8px 0 0}
.article-body .author-bio{margin-top:56px}

/* ---------- Mobile ---------- */
@media (max-width:640px){
  .article-body .xg-abmg-cards{grid-template-columns:1fr}
  .article-body .xg-abmg-flow{grid-template-columns:1fr;gap:8px}
  .article-body .xg-abmg-flow__arrow{justify-self:center;transform:rotate(90deg)}
  .article-body .xg-abmg-numgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .article-body .xg-abmg-numgrid__item{padding:14px 14px 12px!important}
  .article-body .xg-abmg-numgrid__text{font-size:14px}
  .article-body .xg-abmg-chapnum{margin-top:48px!important}
  .article-body .xg-abmg-chapnum + h2{font-size:23px}
  .article-body .xg-abmg-video__btn{width:56px;height:56px;margin:-28px 0 0 -28px}
  .article-body .xg-abmg-note{padding:16px 16px;gap:12px}
  .article-body .xg-abmg-note__icon{flex-basis:32px;width:32px;height:32px}
  .article-body .xg-abmg-note__text{font-size:15px}
  .article-body .xg-abmg-tool__logo{max-width:110px;max-height:24px}
}
@media (max-width:380px){
  .article-body .xg-abmg-numgrid{grid-template-columns:1fr}
}

/* ---------- Contact band (form 1799) ---------- */
.xg-au-article-band.xg-au-kickstart-band{width:100vw;max-width:100vw;margin:72px 0 0 calc(50% - 50vw)!important;box-sizing:border-box}
.xg-au-article-band .xg-au-article-band__formtitle{margin:0 0 20px;font:700 22px/1.3 Inter,sans-serif;color:#fff}
body:has(.xg-au-article-band){overflow-x:clip}

/* ---------- Download pop-ups (forms 1804 / 8531) ---------- */
.xg-au-dlmodal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px}
.xg-au-dlmodal[hidden]{display:none}
.xg-au-dlmodal__backdrop{position:absolute;inset:0;background:rgba(14,2,32,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.xg-au-dlmodal__card{position:relative;width:100%;max-width:580px;max-height:calc(100vh - 48px);overflow:auto;overscroll-behavior:contain;background:#270156;background-image:radial-gradient(ellipse at 100% 0%,rgba(253,98,94,.14),transparent 55%);color:#fff;border-radius:18px;padding:44px 40px 34px;box-shadow:0 30px 90px rgba(10,2,26,.5);font-family:Inter,sans-serif;animation:xg-au-dl-in .3s cubic-bezier(.2,.8,.3,1) both}
@keyframes xg-au-dl-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
.xg-au-dlmodal__close{position:absolute;top:16px;right:16px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;transition:background-color .2s ease}
.xg-au-dlmodal__close:hover,.xg-au-dlmodal__close:focus-visible{background:rgba(255,255,255,.2)}
.xg-au-dlmodal__title{margin:0 40px 10px 0;font:700 22px/1.35 Inter,sans-serif;color:#fff}
.xg-au-dlmodal__sub{margin:0 0 26px;font-size:15px;line-height:1.5;color:rgba(255,255,255,.7)}
.xg-au-dlmodal .wpcf7 form{margin:0}
.xg-au-dlmodal .download-ebook-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.xg-au-dlmodal .download-ebook-row > div,.xg-au-dlmodal .download-ebook-row2 > div{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.xg-au-dlmodal .labeltext p{margin:0;font:inherit;color:inherit}
.xg-au-dlmodal .wpcf7-form-control-wrap input{width:100%}
.xg-au-dlmodal .book-now-btn{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:8px}
.xg-au-dlmodal .wpcf7-response-output:empty,.xg-au-dlmodal .wpcf7 form.init .wpcf7-response-output{display:none}
.xg-au-dlmodal .phone-number,.xg-au-dlmodal .phone-number-guide,.xg-au-article-band .phone-number,.xg-au-article-band .phone-number-guide{display:none}
.xg-au-dlmodal .is-xg-open,.xg-au-article-band .is-xg-open{display:block}
html.xg-au-dlmodal-open{overflow:hidden}
@media (max-width:540px){
  .xg-au-dlmodal{padding:12px;align-items:flex-end}
  .xg-au-dlmodal__card{padding:36px 22px 26px;border-radius:16px;max-height:calc(100vh - 24px)}
  .xg-au-dlmodal .download-ebook-row{grid-template-columns:1fr;gap:0}
  .xg-au-dlmodal__title{font-size:19px}
  .xg-au-dlmodal__title br{display:none}
}
/* Pop-up form details: compact privacy line, no stray gap under the phone field */
.xg-au-dlmodal .warranty-div{display:flex;align-items:center;gap:8px;margin:4px 0 0;color:rgba(255,255,255,.6)}
.xg-au-dlmodal .warranty-div img{margin:0;opacity:.7;filter:brightness(1.8)}
.xg-au-dlmodal .warranty-div #warranty,.xg-au-dlmodal .warranty-div .ct-headline{font:400 13px/1.4 Inter,sans-serif!important;color:rgba(255,255,255,.6)!important;margin:0!important;height:auto!important}
.xg-au-dlmodal .phone-number br,.xg-au-dlmodal .phone-number-guide br{display:none}
.xg-au-dlmodal .book-now-btn{margin-top:12px}
/* Small screens between 1121px and 1319px: the TOC sidebar (220px + 64px gap,
   absolutely placed left of the centred 760px column) ran off the left edge.
   Shift the column right so the sidebar fits with a 24px gutter. */
@media (min-width:1121px) and (max-width:1319px){
  .xg-post-scope .article-body-wrap{margin-left:284px!important;margin-right:auto!important}
  .xg-post-scope .toc-sidebar{margin-right:40px!important}
}
/* Labels at least 12px */
.xg-post-scope .toc-sidebar__label,.article-body .author-bio__label{font-size:12px!important}
