/* ==========================================================================
 * Gatiy refinement layer v1 (2026-11-17)
 * Loads ONLY on the working copy, page #81, after editorial.css.
 * Draft #41 never loads this file. Delete this file to revert everything below.
 * Every rule is scoped with body.page-id-81. Nothing here hides or removes content.
 * ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
body.page-id-81 .gatiy-v8{
  /* Official brand palette (Gatiy Brand Guidelines v1.0) */
  --gt-navy-900:#05162A;--gt-navy-800:#0B1F3A;--gt-blue:#1F6BFF;--gt-sky:#0A8CFF;
  --gt-cyan:#05B0F0;--gt-aqua:#0FD2D6;--gt-mint:#2EE6B6;--gt-teal-deep:#0B8F78;
  --gt-mist:#EEF2F9;--gt-slate:#5B6B82;--gt-orange:#F26A0F;
  /* Established editorial palette (values already used by this page) */
  --gt-forest:#164236;--gt-graphite:#3B484A;--gt-cream:#FBF4EC;--gt-paper:#F3E4D5;
  --gt-apricot:#EDC9B4;--gt-lime:#E6FE6C;--gt-coral:#CF795D;
  /* Typography: Poppins per brand guidelines; Bold for headings */
  --gt-font:"Poppins","Outfit",Arial,sans-serif;
  --gt-h1:clamp(2.5rem,.6rem + 4.33vw,4.5rem);          /* 40 -> 72 */
  --gt-h2-display:clamp(2.125rem,.47rem + 3.37vw,3.5rem); /* 34 -> 56 */
  --gt-h2:clamp(1.75rem,1.25rem + 1.6vw,2.75rem);        /* 28 -> 44 */
  --gt-h3:clamp(1.25rem,1.1rem + .6vw,1.75rem);          /* 20 -> 28 */
  --gt-lead:clamp(1rem,.94rem + .3vw,1.1875rem);         /* 16 -> 19 */
  --gt-body:1rem;--gt-small:.875rem;--gt-micro:.75rem;
  /* Shape, depth, rhythm */
  --gt-radius-md:16px;--gt-radius-lg:24px;--gt-radius-pill:999px;
  --gt-shadow-sm:0 8px 22px rgba(60,42,30,.08);--gt-shadow-md:0 16px 38px rgba(60,42,30,.12);
  --gt-section-y:clamp(64px,7vw,112px);
  --gt-gutter:clamp(16px,3.6vw,64px);--gt-max:1680px;
}

/* 2. Font family: Poppins across the editorial sections ---------------------
 * Non-!important on purpose: handwritten Caveat notes keep their own rule.
 * Only Poppins 400-700 is loaded, so former 800/900 weights resolve to Bold. */
body.page-id-81 .gatiy-v8 .g8-section,
body.page-id-81 .gatiy-v8 .g8-section :is(h1,h2,h3,h4,p,a,li,strong,small,span,time,summary,label,b){font-family:var(--gt-font)}
body.page-id-81 #g23-customer-record.g23-record,
body.page-id-81 #g23-customer-record .g23-followup summary{font-family:var(--gt-font)}
/* Text wordmark is left untouched until the official SVG logo replaces it. */
body.page-id-81 .gatiy-v8 .g8-section .g8-wordmark :is(p,span,b){font-family:Outfit,Arial,sans-serif}

