/* =====================================================================
   SITE-WIDE CONSISTENCY LAYER — loaded last on every page.
   One font, one type scale, one content width, one section rhythm,
   so every page (home, inner, solution landing pages) lines up the same.
   Change the values here to change them everywhere.
   ===================================================================== */
:root{
  --wrap:min(1400px,calc(100% - 120px));   /* content width: left edge 60px on laptops */
  --sec-pad:clamp(56px,7vw,96px);           /* vertical space per section */
  --fs-h1:clamp(32px,3.4vw,46px);
  --fs-h2:clamp(28px,3.1vw,42px);
  --fs-lead:17px;
  --fs-intro:16px;
}
@media(max-width:1024px){:root{--wrap:calc(100% - 48px);}}
@media(max-width:768px){:root{--wrap:calc(100% - 32px);}}

/* ---------- 1. One font everywhere (the hand-written “Built for What’s Next” accent keeps its script font) ---------- */
body,button,input,select,textarea{font-family:'Inter',system-ui,-apple-system,sans-serif;}

/* ---------- 2. One content width / left edge ---------- */
body .tv-wrap,body .landing-hero-grid,body .landing-container{width:var(--wrap);max-width:none;margin-left:auto;margin-right:auto;}
body .ab-wrap,body .contact-layout,body .ph-inner:not(.narrow){max-width:1400px;}
body .section,body .cta-banner,body .ab-sec,body .page-hero{padding-left:max(16px,calc((100% - 1400px)/2));padding-right:max(16px,calc((100% - 1400px)/2));}
@media(min-width:1025px){body .section,body .cta-banner,body .ab-sec,body .page-hero{padding-left:max(60px,calc((100% - 1400px)/2));padding-right:max(60px,calc((100% - 1400px)/2));}}
@media(min-width:769px) and (max-width:1024px){body .section,body .cta-banner,body .ab-sec,body .page-hero{padding-left:24px;padding-right:24px;}}

/* ---------- 3. One section rhythm ---------- */
body .section,body .tv-sec,body .ab-sec{padding-top:var(--sec-pad);padding-bottom:var(--sec-pad);}

/* ---------- 4. Page titles (H1) ---------- */
body :is(.landing-hero h1,.page-hero h1,.ab-hero h1,.single-hero h1,.post-hero h1){
  font-size:var(--fs-h1)!important;font-weight:800!important;letter-spacing:-.02em!important;line-height:1.1!important;}

/* ---------- 5. Section headings (H2) ---------- */
body main h2:not(.hc-title):not(.hero-text h2):not(.entry-content h2):not(.screen-reader-text){
  font-size:var(--fs-h2)!important;font-weight:800!important;letter-spacing:-.02em!important;line-height:1.15!important;}

/* ---------- 6. Small labels above headings (one style) ---------- */
body :is(.sec-overline,.landing-kicker,.ab-kicker,.ab-num,.page-hero .hero-tag,.tv-story .idx){
  font-size:12px!important;font-weight:700!important;letter-spacing:.18em!important;text-transform:uppercase;
  color:var(--cyan)!important;margin-bottom:14px;}
body :is(.sec-overline,.landing-kicker,.ab-kicker,.ab-num)::before{content:none!important;display:none!important;}

/* ---------- 7. Intro text ---------- */
body :is(.landing-lead,.page-hero .ph-inner>p,.ab-hero p.ab-lead){font-size:var(--fs-lead)!important;line-height:1.75!important;}
body :is(.sec-header>p,.tv-head>p,.tv-head .tv-lead,.sec-head>p){font-size:var(--fs-intro)!important;line-height:1.75!important;color:var(--t2);}

/* ---------- 8. Buttons: same shape and weight everywhere ---------- */
body main :is(.btn-primary,.btn-secondary){font-size:15px;font-weight:600;border-radius:8px;}
/* inner-page top label: plain label like every other page (no pill) */
body .page-hero .hero-tag{background:none!important;border:0!important;padding:0!important;border-radius:0!important;display:block;}
body .page-hero .hero-tag .pulse{display:none;}

/* =====================================================================
   HOME PAGE = BASE STYLE. Every page below is made to look like home.
   ===================================================================== */
:root{--home-acc1:var(--teal);--home-acc2:var(--teal);--home-brush:var(--teal);}
html[data-theme="light"]{--home-acc1:var(--teal-btn);--home-acc2:var(--teal-btn);}

