/* Astra products — the same typography, space backdrop and restrained lime UI. */

/* A short native sticky scene gives the phone time to be explored in both
   scroll directions, including when the animation CDN is unavailable. */
.apps-scroll-scene { --apps-hold: clamp(340px,65svh,720px); position: relative; height: calc(100svh + var(--apps-hold)); }
.apps-scroll-scene > .apps { position: sticky; top: 0; height: 100svh; min-height: 100svh; }
.astronaut-stage { overflow: clip; }
.phone-ui { pointer-events: none; }
.phone-ui.is-visible { pointer-events: auto; }
.phone-ui-home .home-grid { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; }
.phone-ui-home .home-grid::-webkit-scrollbar { display: none; }
.phone-emulator.is-unlocked .phone-screen { touch-action: pan-y; }
.lock-hint { appearance: none; border: 0; padding: 8px 10px; background: transparent; color: rgba(255,255,255,.95); cursor: pointer; animation: unlockPulse 2.3s ease-in-out infinite; text-shadow: 0 0 14px rgba(255,255,255,.18); }
.lock-hint:focus-visible { outline: 1px solid rgba(255,255,255,.8); outline-offset: 4px; border-radius: 5px; }
@keyframes unlockPulse { 0%,100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); text-shadow: 0 0 18px rgba(255,255,255,.38); } }
@media (min-width: 561px) {
  .lock-bottom { position: absolute; top: min(57%,40vh); left: 0; right: 0; padding: 0; gap: 10px; }
  .home-grid { grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 24px; gap: 15px 10px; }
  .app-icon { min-width: 0; }
  .app-icon-image { width: min(100%,58px); height: auto; aspect-ratio: 1; }
  .app-icon strong { max-width: 100%; font-size: clamp(8px,.77vw,11px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .apps { align-items: center; padding: 8vh var(--page-x) 5vh; }
  .apps-copy { width: 48vw; margin: 0; }
  .app-card-head { padding-left: 20px; padding-right: 20px; }
  .app-card-body p { padding-left: 20px; padding-right: 20px; }
  .app-card.is-open .app-card-body { max-height: 300px; }
  .selected-app-actions { padding-left: 20px; padding-right: 20px; }
  .lock-date { font-size: clamp(13px,1.8vw,17px); }
  .lock-time { font-size: clamp(58px,8.6vw,84px); }
}
@media (prefers-reduced-motion: reduce) { .apps-scroll-scene { --apps-hold: 0px; } .lock-hint { animation: none; } }

.store-badge.is-disabled {
  padding: 0; border: 0; background: transparent; color: inherit; cursor: default;
  opacity: .38; transform: none; filter: none;
}
.store-badge.is-disabled:hover { transform: none; filter: none; }
.store-note { display: block; margin-top: 8px; font: 400 10px/1.4 "Inter", sans-serif; color: rgba(255,255,255,.8); }
.store-badges-compact { gap: 8px; }
.store-badges-compact .store-badge img { height: 32px; }
.selected-app-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 0 28px 24px; }
.selected-app-actions .store-badges { padding: 0; }
.app-details-link { display: inline-flex; align-items: center; gap: 20px; min-height: 38px; font-size: 12px; color: var(--accent); }
.app-details-link span { font-size: 23px; transition: transform .3s ease; }
.app-details-link:hover span { transform: translateX(5px); }
.app-details-link:focus-visible, .preview-toggle:focus-visible, .gallery-arrow:focus-visible, .gallery-dot:focus-visible, .product-website:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }

