/* teamvanilla.dev/store/: the store's own rules, on top of the site's /assets/style.css.
   The pages are written by the dashboard (nitools/backend/lib/store.php, templates in
   nitools/backend/store/templates/); this sheet ships with the site in dev.zip. */

/* the shop runs the full 64rem column; base.css caps a reading column at 46rem */
.page main.shop-main { max-width: none; }

/* --- packs: one card each, thumbnail on top, price and payment buttons below --- */

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.2rem;
  margin: 0 0 1.4rem;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

/* no lift on hover: the card is one big link, and moving it under the cursor
   between press and release loses the click */
@media (hover: hover) {
  .pack:hover { border-color: var(--muted); box-shadow: 0 12px 26px var(--shade-drop); }
}

@media (prefers-reduced-motion: reduce) {
  .pack { transition: none; }
}

/* the thumbnail slot: 16:9, the page's own tint until a picture is dropped in
   (uploaded on the dashboard's Store → Packs, written into the page on publish). */
.pack-art {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  border-bottom: 1px solid var(--rule);
  color: var(--link);
}
.pack-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pack-art svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pack-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .45rem;
  padding: 1.05rem 1.1rem 1.15rem;
}

.pack-body h3 { margin: 0; font-size: 1.08rem; }

/* the card is the link: the name's ::after covers the whole pack, so a click
   anywhere but the buy buttons opens that pack's page */
.pack-name { color: inherit; text-decoration: none; }
.pack-name::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.pack-name:hover { text-decoration: underline; text-underline-offset: .18em; }
.pack-name:focus-visible { outline: none; }
.pack-name:focus-visible::after { outline: 2px solid var(--link); outline-offset: 2px; }
.pack-desc { margin: 0; color: var(--muted); font-size: .94rem; }

