/* Store mode (storemode.js): inside the App Store / Google Play app nothing sells or points to a purchase. Everything here only applies under html.store-app. */
[data-store-only]{ display:none; }
html.store-app [data-store-only]{ display:block; }
html.store-app [data-web-only]{ display:none !important; }

/* Full screen inside the store app. The web view covers the whole screen (viewport-fit=cover, set by storemode.js), so the page's own background
   reaches the top and bottom edges, and the app itself sits inside the safe area: nothing is hidden by the clock, the notch or the home bar. */
html.store-app #app{ position:fixed; top:var(--sat, env(safe-area-inset-top, 0px)); bottom:var(--sab, env(safe-area-inset-bottom, 0px)); left:0; right:0; height:auto; }
/* a few rules inside the app already added the bottom safe area themselves; the container now does it, so they must not add it twice */
html.store-app .su-savebar{ padding-bottom:12px; }
html.store-app .cl-sheet{ padding-bottom:20px; }
html.store-app .cl-toast{ bottom:22px; }
html.store-app .sx-rest{ bottom:16px; }
/* full-screen layers outside #app keep their content clear of the clock and the home bar */
html.store-app #consentGate, html.store-app #recoveryGate{ padding-top:calc(16px + var(--sat, env(safe-area-inset-top, 0px))); padding-bottom:calc(16px + var(--sab, env(safe-area-inset-bottom, 0px))); }
html.store-app .lp-modal{ padding-top:calc(20px + var(--sat, env(safe-area-inset-top, 0px))); padding-bottom:calc(20px + var(--sab, env(safe-area-inset-bottom, 0px))); }

/* the plans panel becomes a calm "no active plan yet" screen: only the gate, the account link and any error stay */
html.store-app #pricingPanel .settings-body > *:not(#storeGate):not(#pricingAccountLink):not(#pricingError){ display:none !important; }
#storeGate{ max-width:420px; margin:8px auto 0; padding-bottom:28px; text-align:center; }
.sg-mark{ display:block; width:64px; height:64px; margin:0 auto 10px; object-fit:contain; }
.sg-who{ display:inline-block; min-height:0; margin:0 auto 14px; padding:5px 12px; border:1px solid var(--line, rgba(128,128,128,.3)); border-radius:999px; font-size:12.5px; color:var(--text-dim, inherit); }
.sg-who:empty{ display:none; }
.sg-title{ margin:0 0 8px; font-size:24px; line-height:1.2; font-weight:600; color:var(--text, inherit); text-wrap:balance; }
.store-gate-text{ margin:0 auto 20px; max-width:34ch; font-size:15.5px; line-height:1.5; color:var(--text-dim, inherit); }
.sg-steps{ list-style:none; margin:0 0 20px; padding:6px 14px; text-align:left; background:var(--panel, transparent); border:1px solid var(--line, rgba(128,128,128,.3)); border-radius:14px; }
.sg-steps li{ display:flex; align-items:center; gap:12px; padding:11px 0; font-size:14.5px; line-height:1.4; color:var(--text, inherit); }
.sg-steps li + li{ border-top:1px solid var(--line, rgba(128,128,128,.25)); }
.sg-n{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:var(--accent-tint, rgba(244,176,74,.1)); border:1px solid var(--accent-line, rgba(244,176,74,.4)); color:var(--gold, #F4B04A); font-size:13px; font-weight:600; }
#storeGate .sg-check{ display:block; width:100%; padding:15px 14px; border:none; border-radius:12px; background:var(--gold, #F4B04A); color:var(--ink, #16110A); font-size:15.5px; font-weight:700; cursor:pointer; }
#storeGate .sg-check:disabled{ opacity:.6; cursor:default; }
.store-gate-note{ min-height:20px; margin-top:10px; }
.sg-incl{ margin-top:22px; padding-top:20px; border-top:1px solid var(--line, rgba(128,128,128,.25)); text-align:left; }
.sg-incl-head{ margin-bottom:10px; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim, inherit); }
.sg-incl ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.sg-incl li{ position:relative; padding-left:26px; font-size:14px; line-height:1.4; color:var(--text, inherit); }
.sg-incl li::before{ content:''; position:absolute; left:3px; top:3px; width:6px; height:11px; border:solid var(--gold, #F4B04A); border-width:0 2px 2px 0; transform:rotate(40deg); }
.sg-help{ margin-top:22px; font-size:13px; color:var(--text-dim, inherit); }
.sg-help a{ color:var(--text, inherit); text-underline-offset:2px; }
.store-gate-legal{ margin-top:18px; font-size:12.5px; color:var(--text-dim, inherit); }
.store-gate-legal a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