/* Catalog cards keep their grid slots while the right-hand preview unfolds. */
.catalog-heading { display: flex; justify-content: space-between; gap: 20px; padding: 0 0 20px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.12); font: 500 10px/1.4 "Inter",sans-serif; color: rgba(255,255,255,.4); letter-spacing: .14em; text-transform: uppercase; }
.apps-page-grid { --catalog-gap: clamp(14px,1.5vw,24px); grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--catalog-gap); }
.app-tile-slot { position: relative; min-width: 0; height: 440px; }
.app-tile-slot:has(.app-tile:hover), .app-tile-slot:has(.is-preview-open), .app-tile-slot:has(:focus-visible) { z-index: 10; }
.app-tile { --tile-width: 100%; position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%; display: grid; grid-template-columns: var(--tile-width) minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: 0; padding: 0; overflow: hidden; transform: none; background: rgba(4,6,10,.88); transition: width .58s cubic-bezier(.22,.78,.2,1),left .58s cubic-bezier(.22,.78,.2,1),border-color .4s ease,box-shadow .5s ease; }
.app-tile-info { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 14px; padding: clamp(22px,2.2vw,32px); }
.app-tile-icon { width: 62px; height: 62px; border-radius: 15px; }
.app-tile-index { font: 400 10px "Inter",sans-serif; letter-spacing: .12em; color: rgba(255,255,255,.32); }
.app-tile h2 { font-size: clamp(38px,3.5vw,52px); margin: 3px 0 0; }
.app-tile h2 a { transition: color .3s ease; }
.app-tile h2 a:hover { color: var(--accent); }
.app-tile p { font-size: 13px; max-width: 32ch; }
.app-tile-meta { padding-top: 4px; }
.app-tile-meta .news-tag { border-radius: 3px; font-size: 9px; padding: 5px 8px; }
.app-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0 8px 8px; border: 0; background: transparent; color: rgba(255,255,255,.5); font: 400 11px "Inter",sans-serif; cursor: pointer; transition: color .3s ease; }
.preview-toggle:hover { color: #fff; }
.preview-toggle-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: url("../assets/preview.svg") center / contain no-repeat; mask: url("../assets/preview.svg") center / contain no-repeat; }
.app-tile-preview { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-left: 1px solid rgba(255,255,255,.1); background: radial-gradient(ellipse at 70% 25%,color-mix(in srgb,var(--product-accent) 12%,transparent),transparent 72%),rgba(4,6,10,.94); opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .35s ease,transform .5s ease,visibility 0s linear .58s; }
.app-preview-heading { display: flex; justify-content: space-between; align-items: center; }
.app-preview-heading .section-kicker { margin: 0; font-size: 9px; }
.preview-mark { color: rgba(255,255,255,.35); font-size: 20px; }
.app-tile:is(:hover,.is-preview-open,:has(:focus-visible)) { --tile-width: calc((100% - var(--catalog-gap)) / 2); width: calc(200% + var(--catalog-gap)); border-color: rgba(166,255,0,.32); transform: none; background: rgba(4,6,10,.98); box-shadow: 0 26px 64px rgba(0,0,0,.65); }
.app-tile:is(:hover,.is-preview-open,:has(:focus-visible)) .app-tile-preview { opacity: 1; visibility: visible; transform: none; transition-delay: .13s,.05s,0s; }
.app-tile-slot:nth-child(3n) .app-tile:is(:hover,.is-preview-open,:has(:focus-visible)) { left: calc(-100% - var(--catalog-gap)); }
.app-tile.is-preview-closing { pointer-events: none; }

