/* CenturionRP Store: matches the centurionrp.org launch-site direction.
   Screenshots lead; flat logo gold on near-black; Archivo stretched across its axes. */
/* Archivo variable (width + weight axes), self-hosted. SIL Open Font License: assets/fonts/OFL.txt */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("assets/fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("assets/fonts/archivo-italic-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  --ink: #0a0b0d;
  --ink-2: #111316;
  --ink-3: #191c21;
  --well: #050607;
  --line: rgba(242, 240, 234, .12);
  --line-strong: rgba(242, 240, 234, .22);

  --text: #f2f0ea;
  --text-2: #b9b5ab;
  --text-3: #8d897f;

  --gold: #d9ae4f;
  --gold-hi: #f0cd7a;
  --gold-ink: #17120a;

  --ok: #43d08f;
  --danger: #f08a78;
  --danger-soft: rgba(240, 138, 120, .1);

  --r-chip: 2px;
  --r-control: 3px;
  --r-panel: 4px;

  --shadow-float: 0 18px 40px rgba(0, 0, 0, .5);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --bar-h: 68px;
  /* Top bar plus the sale banner above it (--sale-h is set from JS while a sale is showing). */
  --header-h: calc(var(--bar-h) + var(--sale-h, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: #3a3d44 var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

a { color: var(--gold-hi); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h3 { font-weight: 800; font-stretch: 112%; line-height: 1.2; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .9em;
  background: var(--ink-3);
  padding: 1px 6px;
  border-radius: var(--r-control);
}

.icon {
  width: 18px; height: 18px; flex: none; display: block;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: square; stroke-linejoin: miter;
}
.icon--discord { width: 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Display recipe: 900, italic, 125% width, uppercase, tight leading. */
.display, .section-title {
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
}
.section-title { font-size: clamp(34px, 4.4vw, 60px); line-height: .95; }

.skip {
  position: fixed; left: 8px; top: 8px; z-index: 100;
  padding: 10px 14px; background: var(--gold); color: var(--gold-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; color: var(--gold-ink); }

/* Buttons: solid, uppercase, slightly expanded game-menu commands. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  font: 700 14px/1 var(--font); font-stretch: 112%;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text);
  background: var(--ink-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-control);
  cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--ink-3); border-color: rgba(242, 240, 234, .36); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btn--primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn--primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--gold-ink); }

.btn--light { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--outline { background: rgba(10, 11, 13, .35); border-color: var(--gold); color: var(--gold-hi); }
.btn--outline:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--ink-3); border-color: transparent; color: var(--text); }

.btn--small { min-height: 36px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn--small .icon { width: 16px; height: 16px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; min-height: 52px; font-size: 15px; }

.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-radius: 50%;
  border-color: var(--gold-ink) transparent var(--gold-ink) transparent;
  animation: spin .7s linear infinite;
}
.btn:not(.btn--primary).is-loading::after { border-color: var(--text) transparent var(--text) transparent; }

.text-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--gold-hi); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.text-link .icon { width: 16px; height: 16px; transition: transform .18s var(--ease-out); }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translate(2px, -2px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  background: transparent; border: 0; border-radius: var(--r-control);
  color: var(--text); cursor: pointer;
  transition: background-color .18s var(--ease-out);
}
.icon-btn:hover { background: rgba(242, 240, 234, .1); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Header: transparent over the opening screenshot, solid ink once scrolled. */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 11, 13, .94);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  height: var(--bar-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
/* Sale banner: the first row of the fixed header. */
.sale-bar { background: var(--gold); color: var(--gold-ink); }
.sale-bar__row {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 40px; padding: 6px 48px;
  font-size: 14px; line-height: 1.35;
}
.sale-bar__row + .sale-bar__row { border-top: 1px solid rgba(23, 18, 10, .2); }
.sale-bar__tag {
  flex: none; font-size: 11px; font-weight: 900; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: 5px 7px; border-radius: var(--r-chip); background: var(--gold-ink); color: var(--gold-hi);
}
.sale-bar__text { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; text-align: center; }
.sale-bar__text strong { font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; }
.sale-bar__ends { opacity: .78; }
.sale-bar__ends time { white-space: nowrap; }
.sale-bar__tag { align-self: center; }
.sale-bar__link {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.sale-bar__link:hover { color: inherit; text-decoration-thickness: 2px; }
.sale-bar__close {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: none; border: 0; border-radius: var(--r-control); color: inherit; cursor: pointer;
}
.sale-bar__close:hover { background: rgba(23, 18, 10, .12); }
.sale-bar__close:focus-visible, .sale-bar__link:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand__name {
  font-weight: 900; font-style: italic; font-stretch: 125%;
  text-transform: uppercase; font-size: 17px; letter-spacing: .01em; white-space: nowrap;
}
.brand__tag {
  font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-hi); border-left: 1px solid var(--line-strong); padding-left: 10px;
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.topnav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.topnav a, .navmenu__btn {
  font: 600 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
  transition: color .18s var(--ease-out);
}
.topnav a:hover, .topnav a[aria-current] { color: var(--text); }

.navmenu { position: relative; }
.navmenu__btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 0; border: 0; background: transparent; cursor: pointer;
}
.navmenu__btn:hover, .navmenu__btn[aria-expanded="true"], .navmenu__btn[aria-current] { color: var(--text); }
.navmenu__chev { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.navmenu__btn[aria-expanded="true"] .navmenu__chev { transform: rotate(180deg); }
.navmenu__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; z-index: 30;
  min-width: 260px; max-width: min(340px, calc(100vw - 32px)); max-height: min(420px, 70vh); overflow-y: auto;
  padding: 8px; background: var(--ink-2); border: 1px solid var(--line-strong);
  border-radius: var(--r-panel); box-shadow: var(--shadow-float);
  transform-origin: top center;
  animation: menu-down .26s var(--ease-out);
}
.navmenu__panel.is-closing { animation: menu-up .18s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
@keyframes menu-down {
  from { opacity: 0; clip-path: inset(0 -40px 100% -40px); transform: translateY(-6px); }
  to { opacity: 1; clip-path: inset(-10px -40px -60px -40px); transform: none; }
}
@keyframes menu-up {
  from { opacity: 1; clip-path: inset(-10px -40px -60px -40px); transform: none; }
  to { opacity: 0; clip-path: inset(0 -40px 100% -40px); transform: translateY(-6px); }
}
.navmenu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.navmenu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px; border-radius: var(--r-control);
  font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none;
}
.navmenu__item:hover, .navmenu__item:focus-visible { color: var(--text); background: var(--ink-3); }
.navmenu__item[aria-current] { color: var(--text); background: var(--ink-3); box-shadow: inset 2px 0 0 var(--gold); }
.navmenu__item[aria-current] .navmenu__count { color: var(--gold-hi); }
.navmenu__item--child { padding-left: 26px; font-size: 13.5px; }
.navmenu__count { font-size: 12px; color: var(--text-3); }
.navmenu__empty { display: block; padding: 10px 12px; font-size: 13.5px; color: var(--text-3); }

.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 12px; max-width: 220px;
  font: 700 13px/1 var(--font); font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-2); background: rgba(10, 11, 13, .35);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); cursor: pointer;
  transition: color .18s var(--ease-out), border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.account-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip:hover { color: var(--text); border-color: rgba(242, 240, 234, .36); }
.account-chip.is-linked { color: var(--text); text-transform: none; letter-spacing: .01em; }
.account-chip.is-linked .icon { color: var(--ok); }

/* The header basket is the compact gold outline, like the main site's Store button. */
.basket-btn { min-height: 40px; padding: 0 16px; background: rgba(10, 11, 13, .35); border-color: var(--gold); color: var(--gold-hi); }
.basket-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.basket-btn__count {
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0;
  background: var(--gold); color: var(--gold-ink); border-radius: var(--r-chip);
}
.basket-btn:hover .basket-btn__count { background: var(--gold-ink); color: var(--gold-hi); }
.basket-btn.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.06); } }

.demo-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px; font-size: 13px; line-height: 1.45;
  background: var(--ink-2); color: var(--text);
  border: 1px solid var(--gold); border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
}