/* ---------- A. Page heroes: same flat background as the home hero ---------- */
body :is(.landing-hero,.page-hero,.ab-hero){background:var(--hero-bg)!important;background-image:none!important;border-bottom:0!important;color:var(--t2);}
body .page-hero .ph-overlay{display:none!important;}
/* About hero used fixed dark colours: switch to theme colours so it follows light/dark like home */
body .ab-hero h1{color:var(--hc)!important;}
body .ab-hero .ab-lead{color:var(--t2)!important;}
body .ab-hero .crumbs,body .ab-hero .crumbs a{color:var(--t3)!important;}
body .ab-hero .ab-textlink{color:var(--t1)!important;}
body .ab-hero .ab-textlink:hover{color:var(--green)!important;}
body .ab-facts{border-top-color:var(--bdr2)!important;}
body .ab-facts div+div{border-left-color:var(--bdr2)!important;}
body .ab-facts b{color:var(--hc)!important;}
body .ab-facts span{color:var(--t3)!important;}

/* ---------- B. Hero label: the hand-written brush label used on home ("Built for What's Next") ---------- */
body :is(.landing-hero .landing-kicker,.page-hero .hero-tag,.ab-hero .ab-kicker){
  position:relative;display:inline-block!important;width:auto;
  font-family:'Caveat','Segoe Script','Comic Sans MS',cursive!important;font-size:26px!important;font-weight:700!important;
  letter-spacing:0!important;text-transform:none!important;color:var(--hc)!important;line-height:1!important;
  transform:rotate(-2deg);padding:0 4px 8px!important;margin:0 0 14px!important;background:none!important;border:0!important;}
body :is(.landing-hero .landing-kicker,.page-hero .hero-tag,.ab-hero .ab-kicker)::after{
  content:'';position:absolute;left:0;right:-14px;bottom:0;height:7px;border-radius:6px;transform:skewX(-18deg) rotate(-1deg);
  background:linear-gradient(90deg,var(--home-brush),color-mix(in srgb,var(--home-brush) 55%,transparent));opacity:.9;z-index:-1;}
body :is(.landing-hero .landing-kicker,.page-hero .hero-tag,.ab-hero .ab-kicker){z-index:0;}
@media(max-width:768px){body :is(.landing-hero .landing-kicker,.page-hero .hero-tag,.ab-hero .ab-kicker){font-size:22px!important;}}

/* ---------- C. Hero headline highlight: same mint gradient as the home headline ---------- */
body .landing-hero h1 em,body .ab-hero h1 em,body .page-hero h1 em{font-style:normal;
  background:linear-gradient(90deg,var(--home-acc1),var(--home-acc2))!important;-webkit-background-clip:text!important;background-clip:text!important;
  -webkit-text-fill-color:transparent!important;color:transparent!important;}

/* ---------- D. Hero intro text: same as home ---------- */
body :is(.landing-lead,.page-hero .ph-inner>p,.ab-hero .ab-lead){font-size:18px!important;line-height:1.7!important;color:var(--t2)!important;}
@media(max-width:768px){body :is(.landing-lead,.page-hero .ph-inner>p,.ab-hero .ab-lead){font-size:16px!important;}}

/* ---------- E. Section headings: centred, stacked, like home ---------- */
body .tv-head,body .tv-head.stack{display:block!important;text-align:center;max-width:none!important;margin-left:auto!important;margin-right:auto!important;margin-bottom:60px!important;}
/* a heading that follows other content inside the same section keeps clear space above it */
body .tv-wrap>*+.tv-head{margin-top:72px;}
body .tv-head>div{max-width:none;}
body .tv-head h2{max-width:900px!important;margin:0 auto 16px!important;}
body :is(.tv-head>p,.tv-head .tv-lead,.tv-head>div>p){max-width:640px!important;margin:0 auto!important;}
body .tv-head .landing-kicker,body .sec-head .landing-kicker{justify-content:center;display:flex;}
body .sec-head,body .ab-head{margin-bottom:60px!important;}
body .sec-header{margin-bottom:60px;}
@media(max-width:1024px){body .tv-head,body .tv-head.stack,body .sec-head,body .ab-head,body .sec-header{margin-bottom:48px!important;}}
@media(max-width:768px){body .tv-head,body .tv-head.stack,body .sec-head,body .ab-head,body .sec-header{margin-bottom:40px!important;}}
/* label spacing like home */
body :is(.sec-overline,.landing-kicker,.ab-kicker,.ab-num){margin-bottom:12px!important;}

/* ---------- F. Sections: no divider lines (home has none) ---------- */
body .tv-sec,body .tv-spot,body .tv-cta-banner{border-top:0!important;border-bottom:0!important;}