/* 3. Heading hierarchy ------------------------------------------------------ */
body.page-id-81 .gatiy-v8 :is(h1,h2,h3){text-wrap:balance}
body.page-id-81 .gatiy-v8 .g8-hero-title{font-size:var(--gt-h1)!important;font-weight:700!important;letter-spacing:-.03em!important;line-height:1.06!important}
body.page-id-81 .gatiy-v8 :is(.g8-comm-title,.g8-close-head){font-size:var(--gt-h2-display)!important;font-weight:700!important;letter-spacing:-.028em!important;line-height:1.1!important}
body.page-id-81 .gatiy-v8 :is(.g8-suite-head,.g8-industry-heading),
body.page-id-81 .gatiy-v8 .g8-customer.g8-section .g8-customer-title{font-size:var(--gt-h2)!important;font-weight:700!important;letter-spacing:-.024em!important;line-height:1.14!important}
body.page-id-81 .gatiy-v8 .g8-industry-panel-title{font-size:var(--gt-h3)!important;font-weight:700!important;letter-spacing:-.018em!important;line-height:1.2!important}
body.page-id-81 .gatiy-v8 :is(.g8-feature-title,.g8-message-title,.g8-dash-title,.g8-phone-title,.g8-phone-brand,.g8-stat-main){letter-spacing:-.012em!important}
body.page-id-81 .gatiy-v8 .g8-feature-title{font-weight:600!important;line-height:1.25!important}
body.page-id-81 #g23-customer-record :is(.g23-customer-identity strong,.g23-stat strong,.g23-aside-title strong){letter-spacing:-.018em}