/* Page */
.page { flex: 1; width: 100%; outline: none; }

/* Landing hero: one screenshot, one title, two actions, one panel. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(72svh, 720px);
  display: flex; align-items: flex-end;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, .7) 0, rgba(10, 11, 13, 0) 150px),
    linear-gradient(0deg, rgba(10, 11, 13, .97) 0%, rgba(10, 11, 13, .72) 30%, rgba(10, 11, 13, 0) 64%),
    linear-gradient(90deg, rgba(10, 11, 13, .62) 0%, rgba(10, 11, 13, 0) 58%);
}
.hero__inner {
  width: min(1440px, 100%); margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(36px, 6vh, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  align-items: end; gap: 48px;
}
.hero__mark { display: block; width: clamp(56px, 4.6vw, 76px); height: auto; margin-bottom: 22px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.hero h1 { font-size: clamp(38px, 4vw, 60px); }
.hero__accent { color: var(--gold); }
.hero__lede { margin: 22px 0 0; max-width: 56ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: #e2dfd6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__actions:not(:has(> :not([hidden]))) { display: none; }

/* Store call to action set into the hero's right column. */
.hero__cta {
  display: flex; align-items: center; gap: 20px;
  min-height: 132px; padding: 28px 30px;
  background: var(--gold); color: var(--gold-ink);
  border: 1.5px solid var(--gold); border-radius: var(--r-panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
  text-decoration: none;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.hero__cta:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--gold-ink); transform: translateY(-2px); }
.hero__cta:focus-visible { outline-offset: 4px; }
.hero__cta .icon { flex: none; }
.hero__cta-icon { width: 40px; height: 40px; }
.hero__cta-text { display: grid; gap: 6px; flex: 1; min-width: 0; }
.hero__cta-label { font: 800 clamp(22px, 2vw, 28px)/1.05 var(--font); font-stretch: 112%; letter-spacing: .03em; text-transform: uppercase; }
.hero__cta-sub { font-size: 15px; font-weight: 600; opacity: .78; }
.hero__cta-arrow { width: 30px; height: 30px; transition: transform .18s var(--ease-out); }
.hero__cta:hover .hero__cta-arrow { transform: translateX(4px); }

