/* Ajans GN v7.0.0-f — Component Rebuild Pass
   Purpose: rebuild key components after token/state cleanup without reintroducing legacy global overrides. */

body.agn-v700f-component-rebuild .agn-site{
  --agn-card-bg: rgba(255,255,255,.86);
  --agn-card-border: rgba(33,31,34,.09);
  --agn-card-shadow: 0 22px 64px rgba(33,24,18,.075);
  --agn-card-shadow-hover: 0 30px 84px rgba(33,24,18,.115);
  --agn-section-radius: clamp(28px,3vw,46px);
}

body.agn-v700f-component-rebuild .agn-site :where(.agn-section,.agn-v52-hero,.agn-v52-statement,.agn-v52-services-stage,.agn-v52-world,.agn-v52-process,.agn-v602-contact-hero,.agn-v602-contact-grid,.agn-v602-contact-note){
  overflow: visible !important;
}

body.agn-v700f-component-rebuild .agn-site :where(h1,h2,h3){
  text-wrap: balance;
}

body.agn-v700f-component-rebuild .agn-site :where(p,li){
  text-wrap: pretty;
}

/* Home: make the studio summary less experimental and more premium/editorial. */
body.agn-v700f-home-components .agn-v607-snapshot{
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr) !important;
  align-items: stretch !important;
  gap: clamp(28px,4.6vw,72px) !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(255,116,73,.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,247,238,.86)) !important;
}

body.agn-v700f-home-components .agn-v607-snapshot__intro{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

body.agn-v700f-home-components .agn-v607-snapshot__intro h2{
  font-size: clamp(32px,3.2vw,54px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.052em !important;
  max-width: 720px !important;
}

body.agn-v700f-home-components .agn-v607-snapshot__intro p{
  max-width: 650px !important;
  font-size: clamp(15.5px,1vw,18px) !important;
  line-height: 1.78 !important;
}

body.agn-v700f-home-components .agn-v607-snapshot__cards{
  display:grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

body.agn-v700f-home-components .agn-v607-snapshot__cards article{
  display:grid !important;
  grid-template-columns: auto minmax(0,1fr) !important;
  grid-template-areas: "num title" "num text" !important;
  column-gap:18px !important;
  align-items:start !important;
  padding: clamp(20px,2.1vw,30px) !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.88) !important;
  border:1px solid rgba(33,24,18,.08) !important;
  box-shadow: var(--agn-card-shadow) !important;
}

body.agn-v700f-home-components .agn-v607-snapshot__cards b{
  grid-area:num;
  margin:0!important;
  width:42px!important;
  height:42px!important;
  border-radius:16px!important;
  background:#211f22!important;
  color:#fff!important;
}

body.agn-v700f-home-components .agn-v607-snapshot__cards h3{
  grid-area:title;
  font-size: clamp(20px,1.55vw,27px) !important;
  line-height:1.12!important;
  margin:0 0 8px!important;
  color:#211f22!important;
}

body.agn-v700f-home-components .agn-v607-snapshot__cards p{
  grid-area:text;
  color:rgba(33,31,34,.70)!important;
  font-size:14.5px!important;
  line-height:1.7!important;
}

body.agn-v700f-home-components .agn-v52-statement,
body.agn-v700f-home-components .agn-v52-world{
  box-shadow: 0 22px 74px rgba(36,25,17,.055) !important;
}

body.agn-v700f-home-components .agn-v52-process__steps article{
  min-height:0!important;
  padding:clamp(22px,2.1vw,30px)!important;
  background:rgba(255,255,255,.105)!important;
  border:1px solid rgba(255,255,255,.16)!important;
}

/* Services: rebuild decision cards so they do not look empty. */
body.agn-v700f-service-components .agn-v53-decision{
  background:
    radial-gradient(circle at 8% 14%, rgba(255,116,73,.13), transparent 34%),
    linear-gradient(135deg,#fff8ef,#fffdf9) !important;
  border:1px solid rgba(33,24,18,.07)!important;
  box-shadow:0 22px 74px rgba(33,24,18,.055)!important;
}

body.agn-v700f-service-components .agn-v53-decision__grid{
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: clamp(14px,1.5vw,22px) !important;
}

body.agn-v700f-service-components .agn-v53-decision__grid article{
  display:flex!important;
  flex-direction:column!important;
  min-height:260px!important;
  padding:clamp(22px,2.1vw,30px)!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(33,24,18,.09)!important;
  box-shadow:var(--agn-card-shadow)!important;
}

body.agn-v700f-service-components .agn-v53-decision__grid article:hover{
  transform:translateY(-4px);
  box-shadow:var(--agn-card-shadow-hover)!important;
}

body.agn-v700f-service-components .agn-v53-decision__grid b{
  flex:0 0 auto!important;
  width:40px!important;
  height:40px!important;
  border-radius:15px!important;
  background:#211f22!important;
  color:#fff!important;
  margin-bottom:18px!important;
}

body.agn-v700f-service-components .agn-v53-decision__grid h3{
  color:#211f22!important;
  font-size:clamp(20px,1.45vw,27px)!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
}

body.agn-v700f-service-components .agn-v53-decision__grid p{
  color:rgba(33,31,34,.68)!important;
  font-size:14px!important;
  line-height:1.68!important;
  margin-top:auto!important;
}

body.agn-v700f-service-components .agn-v53-process__steps article{
  min-height:0!important;
  padding:clamp(22px,2vw,30px)!important;
  background:rgba(255,255,255,.105)!important;
}

/* Service detail: rebuild output/workflow/FAQ components. */
body.agn-v700f-service-components .agn-v583-usage-map,
body.agn-v700f-service-components .agn-v583-outputs,
body.agn-v700f-service-components .agn-v583-faq{
  background:
    radial-gradient(circle at 92% 10%, rgba(255,116,73,.10), transparent 32%),
    linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,248,240,.76)) !important;
  border:1px solid rgba(33,24,18,.075)!important;
  box-shadow:0 22px 78px rgba(33,24,18,.055)!important;
}

body.agn-v700f-service-components .agn-v583-section-title,
body.agn-v700f-service-components .agn-v583-outputs__head,
body.agn-v700f-service-components .agn-v583-faq__head{
  align-items:start!important;
}

body.agn-v700f-service-components .agn-v583-section-title h2,
body.agn-v700f-service-components .agn-v583-outputs__head h2,
body.agn-v700f-service-components .agn-v583-faq__head h2{
  font-size:clamp(30px,3vw,50px)!important;
  line-height:1.08!important;
  letter-spacing:-.048em!important;
  color:#211f22!important;
}

body.agn-v700f-service-components .agn-v583-usage-grid article,
body.agn-v700f-service-components .agn-v583-output-grid article{
  min-height:0!important;
  padding:clamp(22px,2vw,30px)!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.90)!important;
  border:1px solid rgba(33,24,18,.085)!important;
  box-shadow:0 16px 48px rgba(33,24,18,.055)!important;
}