/* 4. Body copy, labels and legibility floors -------------------------------- */
body.page-id-81 .gatiy-v8 .g8-hero-desc{font-size:var(--gt-lead)!important;line-height:1.6!important;max-width:44ch}
body.page-id-81 .gatiy-v8 :is(.g8-suite-intro,.g8-comm-desc,.g8-industry-sub,.g8-industry-panel-copy){font-size:var(--gt-body)!important;line-height:1.65!important}
body.page-id-81 .gatiy-v8 .g8-customer.g8-section .g8-customer-desc{font-size:var(--gt-body)!important;line-height:1.65!important;color:#5C4B40!important}
body.page-id-81 .gatiy-v8 .g8-close-sub{font-size:var(--gt-lead)!important;line-height:1.6!important;color:#FFF6EC!important}
body.page-id-81 .gatiy-v8 :is(.g8-overline,.g8-industry-story-eyebrow){font-size:var(--gt-micro)!important;font-weight:600!important;letter-spacing:.12em!important}
body.page-id-81 .gatiy-v8 .g8-proof{font-size:13px!important}
body.page-id-81 .gatiy-v8 .g8-feature-copy{font-size:13px!important;line-height:1.6!important}
body.page-id-81 .gatiy-v8 .g8-message-body{font-size:var(--gt-small)!important;color:#4A5A4E!important}
body.page-id-81 .gatiy-v8 .g8-message-state{font-size:11px!important;color:#4E6B57!important}
body.page-id-81 .gatiy-v8 :is(.g8-ui-note,.g8-industry-more,.g8-close-pricing){font-size:13px!important;line-height:1.6!important}
body.page-id-81 .gatiy-v8 .g8-ui-caption{font-size:12px!important}
body.page-id-81 .gatiy-v8 .g8-customer.g8-section .g23-disclaimer{font-size:12px!important;color:#5E4032!important}

/* 5. Contrast corrections to reach WCAG AA (4.5:1) on small text ------------ */
body.page-id-81 .gatiy-v8 .g8-industry-sub{color:#6A5346!important}
body.page-id-81 .gatiy-v8 .g8-industry-note{color:#7A4D35!important}
body.page-id-81 .gatiy-v8 .g8-industry-story-eyebrow{color:#734D3B!important}
body.page-id-81 .gatiy-v8 .g8-industry-more{color:#65564C!important}
body.page-id-81 .gatiy-v8 .g8-close-pricing{color:#FFF6EC!important}
/* Closing: same terracotta story, slightly deeper light end so cream text passes AA across the full width */
body.page-id-81 .gatiy-v8 .g8-closing{background:radial-gradient(ellipse at 87% 20%,rgba(250,167,99,.22),transparent 40%),linear-gradient(112deg,#6E4033,#84503E 48%,#9C5A3C)}

/* 6. Buttons: one primary, one secondary, shared states --------------------- */
body.page-id-81 .gatiy-v8 :is(.g8-hero-ctas,.g8-close-buttons) .wp-block-button__link{font-size:15px!important;font-weight:600!important;padding:14px 26px!important;min-height:48px}
body.page-id-81 .gatiy-v8 .g8-nav-cta .wp-block-button__link{font-size:14px!important;font-weight:600!important;padding:12px 22px!important;min-height:44px}
body.page-id-81 .gatiy-v8 .g8-nav-link .wp-block-button__link{font-size:14px!important;font-weight:500!important;min-height:44px}
body.page-id-81 .gatiy-v8 .g8-nav-link .wp-block-button__link:hover{color:var(--gt-lime)!important;transform:none;box-shadow:none}
body.page-id-81 .gatiy-v8 .g8-cta-outline .wp-block-button__link:hover{background:rgba(255,255,255,.1)!important}
body.page-id-81 .gatiy-v8 .wp-block-button__link:hover{transform:translateY(-1px);box-shadow:var(--gt-shadow-sm)}
body.page-id-81 .gatiy-v8 .wp-block-button__link:active{transform:translateY(0);box-shadow:none}
/* Two-tone focus ring: visible on both dark and light sections */
body.page-id-81 .gatiy-v8 :is(a,button,summary):focus-visible{outline:3px solid #fff!important;outline-offset:2px!important;box-shadow:0 0 0 6px var(--gt-blue)!important}
@media(max-width:700px){
  body.page-id-81 .gatiy-v8 .g8-nav-cta .wp-block-button__link{font-size:13px!important;padding:10px 16px!important;min-height:40px}
}

/* 7. Cards: one radius and shadow family ------------------------------------ */
body.page-id-81 .gatiy-v8 :is(.g8-feature,.g8-message){border-radius:var(--gt-radius-md)}
body.page-id-81 .gatiy-v8 .g8-industry-story{border-radius:var(--gt-radius-lg)}
body.page-id-81 .gatiy-v8 .g8-feature{box-shadow:var(--gt-shadow-sm)}
body.page-id-81 .gatiy-v8 .g8-feature:hover{transform:translateY(-4px);box-shadow:var(--gt-shadow-md)}

/* 8. Section rhythm and content width --------------------------------------- */
body.page-id-81 .gatiy-v8 :is(.g8-suite,.g8-industries,.g8-comm,.g8-customer){padding-top:var(--gt-section-y)!important;padding-bottom:var(--gt-section-y)!important}
body.page-id-81 .gatiy-v8 .g8-inner{max-width:var(--gt-max)!important;margin-left:auto!important;margin-right:auto!important;padding-left:var(--gt-gutter)!important;padding-right:var(--gt-gutter)!important}

/* 9. Header: official Gatiy.com full-colour logo (core/image block) on a light bar
 * Brand rule: the full-colour logo sits on light backgrounds only, min 150px wide,
 * with clear space of about a quarter of its height. No recolouring, shadow or distortion. */
body.page-id-81 .gatiy-v8 .g8-nav{padding-top:18px!important}
body.page-id-81 .gatiy-v8 .g8-nav-row{background:#FFF9F1;border-radius:var(--gt-radius-pill);padding:10px 12px 10px 24px;gap:20px;flex-wrap:nowrap!important;box-shadow:0 10px 30px rgba(10,20,22,.18)}
body.page-id-81 .gatiy-v8 .g8-wordmark{flex:0 0 auto;line-height:0}
body.page-id-81 .gatiy-v8 .g8-logo{margin:0!important;line-height:0}
body.page-id-81 .gatiy-v8 .g8-logo a{display:block;border-radius:6px}
body.page-id-81 .gatiy-v8 .g8-logo img{display:block;width:176px;max-width:none;height:auto;aspect-ratio:512/135}
body.page-id-81 .gatiy-v8 .g8-nav-link .wp-block-button__link{color:var(--gt-navy-900)!important}
body.page-id-81 .gatiy-v8 .g8-nav-link .wp-block-button__link:hover{color:var(--gt-blue)!important}
body.page-id-81 .gatiy-v8 .g8-nav-cta .wp-block-button__link{background:var(--gt-blue)!important;border-color:var(--gt-blue)!important;color:#fff!important;white-space:nowrap}
body.page-id-81 .gatiy-v8 .g8-nav-cta .wp-block-button__link:hover{background:#1557DB!important;border-color:#1557DB!important}
@media(max-width:700px){
  body.page-id-81 .gatiy-v8 .g8-nav{padding-top:12px!important}
  body.page-id-81 .gatiy-v8 .g8-nav-row{padding:8px 8px 8px 16px;gap:10px}
  body.page-id-81 .gatiy-v8 .g8-logo img{width:150px}
}

/* 10. Sticky header: the light navigation bar stays at the top while scrolling */
body.page-id-81 .gatiy-v8 .g8-hero > .g8-inner{z-index:900}
body.page-id-81 .gatiy-v8 .g8-nav{min-height:88px}
body.page-id-81 .gatiy-v8 .g8-nav-row{position:fixed;top:14px;left:50%;transform:translateX(-50%);box-sizing:border-box;z-index:5;width:min(calc(100% - 2 * var(--gt-gutter)),calc(var(--gt-max) - 2 * var(--gt-gutter)))}
body.admin-bar.page-id-81 .gatiy-v8 .g8-nav-row{top:46px}
body.page-id-81 .gatiy-v8 [id]{scroll-margin-top:100px}
@media(max-width:782px){
  body.admin-bar.page-id-81 .gatiy-v8 .g8-nav-row{top:56px}
}
@media(max-width:700px){
  body.page-id-81 .gatiy-v8 .g8-nav{min-height:72px}
  body.page-id-81 .gatiy-v8 .g8-nav-row{top:10px}
  body.admin-bar.page-id-81 .gatiy-v8 .g8-nav-row{top:56px}
  body.page-id-81 .gatiy-v8 [id]{scroll-margin-top:84px}
}

/* 11. FAQ (core/details blocks) */
body.page-id-81 .gatiy-v8 .g8-faq{background:var(--gt-cream);padding-top:var(--gt-section-y)!important;padding-bottom:var(--gt-section-y)!important}
body.page-id-81 .gatiy-v8 .g8-faq-grid{display:grid;grid-template-columns:minmax(0,.38fr) minmax(0,.62fr);gap:clamp(28px,5vw,88px);align-items:start}
body.page-id-81 .gatiy-v8 .g8-faq-head > * + *{margin-top:18px!important}
body.page-id-81 .gatiy-v8 .g8-faq-eyebrow{font-size:var(--gt-micro)!important;font-weight:600!important;letter-spacing:.12em!important;color:#8A4A30!important}
body.page-id-81 .gatiy-v8 .g8-faq-title{font-size:var(--gt-h2)!important;font-weight:700!important;letter-spacing:-.024em!important;line-height:1.14!important;color:var(--gt-forest)!important}
body.page-id-81 .gatiy-v8 .g8-faq-title em{color:#B5573A}
body.page-id-81 .gatiy-v8 .g8-faq-intro{font-size:var(--gt-body)!important;line-height:1.65!important;color:#5C4B40!important;max-width:36ch}
body.page-id-81 .gatiy-v8 .g8-faq-list > * + *{margin-top:12px!important}
body.page-id-81 .gatiy-v8 .g8-faq-item{background:#fff;border:1px solid rgba(60,42,30,.12);border-radius:var(--gt-radius-md);padding:0}
body.page-id-81 .gatiy-v8 .g8-faq-item summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;min-height:56px;font-size:1.0625rem;font-weight:600;line-height:1.35;color:var(--gt-forest);border-radius:var(--gt-radius-md)}
body.page-id-81 .gatiy-v8 .g8-faq-item summary::-webkit-details-marker{display:none}
body.page-id-81 .gatiy-v8 .g8-faq-item summary::after{content:"+";flex:0 0 auto;font-size:1.5rem;font-weight:400;line-height:1;color:#8A4A30;transition:transform .2s ease}
body.page-id-81 .gatiy-v8 .g8-faq-item[open] summary::after{transform:rotate(45deg)}
body.page-id-81 .gatiy-v8 .g8-faq-item p{padding:0 22px 20px;font-size:var(--gt-body)!important;line-height:1.65!important;color:#4A3F37!important;max-width:68ch}
@media(max-width:990px){
  body.page-id-81 .gatiy-v8 .g8-faq-grid{grid-template-columns:minmax(0,1fr);gap:28px}
}

/* 12. Footer: official logo on a light surface, page links, legal line */
body.page-id-81 .gatiy-v8 .g8-footer{background:#FFF9F1;color:var(--gt-navy-900);padding:clamp(40px,5vw,72px) 0 28px}
body.page-id-81 .gatiy-v8 .g8-footer-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:28px 48px}
body.page-id-81 .gatiy-v8 .g8-footer-tagline{margin-top:14px!important;font-size:var(--gt-small)!important;color:var(--gt-slate)!important}
body.page-id-81 .gatiy-v8 .g8-footer-links{list-style:none;margin:0!important;padding:0!important;display:flex;flex-wrap:wrap;gap:6px 28px}
body.page-id-81 .gatiy-v8 .g8-footer-links li{margin:0}
body.page-id-81 .gatiy-v8 .g8-footer-links a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:500;color:var(--gt-navy-900);text-decoration:none}
body.page-id-81 .gatiy-v8 .g8-footer-links a:hover{color:var(--gt-blue);text-decoration:underline;text-underline-offset:4px}
body.page-id-81 .gatiy-v8 .g8-footer-legal{margin-top:32px!important;padding-top:20px;border-top:1px solid rgba(5,22,42,.12);font-size:13px!important;line-height:1.6!important;color:var(--gt-slate)!important}

/* 13. Compact sticky header (2026-11-17, after screenshot review)
 * Fix: the bar now stacks above the hero headline, phone and paper notes.
 * The sticky bar is short and narrower than the page; at the very top it starts a
 * little roomier and tightens over the first 160px of scroll where supported. */
body.page-id-81 .gatiy-v8 .g8-nav{min-height:76px}
body.page-id-81 .gatiy-v8 .g8-nav-row{z-index:60;top:10px;padding:6px 8px 6px 18px;gap:16px;width:min(calc(100% - 2 * var(--gt-gutter)),1180px)}
body.admin-bar.page-id-81 .gatiy-v8 .g8-nav-row{top:42px}
body.page-id-81 .gatiy-v8 .g8-nav .g8-logo img{width:150px}
body.page-id-81 .gatiy-v8 .g8-nav-link .wp-block-button__link{min-height:40px;padding:8px 12px!important}
body.page-id-81 .gatiy-v8 .g8-nav-cta .wp-block-button__link{min-height:40px;padding:9px 18px!important;font-size:14px!important}
body.page-id-81 .gatiy-v8 [id]{scroll-margin-top:84px}
@media(max-width:782px){
  body.admin-bar.page-id-81 .gatiy-v8 .g8-nav-row{top:54px}
}
@media(max-width:700px){
  body.page-id-81 .gatiy-v8 .g8-nav{min-height:64px}
  body.page-id-81 .gatiy-v8 .g8-nav-row{top:8px;padding:6px 6px 6px 14px;gap:10px}
  body.admin-bar.page-id-81 .gatiy-v8 .g8-nav-row{top:54px}
  body.page-id-81 .gatiy-v8 .g8-nav-cta .wp-block-button__link{min-height:38px;padding:8px 14px!important;font-size:13px!important}
  body.page-id-81 .gatiy-v8 [id]{scroll-margin-top:76px}
}
@keyframes gt-nav-compact{from{padding:12px 12px 12px 26px}to{padding:6px 8px 6px 18px}}
@keyframes gt-logo-compact{from{width:176px}to{width:150px}}
@supports (animation-timeline:scroll()){
  @media(min-width:701px) and (prefers-reduced-motion:no-preference){
    body.page-id-81 .gatiy-v8 .g8-nav-row{animation:gt-nav-compact linear both;animation-timeline:scroll(root);animation-range:0 160px}
    body.page-id-81 .gatiy-v8 .g8-nav .g8-logo img{animation:gt-logo-compact linear both;animation-timeline:scroll(root);animation-range:0 160px}
  }
}