/* Sections */
.section { padding: clamp(88px, 10vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--band { background: var(--ink-2); border-block: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) 0; }
.section--band + .section { border-top: 0; }
.section__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 48px; margin-bottom: 44px;
}
.section__head .text-link { padding-bottom: 6px; }

/* Delivery steps: ruled columns with gold numerals. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 32px 4px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step__num { font-size: 64px; color: var(--gold); margin-bottom: 8px; }
.step h3 { font-size: 22px; }
.step p { margin: 0; color: var(--text-2); max-width: 36ch; }

/* How delivery works: one compact band, four short steps in a row. */
.howto { background: var(--ink-2); border-block: 1px solid var(--line); }
.howto__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 48px; padding-top: 32px; padding-bottom: 32px; }
.howto__title { margin: 0; font-size: 15px; font-weight: 800; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; }
.howto__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
.howto__steps li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.howto__steps strong { color: var(--text); font-weight: 700; }
.howto__num { flex: none; font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 22px; line-height: 1; color: var(--gold); }
@media (max-width: 1080px) {
  .howto__inner { grid-template-columns: minmax(0, 1fr); }
  .howto__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .howto__steps { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Policies: ruled list like the main site's offer section. */
.policies__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(40px, 6vw, 96px); }
.policies__body > :not(.policy) { grid-column: 1 / -1; }
.policies__loading { color: var(--text-3); }
.policy { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.policy h3 { font-size: clamp(21px, 2vw, 26px); margin-bottom: 12px; }
.policy p { margin: 0 0 14px; color: var(--text-2); max-width: 64ch; }
.policy ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 10px; }
.policy li::marker { color: var(--gold); }
.policy strong { color: var(--text); font-weight: 700; }
.policy-draft {
  margin: 0; padding: 10px 14px; border-radius: var(--r-panel);
  background: var(--danger-soft); border: 1px solid rgba(240, 138, 120, .35);
  color: var(--text); font-size: 13.5px;
}
.policy-foot { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
/* Policies is its own page now, so it clears the fixed header itself. */
[data-view="policies"] .policies { padding-top: calc(var(--header-h) + clamp(56px, 7vw, 96px)); }

.section__sub { margin: 14px 0 0; color: var(--text-2); font-size: 17px; max-width: 60ch; }

/* Trust line under the hero. */
.assure {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0; padding: 16px var(--gutter);
  background: var(--ink-2); border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 700; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); text-align: center;
}
.assure .icon { width: 18px; height: 18px; color: var(--gold); flex: none; }
.assure + .section { border-top: 0; }

/* Supporter tier comparison: ruled table, the popular column framed in gold. */
.tiers-scroll { position: relative; /* contains the cells' visually-hidden labels */ overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 18px var(--gutter) 4px; }
.tiers-scroll:focus-visible { outline-offset: -2px; }
.tiers { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.tiers th, .tiers td { padding: 14px 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.tiers tbody th {
  text-align: left; font-weight: 600; color: var(--text); width: 26%;
  position: sticky; left: 0; z-index: 1; background: var(--ink);
}
.tiers thead th { position: relative; padding: 26px 12px 20px; vertical-align: bottom; border-bottom-color: var(--line-strong); }
.tiers thead th .price { justify-content: center; margin-top: 8px; }
.tiers tfoot td { padding: 20px 12px 22px; border-bottom: 0; }
.tiers tfoot .btn { width: 100%; max-width: 150px; }
.tiers tfoot .btn:not(.btn--primary):not(.btn--outline) .icon { color: var(--ok); }
.tiers__corner { border-bottom: 0 !important; background: var(--ink); position: sticky; left: 0; z-index: 1; }
.tiers__name {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  font: 900 italic 22px/1 var(--font); font-stretch: 125%; text-transform: uppercase; color: var(--text);
}
.tiers__name:hover { color: var(--gold-hi); }
.tiers__val { font-weight: 700; color: var(--text); }
.tiers__yes { width: 20px; height: 20px; color: var(--gold); }
.tiers__no { width: 20px; height: 20px; color: var(--text-3); }
.tiers__yes, .tiers__no { display: block; margin-inline: auto; }
.tiers tbody tr:hover > * { background-color: rgba(242, 240, 234, .03); }
.tiers tbody tr:hover > th { background-color: var(--ink-2); }

.tiers .is-popular { background: rgba(217, 174, 79, .07); box-shadow: inset 1.5px 0 var(--gold), inset -1.5px 0 var(--gold); }
.tiers thead .is-popular { box-shadow: inset 1.5px 0 var(--gold), inset -1.5px 0 var(--gold), inset 0 1.5px var(--gold); border-radius: var(--r-panel) var(--r-panel) 0 0; }
.tiers tfoot .is-popular { box-shadow: inset 1.5px 0 var(--gold), inset -1.5px 0 var(--gold), inset 0 -1.5px var(--gold); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.tiers .is-popular .tiers__name { color: var(--gold-hi); }
.tiers__flag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 6px 10px; border-radius: var(--r-chip); white-space: nowrap;
  background: var(--gold); color: var(--gold-ink);
  font-size: 12px; font-weight: 800; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.tiers__note { margin: 20px 0 0; font-size: 14px; color: var(--text-3); max-width: 80ch; }

/* Phones: the table becomes stacked cards (popular tier first). */
.tier-cards { display: none; list-style: none; margin: 0; padding: 0; gap: 16px; }
.tier-card {
  position: relative; display: grid; gap: 18px;
  padding: 24px 20px 20px; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-panel);
}
.tier-card.is-popular { border: 1.5px solid var(--gold); background: linear-gradient(rgba(217, 174, 79, .07), rgba(217, 174, 79, .07)), var(--ink-2); margin-top: 10px; }
.tier-card .tiers__flag { left: 20px; transform: translateY(-50%); }
.tier-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tier-card__head h3 { margin: 0; }
.tier-card .tiers__name { width: auto; text-align: left; font-size: 26px; }
.tier-card .price { justify-content: flex-end; }
.tier-card__perks { list-style: none; margin: 0; padding: 0; display: grid; }
.tier-card__perks li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2);
}
.tier-card__perks .icon { width: 16px; height: 16px; color: var(--gold); }
.tier-card__perks span { flex: 1; }
.tier-card__perks strong { color: var(--text); font-weight: 700; text-align: right; }
.tier-card .btn--block { min-height: 48px; font-size: 14px; }
.tier-card .btn--block:not(.btn--primary):not(.btn--outline) .icon { color: var(--ok); }
@media (max-width: 700px) {
  .tier-cards { display: grid; }
  .tiers-scroll { display: none; }
}

/* Discord as a quiet text link, so the store button is the one thing to press. */
.hero__discord { gap: 8px; font-size: 15px; color: var(--text); }
.hero__discord .icon--discord { width: 20px; height: 20px; color: var(--gold-hi); }
.hero__discord:hover { color: var(--gold-hi); }

/* Closing band */
.closer { position: relative; isolation: isolate; overflow: hidden; min-height: min(70vh, 640px); display: flex; align-items: flex-end; }
.closer__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closer__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(10, 11, 13, .96) 0%, rgba(10, 11, 13, .55) 45%, rgba(10, 11, 13, .2) 100%),
    linear-gradient(90deg, rgba(10, 11, 13, .5), rgba(10, 11, 13, 0) 60%);
}
.closer__inner { padding-top: 120px; padding-bottom: clamp(56px, 8vw, 104px); }
.closer__title { font-size: clamp(46px, 7vw, 96px); }

