/* Step Terra: interactive phone built from real app screenshots.
   Everything is prefixed st- so it can never collide with other styles on the page. */
.st-stage { perspective: 1400px; display: grid; place-items: center; padding: 6px 0; position: relative; }
.st-phone {
  position: relative; width: 322px; height: 672px; padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #4a505d 0%, #14171d 38%, #0c0e12 62%, #3a404c 100%);
  box-shadow: 0 0 0 1.5px #1b1e25, inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(60, 160, 120, 0.14);
  transform-style: preserve-3d; will-change: transform; transform: rotateX(0deg) rotateY(0deg);
}
.st-phone::before, .st-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(#59606d, #252932); }
.st-phone::before { left: -3px; top: 120px; height: 52px; box-shadow: 0 70px 0 #3a404c; }
.st-phone::after { right: -3px; top: 160px; height: 82px; }
.st-glare {
  position: absolute; inset: 11px; border-radius: 43px; pointer-events: none; z-index: 20; mix-blend-mode: screen;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.10) 46%, rgba(255, 255, 255, 0) 60%);
  background-size: 260% 100%; background-position: var(--gx, 50%) 0;
}
.st-screen { position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #f4f2e9; }
.st-island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; background: #000; border-radius: 20px; z-index: 6; }
.st-status {
  position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 5; background: #f4f2e9; color: #143d36;
  display: flex; justify-content: space-between; align-items: center; padding: 6px 28px 0;
  font: 600 13px -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
}
.st-status span:last-child { display: flex; align-items: center; gap: 5px; }
.st-status svg { height: 11px; width: auto; display: block; }
.st-homebar { position: absolute; bottom: 7px; left: 50%; width: 104px; height: 4px; margin-left: -52px; border-radius: 3px; background: #143d36; opacity: 0.85; z-index: 6; }

/* the app area: three real screenshots stacked; only one is shown */
.st-app { position: absolute; inset: 48px 0 0 0; background: #f4f2e9; }
.st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity 240ms ease, transform 240ms ease, visibility 0s linear 240ms; }
.st-img.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.st-img.back { transform: translateX(-14px); }

/* invisible buttons laid over the real UI: tabs and a few in-screen actions */
.st-hit { position: absolute; z-index: 3; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.st-hit:hover { background: rgba(20, 110, 80, 0.08); }
.st-hit.g-hover { background: rgba(20, 110, 80, 0.14); outline: 2px solid rgba(20, 110, 80, 0.5); }
.st-hit:focus-visible { outline: 2px solid #0f6b4f; outline-offset: -2px; }
.st-hit[hidden] { display: none; }

/* a one-time pulse so people discover that the tabs are live */
.st-hint { position: absolute; z-index: 4; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(20, 61, 54, 0.92); color: #fff; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: 0.02em; white-space: nowrap; pointer-events: none; animation: sthint 3.4s ease 1.2s both; }
@keyframes sthint { 0%, 100% { opacity: 0; transform: translate(-50%, 6px); } 12%, 82% { opacity: 1; transform: translate(-50%, 0); } }
.st-toast { position: absolute; left: 16px; right: 16px; bottom: 86px; z-index: 8; padding: 10px 12px; border-radius: 12px; background: rgba(20, 61, 54, 0.95); color: #fff; font: 500 12px/1.35 Inter, system-ui, sans-serif; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 180ms, transform 180ms; pointer-events: none; }
.st-toast.show { opacity: 1; transform: none; }

.st-caption { margin: 14px 0 0; text-align: center; font-size: 0.84rem; line-height: 1.5; color: inherit; opacity: 0.8; min-height: 2.6em; }

@media (max-width: 480px) { .st-stage { zoom: 0.86; } }
@media (max-width: 360px) { .st-stage { zoom: 0.78; } }
@media (prefers-reduced-motion: reduce) { .st-img { transition: none; } .st-hint { animation: none; opacity: 0; } }

/* work-row backdrop on the home page */
.media-terra { background: linear-gradient(140deg, #0f4d44 0%, #1d8a76 52%, #7fd0a2 100%); }
