/* AFKCRAFT V14 — layout recovery: undo conflicting legacy responsive overrides */
:root{
  --afk-content-width: min(1360px, 90vw);
  --afk-copy-width: min(620px, 44vw);
}
html,body{width:100%;min-width:320px;max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
body:not(.cms){
  font-size:16px;
  background:var(--site-bg,#0b100e)!important;
  color:var(--site-text,#edf3e9)!important;
}
body:not(.cms) main{width:100%;max-width:none;margin:0;padding:0}
body:not(.cms) main>section{width:100%;min-width:0}

/* Full-width cinematic hero, content aligned to a consistent site grid */
body:not(.cms) .hero.reference-hero{
  width:100%;max-width:none;min-height:clamp(470px,43vw,680px);
  margin:0;padding:clamp(72px,8vw,120px) max(5vw,calc((100% - 1360px)/2)) clamp(62px,6vw,96px);
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;gap:clamp(32px,5vw,88px);
  background:none!important;position:relative;isolation:isolate;overflow:hidden;
}
body:not(.cms) .hero.reference-hero::before{
  content:"";position:absolute;inset:0;z-index:-2;
  background-image:
    linear-gradient(90deg,rgba(5,11,9,.94) 0%,rgba(5,11,9,.78) 34%,rgba(5,11,9,.2) 72%,rgba(5,11,9,.18) 100%),
    linear-gradient(0deg,rgba(5,11,9,.7),transparent 40%),
    var(--hero-image,url("assets/reference-hero.jpg"));
  background-size:cover;background-position:center 52%;background-repeat:no-repeat;
}
body:not(.cms) .hero.reference-hero::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at 78% 35%,var(--accent-glow),transparent 36%);
}
body:not(.cms) .hero-copy{width:100%;max-width:var(--afk-copy-width);min-width:0;z-index:2}
body:not(.cms) .hero .eyebrow{font-size:clamp(11px,.7vw + 5px,14px);padding:7px 12px}
body:not(.cms) .hero h1{font-size:clamp(46px,4.2vw,78px);line-height:1.05;letter-spacing:-.035em;margin:18px 0}
body:not(.cms) .hero-copy>p{font-size:clamp(16px,1vw,20px);line-height:1.65;max-width:620px}
body:not(.cms) .actions{gap:14px;margin:26px 0 18px}
body:not(.cms) .actions .big{font-size:clamp(14px,.8vw + 5px,17px);padding:clamp(14px,1vw,19px) clamp(22px,1.6vw,32px)}
body:not(.cms) .note{font-size:clamp(12px,.65vw + 5px,14px)}
body:not(.cms) .hero-art{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important;z-index:0!important}
body:not(.cms) .hero-art .sun,body:not(.cms) .hero-art .block,body:not(.cms) .hero-art .ground{display:none!important}
body:not(.cms) .hero-art .art-caption{display:none!important}

/* Features: four genuine equal-width cards, with readable text and no forced word breaks */
body:not(.cms) .reference-features{
  width:100%!important;max-width:none!important;margin:0!important;
  padding:clamp(48px,5vw,82px) 5vw clamp(52px,5vw,86px)!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--site-bg,#0b100e) 96%,var(--accent) 4%),var(--site-bg,#0b100e))!important;
}
body:not(.cms) .reference-features .feature-intro{
  display:block!important;width:100%!important;max-width:1000px!important;margin:0 auto clamp(24px,2vw,38px)!important;text-align:center!important;
}
body:not(.cms) .reference-features .feature-intro h2{
  width:100%!important;max-width:100%!important;font-size:clamp(30px,2.5vw,46px)!important;
  line-height:1.2!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;margin:12px auto 0!important;
}
body:not(.cms) .reference-features .feature-grid{
  display:grid!important;width:100%!important;max-width:var(--afk-content-width)!important;
  margin:0 auto!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:clamp(14px,1.25vw,22px)!important;align-items:stretch!important;
}
body:not(.cms) .reference-features .feature-card{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  gap:clamp(12px,1vw,18px)!important;width:100%!important;min-width:0!important;min-height:clamp(112px,8vw,150px)!important;
  padding:clamp(18px,1.5vw,28px)!important;text-align:left!important;
  border:1px solid color-mix(in srgb,var(--accent) 18%,#26372c)!important;
  border-radius:16px!important;background:rgba(18,30,24,.88)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025)!important;
}
body:not(.cms) .reference-features .feature-card>div{flex:1 1 auto!important;min-width:0!important}
body:not(.cms) .reference-features .feature-card .feature-icon{
  flex:0 0 clamp(46px,3.4vw,62px)!important;width:clamp(46px,3.4vw,62px)!important;height:clamp(46px,3.4vw,62px)!important;
  font-size:clamp(22px,1.7vw,32px)!important;
}
body:not(.cms) .reference-features .feature-card b{
  display:block!important;font-size:clamp(15px,.85vw + 5px,19px)!important;line-height:1.25!important;
  margin:0 0 6px!important;word-break:normal!important;overflow-wrap:normal!important;
}
body:not(.cms) .reference-features .feature-card p{
  font-size:clamp(13px,.7vw + 5px,16px)!important;line-height:1.5!important;margin:0!important;
  word-break:normal!important;overflow-wrap:normal!important;
}

/* Pricing and other sections use the same centered container and comfortable scale */
body:not(.cms) .reference-pricing,body:not(.cms) .how,body:not(.cms) .faq-section{
  width:100%!important;max-width:var(--afk-content-width)!important;margin-inline:auto!important;
}
body:not(.cms) .reference-pricing{padding:clamp(54px,5vw,86px) 0 clamp(60px,5vw,90px)!important}
body:not(.cms) .reference-pricing .section-head{margin-bottom:clamp(26px,2.5vw,42px)!important}
body:not(.cms) .reference-pricing .section-head h2{font-size:clamp(34px,2.7vw,50px)!important;line-height:1.15!important}
body:not(.cms) .products{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(16px,1.4vw,26px)!important;width:100%!important;max-width:none!important;margin:0!important;
}
body:not(.cms) .product{width:100%!important;min-width:0!important}
body:not(.cms) .product-cover{height:clamp(165px,14vw,250px)!important;flex-basis:clamp(165px,14vw,250px)!important}
body:not(.cms) .product-content{padding:clamp(20px,1.7vw,30px)!important}
body:not(.cms) .product h3{font-size:clamp(27px,2vw,38px)!important}
body:not(.cms) .product .price{font-size:clamp(30px,2.2vw,44px)!important}
body:not(.cms) .product ul{font-size:clamp(13px,.72vw + 5px,16px)!important;line-height:1.8!important}
body:not(.cms) .product .full{font-size:clamp(13px,.72vw + 5px,16px)!important;min-height:44px!important}
body:not(.cms) .how,body:not(.cms) .faq-section{padding:clamp(42px,4vw,72px) 0!important}
body:not(.cms) .how h2,body:not(.cms) .faq-section h2{font-size:clamp(30px,2.4vw,46px)!important}
body:not(.cms) .faq-item summary{font-size:clamp(15px,.8vw + 5px,18px)!important;padding:clamp(16px,1.2vw,23px)!important}

/* Neon atmosphere is tied to the CMS accent color; backgrounds remain independently editable */
body:not(.cms) .yellow,body:not(.cms) .auth-actions .yellow{
  box-shadow:0 4px 0 var(--accent-shadow),0 0 22px var(--accent-glow)!important;
}
body:not(.cms) .product.featured{box-shadow:0 0 0 1px var(--accent-soft),0 18px 42px #0003,0 0 30px var(--accent-glow)!important}
body:not(.cms) .product:hover,body:not(.cms) .feature-card:hover{border-color:var(--accent-border)!important;box-shadow:0 12px 30px #0004,0 0 22px var(--accent-glow)!important;transform:translateY(-3px)}
@media(max-width:1100px){
  body:not(.cms) .hero.reference-hero{padding-inline:5vw;grid-template-columns:minmax(0,1fr) minmax(0,.8fr)}
  body:not(.cms) .reference-features{padding-inline:4vw!important}
  body:not(.cms) .reference-features .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.cms) .reference-pricing,body:not(.cms) .how,body:not(.cms) .faq-section{padding-inline:4vw!important}
}
@media(max-width:760px){
  body:not(.cms) .hero.reference-hero{grid-template-columns:1fr;min-height:530px;padding:68px 24px 50px;background-position:58% center}
  body:not(.cms) .hero-copy{max-width:620px}
  body:not(.cms) .hero h1{font-size:clamp(42px,9vw,64px)}
  body:not(.cms) .hero-art{display:none!important}
  body:not(.cms) .reference-features .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.cms) .products{grid-template-columns:1fr!important;max-width:540px!important;margin-inline:auto!important}
  body:not(.cms) .product-cover{height:190px!important;flex-basis:190px!important}
  body:not(.cms) .reference-pricing,body:not(.cms) .how,body:not(.cms) .faq-section{padding-inline:22px!important}
  body:not(.cms) .how .steps{grid-template-columns:1fr!important}
}
@media(max-width:520px){
  body:not(.cms) .reference-features .feature-grid{grid-template-columns:1fr!important}
  body:not(.cms) .reference-features .feature-card{min-height:100px!important}
  body:not(.cms) .hero.reference-hero{min-height:560px}
  body:not(.cms) .actions{flex-wrap:wrap}
}