.pack-price {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin: auto 0 0;
  padding-top: .6rem;
  color: var(--ink);
}
.pack-price b { font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pack-price span { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* one buy button per row, full width: every card then has the same three rows, so
   the prices line up across the row however long a provider's name is */
.pack-pay { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .4rem; }
.pack-pay .btn { justify-content: center; padding: .45rem .85rem; font-size: .88rem; gap: .4rem; }

/* brand buttons: each provider's own colour, the way the Discord and GitHub
   buttons in base.css carry theirs */
.btn-bmc { background: #ffdd00; color: #0d0c22; }
.btn-bmc:hover { background: #ffe23d; }
.btn-paypal { background: #0070ba; color: #fff; }
.btn-paypal:hover { background: #005ea6; }
.btn-cash { background: #00d632; color: #06281a; }
.btn-cash:hover { background: #1ce84c; }

/* the provider's own mark, from the Simple Icons CDN, recoloured per button */
.pay-ico { display: block; flex: none; width: 18px; height: 18px; }
.pack-pay .pay-ico { width: 16px; height: 16px; }

/* --- payment methods, listed once in full --- */

.pay-list { display: grid; gap: .6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }

.pay-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding: .8rem .9rem;
  background: var(--bg-2);
  border-radius: 12px;
  list-style: none;
}
.pay-list b { flex: 1 1 11rem; color: var(--ink); font-weight: 600; }
.pay-list p { flex: 1 1 15rem; margin: 0; color: var(--muted); font-size: .9rem; }
.pay-list .btn { flex: none; gap: .45rem; padding: .5rem 1rem; font-size: .92rem; }

/* the currency, said once above the packs and once in the footer */
.price-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 560px) {
  .packs { grid-template-columns: minmax(0, 1fr); }
  .pack-price b { font-size: 1.4rem; }
  .pay-list .btn { width: 100%; justify-content: center; }
}

/* ================================================================= the pages */
/* Four pages share one shell (tools/layout.html): full-width bands with a 64rem
   wrap inside, so the page has a rhythm instead of one column of text. */

.band { padding: 3.1rem 0; }
.band-tight { padding: 2.1rem 0; }
.band-tint { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

.band h2 { margin: 0 0 .55rem; padding-top: 0; border-top: 0; font-size: 1.55rem; }
.band .lead { max-width: 42rem; margin: 0 0 1.2rem; color: var(--muted); font-size: 1.04rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin: 0 0 1.4rem; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: .35rem 0 0; }

.btn-big { padding: .62rem 1.35rem; font-size: 1rem; }

/* --- the hero: words on the left, the numbers on a card at the right --- */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  text-align: left;
}
.hero-split h1 { max-width: 22ch; font-size: 2.75rem; letter-spacing: -.02em; }
.hero-split .sub { margin: .9rem 0 0; max-width: 34rem; font-size: 1.08rem; }
.hero-split .buttons { margin: 1.5rem 0 0; }

.hero-card {
  position: static;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.card-label { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: .9rem 0 0; }
.hero-facts div { min-width: 0; }
.hero-facts dt { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.hero-facts dd { margin: .2rem 0 0; color: var(--ink); font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; }
.card-note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; line-height: 1.5; }

/* a page that is not the home page: a short headline over the bands */
.hero-slim { padding-top: 2.9rem; padding-bottom: 1.4rem; text-align: left; }
.hero-slim h1 { font-size: 2.3rem; }
.hero-slim .sub { margin: .7rem 0 0; max-width: 44rem; }

/* --- the four ticks under the hero --- */

.ticks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: .55rem; margin: 0; color: var(--text); font-size: .93rem; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: .18rem; color: var(--link); }

/* --- steps --- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.steps li { margin: 0; padding: 1.15rem 1.15rem 1.25rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; }
.steps .n { display: block; color: var(--link); font: 700 .78rem/1 var(--mono); letter-spacing: .1em; }
.steps h3 { margin: .6rem 0 .3rem; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }

/* --- where the money goes --- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.split > div .btn { margin-top: .3rem; }

.goes { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.goes li { display: flex; align-items: flex-start; gap: .8rem; margin: 0; padding: .95rem 1rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 12px; }
.goes svg { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--link); }
.goes b { display: block; color: var(--ink); font-weight: 600; }
.goes span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* --- the closing call to action --- */

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.35rem 1.5rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 16px; }
.band-tint .cta { background: var(--bg); }
.cta h2 { margin: 0; font-size: 1.3rem; }
.cta p { margin: .3rem 0 0; color: var(--muted); }
.cta .buttons { margin: 0; }

/* --- payment: one card per provider --- */

.pay-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.1rem; margin: 0 0 2.2rem; }
.pay-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.2rem 1.3rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 16px; }
.pay-card .mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .2rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; }
.pay-card .mark img { display: block; width: 24px; height: 24px; }
/* the tile carries the provider's own colour, so a mark drawn in white (PayPal) and one drawn
   in near-black (Buy Me a Coffee, Cash App) are both legible in either theme */
.pay-card .mark.btn-bmc { background: #ffdd00; border-color: transparent; }
.pay-card .mark.btn-paypal { background: #0070ba; border-color: transparent; }
.pay-card .mark.btn-cash { background: #00d632; border-color: transparent; }
.pay-card h3 { margin: 0; font-size: 1.1rem; }
.pay-card p { margin: 0 0 .6rem; color: var(--muted); font-size: .93rem; }
.pay-card .btn { margin-top: auto; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.2rem; margin: 0 0 1rem; }
.two-col h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.two-col ul { margin-bottom: .8rem; }

/* --- the FAQ --- */

.faq { display: grid; gap: .55rem; margin: 0 0 2rem; }
.faq-item { padding: 0 1.05rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 12px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; color: var(--ink); font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .a { padding: 0 0 .9rem; color: var(--muted); font-size: .95rem; }
.faq-item .a p:last-child { margin-bottom: 0; }

/* --- the footer: three columns instead of one line --- */

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; padding-bottom: 1.2rem; }
.foot-brand img { display: block; width: 58px; height: 34px; margin-bottom: .55rem; }
.foot-brand p { margin: 0; max-width: 27rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.foot-grid h2 { margin: 0 0 .45rem; padding: 0; border: 0; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.foot-grid ul { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.foot-grid li { margin: 0; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-line { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }

/* --- narrower screens --- */

@media (max-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-top: 2.3rem; padding-bottom: 2.3rem; }
  .hero-split h1 { font-size: 2.15rem; max-width: none; }
  .ticks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split, .two-col { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

@media (max-width: 720px) {
  .band { padding: 2.3rem 0; }
  .band-tight { padding: 1.6rem 0; }
  .band h2 { font-size: 1.35rem; }
  .hero-slim h1 { font-size: 1.9rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; }
  .faq-item summary { font-size: .97rem; }
}

@media (max-width: 480px) {
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}

/* the pack tag: one line above the name, so the card reads as an amount first */
.pack-tag { margin: 0; color: var(--link); font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.pack-price { border-top: 1px solid var(--rule); margin-top: auto; }

/* --- one pack's own page (tools/pack.html, written by tools/build.js) --- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.5rem; color: var(--muted); font-size: .88rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--muted); opacity: .7; }

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.product-art { display: grid; place-items: center; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-3); border: 1px solid var(--rule); border-radius: 16px; color: var(--link); }
.product-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-art svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.product-buy h1 { margin: .4rem 0 .6rem; font-size: 2.1rem; }
.product-buy .sub { max-width: 32rem; margin: 0 0 1.1rem; color: var(--muted); font-size: 1.02rem; }
.product-price { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1.1rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.product-price b { font-size: 2rem; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.product-price span { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.product-pay { max-width: 22rem; gap: .5rem; }
.product-pay .btn { padding: .58rem 1rem; font-size: .95rem; }
.product-pay .pay-ico { width: 17px; height: 17px; }
.product-buy .note { max-width: 26rem; margin: 1rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.other { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.other li { margin: 0; }
.other a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .95rem 1.05rem; background: var(--bg-2); border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; }
.other a:hover { border-color: var(--muted); }
.other .p { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .product-buy h1 { font-size: 1.8rem; }
}

/* the store's own row under the site menu: Packs, Payment, Before you buy */
.store-nav { background: var(--bg-2); border-bottom: 1px solid var(--rule); }
.store-nav-in { max-width: 64rem; margin: 0 auto; padding: .55rem 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.3rem; font-size: .93rem; }
.store-nav-title { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.store-nav a { color: var(--text); text-decoration: none; }
.store-nav a:hover, .store-nav a[aria-current] { color: var(--ink); text-decoration: underline; }
