/* Centered Frugal simulation with the Oasis scroll and scan reveal. */
.oasis-showcase {
  height: 520svh;
  position: relative;
  scroll-margin-top: 0;
  background: var(--paper);
}
.oasis-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  isolation: isolate;
  overflow: clip;
  --card-reveal: 0;
  --card-y: 40px;
  --stage-fade: 1;
  --solid-opacity: 1;
  --wire-opacity: 0;
  --scan-top: 0%;
  --scan-opacity: 0;
  --detail-reveal: 0;
  --detail-y: 14px;
  --float-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --stage-top: var(--paper);
  --stage-bottom: var(--paper);
  background: linear-gradient(180deg, var(--stage-top), var(--stage-bottom));
}
.showcase-layout {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  gap: 16px;
  justify-items: center;
  width: min(1104px, 100%);
  height: 100%;
  margin: auto;
  padding: 94px 32px 54px;
  opacity: var(--stage-fade);
}
.showcase-copy-stack {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: var(--card-reveal);
}
.showcase-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .4s;
}
.showcase-copy.is-active { opacity: 1; transform: none; }
.showcase-eyebrow {
  color: #ffffffa6;
  font-size: 8px;
  letter-spacing: .18em;
  margin-bottom: 10px;
}
.showcase-copy h2 {
  color: #fff;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.055em;
  text-shadow: 0 4px 24px #1e407833;
}
.showcase-center { min-width: 0; min-height: 0; width: 100%; height: 100%; position: relative; }
.showcase-card {
  position: relative;
  width: 100%;
  height: 100%;
}
.showcase-glass {
  position: absolute;
  inset: 0;
  opacity: var(--card-reveal);
  transform: translateY(var(--card-y));
  border-radius: 26px;
  border: 1px solid #ffffff40;
  background: #ffffff26;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: inset 0 1px 0 #ffffff4d, 0 45px 90px -30px #17346270;
}
.showcase-card-header {
  position: absolute;
  inset: 24px 24px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  opacity: var(--detail-reveal);
  transform: translateY(calc(var(--detail-y) * .55));
}
.showcase-card-header>span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  letter-spacing: -.5px;
}
.showcase-card-header .frugal-emblem { width: 20px; height: 20px; }
.showcase-card-step { font-size: 8px; letter-spacing: .16em; color: #ffffffbd; }
.showcase-visual {
  position: absolute;
  inset: 16px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.oasis-stage .phone-holder {
  position: relative;
  flex-shrink: 0;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--float-y));
  transition: transform .16s ease-out;
}
.oasis-stage .phone {
  opacity: var(--solid-opacity);
  clip-path: var(--solid-clip, none);
  box-shadow: 0 28px 48px -12px #14305a59, 0 0 0 1px #080d1666, inset 0 0 0 2px #090e16;
}
.showcase-wireframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 306px;
  height: 620px;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  opacity: var(--wire-opacity);
  clip-path: inset(0 0 var(--wire-bottom, 0%));
  pointer-events: none;
}
.showcase-scan-line {
  position: absolute;
  top: var(--scan-top);
  left: 2%;
  right: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 18px 2px #ffffff80;
  opacity: var(--scan-opacity);
  pointer-events: none;
}
.showcase-narration {
  position: absolute;
  bottom: 14px;
  left: 24px;
  right: 24px;
  height: 64px;
  opacity: var(--card-reveal);
  pointer-events: none;
}
.showcase-caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.3;
  opacity: 0;
  transition: opacity .16s ease;
}
.caption-line { display: block; max-width: 640px; }
.caption-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .3s ease;
}
.caption-word.is-emphasized { font-weight: 500; }
.showcase-caption.is-active { opacity: 1; }
.showcase-caption.is-active .caption-word {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--word-order) * .022s);
}
.showcase-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin-top: 8px;
}
.showcase-dot {
  width: 24px;
  height: 36px;
  padding: 8px 4px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.showcase-dot>span { width: 8px; height: 8px; border-radius: 20px; background: #ffffff40; transition: width .2s, background .2s; }
.showcase-dot[aria-pressed="true"] { width: 38px; }
.showcase-dot[aria-pressed="true"]>span { width: 24px; background: #fff; }
.showcase-center>figcaption { position: absolute; top: calc(100% + 46px); left: 0; right: 0; text-align: center; font-size: 7px; letter-spacing: .04em; color: #ffffff70; }
.showcase-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ffffff66;
  background: #ffffff0d;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background .2s;
}
.showcase-arrow:hover { background: #ffffff26; }
.showcase-arrow>.icon { width: 17px; height: 17px; }
.carousel-arrow { width: 36px; height: 36px; margin: 0 12px; }
.carousel-arrow>.icon { width: 15px; height: 15px; }
.site-header.on-showcase .nav-shell { color: #fff; border-color: #ffffff3d; background: #254a7c55; box-shadow: 0 12px 35px #17346212; }
.site-header.on-showcase .nav-download { color: #fff; background: #ffffff12; border-color: #ffffff48; }
.without-particles .phone { opacity: 1; clip-path: none; }
.without-particles .showcase-wireframe,
.without-particles .showcase-scan-line { display: none; }

@media(max-width:1050px) {
  .showcase-layout { grid-template-rows: 88px minmax(0,1fr); padding-inline: 24px; }
  .showcase-visual { inset: 40px 0 86px; }
  .showcase-caption { font-size: 21px; }
}
@media(max-width:700px) {
  .showcase-layout { grid-template-rows: 88px minmax(0,1fr); gap: 12px; padding: 82px 16px 58px; width: min(500px, 100%); }
  .showcase-glass { border-radius: 26px; }
  .showcase-card-header { inset: 13px 16px auto; }
  .showcase-card-header>span:first-child { font-size: 13px; }
  .showcase-card-step { font-size: 6px; letter-spacing: .1em; }
  .showcase-visual { inset: 38px 0 91px; }
  .showcase-copy h2 { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.06; letter-spacing: -.05em; max-width: 360px; }
  .showcase-eyebrow { display: none; }
  .showcase-narration { left: 18px; right: 18px; height: 68px; bottom: 12px; }
  .showcase-caption { font-size: 18px; letter-spacing: -.025em; }
  .caption-line { max-width: 340px; }
  .caption-part { display: block; }
  .showcase-navigation { gap: 5px; }
  .showcase-center>figcaption { font-size: 6px; }
  .carousel-arrow { margin: 0 8px; }
}
@media(max-height:650px) {
  .showcase-layout { padding-top: 80px; grid-template-rows: 58px minmax(0,1fr); gap: 10px; }
  .showcase-copy h2 { font-size: clamp(24px, 3.1vw, 34px); }
  .showcase-eyebrow { margin-bottom: 6px; font-size: 7px; }
  .showcase-card-header { inset: 12px 16px auto; }
  .showcase-narration { height: 52px; bottom: 12px; }
  .showcase-caption { font-size: 18px; }
}
@media(max-height:650px) and (min-width:1051px) {
  .showcase-visual { inset: 12px 0 68px; }
}
@media(max-height:650px) and (max-width:1050px) {
  .showcase-visual { inset: 35px 0 84px; }
}
@media(max-height:650px) and (max-width:700px) {
  .showcase-copy h2 { font-size: 24px; }
  .showcase-narration { height: 68px; bottom: 8px; }
  .showcase-caption { font-size: 17px; }
}
@media(prefers-reduced-motion:reduce) {
  .oasis-stage .phone-holder { transform: none; }
  .showcase-wireframe,.showcase-scan-line { display: none; }
  .showcase-caption,.caption-word { transition: none; }
  .caption-word { transform: none; }
}