/* Store view: screenshot band with the delivery panel set into it. */
.intro { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.intro__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.intro__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, .7) 0, rgba(10, 11, 13, 0) 150px),
    linear-gradient(0deg, rgba(10, 11, 13, 1) 0%, rgba(10, 11, 13, .75) 40%, rgba(10, 11, 13, .25) 100%),
    linear-gradient(90deg, rgba(10, 11, 13, .6) 0%, rgba(10, 11, 13, 0) 60%);
}
.intro__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 48px; align-items: end;
  padding-top: calc(var(--header-h) + clamp(72px, 9vw, 128px));
  padding-bottom: 40px;
}
.intro h1 { font-size: clamp(44px, 6vw, 80px); }
.intro p { margin: 18px 0 0; color: #e2dfd6; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; max-width: 52ch; }

.identity {
  padding: 20px 20px 8px;
  background: rgba(13, 14, 17, .9);
  border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.identity__title {
  margin-bottom: 6px;
  font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2);
}
.identity__list { list-style: none; margin: 0; padding: 0; }
.identity__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.identity__row + .identity__row { border-top: 1px solid var(--line); }
.identity__icon {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-control);
  display: grid; place-items: center;
  background: var(--well); border: 1px solid var(--line-strong); color: var(--text-2);
}
.identity__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.identity__name { font-size: 15px; font-weight: 800; font-stretch: 112%; }
.identity__value { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity__row.is-linked .identity__value { color: var(--text); }
.identity__row.is-linked .identity__value::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--ok); vertical-align: 1px;
}
.identity__row.is-linked .identity__icon { color: var(--text); }
.identity__icon--cfx, .identity__row.is-linked .identity__icon--cfx { color: #fff; }
.identity__icon--cfx .icon { width: 18px; height: 18px; }
.identity__row.is-linked .btn { display: none; }
.identity__check { color: var(--ok); }

/* Store layout */
.store {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px; padding-top: 40px; padding-bottom: clamp(88px, 10vw, 140px);
}

.categories { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.categories__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.categories__list li + li .cat-btn { border-top: 1px solid var(--line); }
.cat-btn {
  text-decoration: none;
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px; min-height: 44px;
  font: 700 14px/1.3 var(--font); text-align: left;
  color: var(--text-2); background: transparent;
  border: 0; cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.cat-btn:hover { background: var(--ink-3); color: var(--text); }
.cat-btn[aria-current] { background: var(--ink-2); color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }
.cat-btn[aria-current] .cat-btn__count { color: var(--gold-hi); }
.cat-btn__count { font-size: 12px; font-weight: 600; color: var(--text-3); }
.cat-btn--child { padding-left: 26px; font-size: 13.5px; }

.catalog { min-width: 0; outline: none; }
.catalog__head { margin-bottom: 32px; }
.catalog__head h2 { font-size: clamp(30px, 3.4vw, 48px); }
.catalog__desc { margin: 14px 0 0; color: var(--text-2); max-width: 70ch; font-size: 17px; }
.catalog__desc p { margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
#featured .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* Package card: a screenshot frame over a ruled body. Flat, hairline, no lift. */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); }

.card__media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer;
  background: var(--ink-3);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.035); }
.card__media:focus-visible { outline-offset: -3px; }
.card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--ink-3);
}
.card__placeholder img { width: 48px; height: 48px; filter: grayscale(1); opacity: .3; }
.badges {
  position: absolute; top: 12px; left: 12px; right: 56px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.badge {
  font-size: 12px; font-weight: 800; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: 6px 9px; border-radius: var(--r-chip);
  background: var(--gold); color: var(--gold-ink);
}
/* Second badge beside Sale: same shape, outlined so the two read as a pair. */
.badge--quiet { background: rgba(10, 11, 13, .82); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }

/* Sale cards get a gold top edge so they pick out in the grid. */
.card--sale::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2;
  background: var(--gold); pointer-events: none;
}

