/* Black Hole AI / Pass 4: compact premium product presentation */
:root{
  --p4-bg:#070914;
  --p4-panel:#0b1020;
  --p4-panel2:#10162a;
  --p4-line:rgba(132,112,255,.23);
  --p4-soft:rgba(255,255,255,.075);
  --p4-purple:#8d67ff;
  --p4-blue:#51b3ff;
  --p4-cyan:#57e1ff;
  --p4-text:#f7f8ff;
  --p4-muted:rgba(231,236,255,.68);
}

/* Fix the Pass 2B scroll trap. */
html{overflow-y:auto!important}
body.p2b-product-page,
body.p4-active{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  min-height:100%!important;
}

body.p4-active .section{
  padding-top:34px;
  padding-bottom:34px;
}
body.p4-active .p3-section{
  padding-top:34px;
  padding-bottom:34px;
}
body.p4-active .page-intro{
  padding-top:28px;
  padding-bottom:28px;
}
body.p4-active .site-header{
  position:relative;
  z-index:1500;
}

/* Wide, shallow, screenshot-first hero. */
.p4-splash{
  width:min(1510px,calc(100% - 20px));
  height:clamp(330px,34vw,430px);
  margin:10px auto 0;
  position:relative;
  overflow:hidden;
  border:1px solid var(--p4-line);
  border-radius:24px;
  background:#090c17;
}
.p4-splash>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.p4-splash:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(4,7,15,.98) 0%,rgba(4,7,15,.88) 27%,rgba(4,7,15,.42) 55%,rgba(4,7,15,.12) 78%,rgba(4,7,15,.35) 100%),
    linear-gradient(0deg,rgba(4,7,15,.78),transparent 48%);
}
.p4-splash-copy{
  position:absolute;
  z-index:2;
  left:clamp(22px,4vw,58px);
  top:50%;
  transform:translateY(-50%);
  width:min(610px,48%);
}
.p4-splash-copy .p4-kicker,
.p4-kicker{
  color:#a7b8ef;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.15em;
}
.p4-splash-copy h1{
  margin:.45rem 0 .75rem;
  font-size:clamp(2.45rem,4.4vw,4.7rem);
  line-height:.92;
  letter-spacing:-.052em;
}
.p4-splash-copy h1 em{color:#a89cff;font-style:normal}
.p4-splash-copy p{
  max-width:600px;
  margin:0;
  color:var(--p4-muted);
  font-size:.98rem;
  line-height:1.55;
}
.p4-splash-copy .actions{margin-top:18px}
.p4-splash-badge{
  position:absolute;
  z-index:2;
  right:18px;
  bottom:16px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  background:rgba(7,10,20,.7);
  backdrop-filter:blur(12px);
  color:#d7dfff;
  font-size:.64rem;
  letter-spacing:.1em;
}

/* Product rail sits directly under hero. */
.p4-rail-wrap{
  width:min(1510px,calc(100% - 20px));
  margin:12px auto 0;
}
.p4-rail-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  margin:0 2px 12px;
}
.p4-rail-head h2{
  margin:.28rem 0 0;
  font-size:clamp(1.8rem,3vw,3.1rem);
  line-height:1;
  letter-spacing:-.045em;
}
.p4-rail-head p{
  max-width:520px;
  margin:0;
  color:var(--p4-muted);
  line-height:1.45;
}
.p4-product-rail{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(250px,1fr);
  gap:10px;
  overflow-x:auto;
  padding:1px 1px 10px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
}
.p4-product-card{
  min-height:250px;
  position:relative;
  overflow:hidden;
  scroll-snap-align:start;
  border:1px solid var(--p4-line);
  border-radius:18px;
  background:#0a0d18;
  text-decoration:none;
}
.p4-product-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.p4-product-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(4,7,15,.94) 0%,rgba(4,7,15,.18) 58%,transparent 100%);
}
.p4-product-card span{
  position:absolute;
  z-index:2;
  left:14px;
  right:14px;
  bottom:13px;
  color:#fff;
}
.p4-product-card small{
  display:block;
  margin-bottom:3px;
  color:#a9b8eb;
  font-size:.62rem;
  letter-spacing:.11em;
}
.p4-product-card strong{
  font-size:1.08rem;
  line-height:1.15;
}

/* Compact screen-led sections. */
.p4-section{
  width:min(1510px,calc(100% - 20px));
  margin:0 auto;
  padding:34px 0;
}
.p4-section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:22px;
  margin-bottom:14px;
}
.p4-section-head h2{
  max-width:820px;
  margin:.32rem 0 0;
  font-size:clamp(1.95rem,3.5vw,3.65rem);
  line-height:.97;
  letter-spacing:-.048em;
}
.p4-section-head p{
  max-width:560px;
  margin:0;
  color:var(--p4-muted);
  line-height:1.5;
}
.p4-screen{
  position:relative;
  overflow:hidden;
  border:1px solid var(--p4-line);
  border-radius:18px;
  background:#090c17;
}
.p4-screen img{
  width:100%;
  display:block;
}
.p4-screen:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:42%;
  background:linear-gradient(0deg,rgba(4,7,15,.82),transparent);
  pointer-events:none;
}
.p4-screen-label{
  position:absolute;
  z-index:2;
  left:14px;
  bottom:12px;
  padding:7px 9px;
  border-radius:8px;
  background:rgba(4,7,15,.78);
  color:#fff;
  font-size:.66rem;
  letter-spacing:.08em;
}
.p4-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.p4-grid-3{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:10px;
}
.p4-grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.p4-grid-4 .p4-screen img{
  aspect-ratio:16/10;
  object-fit:cover;
}
.p4-wide-screen img{
  aspect-ratio:2.25/1;
  object-fit:cover;
  object-position:center;
}

