/* Aerethis product pages (hub, Apps, Services) on the SHOWCASE system.
 * Additive: loaded after /products/products-split.css, /showcase.css and /showcase-pages.css.
 * Every selector is scoped by .ps-wide / .ps-hub so the shared product rules keep working elsewhere. */

/* ---------- wide column ---------- */
.products-page.ps-wide { padding-bottom: 48px; }
.products-page.ps-wide .pp-shell { width: min(100% - 2 * var(--sc-gutter, 24px), var(--sc-wide, 2200px)); max-width: none; padding: 0; }
.ps-wide .pp-section { padding-top: 0; }
.ps-wide .pp-section.sc-section { padding-top: var(--sc-section-y, 48px); }
.ps-wide .sc-hero .pp-back { margin-bottom: 20px; }
.ps-wide .sc-hero .sc-title { max-width: 12ch; }

/* ---------- Apps: launcher card over a tilted Aerenium window ---------- */
.ps-stage { --sc-collage-ratio: 1.06; --sc-collage-room: 0px; }
.ps-shot .sc-frame-cap { display: none; }
.ps-shot img { display: block; width: 100%; height: auto; }
.ps-stage .ps-card { position: absolute; z-index: 4; right: 0; bottom: 0; width: min(66%, 560px); padding: clamp(20px, 2vw, 40px); border-radius: 24px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 70px -30px rgba(226, 169, 69, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ps-card .pp-launcher-ident { gap: 16px; margin-bottom: 14px; }
.ps-card .pp-launcher-icon { width: clamp(56px, 4.4vw, 88px); height: clamp(56px, 4.4vw, 88px); border-radius: 20px; }
.ps-card h2 { margin: 0; font-size: clamp(20px, 1.9vw, 38px); letter-spacing: -.03em; line-height: 1.15; }
.ps-card .products-eyebrow { margin-bottom: 6px; font-size: 12px !important; }
.ps-card .pp-launcher-body { margin: 0 0 10px; font-size: clamp(15px, 1.05vw, 20px) !important; line-height: 1.55; }
.ps-card .pp-launcher-note { margin: 0 0 16px; font-size: clamp(13px, .9vw, 16px) !important; line-height: 1.6; color: var(--text-2); }
.ps-card .pp-subhead { margin: 0 0 4px; font-size: 12px !important; }
.ps-card .pp-platforms { margin: 0; }
.ps-card .pp-platforms > div { padding: 8px 0; font-size: clamp(13px, .9vw, 16px) !important; }
.ps-card .ps-card-foot { margin: 8px 0 0; font-size: clamp(12px, .8vw, 15px) !important; line-height: 1.5; color: var(--text-2); }

/* app tiles below the hero */
.ps-wide .pp-tiles { margin-top: 0; }
.ps-wide .pp-tiles-head { max-width: clamp(520px, 46vw, 900px); margin-bottom: clamp(18px, 1.8vw, 32px); }
.ps-wide .pp-tiles-head h2 { font-size: var(--sc-h2, 30px); font-weight: 580; letter-spacing: -.03em; line-height: 1.1; }
.ps-wide .pp-tiles-head p { margin-top: 12px; font-size: var(--sc-body, 15px) !important; line-height: 1.6; }
.ps-wide .pp-tile-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; gap: var(--sc-gap, 16px); }
.ps-wide .pp-app-tile { border-radius: 20px; background: var(--sc-glass, var(--bg-1)); border-color: var(--sc-edge, var(--border-strong)); }
.ps-wide .pp-app-body { gap: 10px; padding: var(--sc-pad, 22px); }
.ps-wide .pp-app-icon { width: clamp(44px, 2.8vw, 60px); height: clamp(44px, 2.8vw, 60px); border-radius: 14px; }
.ps-wide .pp-app-titles h3 { font-size: var(--sc-h3, 19px); }
.ps-wide .pp-app-tagline { font-size: clamp(15px, 1.05vw, 19px); }
.ps-wide .pp-app-text { font-size: clamp(14px, .9vw, 16px) !important; }
.ps-wide .pp-app-more { font-size: clamp(14px, .9vw, 16px); }
.ps-wide .pp-app-soon { background: transparent; padding: clamp(22px, 2.2vw, 40px); }
.ps-wide .pp-app-soon h3 { font-size: var(--sc-h3, 19px); }
.ps-wide .pp-app-soon .pp-app-text { max-width: 44ch; }
.ps-wide .pp-apps-links { margin-top: clamp(16px, 1.5vw, 28px); }

/* ---------- Services: ledger of the three offers over the glass hero ---------- */
.ps-ledger { display: grid; gap: clamp(12px, 1.2vw, 22px); width: 100%; margin: 0; padding: 0; list-style: none; }
.ps-ledger a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 1.4vw, 28px); padding: clamp(18px, 1.8vw, 36px) clamp(20px, 2vw, 40px); color: var(--text-1); text-decoration: none; min-height: 0; }
.ps-ledger li:nth-child(2) { margin-inline-start: clamp(0px, 4vw, 96px); }
.ps-ledger li:nth-child(3) { margin-inline-start: clamp(0px, 8vw, 192px); }
.ps-ledger-num { display: inline-flex; align-items: center; justify-content: center; width: clamp(40px, 3vw, 64px); height: clamp(40px, 3vw, 64px); border: 1px solid var(--sc-gold-edge); border-radius: 50%; color: var(--accent-4, #F2E3B8); font-size: clamp(15px, 1.1vw, 22px); font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-ledger-name { display: block; font-size: clamp(20px, 1.9vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.ps-ledger-state { display: block; margin-top: 6px; color: var(--text-2); font-size: clamp(13px, .95vw, 18px); line-height: 1.5; }
.ps-ledger-go { color: var(--accent-4, #F2E3B8); }
.ps-ledger a:hover .ps-ledger-go, .ps-ledger a:focus-visible .ps-ledger-go { transform: translateX(4px); }
.ps-ledger-go { transition: transform .3s var(--sc-ease, ease); display: inline-flex; }
html body .products-page .ps-ledger a[href]:not(.btn):is(:hover, :focus-visible) { text-decoration: none; }
html body .products-page .ps-ledger a[href] { min-height: 0; }
.ps-ledger a:focus-visible { outline: 3px solid var(--air); outline-offset: 4px; border-radius: 22px; }

.ps-wide .pp-services { gap: var(--sc-gap, 16px); }
.ps-wide .pp-services .product-card { padding: var(--sc-pad, 22px); border-radius: 20px; background: var(--sc-glass, var(--bg-1)); border-color: var(--sc-edge, var(--border)); }
.ps-wide .pp-services .subscription-card { column-gap: clamp(24px, 3vw, 60px); }
.ps-wide .products-page .product-card :is(h2, h3), .ps-wide .pp-services .product-card h2 { font-size: clamp(21px, 1.7vw, 30px); }
.ps-wide .pp-services .product-card p { font-size: clamp(14px, .9vw, 16px) !important; }
.ps-wide .pp-services .product-points, .ps-wide .pp-services .subscription-tiers dd { font-size: clamp(14px, .9vw, 16px) !important; }
.ps-wide .pp-services .subscription-tiers dt { font-size: clamp(15px, 1.05vw, 19px); }
.ps-wide .products-account { margin-top: clamp(28px, 3vw, 60px); padding-bottom: 24px; }
.ps-wide .products-account h2 { font-size: clamp(20px, 1.7vw, 30px); }
.ps-wide .products-account p { font-size: clamp(14px, .9vw, 16px) !important; max-width: 60ch; }

/* ---------- Hub: the two doors, framed by the animated stage ---------- */
.products-page.ps-hub { display: block; min-height: 0; padding: 0; background: none; }
/* The hub is one centered column on a full-screen stage (as-vp4t): equal side gutters, heading and doors centered, and the
 * whole composition sized from the viewport height so the doors and shortcuts fit the first screen at laptop sizes. */
.ps-hub .ps-hub-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.ps-hub .ps-hub-inner { box-sizing: border-box; width: min(100% - 2 * var(--sc-gutter, 24px), var(--sc-wide, 2200px)); margin-inline: auto; padding: calc(var(--header, 64px) + clamp(16px, 3svh, 48px)) 0 calc(var(--sc-cue-h) + 2 * var(--sc-cue-gap) + clamp(0px, 1.5svh, 16px)); }
.ps-hub .ps-hub-head { max-width: 920px; margin: 0 auto clamp(16px, 3svh, 40px); text-align: center; }
.ps-hub .ps-hub-head .sc-title { max-width: none; margin-inline: auto; font-size: clamp(34px, min(4.4vw, 7.5svh), 96px); }
.ps-hub .ps-hub-head .sc-intro { max-width: 60ch; margin: clamp(10px, 1.6svh, 20px) auto 0; font-size: clamp(16px, 1.1vw, 20px) !important; }
.ps-hub .pp-hub-grid { max-width: none; margin-inline: auto; }
.ps-hub .pp-hub-grid > .pp-card { min-height: clamp(240px, calc(100svh - 500px), 760px); border-radius: 26px; background: var(--sc-glass, var(--bg-1)); border-color: var(--sc-edge, var(--border-strong)); backdrop-filter: blur(8px); }
html body .products-page.ps-hub a.pp-card[href] { min-height: clamp(240px, calc(100svh - 500px), 760px); }
.ps-hub .pp-card-title { font-size: clamp(28px, 2.8vw, 56px); }
.ps-hub .pp-card-sub { font-size: clamp(15px, 1.1vw, 20px); }
.ps-hub .pp-card-go { width: clamp(44px, 2.8vw, 60px); height: clamp(44px, 2.8vw, 60px); }
.ps-hub .pp-shortcuts { margin-top: clamp(16px, 2.4svh, 32px); }
.ps-hub .pp-shortcuts .pp-subhead { margin-bottom: 10px; text-align: center; }
.ps-hub .pp-shortcut { padding: clamp(12px, 1.4svh, 18px) 20px; }
.ps-hub .pp-card-services .pp-card-visual svg { width: min(88%, 720px); }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .ps-wide .pp-tile-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-stage { aspect-ratio: auto; }
  .ps-stage .ps-shot { display: none; }
  .ps-stage .ps-card { position: relative; right: auto; bottom: auto; width: 100%; }
  .ps-ledger li:nth-child(n) { margin-inline-start: 0; }
  .ps-wide .sc-hero .sc-title { max-width: none; }
  .ps-hub .ps-hub-inner { padding: calc(var(--header, 64px) + 20px) 0 calc(var(--sc-cue-h) + 2 * var(--sc-cue-gap) + 12px); }
  .ps-hub .ps-hub-head .sc-title { font-size: clamp(36px, 10.5vw, 56px); }
  html body .products-page.ps-hub a.pp-card[href], .ps-hub .pp-hub-grid > .pp-card { min-height: clamp(180px, 24svh, 240px); }
}
@media (max-width: 700px) {
  .ps-wide .pp-app-body { padding: 20px; }
  .ps-ledger a { grid-template-columns: auto minmax(0, 1fr); }
  .ps-ledger-go { display: none; }
}

/* ---------- calm / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ps-ledger-go { transition: none; }
  .ps-ledger a:hover .ps-ledger-go, .ps-ledger a:focus-visible .ps-ledger-go { transform: none; }
}
