/* Pricing preview. Shares style.css (pane, frost, rim, glyphs, GlassButton, social discs, badge).
   Cards = the Overview card recipe (thin rim, own frost canvas, faint slab, no bezel), drawn by pricing.js. */
@font-face { font-family: 'MPSRounded'; src: url('assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype'); font-weight: 200 1000; font-display: block; }
:root { --rounded: ui-rounded, 'SF Pro Rounded', 'MPSRounded', system-ui, sans-serif; }

/* the scroller fills the pane: the pane's squircle clip-path (app.js) cuts scrolled content at the rounded edge */
#scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; outline: none;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.35) transparent; }
#col { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }

.sblabel { font-family: 'RammettoOne', sans-serif; font-weight: normal; text-transform: uppercase; color: var(--sbFill); text-shadow: var(--sbShadow); margin: 0; }
#prHeading { display: flex; align-items: center; justify-content: center; width: 100%; height: 70px; padding-top: 12px; line-height: 46px; flex: none; }

/* Liquid Glass titles (glyphs built by pricing.js with the shared LiquidGlassGlyph port) */
.gtitle { position: relative; display: flex; flex-direction: column; align-items: center; font-weight: normal; pointer-events: none; margin: 0; }
.gtitle .tline { display: flex; flex-direction: row; }
.gtitle .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#lead { flex: none; }

/* ---- glass cards ---- */
.pcard { position: relative; flex: none; }
.pcard > .cfrost, .pcard > svg.cbg, .pcard > svg.crim { position: absolute; left: 0; top: 0; pointer-events: none; }
.pcard > svg.cbg, .pcard > svg.crim { overflow: visible; }
.pcard > svg.crim { z-index: 1; }
.pcard > .pin { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.kicker { line-height: 1.2; letter-spacing: 0.02em; }
.ph { font-family: var(--rounded); font-weight: 600; line-height: 1.42; color: var(--phFill); text-shadow: var(--phShadow); margin: 0; }

#launch .pin { gap: 4px; }
#tiers, #extras { display: grid; width: 100%; }
.tier .pin { justify-content: flex-start; }
.price { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; }
.price .per { font-family: var(--rounded); font-weight: 700; color: var(--phFill); text-shadow: var(--phShadow); }
.deal { margin: 0; }
.deal span { display: inline-block; font-family: var(--rounded); font-weight: 800; border-radius: 999px; color: var(--dealFill);
  background: var(--dealBg); box-shadow: inset 0 0 0 1px var(--dealRim); }
.tier ul { list-style: none; padding: 0; width: 100%; display: flex; flex-direction: column; }
.tier li + li { border-top: 1px solid var(--rule); }
.tier .gbtn { width: 100%; flex: none; }

.info .pin { justify-content: flex-start; }
.packs { margin: 0; width: 100%; display: flex; flex-direction: row; justify-content: center; }
.pack { display: flex; flex-direction: column; align-items: center; }
.pack dt { white-space: nowrap; }
.pack dd { margin: 0; }

/* ---- back chip (FAQ / Overview BackChip = DeckControlButtonStyle, diameter 46, leading 16 / top 12) ---- */
.sgs { position: relative; flex: none; isolation: isolate; }
.sgs > svg.sgsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: -1; }
.sgs > .sgsh { position: absolute; inset: 0; pointer-events: none; z-index: -2; }
.sgs > .lit { opacity: 0; transition: opacity 0.25s cubic-bezier(0, 0, 0.58, 1); will-change: opacity; }
.sgs > .sgsh:not(.lit) { transition: opacity 0.25s cubic-bezier(0, 0, 0.58, 1); }
.sgs.pressed > .lit { opacity: 1; }
.sgs.pressed > .sgsh:not(.lit) { opacity: 0; }
.sgs > svg:not(.sgsvg) { transition: color 0.25s cubic-bezier(0, 0, 0.58, 1), filter 0.25s cubic-bezier(0, 0, 0.58, 1); }
.sgs.pressed { color: #fff; }
.sgs.pressed > svg:not(.sgsvg) { filter: drop-shadow(0.56px -1.4px 0 rgba(0,0,0,0.34)); }
#back { position: absolute; left: 16px; top: 12px; width: 46px; height: 46px; border-radius: 23px; display: grid; place-items: center;
  color: var(--chipIcon); text-decoration: none; outline: none; z-index: 5; -webkit-tap-highlight-color: transparent; }
#back svg:not(.sgsvg) { width: 19px; height: 19px; filter: drop-shadow(0.56px -1.4px 0 rgba(0,0,0,0.24)); }
#back:focus-visible > svg.sgsvg:not(.lit) { outline: 2px solid rgba(255,255,255,0.85); outline-offset: 3px; border-radius: 23px; }

#appstore, #social { z-index: 4; }
/* tier card: what's included first; price block + button pinned to the bottom so prices line up across the row */
.tier .price { margin-top: auto; }
.tier .gbtn { margin-top: 4px; }
.annual b { font-weight: 800; }
.annual .save { display: block; font-weight: 600; opacity: 0.85; font-size: 0.9em; }