/* ---------- G. Cards: same surface, border, corner, shadow and hover as home cards ---------- */
body :is(.tv-cap,.tv-box,.tv-pain,.tv-rel,.landing-card,.landing-process-grid article,
  .ind2,.jr-step,.fit-sheet,.zx-mod,.zx-course,.me-cap,.me-dcard,.me-pf,.me-pt,
  .pg-cloud .platform-card,.pg-cloud .why-item,.pg-cloud .uc-panel,
  .ab-exp-card,.ab-person,.mini-svc,.story-card,
  .dt-area,.dt-post,.dt-story,.tl-card,.mk-card,.ap-col,.tv-mode){
  background:var(--bg3)!important;border:1px solid var(--bdr2)!important;border-radius:18px!important;box-shadow:var(--card-shadow)!important;
  transition:transform .25s,border-color .25s,box-shadow .25s;}
body :is(.tv-cap,.tv-rel,.landing-card,.ind2,.jr-step,.zx-mod,.me-cap,.me-dcard,.pg-cloud .platform-card,.pg-cloud .why-item,.ab-exp-card,.mini-svc,.story-card,.dt-area,.dt-post,.tl-card):hover{
  transform:translateY(-4px);border-color:rgba(8,127,140,.4)!important;box-shadow:0 18px 44px rgba(0,0,0,.22)!important;}
html[data-theme="light"] body :is(.tv-cap,.tv-rel,.landing-card,.ind2,.jr-step,.zx-mod,.me-cap,.me-dcard,.pg-cloud .platform-card,.pg-cloud .why-item,.ab-exp-card,.mini-svc,.story-card):hover{box-shadow:0 18px 44px rgba(15,23,42,.12)!important;}
/* FAQ items: same card surface */
body :is(.tv-faq details,.pg-cloud .cloud-faq details){background:var(--bg3)!important;border:1px solid var(--bdr2)!important;border-radius:14px!important;box-shadow:var(--card-shadow);}

/* =====================================================================
   IN-PAGE SECTION BAR ("On this page" links) — same on every page that has one.
   Sits directly below the hero. On first load it is pinned to the bottom of the
   screen (so it is always visible), then sticks just below the main menu.
   Buttons: coloured chips with a down arrow (each link has its own colour).
   ===================================================================== */
body .solution-main{overflow:visible!important;overflow-x:clip!important;}
body .tv-jump,body .tv-jump.tv-jump-fixed{
  position:sticky!important;top:var(--nav-h,72px)!important;bottom:0!important;left:auto;right:auto;z-index:90!important;
  transform:none!important;opacity:1!important;pointer-events:auto!important;
  background:color-mix(in srgb,var(--bg) 94%,transparent)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);
  border-top:1px solid var(--bdr)!important;border-bottom:1px solid var(--bdr)!important;
  box-shadow:0 0 30px -14px rgba(0,0,0,.6);}
html[data-theme="light"] body .tv-jump{box-shadow:0 0 30px -16px rgba(15,23,42,.35);}
body .tv-jump .tv-wrap{display:flex;align-items:center;gap:9px;padding:12px 0;overflow-x:auto;scrollbar-width:none;justify-content:safe center;}
body .tv-jump .tv-wrap::-webkit-scrollbar{display:none;}
/* colour per button (a link's own --c wins; otherwise cycle through the palette) */
body .tv-jump a{--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+1){--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+2){--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+3){--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+4){--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+5){--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+6){--c:var(--teal-btn);}
body .tv-jump a:nth-of-type(7n+7){--c:var(--teal-btn);}
body .tv-jump a.hot{--c:var(--teal-btn);}
body .tv-jump a{flex-shrink:0;display:inline-flex;align-items:center;gap:7px;padding:9px 14px!important;margin:0!important;border-radius:10px!important;
  font-size:13px!important;font-weight:800!important;line-height:1.2;white-space:nowrap;
  color:var(--c)!important;background:color-mix(in srgb,var(--c) 14%,transparent)!important;
  border:1px solid color-mix(in srgb,var(--c) 45%,transparent)!important;
  box-shadow:0 4px 14px color-mix(in srgb,var(--c) 18%,transparent);
  transition:transform .2s,background .2s,color .2s,box-shadow .2s;}
body .tv-jump a::after{content:"↓";font-size:12px;transition:transform .2s;}
body .tv-jump a:hover,body .tv-jump a:focus-visible,body .tv-jump a.on,body .tv-jump a[aria-current]{
  background:var(--c)!important;color:#fff!important;border-color:var(--c)!important;
  box-shadow:0 10px 24px color-mix(in srgb,var(--c) 35%,transparent);}