body.agn-v700f-service-components .agn-v583-output-grid article{
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:start!important;
}

body.agn-v700f-service-components .agn-v583-usage-grid h3,
body.agn-v700f-service-components .agn-v583-output-grid h3{
  color:#211f22!important;
  font-size:clamp(19px,1.45vw,26px)!important;
  line-height:1.14!important;
}

body.agn-v700f-service-components .agn-v583-usage-grid p,
body.agn-v700f-service-components .agn-v583-output-grid p{
  color:rgba(33,31,34,.68)!important;
}

body.agn-v700f-service-components .agn-v583-workflow{
  grid-template-columns:minmax(300px,.64fr) minmax(0,1.36fr)!important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255,116,73,.26), transparent 34%),
    linear-gradient(135deg,#171313,#2a1c18) !important;
  overflow:visible!important;
}

body.agn-v700f-service-components .agn-v583-workflow__steps article{
  min-height:0!important;
  padding:clamp(22px,2vw,30px)!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.15)!important;
}

body.agn-v700f-service-components .agn-v583-faq__items details{
  border-radius:24px!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(33,24,18,.08)!important;
  box-shadow:0 14px 40px rgba(33,24,18,.045)!important;
  padding:0!important;
  overflow:hidden!important;
}

body.agn-v700f-service-components .agn-v583-faq__items summary{
  padding:22px 26px!important;
  cursor:pointer;
  color:#211f22!important;
  font-weight:850!important;
}

body.agn-v700f-service-components .agn-v583-faq__items details p{
  padding:0 26px 24px!important;
  color:rgba(33,31,34,.70)!important;
  line-height:1.76!important;
}

/* Contact: explicit light/dark card design instead of relying on inherited colors only. */
body.agn-v700f-contact-components .agn-v602-contact-grid{
  align-items:stretch!important;
}

body.agn-v700f-contact-components .agn-v602-contact-info{
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(255,248,240,.86))!important;
  color:#211f22!important;
  border:1px solid rgba(33,24,18,.08)!important;
  box-shadow:0 22px 70px rgba(33,24,18,.07)!important;
}

body.agn-v700f-contact-components .agn-v602-contact-info :where(h2,p,span,b){
  color:#211f22!important;
}

body.agn-v700f-contact-components .agn-v602-contact-info p,
body.agn-v700f-contact-components .agn-v602-contact-row span{
  color:rgba(33,31,34,.66)!important;
}

body.agn-v700f-contact-components .agn-v602-contact-form{
  background:
    radial-gradient(circle at 92% 12%, rgba(255,116,73,.28), transparent 34%),
    linear-gradient(135deg,#171313,#2a1b16)!important;
  color:#fff!important;
  box-shadow:0 28px 84px rgba(23,16,13,.16)!important;
}

body.agn-v700f-contact-components .agn-v602-contact-form :where(h2,p,span){
  color:#fff!important;
}

body.agn-v700f-contact-components .agn-v602-contact-form p{color:rgba(255,255,255,.72)!important;}

body.agn-v700f-contact-components .agn-v602-contact-row{
  background:rgba(255,255,255,.82)!important;
  border:1px solid rgba(33,24,18,.075)!important;
  box-shadow:0 10px 28px rgba(33,24,18,.045)!important;
}

/* Responsive safety for rebuilt components. */
@media (max-width:1180px){
  body.agn-v700f-home-components .agn-v607-snapshot,
  body.agn-v700f-service-components .agn-v583-outputs,
  body.agn-v700f-service-components .agn-v583-workflow{
    grid-template-columns:1fr!important;
  }
  body.agn-v700f-service-components .agn-v53-decision__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media (max-width:760px){
  body.agn-v700f-home-components .agn-v607-snapshot__cards article{grid-template-columns:1fr!important;grid-template-areas:"num" "title" "text"!important;}
  body.agn-v700f-service-components .agn-v53-decision__grid,
  body.agn-v700f-service-components .agn-v583-usage-grid,
  body.agn-v700f-service-components .agn-v583-output-grid,
  body.agn-v700f-service-components .agn-v583-workflow__steps{grid-template-columns:1fr!important;}
  body.agn-v700f-service-components .agn-v53-decision__grid article{min-height:0!important;}
}