/* Galleries use native horizontal scrolling, with buttons and keyboard support. */
.app-gallery { min-width: 0; }
.gallery-track { display: flex; width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 1px solid rgba(166,255,0,.4); outline-offset: 5px; }
.gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-media { height: clamp(390px,60svh,650px); padding: clamp(22px,3vw,48px); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: radial-gradient(ellipse at 50% 55%,color-mix(in srgb,var(--product-accent,var(--accent)) 9%,transparent),transparent 64%),rgba(3,5,9,.74); }
.gallery-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 7px; box-shadow: 0 18px 42px rgba(0,0,0,.3); }
.gallery-slide-portrait .gallery-media img { height: 100%; max-width: 100%; border-radius: 18px; }
.gallery-slide-landscape .gallery-media img { width: 100%; }
.gallery-slide figcaption { display: flex; align-items: center; gap: 14px; padding: 20px 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.66); }
.gallery-slide-number { font-size: 10px; color: var(--accent); letter-spacing: .1em; }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.gallery-dots { display: flex; gap: 5px; }
.gallery-dot { display: grid; place-items: center; width: 28px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.gallery-dot::after { content: ""; width: 16px; height: 2px; background: rgba(255,255,255,.25); transition: background .3s ease; }
.gallery-dot.is-active::after,.gallery-dot:hover::after { background: var(--accent); }
.gallery-navigation { display: flex; align-items: center; gap: 10px; }
.gallery-counter { margin-right: 14px; font: 400 11px "Inter",sans-serif; letter-spacing: .1em; color: rgba(255,255,255,.45); white-space: nowrap; }
.gallery-arrow { width: 48px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.025); color: #fff; cursor: pointer; font-size: 25px; transition: border-color .3s ease,color .3s ease,background .3s ease; }
.gallery-arrow:hover { border-color: rgba(166,255,0,.5); background: rgba(166,255,0,.07); color: var(--accent); }
.app-gallery-compact { flex: 1; display: flex; flex-direction: column; }
.app-gallery-compact .gallery-media { height: 250px; padding: 12px; border: 0; background: transparent; }
.app-gallery-compact .gallery-slide figcaption { padding: 12px 0 14px; font-size: 11px; gap: 9px; white-space: nowrap; overflow: hidden; }
.app-gallery-compact .gallery-controls { margin-top: auto; gap: 6px; flex-wrap: nowrap; }
.app-gallery-compact .gallery-dots { min-width: 0; }
.app-gallery-compact .gallery-dot { width: 18px; height: 26px; }
.app-gallery-compact .gallery-dot::after { width: 10px; }
.app-gallery-compact .gallery-counter { margin-right: 4px; font-size: 9px; }
.app-gallery-compact .gallery-arrow { flex: 0 0 52px; width: 52px; height: 34px; padding: 0; font-size: 21px; line-height: 1; }
.app-gallery-compact .gallery-arrow span { display: block; line-height: 1; }
.app-gallery-compact .gallery-navigation { gap: 6px; }

/* Product pages */
body[data-page="product"] .edge-fade-top { height: 150px; opacity: .8; }
.product-hero { position: relative; width: 100%; min-height: 560px; height: 70svh; max-height: 760px; display: flex; justify-content: center; align-items: center; padding: 150px var(--page-x) 65px; overflow: hidden; }
.product-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; filter: saturate(.8); }
.product-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.65) 0%,rgba(0,0,0,.42) 35%,rgba(0,0,0,.62) 64%,#000 100%),linear-gradient(90deg,rgba(0,0,0,.55),transparent 45%,rgba(0,0,0,.35)); }
.product-back { position: absolute; top: 140px; left: var(--page-x); z-index: 2; margin: 0; font-size: 10px; color: rgba(255,255,255,.65); }
.product-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(660px,100%); text-align: center; }
.product-icon { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.product-hero .section-title { font-size: clamp(80px,9vw,152px); line-height: .93; }
.product-tagline { margin: 0; max-width: 38ch; font: 400 clamp(15px,1.35vw,20px)/1.55 "Inter",sans-serif; color: rgba(255,255,255,.78); }
.product-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.product-tags .news-tag { padding: 7px 12px; border-radius: 4px; border-color: rgba(255,255,255,.24); background: rgba(3,5,9,.26); backdrop-filter: blur(8px); color: rgba(255,255,255,.74); }
.product-hero-index { position: absolute; bottom: 30px; left: var(--page-x); font-size: 9px; letter-spacing: .17em; color: rgba(255,255,255,.35); }
.product-downloads { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 16px var(--page-x) clamp(70px,10vh,120px); background: linear-gradient(#000,transparent); }
.product-downloads .store-badges { justify-content: center; gap: 16px; padding: 0; }
.product-downloads .store-badge img { height: 52px; border-radius: 7px; }
.product-website { display: inline-flex; align-items: center; gap: 14px; color: var(--accent); font-size: 11px; letter-spacing: .04em; transition: gap .3s ease; }
.product-website:hover { gap: 20px; }
.product-website span { font-size: 18px; }
.product-about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px clamp(35px,6vw,100px); }
.product-about-heading h2 { max-width: 16ch; margin: 0; font: 400 clamp(34px,3.6vw,57px)/1.12 "Homenaje",sans-serif; }
.product-description { padding-top: 26px; }
.product-description p { margin: 0 0 22px; max-width: 58ch; color: rgba(255,255,255,.59); font-size: clamp(14px,1.1vw,16px); line-height: 1.8; }
.product-description img,.article-body img { max-width: 100%; height: auto; }
.product-resource-links{display:flex;flex-direction:column;gap:12px;margin-top:24px}.product-resource-links a{display:flex;justify-content:space-between;gap:20px;padding:20px;border:1px solid rgba(255,255,255,.15);color:var(--accent);font-size:14px;overflow-wrap:anywhere}.section-lead p{margin:0}.product-description li[data-type="taskItem"]{display:flex;gap:10px;align-items:flex-start}.product-description ul[data-type="taskList"]{padding-left:0;list-style:none}
.product-description table,.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.product-description :is(td,th),.article-body :is(td,th) { padding: 12px; border: 1px solid rgba(255,255,255,.2); text-align: left; }
.about-text p { margin: 0 0 .7em; }
.product-features { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 15px; }
.product-feature { display: flex; align-items: flex-start; gap: 18px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.17); }
.product-feature > span { padding-top: 4px; font: 400 10px "Inter",sans-serif; color: var(--accent); letter-spacing: .1em; }
.product-feature h3 { max-width: 20ch; margin: 0; font: 400 clamp(23px,2.15vw,34px)/1.12 "Homenaje",sans-serif; color: rgba(255,255,255,.8); }
.product-gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.product-gallery-heading .section-title { font-size: clamp(58px,6vw,96px); }
.product-gallery-label { margin-bottom: 5px; text-align: right; font: 400 10px "Inter",sans-serif; color: rgba(255,255,255,.36); letter-spacing: .12em; text-transform: uppercase; }
.product-next { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: clamp(24px,4vw,56px); border: 1px solid rgba(255,255,255,.15); background: rgba(4,6,10,.5); backdrop-filter: blur(9px); transition: border-color .4s ease,background .4s ease; }
.product-next:hover { border-color: rgba(166,255,0,.35); background: rgba(4,6,10,.8); }
.product-next .section-kicker { display: block; margin-bottom: 18px; }
.product-next h2 { margin: 0 0 12px; font: 400 clamp(40px,5vw,76px)/1 "Homenaje",sans-serif; }
.product-next p { margin: 0; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }
.product-next-arrow { font-size: clamp(40px,5vw,76px); color: var(--accent); transition: transform .4s ease; }
.product-next:hover .product-next-arrow { transform: translateX(7px); }

@media (max-width: 1100px) and (min-width: 701px) {
  .apps-page-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-tile-slot:nth-child(3n) .app-tile:is(:hover,.is-preview-open,:has(:focus-visible)) { left: 0; }
  .app-tile-slot:nth-child(2n) .app-tile:is(:hover,.is-preview-open,:has(:focus-visible)) { left: calc(-100% - var(--catalog-gap)); }
  .app-tile-info { padding: 26px; }
}
@media (max-width: 700px), (hover: none) {
  .apps-page-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-tile-slot { height: auto; }
  .app-tile,.app-tile:is(:hover,.is-preview-open,:has(:focus-visible)) { --tile-width: 100%; position: relative; width: 100%; height: auto; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto; left: 0!important; }
  .app-tile-info { min-height: 408px; }
  .app-tile-preview { padding: 0 24px; max-height: 0; overflow: hidden; border-left: 0; border-top: 0 solid rgba(255,255,255,.1); opacity: 0; visibility: hidden; transform: none; transition: max-height .5s ease,padding .5s ease,opacity .4s ease,visibility 0s linear .5s; }
  .app-tile:hover .app-tile-preview { opacity: 0; visibility: hidden; }
  .app-tile:is(.is-preview-open,:has(:focus-visible)) .app-tile-preview { max-height: 460px; padding: 24px; border-top-width: 1px; opacity: 1; visibility: visible; transition-delay: 0s; }
  .product-hero { min-height: 510px; height: 68svh; padding-top: 145px; padding-bottom: 55px; }
  .product-back { top: 115px; font-size: 9px; }
  .product-hero-copy { gap: 20px; }
  .product-icon { width: 50px; height: 50px; }
  .product-hero .section-title { font-size: clamp(70px,17vw,116px); }
  .product-tagline { font-size: 15px; max-width: 30ch; }
  .product-tags .news-tag { font-size: 9px; padding: 6px 9px; }
  .product-downloads { padding-top: 6px; }
  .product-downloads .store-badge img { height: 43px; }
  .product-about { grid-template-columns: 1fr; gap: 18px; }
  .product-about-heading h2 { max-width: 23ch; font-size: 38px; }
  .product-description { padding-top: 0; }
  .product-features { grid-template-columns: 1fr; gap: 22px; margin-top: 10px; }
  .product-feature { padding-top: 20px; }
  .product-feature h3 { font-size: 27px; max-width: 27ch; }
  .product-gallery-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 25px; }
  .product-gallery-label { text-align: left; }
  .gallery-media { height: 460px; padding: 20px; }
  .gallery-slide-landscape .gallery-media { height: 300px; padding: 12px; }
  .gallery-controls { gap: 12px; }
  .gallery-navigation { gap: 7px; }
  .gallery-counter { margin-right: 3px; font-size: 10px; }
  .gallery-arrow { width: 42px; height: 42px; }
  .gallery-dot { width: 22px; }
}
@media (max-width: 560px) {
  .apps-page-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-heading { font-size: 8px; gap: 12px; }
  .app-tile-info { min-height: 385px; padding: 26px; }
  .app-tile h2 { font-size: 48px; }
  .app-tile p { max-width: 35ch; }
  .app-tile-preview { padding-left: 26px; padding-right: 26px; }
  .app-gallery-compact .gallery-media { height: 280px; }
  .product-hero-index { bottom: 22px; font-size: 8px; }
  .product-downloads .store-badges { gap: 10px; }
  .product-downloads .store-badge img { height: 40px; }
  .product-next p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-tile,.app-tile-preview,.gallery-arrow,.gallery-dot::after { transition: none; }
}