.card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 6px; flex: 1; }
.card__title { font-size: 19px; font-weight: 800; font-stretch: 112%; line-height: 1.2; }
.card__count { margin: 0; font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); }
.card__hint {
  position: absolute; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-control);
  font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; color: var(--text);
  background: rgba(10, 11, 13, .88); border: 1px solid var(--line-strong);
  opacity: 0; transform: translate(-50%, calc(-50% + 6px));
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  pointer-events: none;
}
.card__hint .icon { width: 16px; height: 16px; color: var(--gold-hi); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 11, 13, .7) 0%, rgba(10, 11, 13, .2) 60%);
  opacity: 0; transition: opacity .2s var(--ease-out);
}
@media (hover: hover) {
  .card:hover .card__hint, .card__media:focus-visible .card__hint { opacity: 1; transform: translate(-50%, -50%); }
  .card:hover .card__media::after, .card__media:focus-visible::after { opacity: 1; }
}
.card__share {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(10, 11, 13, .78); border: 1px solid var(--line-strong);
}
.card__share:hover { background: rgba(10, 11, 13, .95); border-color: var(--gold); color: var(--gold-hi); }
.card__share .icon { width: 18px; height: 18px; }

/* Hover tooltip for icon buttons (share). Only on devices that hover; phones get the share sheet. */
@media (hover: hover) {
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 5;
    padding: 7px 10px; border-radius: var(--r-control);
    font: 700 12px/1 var(--font); font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase;
    white-space: nowrap; color: var(--text);
    background: rgba(10, 11, 13, .94); border: 1px solid var(--line-strong);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(-4px); pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: none; transition-delay: .15s; }
  /* Don't show the card's "more details" hint on top of the share tooltip. */
  .card:has(.card__share:hover) .card__hint, .card:has(.card__share:hover) .card__media::after { opacity: 0; }
}
.card__summary {
  margin: 0; color: var(--text-2); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { font-size: 13px; color: var(--text-3); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 18px 0; padding: 14px 0 18px; border-top: 1px solid var(--line);
  margin-top: auto;
}
/* One fill per screen: card actions are gold outlines, the basket checkout is the gold fill. */
.card__foot .btn--primary { background: rgba(10, 11, 13, .35); border-color: var(--gold); color: var(--gold-hi); }
.card__foot .btn--primary:hover { background: var(--gold); color: var(--gold-ink); }
.card__foot .btn:not(.btn--primary) .icon { color: var(--ok); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; white-space: nowrap; }
.price__now { font-size: 22px; font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.01em; color: var(--text); }
.price__was {
  font-size: 14px; color: var(--text-3);
  text-decoration: line-through; text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
}
.line__price .price__was, .totals .price__was { margin-right: 8px; font-weight: 500; }
.price .price__was { font-weight: 500; }
.pkg__buy .price__was { font-size: 16px; }
.totals .totals__saved { color: var(--ok); }
.price__period { font-size: 13px; color: var(--text-2); }
.price__save { flex-basis: 100%; font-size: 13px; font-weight: 700; color: var(--ok); }
/* "/mo" hugs the price it belongs to. */
.price__now + .price__period { margin-left: -6px; }

.card--skeleton { min-height: 330px; border-color: transparent; cursor: default; }
.card--skeleton, .skeleton {
  background: linear-gradient(100deg, var(--ink-2) 30%, var(--ink-3) 50%, var(--ink-2) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton--line { display: block; height: 44px; border-radius: var(--r-control); margin-bottom: 4px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.empty, .error-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  background: var(--ink-2); color: var(--text-2);
}
.empty h3, .error-state h3 { color: var(--text); font-size: 20px; }
.empty p, .error-state p { margin: 0; max-width: 60ch; }
.error-state { border-color: rgba(240, 138, 120, .4); background: var(--danger-soft); }
.error-state h3 { display: flex; align-items: center; gap: 8px; }
.error-state .icon { color: var(--danger); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer__inner .brand img { width: 32px; height: 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }
.footer__legal { flex-basis: 100%; margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; max-width: 90ch; }
.footer__todo { color: var(--text-3); font-style: italic; font-size: 14px; }

/* Dialog shared */
dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 6, 8, .78); }
dialog[open]::backdrop { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; } }
dialog h2.display { font-size: clamp(26px, 3vw, 32px); line-height: .95; }

/* Drawer */
.drawer { margin: 0 0 0 auto; height: 100%; width: min(460px, 100%); overflow: hidden; overscroll-behavior: contain; }
.modal { overflow: visible; }
.drawer__panel {
  height: 100%; display: flex; flex-direction: column;
  background: var(--ink-2);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float);
}
.drawer__panel { will-change: transform; backface-visibility: hidden; }
.drawer[open] .drawer__panel { animation: drawer-in .42s var(--ease-out); }
.drawer.is-closing .drawer__panel { animation: drawer-out .3s cubic-bezier(.55, 0, .75, .2) forwards; }
.drawer.is-closing::backdrop, .modal.is-closing::backdrop { animation: fade-out .26s ease-in forwards; }
/* [open] matches the entry rule's specificity so this wins despite coming earlier in the file. */
.modal[open].is-closing .modal__panel { animation: pop-out .18s ease-in forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(6px) scale(.985); } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 18px 24px; border-bottom: 1px solid var(--line);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.drawer__foot:empty { display: none; }