body .tv-jump a:hover{transform:translateY(-2px);}
body .tv-jump a:hover::after{transform:translateY(2px);}
html[data-theme="light"] body .tv-jump a{color:color-mix(in srgb,var(--c) 75%,#000)!important;}
html[data-theme="light"] body .tv-jump a:is(:hover,:focus-visible,.on,[aria-current]){color:#fff!important;}
/* small label at the start of a bar ("Pick your path", "Jump to") */
body .tv-jump .jt{flex-shrink:0;border:0!important;background:none!important;box-shadow:none!important;padding:0 4px 0 0!important;
  font-size:11px!important;font-weight:800!important;letter-spacing:.16em;text-transform:uppercase;color:var(--t3)!important;}
body .tv-jump .jt::after{content:none!important;}
@media(max-width:768px){body .tv-jump .tv-wrap{padding:9px 0;gap:7px;justify-content:flex-start;}body .tv-jump a{padding:8px 11px!important;font-size:12px!important;}}
/* sections reached from the bar land below the menu + bar */
body .solution-main :is(section[id],.tv-sec[id],.ind-sec){scroll-margin-top:calc(var(--nav-h,72px) + 70px)!important;}

/* FAQ lists: centred on the page */
body :is(.tv-faq,.pg-cloud .cloud-faq){margin-left:auto!important;margin-right:auto!important;max-width:1000px;}

/* =====================================================================
   Oct 21 (evening): full-width section bar + shorter page heroes
   ===================================================================== */
/* Section bar spans the full screen width; buttons share the space evenly */
body .tv-jump .tv-wrap{width:100%!important;max-width:none!important;padding-left:clamp(12px,2vw,28px)!important;padding-right:clamp(12px,2vw,28px)!important;gap:8px;justify-content:flex-start;}
@media(min-width:1025px){
  body .tv-jump a{flex:1 1 auto;justify-content:center;padding:9px 10px!important;font-size:12.5px!important;}
}
/* Shorter heroes on every page so the section bar sits just below them on the first screen */
body .landing-hero{padding-top:clamp(28px,3.4vw,52px)!important;padding-bottom:clamp(28px,3.4vw,52px)!important;}
body .landing-hero-grid{gap:clamp(24px,3vw,44px)!important;}
body .landing-hero h1{margin-bottom:14px!important;}
body .landing-hero .landing-lead{margin-bottom:18px!important;}
body .landing-hero .tv-badges{margin-bottom:12px!important;}
body .landing-hero .landing-kicker{margin-bottom:10px!important;}
body .landing-hero .landing-actions{margin-top:0;}
/* hero visuals: cap their height to the space available */
@media(min-width:901px){
  body .landing-hero-grid>*:last-child:not(.landing-hero-copy){max-height:calc(100svh - var(--nav-h,72px) - 170px);}
  body .landing-hero-grid>*:last-child:not(.landing-hero-copy) svg{max-height:calc(100svh - var(--nav-h,72px) - 200px);}
  body .landing-hero-image{height:auto!important;max-height:calc(100svh - var(--nav-h,72px) - 170px);}
}
body .page-hero{padding-top:clamp(40px,5vw,72px)!important;padding-bottom:clamp(36px,4.5vw,64px)!important;}
body .ab-hero{padding-top:clamp(40px,5vw,64px)!important;}
@media(min-width:901px) and (max-height:820px){body .landing-hero{padding-top:22px!important;padding-bottom:22px!important;}body .landing-hero h1{font-size:clamp(30px,3vw,40px)!important;}body .landing-hero .landing-lead{font-size:16px!important;margin-bottom:14px!important;}}
@media(min-width:1025px){body .tv-jump .tv-wrap{gap:6px!important;}body .tv-jump a{padding:8px 8px!important;font-size:12px!important;gap:5px!important;}body .tv-jump a::after{font-size:11px;}body .tv-jump .jt{font-size:10.5px!important;letter-spacing:.12em;}}
@media(min-width:1025px){body .tv-jump .tv-wrap{flex-wrap:wrap!important;overflow-x:visible!important;row-gap:6px;}}
/* Section bar (desktop): always ONE row of equal-width buttons. Long labels wrap inside
   their own button instead of pushing a button onto a second row. */
@media(min-width:1025px){
  body .tv-jump .tv-wrap{flex-wrap:nowrap!important;overflow-x:visible!important;align-items:stretch!important;}
  body .tv-jump a{flex:1 1 0!important;min-width:0!important;white-space:normal!important;text-align:center;justify-content:center;line-height:1.25!important;padding:8px 6px!important;}
  body .tv-jump .jt{flex:0 0 auto!important;align-self:center;}
}
@media(min-width:1340px){
  body .tv-jump a{flex:1 1 auto!important;white-space:nowrap!important;padding:8px 8px!important;}
}
