/* IPOCEN V11.4 — Mobile experience and gallery corrections (2026-10-10).
   Loaded last to keep the earlier editorial design and backend unchanged. */

/* Distinct, deterministic stages. Hidden screenshots MUST NOT render. */
.product .phone-view[hidden],
.product .phone-view:not(.is-active) { display:none !important; opacity:0 !important; }
.product .phone-view.is-active:not([hidden]) { display:block !important; opacity:1 !important; }
.product .phone-view .real-app-screen { pointer-events:none; }
.product .product-caption { color:#596b7c; font-weight:650; letter-spacing:.02em; }
.product .product-step.active { opacity:1; }

/* The art-gallery is now a deliberate white interlude within the navy section. */
.collection .art-gallery {
  background:#ffffff;
  color:#0f2d46;
  padding:clamp(30px, 4.2vw, 58px) 0;
  margin-top:clamp(34px, 4vw, 58px);
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid #e7edf1;
}
.collection .gallery-track {
  padding-bottom:20px;
  scrollbar-color:#a8b5c0 #fff;
}
.collection .art-first {
  background:#f5f7f9;
  border:1px solid #e2e8ec;
  color:#0f2d46;
}
.collection .art-first figcaption small { color:#b66a57; }
.collection .art-first figcaption strong { color:#0f2d46; }
.collection .art-locked,
.collection .art-locked:nth-child(3),
.collection .art-locked:nth-child(4) {
  background:#f2f5f7;
  border:1px solid #dfe6eb;
  color:#0f2d46;
}
.collection .art-locked > span {color:#bbc8d2;}
.collection .art-locked p {color:#213b51;}
.collection .art-locked small {color:#687f92;}

/* Desktop: longer editorial copy must also remain clear of illustrations. */
@media (min-width:901px) {
  .features .feature.feature-breathe,
  .features .feature.feature-observe { min-height:560px; }
  .features .feature-breathe .breath-orb {
    position:relative;
    inset:auto;
    width:170px;
    height:170px;
    flex:none;
    align-self:flex-end;
    margin:28px 22px 0 0;
    box-shadow:0 0 0 14px rgba(232,157,142,.22);
  }
  .features .feature-observe .feature-progress {
    position:relative;
    inset:auto;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    flex:none;
    height:90px;
    margin-top:32px;
  }
}

@media (max-width:900px) {
  /* Preserve the iPhone sticky effect while ensuring the illustration follows
     the explanation actually appearing UNDER it. */
  .product .product-steps { position:relative; z-index:1; }
  .product .product-step { scroll-margin-top:calc(57svh + 105px); }
  .product .product-step.active { opacity:1 !important; }
  .product .product-caption { bottom:12px; background:rgba(245,245,247,.93);
    border:1px solid rgba(15,45,70,.06);border-radius:999px;
    padding:6px 12px;font-size:11px;white-space:nowrap; }

  /* The decorative circle and histogram belong AFTER the paragraphs, never
     over them. No absolute positioning and no clipping through the text. */
  .features .feature.feature-breathe,
  .features .feature.feature-observe {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-height:0 !important;
    height:auto !important;
    padding-bottom:28px;
  }
  .features .feature-breathe > p,
  .features .feature-observe > p {
    position:relative;
    z-index:1;
    margin-bottom:0;
    max-width:100%;
  }
  .features .feature-breathe .breath-orb {
    position:relative;
    inset:auto;
    right:auto;
    bottom:auto;
    width:clamp(118px,32vw,158px);
    height:clamp(118px,32vw,158px);
    flex:none;
    align-self:center;
    margin:28px auto 10px;
    box-shadow:0 0 0 12px rgba(232,157,142,.23);
  }
  .features .feature-breathe .breath-orb span { inset:12px; }
  .features .feature-observe .feature-progress {
    position:relative;
    inset:auto;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    flex:none;
    height:75px;
    margin:27px 0 0;
  }
  .features .feature-observe .feature-progress span { flex:1; max-width:16%; }
  .collection .art-gallery { padding:25px 0 30px; }
  .collection .gallery-track { padding:0 20px 15px; }
  .collection .art-first { padding:15px; }
}
@media (max-width: 390px) {
  .features .feature-breathe .breath-orb {width:124px;height:124px;margin-top:25px;}
  .features .feature-observe .feature-progress {height:64px;}
}
@media (prefers-reduced-motion:reduce) {
  .product .phone-view {transition:none !important;}
  .features .feature-breathe .breath-orb {animation:none !important;}
}