.deliver-to {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin: 12px 0 4px;
  background: var(--well); border: 1px solid var(--line-strong); border-radius: var(--r-control);
  font-size: 14px; color: var(--text-2);
}
.deliver-to strong { color: var(--text); font-weight: 700; }
.deliver-to .icon { color: var(--text); }
.deliver-to--warn { background: var(--danger-soft); border-color: rgba(240, 138, 120, .35); }
.deliver-to--warn .icon { color: var(--danger); }
.deliver-to .btn { margin-left: auto; }

.line-items { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 0;
}
.line + .line { border-top: 1px solid var(--line); }
.line__thumb {
  width: 56px; height: 56px; border-radius: var(--r-control); overflow: hidden;
  background: var(--ink-3); display: grid; place-items: center;
  color: var(--gold); font-weight: 800;
}
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__thumb--empty img { width: 26px; height: 26px; filter: grayscale(1); opacity: .4; }
.line__name { font-size: 15px; font-weight: 800; font-stretch: 112%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line__sub { font-size: 13px; color: var(--text-2); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__price { font-size: 15px; font-weight: 800; font-stretch: 112%; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-control); }
.qty button {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 0; color: var(--text-2); cursor: pointer; border-radius: 2px;
}
.qty button:hover:not(:disabled) { color: var(--text); background: var(--ink-3); }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.qty .icon { width: 14px; height: 14px; }
.qty output { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.line__remove { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: var(--text-2); }
.line__remove:hover { color: var(--danger); text-decoration: underline; }

.code-form { display: flex; gap: 8px; }
.input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--well); border: 1px solid var(--line-strong); border-radius: var(--r-control);
  caret-color: var(--gold);
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240, 205, 122, .35); }

.applied { display: flex; flex-wrap: wrap; gap: 6px; }
.applied__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-chip);
}
.applied__chip button { background: none; border: 0; color: var(--text-2); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 2px; }
.applied__chip button:hover { color: var(--text); background: var(--ink-3); }
.applied__chip .icon { width: 13px; height: 13px; }

.totals { display: grid; gap: 6px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; color: var(--text-2); }
.totals .totals__grand {
  color: var(--text); font-size: 20px; font-weight: 800; font-stretch: 112%;
  padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px;
}
.fine { font-size: 13px; color: var(--text-2); margin: 0; text-align: center; }
.fine--left { text-align: left; margin-bottom: 14px; }

.basket-empty { padding: 56px 8px; text-align: center; color: var(--text-2); }
.basket-empty .icon { width: 32px; height: 32px; color: var(--text-3); margin: 0 auto 10px; }
.basket-empty h3 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
.basket-empty p { margin: 0 0 18px; }

