/* AI info page: human-readable shell + clean machine-readable content */
.wrap--ai-info{
  width:min(1180px, calc(100vw - 28px));
  padding:18px 0 38px;
}

.aiInfoPage{
  display:grid;
  gap:18px;
  color:var(--text900);
}

.aiInfoHero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:28px;
  padding:clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 12%, rgba(240,140,40,.24), transparent 34%),
    linear-gradient(135deg, rgba(18,20,28,.92), rgba(7,9,14,.88) 62%, rgba(34,21,10,.82));
  box-shadow:0 22px 70px rgba(0,0,0,.34);
}
.aiInfoHero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(120deg, rgba(0,0,0,.75), transparent 68%);
  opacity:.28;
}
.aiInfoHero > *{ position:relative; z-index:1; }
.aiInfoHero__top,
.aiInfoHero__main,
.aiInfoHero__links{
  display:flex;
  align-items:center;
  gap:10px;
}
.aiInfoHero__top{ justify-content:space-between; margin-bottom:24px; }
.aiInfoHero__main{ justify-content:space-between; align-items:flex-end; gap:22px; }
.aiInfoBack,
.aiInfoBadge,
.aiInfoHero__links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:inherit;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}
.aiInfoBadge{
  color:rgba(255,232,204,.86);
  border-color:rgba(240,140,40,.30);
  background:rgba(240,140,40,.12);
}
.aiInfoHero__links{ flex-wrap:wrap; justify-content:flex-end; }
.aiInfoHero__links a:hover,
.aiInfoBack:hover{
  border-color:rgba(240,140,40,.62);
  transform:translateY(-1px);
}
.aiInfoEyebrow{
  margin-bottom:10px;
  color:rgba(240,190,140,.78);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.aiInfoHero h1{
  max-width:900px;
  margin:0;
  font-family:"Russo One", var(--font);
  font-size:clamp(30px, 6vw, 72px);
  line-height:.96;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.aiInfoHero p{
  max-width:760px;
  margin:18px 0 0;
  color:rgba(239,230,218,.78);
  font-size:clamp(15px, 1.6vw, 18px);
  line-height:1.65;
}

.aiInfoLayout{
  display:grid;
  grid-template-columns:minmax(0, .82fr) minmax(0, 1.7fr);
  gap:18px;
  align-items:start;
}
.aiInfoSide{
  display:grid;
  gap:12px;
  position:sticky;
  top:16px;
}
.aiInfoSideCard,
.aiInfoArticle,
.aiInfoRaw{
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(18,20,28,.76), rgba(8,10,15,.78));
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.aiInfoSideCard{ padding:16px; }
.aiInfoSideCard span{
  display:block;
  margin-bottom:7px;
  color:rgba(239,230,218,.52);
  font-size:11px;
  font-weight:1000;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.aiInfoSideCard b{
  display:block;
  color:#fff;
  font-size:18px;
  line-height:1.2;
}
.aiInfoSideCard p{
  margin:9px 0 0;
  color:rgba(239,230,218,.68);
  line-height:1.55;
}

.aiInfoArticle{
  padding:clamp(18px, 2.4vw, 34px);
  line-height:1.75;
  font-size:16px;
}
.aiInfoArticle > :first-child{ margin-top:0; }
.aiInfoArticle > :last-child{ margin-bottom:0; }
.aiInfoArticle h1,
.aiInfoArticle h2,
.aiInfoArticle h3{
  margin:1.35em 0 .55em;
  color:#fff;
  line-height:1.12;
}
.aiInfoArticle h1{ font-size:clamp(26px, 3vw, 40px); }
.aiInfoArticle h2{ font-size:clamp(22px, 2.3vw, 30px); }
.aiInfoArticle h3{ font-size:20px; }
.aiInfoArticle p,
.aiInfoArticle li{
  color:rgba(239,230,218,.82);
}
.aiInfoArticle ul,
.aiInfoArticle ol{
  padding-left:1.25em;
}
.aiInfoArticle a{
  color:#ffb168;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.aiInfoArticle code{
  padding:2px 6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(0,0,0,.28);
  color:#ffe3c0;
  overflow-wrap:anywhere;
}

.aiInfoRaw{
  overflow:hidden;
}
.aiInfoRaw summary{
  cursor:pointer;
  padding:14px 18px;
  color:rgba(239,230,218,.78);
  font-weight:900;
}
.aiInfoRaw pre{
  margin:0;
  padding:18px;
  max-height:420px;
  overflow:auto;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(239,230,218,.82);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:rgba(0,0,0,.22);
}

@media (max-width: 900px){
  .aiInfoHero__main,
  .aiInfoLayout{
    grid-template-columns:1fr;
    display:grid;
  }
  .aiInfoHero__links{ justify-content:flex-start; }
  .aiInfoSide{ position:relative; top:auto; grid-template-columns:1fr; }
}

@media (max-width: 560px){
  .wrap--ai-info{ width:calc(100vw - 18px); padding-top:10px; }
  .aiInfoHero{ border-radius:22px; }
  .aiInfoHero__top{ align-items:flex-start; gap:8px; }
  .aiInfoHero__links a{ flex:1 1 auto; }
  .aiInfoArticle{ font-size:15px; }
}