/* Lead + CRM */
.p4-lead-flow{
  display:grid;
  grid-template-columns:minmax(320px,.7fr) minmax(0,1.3fr);
  gap:10px;
}
.p4-intake-card{
  padding:22px;
  border:1px solid var(--p4-line);
  border-radius:18px;
  background:linear-gradient(145deg,#10162a,#0a0e1b);
}
.p4-intake-card h3{
  margin:.35rem 0 .45rem;
  font-size:1.8rem;
}
.p4-intake-card>p{color:var(--p4-muted);line-height:1.45}
.p4-mini-flow{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
.p4-mini-flow article{
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.p4-mini-flow small{color:#9db0eb}
.p4-mini-flow strong{display:block;margin:4px 0}
.p4-mini-flow p{margin:0;color:rgba(255,255,255,.5);font-size:.75rem}

/* Studio/Creators wide top banners. */
.p4-studio-splash>img,
.p4-creators-splash>img{
  object-position:center;
}

/* Rework old content rhythm after compact splash. */
body.p4-active .pillar-grid,
body.p4-active .gallery-grid{
  margin-top:0;
}
body.p4-active .screen-frame{
  border-radius:18px;
}
body.p4-active .screen-frame img{
  max-height:680px;
  object-fit:cover;
  object-position:top;
}

/* Premium EILA support lane */
.p3-support-launcher,
.p3-support-panel{display:none!important}

.p4-support-launcher{
  position:fixed;
  z-index:1900;
  right:18px;
  bottom:16px;
  min-width:278px;
  display:grid;
  grid-template-columns:54px 1fr auto;
  gap:10px;
  align-items:center;
  padding:7px 12px 7px 7px;
  border:1px solid rgba(110,156,255,.46);
  border-radius:999px;
  background:
    radial-gradient(circle at 10% 50%,rgba(63,180,255,.25),transparent 38%),
    linear-gradient(110deg,rgba(8,17,38,.97),rgba(24,17,54,.97));
  color:#fff;
  box-shadow:0 18px 58px rgba(0,0,0,.48),0 0 30px rgba(82,143,255,.10);
  backdrop-filter:blur(20px);
  cursor:pointer;
}
.p4-support-launcher img{
  width:54px;
  height:54px;
  border-radius:50%;
  object-fit:cover;
  object-position:center top;
  border:1px solid rgba(87,218,255,.55);
  box-shadow:0 0 20px rgba(72,202,255,.2);
}
.p4-support-launcher strong{display:block;font-size:.88rem}
.p4-support-launcher small{display:block;margin-top:2px;color:#9eb7e5;font-size:.63rem}
.p4-support-launcher b{
  width:10px;height:10px;border-radius:50%;background:#65ffbd;
  box-shadow:0 0 13px rgba(101,255,189,.7);
}

.p4-support-panel{
  position:fixed;
  z-index:1950;
  right:18px;
  bottom:88px;
  width:min(1080px,calc(100vw - 36px));
  max-height:min(720px,calc(100vh - 110px));
  display:none;
  grid-template-rows:auto auto 1fr auto;
  overflow:hidden;
  border:1px solid rgba(110,156,255,.38);
  border-radius:24px;
  background:#081021;
  color:#eef5ff;
  box-shadow:0 42px 130px rgba(0,0,0,.68),0 0 45px rgba(76,128,255,.12);
}
.p4-support-panel.open{display:grid}
.p4-support-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:15px 17px;
  background:
    radial-gradient(circle at 12% 50%,rgba(67,188,255,.24),transparent 34%),
    linear-gradient(110deg,#0b1a38,#1b1648 78%,#23163f);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.p4-support-id{
  display:flex;
  align-items:center;
  gap:13px;
}
.p4-support-id img{
  width:76px;
  height:76px;
  border-radius:18px;
  object-fit:cover;
  object-position:center top;
  border:1px solid rgba(87,218,255,.55);
}
.p4-support-id small{
  color:#72d7ff;
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.13em;
}
.p4-support-id h3{
  margin:2px 0;
  font-size:1.65rem;
}
.p4-support-id p{
  margin:0;
  color:rgba(237,244,255,.66);
  font-size:.76rem;
}
.p4-support-online{
  display:flex;
  gap:7px;
  align-items:center;
  padding:8px 10px;
  border:1px solid rgba(104,255,190,.18);
  border-radius:999px;
  background:rgba(56,170,122,.08);
  color:#baf6da;
  font-size:.68rem;
}
.p4-support-online i{
  width:8px;height:8px;border-radius:50%;background:#62ffc0;
  box-shadow:0 0 12px rgba(98,255,192,.7);
}
.p4-support-close{
  width:38px;height:38px;border:1px solid rgba(255,255,255,.15);border-radius:10px;
  background:rgba(255,255,255,.055);color:#fff;font-size:1.2rem;cursor:pointer;
}
.p4-support-search{
  display:grid;
  grid-template-columns:1fr auto;
  gap:9px;
  padding:12px 15px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:#0a1326;
}
.p4-support-search input{
  min-width:0;
  height:46px;
  padding:0 13px;
  border:1px solid rgba(93,203,255,.26);
  border-radius:11px;
  background:#0c172d;
  color:#fff;
  font:inherit;
}
.p4-support-search button{
  min-width:106px;
  border:1px solid rgba(128,101,255,.42);
  border-radius:11px;
  background:linear-gradient(135deg,#7251e8,#4b78e9);
  color:#fff;
  font-weight:750;
  cursor:pointer;
}
.p4-support-body{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  min-height:410px;
  overflow:auto;
}
.p4-support-side{
  padding:14px;
  border-right:1px solid rgba(255,255,255,.07);
  background:#091326;
}
.p4-support-side>small{
  color:#79d6ff;
  font-size:.64rem;
  letter-spacing:.12em;
}
.p4-support-side h4{
  margin:6px 0 13px;
  font-size:1.1rem;
}
.p4-support-side a,
.p4-support-side button{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:7px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  background:rgba(255,255,255,.025);
  color:#dfe8ff;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.p4-support-side a:hover,
.p4-support-side button:hover{
  border-color:rgba(97,194,255,.28);
  background:rgba(61,133,216,.08);
}
.p4-support-content{
  padding:16px;
  background:
    radial-gradient(circle at top right,rgba(92,74,214,.12),transparent 30%),
    #0a1223;
}
.p4-support-context{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:13px;
}
.p4-support-context h4{
  margin:3px 0 0;
  font-size:1.45rem;
}
.p4-support-context span{
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  color:#9eb4df;
  font-size:.64rem;
}
.p4-support-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.p4-support-card{
  min-height:112px;
  padding:13px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.p4-support-card small{color:#78d7ff;font-size:.62rem;letter-spacing:.09em}
.p4-support-card strong{display:block;margin:5px 0;color:#fff}
.p4-support-card p{margin:0;color:#90a1c3;font-size:.72rem;line-height:1.35}
.p4-support-answer{
  margin-top:10px;
  padding:13px;
  border:1px solid rgba(81,179,255,.18);
  border-radius:12px;
  background:rgba(47,105,185,.08);
  color:#cbdaf6;
  line-height:1.45;
}
.p4-support-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:11px 15px;
  border-top:1px solid rgba(255,255,255,.07);
  background:#08101f;
  color:#8195bd;
  font-size:.7rem;
}
.p4-support-foot a{
  color:#a9cfff;
  text-decoration:none;
}

/* Mobile / tablet */
@media(max-width:1050px){
  .p4-splash{height:390px}
  .p4-splash-copy{width:min(650px,72%)}
  .p4-grid-4{grid-template-columns:1fr 1fr}
  .p4-grid-3{grid-template-columns:1fr 1fr}
  .p4-grid-3>*:first-child{grid-column:1/-1}
  .p4-lead-flow{grid-template-columns:1fr}
  .p4-support-panel{width:calc(100vw - 24px);right:12px}
}
@media(max-width:720px){
  .p4-splash{
    width:calc(100% - 12px);
    height:440px;
    border-radius:18px;
  }
  .p4-splash:after{
    background:linear-gradient(0deg,rgba(4,7,15,.98) 0%,rgba(4,7,15,.74) 58%,rgba(4,7,15,.18) 100%);
  }
  .p4-splash-copy{
    left:18px;right:18px;top:auto;bottom:18px;width:auto;transform:none;
  }
  .p4-splash-copy h1{font-size:clamp(2.2rem,12vw,3.5rem)}
  .p4-rail-wrap,.p4-section{width:calc(100% - 12px)}
  .p4-product-rail{grid-auto-columns:82vw}
  .p4-section{padding:26px 0}
  .p4-section-head{align-items:flex-start;flex-direction:column}
  .p4-grid-2,.p4-grid-3,.p4-grid-4,.p4-mini-flow,.p4-support-grid{grid-template-columns:1fr}
  .p4-grid-3>*:first-child{grid-column:auto}
  .p4-support-launcher{right:9px;bottom:9px;min-width:0}
  .p4-support-launcher span{display:none}
  .p4-support-panel{
    right:6px;bottom:72px;width:calc(100vw - 12px);max-height:calc(100vh - 80px);
    border-radius:18px;
  }
  .p4-support-body{grid-template-columns:1fr}
  .p4-support-side{border-right:0;border-bottom:1px solid rgba(255,255,255,.07)}
  .p4-support-side{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .p4-support-side>small,.p4-support-side h4{grid-column:1/-1}
  .p4-support-side a,.p4-support-side button{margin:0}
  .p4-support-search button{min-width:80px}
}