/* Modal */
.modal { margin: auto; width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); }
.modal__panel {
  background: var(--ink-2); border: 1px solid var(--line-strong);
  border-radius: var(--r-panel); box-shadow: var(--shadow-float);
  padding: 22px 24px 24px;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal[open] .modal__panel { animation: pop .32s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal:has(.modal__panel--narrow) { width: min(480px, calc(100% - 32px)); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 -8px 14px 0; }
.modal__head h2 { padding-top: 6px; }
.modal__share { position: relative; margin-left: auto; margin-right: -12px; }
.modal__share:hover { color: var(--gold-hi); }
.modal__lead { margin: 0 0 18px; color: var(--text-2); }
.modal__fine { margin: 14px 0 0; font-size: 13px; color: var(--text-2); }

/* Purchase complete */
.modal--success .modal__panel { padding: 32px 28px 28px; }
.success__badge {
  width: 56px; height: 56px; margin-bottom: 20px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink);
}
.success__badge .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.success__title { font-size: clamp(28px, 4vw, 36px); margin-bottom: 10px; }
.success__order {
  margin: 0 0 22px; padding: 16px 18px 14px;
  background: var(--well); border: 1px solid var(--line-strong); border-radius: var(--r-panel);
}
.success__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.success__order .line { padding: 12px 0; grid-template-columns: 44px minmax(0, 1fr) auto; }
.success__order .line__thumb { width: 44px; height: 44px; }
.success__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px solid var(--line-strong); color: var(--text-2);
}
.success__total strong { font-size: 18px; font-weight: 800; font-stretch: 112%; color: var(--text); }
.success__to { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.success__to .icon { width: 16px; height: 16px; color: #fff; }
.success__to strong { color: var(--text); }
.success__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; }
.success__steps li {
  counter-increment: step; position: relative;
  padding: 14px 0 14px 44px; border-top: 1px solid var(--line); color: var(--text-2);
}
.success__steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1.5px solid var(--gold); border-radius: 50%;
  font-weight: 800; font-size: 14px; color: var(--gold-hi);
}
.success__steps strong { color: var(--text); }
.success__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@media (max-width: 600px) { .success__actions .btn { flex: 1 1 100%; } }

.providers { display: grid; gap: 10px; }
.provider {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 16px;
  font: 700 14px/1 var(--font); font-stretch: 112%; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
  color: var(--text); background: var(--well);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  cursor: pointer; transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.provider:hover { color: var(--text); background: var(--ink-3); border-color: var(--gold); }
.provider .icon { width: 20px; height: 20px; }
.provider__arrow { margin-left: auto; color: var(--gold-hi); }
.provider.is-linked { pointer-events: none; }
.provider.is-blocked { opacity: .5; cursor: not-allowed; }
.provider.is-blocked:hover { background: var(--well); border-color: var(--line-strong); }
.provider__hint, .provider__state { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--text-2); }
.provider__state { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.provider__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.provider-signout { justify-self: start; margin-top: 4px; padding: 0 8px; }

.pkg { display: grid; gap: 20px; }
.pkg__media { aspect-ratio: 16/9; border-radius: var(--r-control); overflow: hidden; background: var(--ink-3); position: relative; }
.pkg__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carousel { position: relative; border-radius: var(--r-control); overflow: hidden; background: var(--ink-3); outline-offset: 3px; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 16 / 9; scroll-snap-align: start; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: rgba(17, 19, 22, .9); color: var(--text); cursor: pointer;
  opacity: 0; transition: opacity .2s var(--ease-out), background-color .18s var(--ease-out);
}
.carousel:hover .carousel__nav, .carousel:focus-within .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: var(--ink-3); }
.carousel__nav--prev { left: 12px; }
.carousel__nav--prev .icon { transform: scaleX(-1); }
.carousel__nav--next { right: 12px; }
.carousel__dots {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 0;
  display: flex; gap: 6px; padding: 7px 8px; border-radius: var(--r-chip); background: rgba(10, 11, 13, .7);
}
.carousel__dots button {
  width: 10px; height: 3px; padding: 0; border: 0; border-radius: 0;
  background: rgba(242, 240, 234, .4); cursor: pointer; transition: width .25s var(--ease-out), background-color .2s;
}
.carousel__dots button[aria-current] { width: 22px; background: var(--gold); }
.carousel__count {
  position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: var(--r-chip);
  font-size: 12px; font-weight: 700;
  background: rgba(10, 11, 13, .8); color: var(--text);
}
@media (hover: none) { .carousel__nav { opacity: 1; } }
.pkg__desc { color: var(--text-2); max-width: 68ch; }
.pkg__desc :is(h1,h2,h3,h4) { color: var(--text); font-size: 17px; font-weight: 800; font-stretch: 112%; margin: 20px 0 6px; }
.pkg__desc p { margin: 0 0 10px; }
.pkg__desc ul { margin: 0 0 10px; padding-left: 20px; }
.pkg__desc li { margin: 3px 0; }
.pkg__desc li::marker { color: var(--gold); }
.pkg__desc img { max-width: 100%; height: auto; border-radius: var(--r-control); }
.pkg__desc hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.pkg__desc strong { color: var(--text); font-weight: 700; }
.pkg__buy {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--line);
  position: sticky; bottom: -24px; background: var(--ink-2); padding-bottom: 4px;
}
.pkg__buy .price__now { font-size: 28px; }

