/* «سیستم‌عامل گیمرخان» (/os/, owner 2026-10-27 23:41 UTC, docs/44-os-packages.md): the title with the router offer beside it, the four
   lifetime packages (metal bar, configs on/off, volume and total for 2 to 4) and the three steps after buying. Store tokens: store.css. */
body[data-page="store"] { --os-bronze:#b9875a; --os-silver:#c3cad4; --os-gold:#d9b44a; --os-titanium:#8f9aa6; --os-soft:#c9cfda; }

.osx-hero { display:grid; grid-template-columns:minmax(0,1fr); gap:28px 40px; align-items:center; margin-top:10px; }
.osx-hero.with-offer { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.osx-intro { min-width:0; }
body[data-page="store"] .osx-hero h1 { margin:0 0 14px; color:#fff; font-size:clamp(34px,5vw,60px); font-weight:900; line-height:1.25; text-wrap:balance; }
.osx-lead { max-width:46ch; margin:0; color:var(--os-soft); font-size:17px; line-height:1.9; }
.osx-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px 18px; margin:28px 0 0; }
.osx-facts div { min-width:0; }
.osx-facts dt { color:var(--st-muted); font-size:13px; }
.osx-facts dd { margin:2px 0 0; color:#fff; font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; }
.osx-facts dd[dir="ltr"] { text-align:end; }
.osx-cta { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }

/* the router offer beside the title: text and the router's render, then the price and the button across the bottom */
.osx-hero .os-offer { grid-template-columns:minmax(0,1fr) 128px; grid-template-areas:"head img" "body img" "tags tags" "act act"; margin:0; }
.osx-hero .os-offer:not(:has(.os-offer-img)) { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "body" "tags" "act"; }
.osx-hero .os-offer-act { margin-top:20px; }

.osx-packs { margin-top:64px; }
.osx-head h2 { margin:0 0 8px; color:#fff; font-size:clamp(24px,3vw,34px); font-weight:900; text-wrap:balance; }
.osx-head p { max-width:72ch; margin:0; color:var(--st-muted); font-size:17px; line-height:1.9; }
.osx-head p + p { margin-top:8px; }
body[data-page="store"] .osx-head p a { color:#F05666; text-decoration:underline; text-underline-offset:4px; }
/* «آموزش نصب» (owner 2026-11-10 18:40 UTC, docs/93): the install guide of an image card, before the purchase. It sits on the account's light
   sheet, like the buyer's own image cards above, so its pictures, chips and code read as they do in «ایمیج‌های من». */
.osx-guide { margin-top:72px; } /* the anchor clears the header by html scroll-padding-top (site-shell.css), docs/12 */
.osx-guide-body { margin-top:24px; padding:clamp(14px,3vw,32px); border-radius:22px; background:var(--bg); color:var(--ink); }
body[data-page="store"] .osx-guide-body a:not([class]) { color:var(--accent); }
.osx-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:24px 0 0; padding:0; list-style:none; }
/* Owner 2026-11-09: the site sells only the OS (one card); beside it, where packages and volume are bought now: the router's own page */
.osx-solo { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.osx-solo:has(.osx-grid.one) { grid-template-columns:minmax(0,420px) minmax(0,1fr); align-items:start; margin-top:24px; }
.osx-grid.one { grid-template-columns:minmax(0,1fr); margin:0; }
.osx-later { min-width:0; padding:24px; border-radius:18px; border:1px solid var(--st-line2); }
.osx-later h3 { margin:0 0 8px; color:#fff; font-size:20px; font-weight:800; text-wrap:balance; }
.osx-later p { margin:0; max-width:56ch; color:var(--st-muted); font-size:16px; line-height:1.9; }
.osx-pack { --metal:var(--st-line2); position:relative; display:flex; flex-direction:column; gap:14px; min-width:0; padding:24px 20px 20px; overflow:hidden;
  border-radius:18px; background:var(--st-card); transition:background-color .2s, transform .2s; }
.osx-pack::before { content:""; position:absolute; inset:0 0 auto; height:3px; background:var(--metal); }
.osx-pack:hover { background:#14171e; }
.osx-bronze { --metal:var(--os-bronze); } .osx-silver { --metal:var(--os-silver); } .osx-gold { --metal:var(--os-gold); } .osx-titanium { --metal:var(--os-titanium); }
.osx-pack.best { outline:1px solid #f0566699; outline-offset:-1px; } /* taste-skill-ignore: the one recommended package */
@supports (grid-template-rows: subgrid) {
  .osx-pack { display:grid; grid-row:span 5; grid-template-rows:subgrid; align-content:start; }
}
.osx-tier { display:flex; align-items:center; gap:8px; margin:0; color:var(--st-muted); font-size:13px; }
.osx-metal { width:8px; height:8px; border-radius:50%; background:var(--metal); }
.osx-tier em { margin-inline-start:auto; color:#F05666; font-style:normal; font-weight:800; }
body[data-page="store"] .osx-pack h3 { margin:0; color:#fff; font-size:26px; font-weight:900; line-height:1.35; }
.osx-pack h3 span { display:block; margin-top:2px; color:var(--st-ink); font-size:15px; font-weight:600; }
.osx-desc { margin:0; color:var(--os-soft); font-size:15px; line-height:1.9; }
.osx-cfg { display:grid; gap:2px; margin:0; padding:6px 12px; border-radius:12px; background:#ffffff08; list-style:none; align-self:start; }
.osx-cfg li { display:grid; grid-template-columns:18px minmax(0,1fr) auto; align-items:center; gap:10px; padding:6px 0; color:var(--st-muted); font-size:15px; }
.osx-cfg .ic { width:18px; height:18px; }
.osx-cfg b { font-size:13px; font-weight:600; }
.osx-cfg li.on { color:#fff; } .osx-cfg li.on .ic { color:#F05666; } .osx-cfg li.on b { color:var(--st-ink); }
.osx-buy { display:flex; flex-direction:column; gap:12px; min-width:0; }
.osx-buy .eco-btn { justify-content:center; width:100%; margin-top:auto; border:0; font-family:inherit; cursor:pointer; }
.osx-buy .eco-btn.line { border:1px solid var(--st-line2); }
.osx-vol { display:grid; gap:6px; }
.osx-vol > span { display:flex; justify-content:space-between; align-items:baseline; gap:8px; color:var(--st-muted); font-size:13px; }
.osx-vol small { color:var(--st-muted); font-size:12px; font-variant-numeric:tabular-nums; opacity:.85; }
.osx-vol .osx-deal { color:#ff9aa4; opacity:1; }
body[data-page="store"] .osx-vol select { width:100%; min-height:46px; box-sizing:border-box; padding:0 14px; padding-inline-end:38px; border-radius:12px;
  border:1px solid var(--st-line2); color:#fff; font:inherit; font-size:16px; font-weight:700; cursor:pointer; color-scheme:dark; appearance:none;
  background:#ffffff06 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a1b1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center; }
.osx-vol select:hover { border-color:#ffffff66; }
.osx-vol select:focus-visible { outline:2px solid #F05666; outline-offset:2px; }
.osx-vol option { background:#111319; color:#eef1f6; }
.osx-sum { display:grid; gap:6px; margin:0; }
.osx-sum div { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.osx-sum dt { color:var(--st-muted); font-size:13px; }
.osx-sum dd { margin:0; color:#fff; font-size:15px; font-variant-numeric:tabular-nums; }
.osx-sum s, .osx-price s { color:var(--st-muted); font-size:13px; }
.osx-sum [hidden] { display:none; }
.osx-sum .off dt, .osx-sum .off dd { color:#F05666; font-weight:700; }
.osx-sum .total { margin-top:4px; padding-top:10px; border-top:1px solid var(--st-line2); } /* taste-skill-ignore: the sum line of a bill */
.osx-sum .total dt { color:#fff; font-weight:700; }
.osx-sum .total dd { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:baseline; gap:2px 10px; }
.osx-sum .total b { font-size:20px; font-weight:900; }
.osx-sum .total s { font-weight:400; }
.osx-price { display:grid; gap:2px; margin:0; }
.osx-price b { color:#fff; font-size:20px; font-weight:900; font-variant-numeric:tabular-nums; }
.osx-price small { color:var(--st-muted); font-size:13px; }
.osx-off { margin:auto 0 0; color:var(--st-muted); font-size:15px; }

.osx-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:14px 24px; margin:36px 0 0; padding:0; list-style:none; counter-reset:os; }
.osx-steps li { counter-increment:os; min-width:0; }
.osx-steps b { display:flex; align-items:center; gap:10px; color:#fff; font-size:17px; }
.osx-steps b::before { content:counter(os, persian); display:inline-grid; place-items:center; width:26px; height:26px; flex:none; border-radius:50%;
  background:#f056661f; color:#F05666; font-size:15px; }
.osx-steps span { display:block; margin-top:6px; padding-inline-start:36px; color:var(--st-muted); font-size:15px; line-height:1.8; }
body[data-page="store"] .acc-sec.keys { margin-top:40px; }
/* the buyer's images on this dark page: the cards are the account's light cards and carry their own ink (v9/account.css); what stands outside
   them takes the page's soft ink, and a link inside them the accent again (the store page makes every link of main inherit) */
body[data-page="store"] .acc-sec.keys > .img-intro, body[data-page="store"] .acc-sec.keys > .imc-wait { color:var(--st-muted); }
body[data-page="store"] .acc-sec.keys .imc-body a:not(.dl-alt), body[data-page="store"] .acc-sec.keys .imc-again a,
body[data-page="store"] .acc-sec.keys .img-rules-box a { color:var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .osx-intro > *, .osx-hero .os-offer { animation:osx-in .6s cubic-bezier(.2,.7,.2,1) both; }
  .osx-intro > :nth-child(2) { animation-delay:.06s; } .osx-intro > :nth-child(3) { animation-delay:.12s; }
  .osx-intro > :nth-child(4) { animation-delay:.18s; } .osx-intro > :nth-child(5) { animation-delay:.24s; } .osx-hero .os-offer { animation-delay:.3s; }
  @keyframes osx-in { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
  .osx-pack:hover { transform:translateY(-3px); }
  .osx-sum .bump { animation:osx-bump .35s ease-out; }
  @keyframes osx-bump { from { color:#F05666; } to { color:#fff; } }
  @supports (animation-timeline: view()) {
    .osx-pack, .osx-steps li { animation:osx-rise linear both; animation-timeline:view(); animation-range:entry 0% entry 40%; }
    @keyframes osx-rise { from { opacity:.2; transform:translateY(24px); } to { opacity:1; transform:none; } }
  }
}
@media (max-width:1100px) {
  .osx-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .osx-hero.with-offer { grid-template-columns:minmax(0,1fr); }
  .osx-solo:has(.osx-grid.one) { grid-template-columns:minmax(0,1fr); }
  .osx-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .osx-grid, .osx-steps { grid-template-columns:minmax(0,1fr); }
  .osx-pack { display:flex; }
  .osx-cta .eco-btn { flex:1 1 100%; justify-content:center; }
  .osx-lead { font-size:16px; }
  .osx-packs, .osx-guide { margin-top:48px; }
  .osx-guide-body { margin-inline:-6px; border-radius:18px; }
  .osx-hero .os-offer { grid-template-columns:minmax(0,1fr) 88px; grid-template-areas:"head img" "body body" "tags tags" "act act"; }
}

/* The brand and model step (owner 2026-11-24 14:42 UTC, shop/_os_models.html) */
.osm { display:grid; gap:14px; margin-top:24px; }
.osm-q { margin:0; padding:18px; border:1px solid var(--st-line2); border-radius:18px; background:var(--st-card); min-width:0; }
.osm-q legend { float:right; width:100%; display:flex; align-items:center; gap:10px; margin:0 0 14px; padding:0; color:#fff; font-size:18px; font-weight:800; }
.osm-n { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--st-line2); font-size:14px; }
.osm-brands { clear:both; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
@media (min-width:720px) { .osm-brands { grid-template-columns:repeat(6,minmax(0,1fr)); } }
.osm-brand, .osm-model { position:relative; display:grid; justify-items:center; gap:4px; padding:14px 6px; border:1.5px solid var(--st-line2);
  border-radius:14px; cursor:pointer; text-align:center; transition:border-color .2s, background-color .2s; }
.osm-brand input, .osm-model input { position:absolute; opacity:0; pointer-events:none; }
.osm-brand b { color:#fff; font-size:16px; }
.osm-brand small { color:var(--st-muted); font-size:12px; }
.osm-brand i { position:absolute; top:-9px; left:8px; padding:1px 8px; border-radius:8px; background:var(--st-line2); color:var(--st-muted); font-size:11px; font-style:normal; }
.osm-brand.soon { opacity:.45; cursor:default; }
.osm-brand:has(input:checked), .osm-model:has(input:checked) { border-color:#f05666; background:#f056661a; }
.osm-brand:has(input:focus-visible), .osm-model:has(input:focus-visible) { outline:2px solid #f05666; outline-offset:2px; }
.osm-models { clear:both; display:flex; flex-wrap:wrap; gap:10px; }
.osm-model { padding:10px 18px; color:#fff; font-weight:700; }
.osm-hint { margin:12px 0 0; color:var(--st-muted); font-size:14px; }
.osm-soon { margin:0; padding:18px; border-radius:18px; border:1px dashed var(--st-line2); color:var(--st-muted); font-size:16px; line-height:1.9; }
