/* STEM public landing page, using only existing Geofishing header/footer.
   All layout rules are scoped to the STEM middle content. */
.stem-page{color:#f5f9ff;background:#001c33;font-family:inherit;font-size:16px;overflow:hidden}
.stem-page *{box-sizing:border-box}
.stem-page a:focus-visible{outline:3px solid #60d9ff;outline-offset:4px}
.stem-container{width:min(calc(100% - 48px),1280px);margin:0 auto}

/* Hero: photo and two independently positioned proportional PNG phones */
.stem-hero{position:relative;isolation:isolate;min-height:510px;background:#001a30;overflow:hidden}
.stem-hero-photo{position:absolute;z-index:-3;inset:0;background:url('../img/stem-hero-scene.png') center 53% / cover no-repeat}
.stem-hero:before{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(0,19,34,.80) 0%,rgba(0,22,40,.67) 22%,rgba(0,24,45,.21) 53%,transparent 78%)}
.stem-hero:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(2,19,36,0) 62%,rgba(2,28,48,.25) 83%,#03243d 100%)}
.stem-hero-inner{display:grid;grid-template-columns:51% 49%;align-items:center;min-height:510px;padding:44px 0 34px;position:relative}
.stem-hero-copy{position:relative;z-index:4;max-width:665px}
.stem-eyebrow{color:#40cfff;font-size:.75rem;font-weight:850;letter-spacing:.21em;margin:0 0 8px}
.stem-subbrand{color:#e2effb;font-weight:800;font-size:.8rem;letter-spacing:.20em;margin:0 0 20px}
.stem-hero h1{font-size:clamp(2.4rem,4.0vw,3.8rem);font-weight:900;letter-spacing:-.035em;line-height:1.08;margin:0 0 15px;color:white;max-width:650px}
.stem-lead{color:#ecf5ff;line-height:1.38;font-size:clamp(1rem,1.6vw,1.22rem);max-width:575px;margin:0 0 18px;text-shadow:0 1px 6px #001b30aa}
.stem-offer-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:0 0 12px}
.stem-trial{background:linear-gradient(115deg,#027d89,#06445d);border:1px solid #10cbeb;border-radius:100px;box-shadow:0 0 14px #00cafa33;padding:9px 17px;color:white;font-size:.93rem;white-space:nowrap}
.stem-year-price{font-size:.95rem;color:#f7faff}
.stem-actions{display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}
.stem-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;border-radius:11px;text-decoration:none!important;padding:12px 18px;min-height:50px;font-weight:850;font-size:1rem;line-height:1.2;transition:transform .15s ease,box-shadow .15s ease}
.stem-button:hover{transform:translateY(-2px)}
.stem-button-play{background:linear-gradient(130deg,#067cfa,#009bfa);color:white!important;border:1px solid #42b7ff;box-shadow:0 8px 18px #00102e70}
.stem-play-icon{width:28px;height:28px;display:inline-flex}
.stem-play-icon svg{width:100%;height:100%}
.stem-button-outline{color:white!important;border:1px solid #9db7c8aa;background:#071d33cb}
.stem-subscription-details{font-size:.72rem;line-height:1.5;color:#bbd3e3;max-width:580px;margin:13px 0 0}
.stem-hero-visual{position:relative;height:430px;z-index:2;pointer-events:none}
.stem-phone{position:absolute;width:clamp(205px,19vw,276px);height:auto;max-width:none;filter:drop-shadow(0 24px 13px #00101da0);display:block}
.stem-phone-log{right:29%;top:0;transform:rotate(-4deg)}
.stem-phone-pressure{right:-4%;top:8px;transform:rotate(7deg)}

/* The approved sample has exactly one row of five icon cards. */
.stem-features,.stem-showcase{background-color:#00233e;background-image:repeating-radial-gradient(ellipse at 70% 0%,transparent 0,transparent 48px,#1170a716 49px,#1170a716 50px,transparent 51px,transparent 82px)}
.stem-features{border-top:1px solid #126189; padding:27px 0 12px}
.stem-section-heading{font-size:clamp(1.5rem,2vw,1.95rem);line-height:1.2;letter-spacing:-.02em;font-weight:850;color:white;margin:0 0 17px;padding:0 0 9px;position:relative}
.stem-section-heading:after{content:"";position:absolute;bottom:0;left:0;width:40px;height:3px;background:#24c1ef;border-radius:4px}
.stem-feature-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.stem-feature-card{min-width:0;min-height:130px;border:1px solid #0b79b1;border-radius:11px;background:linear-gradient(155deg,#073958,#02243d 68%);padding:15px 12px;display:flex;align-items:flex-start;gap:12px;box-shadow:0 5px 18px #00142844}
.stem-feature-icon{flex:0 0 47px;width:47px;height:47px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(150deg,#02c6a2,#009b88);color:#fff}
.stem-feature-icon-1,.stem-feature-icon-2{background:linear-gradient(160deg,#23a8ff,#075bd0)}
.stem-feature-icon-3{background:linear-gradient(160deg,#21cca6,#078674)}
.stem-feature-icon-4{background:linear-gradient(160deg,#ff8c77,#ec4d54)}
.stem-feature-icon svg{width:27px;height:27px}
.stem-feature-text h3{margin:5px 0 8px;font-size:.9rem;line-height:1.3;font-weight:850;color:#fff}
.stem-feature-text p{margin:0;font-size:.78rem;color:#c7e0ed;line-height:1.48}

.stem-showcase{padding:16px 0 43px}
.stem-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
.stem-gallery-card{margin:0;min-width:0;display:flex;flex-direction:column}
.stem-gallery-card a{display:flex;align-items:center;justify-content:center;padding:10px;background:linear-gradient(145deg,#0a3d63,#031d33 72%);border:1px solid #0a6f9f;border-radius:14px;overflow:hidden;box-shadow:0 10px 22px rgba(0,10,22,.32);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.stem-gallery-card a:hover{transform:translateY(-2px);border-color:#67d4ff;box-shadow:0 14px 28px rgba(0,10,22,.42)}
.stem-gallery-card img{display:block;width:100%;height:auto;aspect-ratio:941/1672;object-fit:contain;border-radius:10px;background:#063457}
.stem-gallery-card figcaption{font-size:.84rem;font-weight:800;color:#eef9ff;text-align:center;margin-top:10px;line-height:1.35;min-height:2.3em;display:flex;align-items:flex-start;justify-content:center}

/* Existing in-page popup, never navigates the browser away from this page. */
.stem-lightbox[hidden]{display:none}
.stem-lightbox{position:fixed;z-index:9999;inset:0;display:grid;place-items:center;padding:20px}
.stem-lightbox-backdrop{position:absolute;inset:0;background:#00101de0;backdrop-filter:blur(4px)}
.stem-lightbox-dialog{position:relative;width:min(86vw,740px);max-height:85vh;padding:16px;background:#061d32;border:1px solid #2b83ad;border-radius:16px;box-shadow:0 18px 55px #000a;display:flex;flex-direction:column;align-items:center;gap:8px}
.stem-lightbox-image{width:auto;max-width:100%;height:auto;max-height:70vh;object-fit:contain;border-radius:8px;background:#06243b}
.stem-lightbox-caption{margin:0;color:#d7eefa;font-size:.9rem;text-align:center}
.stem-lightbox-close{position:absolute;right:8px;top:8px;width:36px;height:36px;border-radius:100%;background:#092b47e9;color:#fff;border:1px solid #29779e;font-size:1.6rem;line-height:1;cursor:pointer;z-index:2}

@media (max-width:1180px){
  .stem-hero-inner{grid-template-columns:54% 46%;min-height:495px}
  .stem-hero-copy{max-width:590px}
  .stem-hero h1{font-size:clamp(2rem,4.0vw,3rem)}
  .stem-phone{width:clamp(165px,20vw,235px)}
  .stem-phone-log{right:28%;top:30px}.stem-phone-pressure{right:-5%;top:35px}
  .stem-feature-card{flex-direction:column;gap:8px;min-height:170px}
}
@media (max-width:780px){
  .stem-container{width:min(calc(100% - 32px),1280px)}
  .stem-hero{min-height:0}
  .stem-hero-photo{background-position:59% center}
  .stem-hero:before{background:linear-gradient(180deg,#001629ed 0%,#001a31c9 49%,#00192c4d 84%)}
  .stem-hero-inner{display:flex;flex-direction:column;min-height:0;padding:42px 0 12px;align-items:stretch}
  .stem-hero-copy{max-width:100%}
  .stem-hero h1{font-size:clamp(2.1rem,6.2vw,3.15rem);max-width:560px}
  .stem-lead{max-width:570px}
  .stem-hero-visual{align-self:flex-end;height:320px;width:min(520px,100%)}
  .stem-phone{width:clamp(150px,32vw,230px)}
  .stem-phone-log{right:33%;top:7px}.stem-phone-pressure{right:0;top:13px}
  .stem-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stem-feature-card{min-height:118px;flex-direction:row}
  .stem-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:470px){
  .stem-hero-inner{padding-top:28px}
  .stem-hero h1{font-size:2.25rem;line-height:1.08}
  .stem-lead{font-size:1rem}
  .stem-actions{gap:8px}.stem-button{font-size:.88rem;padding:10px 11px}
  .stem-trial{font-size:.82rem}
  .stem-offer-row{gap:9px}
  .stem-hero-visual{height:256px}
  .stem-phone{width:clamp(150px,43vw,205px)}
  .stem-phone-log{right:40%;top:0}.stem-phone-pressure{right:1%;top:12px}
  .stem-feature-grid{grid-template-columns:1fr}
  .stem-feature-card{min-height:87px;align-items:center}
  .stem-gallery{grid-template-columns:1fr;gap:12px}
  .stem-lightbox-dialog{width:94vw;padding:12px}
}
@media (prefers-reduced-motion:reduce){.stem-button,.stem-gallery-card a{transition:none}}