/* Toasts */
.toast-region {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: min(400px, calc(100vw - 32px));
  padding: 12px 14px; font-size: 14px; font-weight: 600;
  background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  box-shadow: var(--shadow-float);
  animation: toast-in .35s var(--ease-out);
}
.toast .icon { color: var(--ok); }
.toast--error { border-color: rgba(240, 138, 120, .4); }
.toast--error .icon { color: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Responsive */
@media (max-width: 1080px) {
  .topnav { gap: 18px; }
  .topbar__inner { gap: 20px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .topnav__link { display: none; }
  .navmenu__panel { position: fixed; top: calc(var(--header-h) - 4px); left: 16px; right: 16px; translate: none; max-width: none; }
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: max(32vh, calc(var(--header-h) + 140px)); gap: 28px; }
  .hero__cta { max-width: 520px; min-height: 108px; padding: 22px 24px; }
  .intro__inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; padding-top: calc(var(--header-h) + 72px); padding-bottom: 28px; }
  .identity { max-width: 520px; }
  .policies__body { grid-template-columns: 1fr; }
  .store { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; }
  .categories {
    position: sticky; top: var(--header-h); z-index: 10; min-width: 0;
    margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter);
    background: rgba(10, 11, 13, .96); border-bottom: 1px solid var(--line);
  }
  .categories__list { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .categories__list::-webkit-scrollbar { display: none; }
  .categories__list li { flex: none; }
  .categories__list li + li .cat-btn { border-top: 1px solid var(--line-strong); }
  .cat-btn {
    border: 1px solid var(--line-strong); border-radius: var(--r-chip);
    min-height: 38px; padding: 8px 12px; white-space: nowrap;
    font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  }
  .cat-btn[aria-current] { box-shadow: none; border-color: var(--gold); background: transparent; color: var(--gold-hi); }
  .cat-btn--child { padding-left: 12px; }
  .skeleton--line { width: 110px; height: 38px; border-radius: var(--r-chip); }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step, .step + .step, .step:nth-child(3) { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; }
  .step > * { grid-column: 2; }
  .step .step__num { grid-column: 1; grid-row: 1 / span 2; font-size: 48px; margin: 0; }
}

@media (max-width: 560px) {
  :root { --bar-h: 60px; }
  .topbar__inner { gap: 12px; }
  .brand__name { display: none; }
  .brand__tag { border-left: 0; padding-left: 0; }
  .topbar .brand { flex: none; }
  .topbar__actions { min-width: 0; }
  .account-chip { min-width: 0; }
  .hero h1, .intro h1 { font-size: 8.6vw; }
  .hero__actions .btn { flex: 1 1 100%; }
  .section__head { margin-bottom: 32px; }
  .tiers { min-width: 720px; }
  .tiers th, .tiers td { padding-inline: 8px; }
  .tiers tbody th { font-size: 14px; width: 132px; }
  .tiers__name { font-size: 18px; }
  .tiers thead .price__now { font-size: 19px; }
  .tiers tfoot .btn { padding: 0 8px; letter-spacing: .03em; }
  .assure { font-size: 12.5px; letter-spacing: .04em; }
  .account-chip { padding: 0 11px; max-width: 150px; }
  .account-chip [data-account-label] { display: none; }
  .account-chip.is-linked [data-account-label] { display: inline; }
  .basket-btn > span:not(.basket-btn__count) { display: none; }
  .basket-btn { padding: 0 12px; }
  .identity { padding: 16px 16px 6px; }
  .modal__panel { padding: 18px 18px 20px; }
  .drawer__head { padding-left: 18px; }
  .drawer__body { padding: 8px 18px; }
  .drawer__foot { padding: 16px 18px 20px; }
  .pkg__buy { flex-wrap: wrap; }
  .pkg__buy .btn { flex: 1; }
  .toast-region { left: 16px; align-items: stretch; }
  .footer__inner .brand__name { display: inline; }
}

/* Phones: logo alone, so it doesn't run into the Categories menu. */
@media (max-width: 420px) {
  .topbar .brand__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* Keep the basket slide and dialog transitions (asked for explicitly), just quicker. */
  .drawer[open] .drawer__panel { animation-duration: .28s !important; }
  .drawer.is-closing .drawer__panel, .drawer.is-closing::backdrop, .modal.is-closing::backdrop { animation-duration: .2s !important; }
  .modal[open] .modal__panel, dialog[open]::backdrop { animation-duration: .2s !important; }
  .modal.is-closing .modal__panel { animation-duration: .15s !important; }
  .navmenu__panel { animation-duration: .2s !important; }
  .navmenu__panel.is-closing { animation-duration: .15s !important; }
  .navmenu__chev { transition-duration: .2s !important; }
  /* Package image zoom on hover, asked for explicitly: keep it smooth. */
  .card__media img { transition-duration: .5s !important; }
  .card__hint, .card__media::after { transition-duration: .2s !important; }
  /* Share tooltip fade, asked for explicitly. */
  [data-tip]::after { transition-duration: .3s !important; }
}

.drawer__panel:focus, .modal__panel:focus { outline: none; }
.card__hint, .card__media .badges { z-index: 1; }
