/* Xadia store. A warm, dark base with Xadia's amber and gold as the only accent, glowing.
   Lilita One for the wordmark, headings and prices; Figtree for everything else. Mobile first, 375 px up. */

:root {
  /* palette */
  --bg: #0F0B08;
  --bg-2: #15100C;
  --surface: #1C1510;
  --surface-2: #251C15;
  --surface-3: #2F241B;
  --line: rgba(242, 221, 176, 0.09);
  --line-2: rgba(242, 221, 176, 0.16);
  --text: #F6EDDC;
  --text-2: #CDBB9A;
  --text-3: #9C8B6E;
  --gold: #CFA96F;
  --gold-hi: #F2DDB0;
  --amber: #F2C45A;
  --amber-deep: #D9892F;
  --ember: #BD5B30;
  --ember-hi: #E08A5A;
  --online: #7CD65A;
  --danger: #E0533B;
  --on-amber: #2A1606;
  --glow: rgba(242, 180, 80, 0.28);

  /* type */
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* space and shape */
  --gutter: 16px;
  --max: 1200px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 8px 14px; border-radius: var(--r-sm); background: var(--amber); color: var(--on-amber); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- the wordmark ---------- */

.wordmark {
  display: inline-block;
  font-family: var(--display);
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #FFF4D2 0%, #F7D27A 38%, #E39A3B 70%, #A55A20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 0 #3A1D0C) drop-shadow(0 0 28px var(--glow));
}
.wordmark--sm { font-size: 26px; filter: drop-shadow(0 2px 0 #3A1D0C); }

/* ---------- buttons and chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #FFDC8A 0%, #F2B44A 55%, #DB8A2E 100%);
  color: var(--on-amber);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(120, 52, 10, 0.45), 0 6px 18px rgba(226, 150, 50, 0.22);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease), filter 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { color: var(--on-amber); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(120, 52, 10, 0.45), 0 8px 26px rgba(226, 150, 50, 0.34); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: rgba(255, 244, 222, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { color: var(--text); background: rgba(255, 244, 222, 0.1); box-shadow: inset 0 0 0 1px rgba(242, 221, 176, 0.28); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 16px; }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  filter: none;
  cursor: not-allowed;
  transform: none;
}
.btn.is-busy { cursor: progress; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px;
  background: rgba(255, 244, 222, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color 160ms var(--ease);
}
.icon-btn:hover { background: rgba(255, 244, 222, 0.11); color: var(--text); }
.icon-btn .label { display: none; }
@media (min-width: 900px) { .icon-btn .label { display: inline; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 244, 222, 0.06); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font-size: 13px; font-weight: 600; line-height: 1.4;
}
.chip .icon { width: 14px; height: 14px; color: var(--amber); }
.chip--amber { background: rgba(242, 196, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.35); color: var(--gold-hi); }
.stamp {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  background: rgba(242, 196, 90, 0.14); color: var(--amber);
  font-family: var(--display); font-size: 14px; letter-spacing: 0.02em;
}

/* ---------- top bar ---------- */

.topbar { position: sticky; top: 0; z-index: 50; padding: 10px 0; }
.topbar .wrap { display: flex; }
.bar {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 8px 7px 10px;
  border-radius: 18px;
  background: rgba(21, 16, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.bar-left, .bar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-home { display: none; text-decoration: none; padding: 0 6px 0 4px; }
@media (min-width: 1000px) { .bar-home { display: inline-flex; } }
.ip-pill {
  display: flex; align-items: center; min-width: 0;
  border-radius: 12px; background: rgba(255, 244, 222, 0.05); box-shadow: inset 0 0 0 1px var(--line);
}
.online { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.online .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(124, 214, 90, 0.18); }
.online.is-offline .dot { background: var(--text-3); box-shadow: none; }
.online .long { display: none; }
@media (min-width: 480px) { .online .long { display: inline; } }
.online:not([hidden]) + .copy { border-left: 1px solid var(--line-2); }
.copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; padding: 0 12px;
  border: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; touch-action: manipulation;
  border-radius: 0 12px 12px 0;
}
.copy .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy .copy-hint { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 244, 222, 0.07); color: var(--text-2); font-size: 12px; font-weight: 700; }
.copy .copy-hint .icon { width: 13px; height: 13px; }
.copy:hover .copy-hint { color: var(--text); background: rgba(255, 244, 222, 0.12); }
.copy[data-copied="true"] .copy-hint { color: var(--on-amber); background: var(--amber); }
@media (max-width: 420px) { .copy .copy-hint .txt { display: none; } }
.select-sm {
  min-height: 44px; padding: 0 30px 0 12px; border: 0; border-radius: 12px;
  background: rgba(255, 244, 222, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CDBB9A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font: 600 14px var(--sans); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.select-sm option { background: var(--surface); color: var(--text); }
.currency-pick { display: none; }
@media (min-width: 760px) { .currency-pick { display: block; } }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--amber); color: var(--on-amber);
  font: 700 12px/20px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg-2);
}
.cart-count[data-count="0"] { display: none; }
.head { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; background: var(--surface-3); }
.head--letter { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 16px; color: #1E0F04; background: linear-gradient(180deg, #FFDC8A, #DB8A2E); }
.login-btn .label { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- hero ---------- */

.hero { position: relative; margin-top: -76px; padding: 132px 0 140px; text-align: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #120C08 url("../assets/hero-bg.webp") center 30% / cover no-repeat; transform: scale(1.04); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(242, 170, 70, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(15, 11, 8, 0.55) 0%, rgba(15, 11, 8, 0.35) 40%, rgba(15, 11, 8, 0.85) 82%, var(--bg) 100%);
}
.hero .eyebrow-line { color: var(--gold); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.hero .wordmark { font-size: clamp(84px, 24vw, 196px); }
.hero h1 { margin: 0; line-height: 0.9; }
.hero-lede { margin: 14px auto 0; max-width: 46ch; color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- category tiles ---------- */

.tiles { position: relative; z-index: 2; margin-top: -40px; display: grid; gap: 52px 16px; padding-top: 30px; }
@media (min-width: 900px) { .tiles { grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; } }
.tile {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px; padding: 96px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--tile-bg, var(--surface));
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
  color: var(--text); text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { color: var(--text); transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.35), 0 24px 50px rgba(0, 0, 0, 0.5); }
.tile--ranks { --tile-bg: radial-gradient(120% 120% at 100% 0%, rgba(242, 180, 80, 0.32), transparent 55%), linear-gradient(160deg, #3A2614, #1C1510 70%); }
.tile--plus { --tile-bg: radial-gradient(120% 120% at 100% 0%, rgba(201, 160, 255, 0.24), transparent 55%), linear-gradient(160deg, #2A1C38, #1A1414 70%); }
.tile--glints { --tile-bg: radial-gradient(120% 120% at 100% 0%, rgba(255, 224, 138, 0.26), transparent 55%), linear-gradient(160deg, #33280F, #1A1510 70%); }
.tile-art { position: absolute; left: 20px; top: -34px; width: 132px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); transition: transform 400ms var(--ease); }
.tile--ranks .tile-art { width: 176px; left: 14px; top: -40px; }
.tile--plus .tile-art { width: 120px; top: -30px; }
.tile:hover .tile-art { transform: translateY(-6px); }
.tile h3 { font-size: 34px; }
.tile p { color: var(--text-2); max-width: 32ch; font-size: 15px; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.tile-foot .from { font-family: var(--display); font-size: 22px; color: var(--gold-hi); }
.tile-foot .from small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--text-3); margin-right: 6px; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 244, 222, 0.1); font-weight: 700; font-size: 14px; }
.tile:hover .tile-go { background: var(--amber); color: var(--on-amber); }
@media (max-width: 899px) {
  .tiles { gap: 12px; padding-top: 0; margin-top: -56px; }
  .tile { min-height: 0; padding: 16px 16px 16px 112px; gap: 6px; }
  .tile-art, .tile--ranks .tile-art, .tile--plus .tile-art { left: 12px; top: 16px; width: 88px; }
  .tile--plus .tile-art { width: 80px; left: 16px; }
  .tile h3 { font-size: 26px; }
  .tile p { font-size: 14px; }
  .tile-foot { margin-top: 2px; }
  .tile-go { padding: 6px 10px; font-size: 13px; }
}
.section-head .note { flex-wrap: nowrap; align-items: flex-start; }
.note .icon { margin-top: 3px; }

.trust { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* sale banner and community goal */
.sale { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r); background: linear-gradient(90deg, rgba(189, 91, 48, 0.25), rgba(242, 196, 90, 0.12)); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.3); text-align: center; font-weight: 700; color: var(--gold-hi); }
.goal { margin-top: 18px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 10px; }
.goal-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.goal-top .icon { color: var(--amber); width: 22px; height: 22px; }
.goal-text { font-weight: 600; }
.goal-text b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--amber); }
.goal-bar { height: 14px; border-radius: 999px; background: rgba(255, 244, 222, 0.07); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.goal-fill { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); border-radius: 999px; background: linear-gradient(90deg, #DB8A2E, #F2C45A 70%, #FFF1C9); box-shadow: 0 0 18px var(--glow); transition: transform 600ms var(--ease); }
.goal-progress { font-size: 14px; color: var(--text-2); }

/* ---------- sections ---------- */

.section { padding-top: 88px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(36px, 7vw, 54px); color: var(--text); }
.section-head p { color: var(--text-2); max-width: 60ch; }
.section-head .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr auto; align-items: end; } }
.note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px 10px 14px; border-radius: 14px;
  background: rgba(242, 196, 90, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.22);
  color: var(--gold-hi); font-size: 15px; font-weight: 600;
}
.note .icon { color: var(--amber); }

/* ---------- rank cards ---------- */

.rank-grid { display: grid; gap: 18px; }
.rank-grid[aria-busy="true"] { min-height: 640px; }
@media (min-width: 700px) { .rank-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .rank-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.rank {
  --accent: var(--gold);
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px 18px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)) 0%, var(--surface) 46%);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.rank--top { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.rank-crest { position: relative; display: grid; place-items: center; height: 132px; margin: -4px 0 6px; }
.rank-crest::before { content: ""; position: absolute; inset: 6px 18%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent); filter: blur(6px); }
.rank-crest img { position: relative; width: 176px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.rank-tier { color: var(--text-3); font-size: 13px; font-weight: 700; }
.rank h3 { font-size: 32px; color: var(--text); }
.rank-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.price-was { color: var(--text-3); text-decoration: line-through; font-weight: 600; }
.price-note { font-size: 13px; font-weight: 600; color: var(--text-3); }
.chat {
  margin-top: 14px; padding: 9px 11px;
  border-radius: 10px; background: rgba(0, 0, 0, 0.42); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--text); overflow-wrap: anywhere;
}
.chat .gem { display: inline-block; width: 8px; height: 8px; margin-right: 6px; transform: rotate(45deg) translateY(-1px); border-radius: 1px; }
.chat .bold { text-shadow: 0.06em 0 0 currentColor; }
.chat .shimmer {
  background: linear-gradient(90deg, #FFF6DA 0%, #F2C45A 25%, #FFFFFF 50%, #F2C45A 75%, #FFF6DA 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) { .chat .shimmer { animation: shimmer 3.2s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
.perks li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.perks .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--accent, var(--amber)); }
.perks .lead { color: var(--text); font-weight: 700; }
.perks code, .tagword { font-family: var(--sans); font-weight: 800; color: var(--text); }
.rank details { margin-top: 10px; }
.rank details summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--amber); font-weight: 700; font-size: 14px; min-height: 32px; }
.rank details summary::-webkit-details-marker { display: none; }
.rank details summary .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.rank details[open] summary .icon { transform: rotate(180deg); }
.rank details .perks { margin-top: 8px; }
.rank-actions { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }

/* ---------- compare ---------- */

.compare { margin-top: 56px; }
.compare-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.compare-head h3 { font-size: clamp(28px, 5vw, 40px); }
.legend { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.legend .new { width: 22px; height: 16px; }
.table-card { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); padding: 6px 4px 10px; }
@media (min-width: 768px) { .table-card { padding: 10px 18px 14px; } }
.compare table { width: 100%; border-collapse: collapse; }
.compare thead th { padding: 14px 6px 12px; text-align: center; vertical-align: bottom; width: 15%; }
.compare thead th:first-child { width: auto; }
.compare thead .col-name { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--text); }
.compare thead .col-price { display: block; font-size: 13px; font-weight: 600; color: var(--text-3); }
.compare thead img { width: 66px; margin: 0 auto 6px; }
.compare .group th { padding: 22px 8px 8px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-3); }
.compare tbody tr.row { border-top: 1px solid var(--line); }
.compare tbody th { padding: 11px 8px; text-align: left; font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.3; }
.compare tbody th small { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: var(--text-3); }
.compare td { padding: 10px 4px; text-align: center; font-weight: 700; font-size: 14px; color: var(--text); }
.compare td .icon { width: 18px; height: 18px; vertical-align: middle; }
.compare .yes { color: var(--text-2); }
.compare .no { color: var(--text-3); opacity: 0.6; }
.compare .new { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 26px; padding: 0 8px; border-radius: 8px; background: rgba(242, 196, 90, 0.14); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.45); color: var(--amber); }
.compare .new .icon { color: var(--amber); }
.swatch { display: inline-block; width: 38px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); vertical-align: middle; }
.compare tfoot td, .compare tfoot th { padding: 14px 4px 6px; border-top: 1px solid var(--line-2); }
.compare tfoot th { text-align: left; padding-left: 8px; font-family: var(--display); font-weight: 400; font-size: 18px; }
.compare tfoot td { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--gold-hi); }
@media (max-width: 699px) {
  .compare thead tr, .compare tbody tr.row, .compare tfoot tr { display: grid; grid-template-columns: repeat(4, 1fr); }
  .compare tbody tr.group { display: block; }
  .compare tbody tr.group th { display: block; }
  .compare thead td { display: none; }
  .compare thead th { width: auto; padding: 10px 2px; }
  .compare thead img { width: 52px; }
  .compare thead .col-name { font-size: 14px; }
  .compare tbody th, .compare tfoot th { grid-column: 1 / -1; padding: 12px 8px 2px; }
  .compare td { padding: 6px 2px 10px; }
}

.never {
  margin-top: 28px; display: flex; gap: 14px; align-items: center;
  padding: 18px 20px; border-radius: var(--r);
  background: linear-gradient(90deg, rgba(242, 196, 90, 0.1), rgba(242, 196, 90, 0.03));
  box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.25);
}
.never .icon { width: 28px; height: 28px; color: var(--amber); }
.never p { font-weight: 700; font-size: 17px; color: var(--gold-hi); }

/* ---------- supporters ---------- */

.supporters { margin-top: 40px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.supporters-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.supporters-top h3 { font-size: 26px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(124, 214, 90, 0.12); color: var(--online); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.supporter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.supporter { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.supporter img, .supporter .head--letter { width: 48px; height: 48px; border-radius: 8px; font-size: 26px; }
.supporter b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.supporter span { font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ---------- Xadia+ and Glints ---------- */

.plus-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; padding: 28px 22px;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(201, 160, 255, 0.25), var(--shadow);
}
.plus-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #140E12 url("../assets/hero-bg.webp") center 60% / cover no-repeat; }
.plus-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 12, 24, 0.95) 0%, rgba(30, 18, 40, 0.85) 45%, rgba(20, 12, 24, 0.7) 100%), radial-gradient(60% 80% at 85% 20%, rgba(201, 160, 255, 0.22), transparent 70%); }
@media (min-width: 900px) { .plus-card { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px 44px; } }
.plus-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plus-title img { width: 56px; }
.plus-title h3 { font-size: clamp(44px, 9vw, 64px); }
.plus-card .lede { margin-top: 12px; color: var(--text-2); max-width: 44ch; }
.plus-buy { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.plus-buy .price { font-size: 30px; }
.plus-buy .per { color: var(--text-2); font-weight: 600; }
.plus-list { padding: 20px; border-radius: var(--r); background: rgba(255, 244, 222, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.plus-list .perks { margin: 0; font-size: 15px; color: var(--text); }
.plus-list .perks .icon { color: #C9A0FF; }

.glints { margin-top: 72px; }
.never--tight { margin-top: 16px; padding: 12px 16px; font-weight: 700; color: var(--gold-hi); }
.never--tight .icon { width: 22px; height: 22px; }
.glints-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.glints-head h3 { font-size: clamp(36px, 7vw, 48px); }
.glints-about { color: var(--text-2); max-width: 62ch; }
.packs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .packs { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.pack {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 14px 14px; border-radius: var(--r-lg); text-align: center;
  background: radial-gradient(80% 60% at 50% 22%, rgba(255, 224, 138, 0.16), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.pack img { width: 132px; margin: 6px 0 4px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.pack .bonus { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-size: 12px; font-weight: 800; }
.pack .amount { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--gold-hi); }
.pack .amount small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--text-3); margin-top: 4px; }
.pack .rate { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.pack .btn { margin-top: 8px; }
.glints-notes { margin-top: 14px; display: grid; gap: 4px; color: var(--text-3); font-size: 13.5px; }

/* ---------- how it works ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li { counter-increment: step; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; background: linear-gradient(180deg, #FFDC8A, #DB8A2E); color: var(--on-amber);
  font-family: var(--display); font-size: 22px; box-shadow: 0 6px 16px rgba(226, 150, 50, 0.25);
}
.steps h3 { font-size: 24px; }
.steps p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* ---------- refund policy ---------- */

.policy-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 768px) { .policy-card { padding: 28px; } }
.policy-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .policy-grid { grid-template-columns: repeat(3, 1fr); } }
.policy-grid li { padding: 18px; border-radius: 14px; background: var(--surface-2); }
.policy-grid .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(242, 196, 90, 0.12); color: var(--amber); }
.policy-grid h3 { margin-top: 12px; font-family: var(--sans); font-weight: 800; font-size: 16px; }
.policy-grid p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.warn { margin-top: 12px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(224, 83, 59, 0.1); box-shadow: inset 0 0 0 1px rgba(224, 83, 59, 0.35); color: #F7C2B5; font-size: 14.5px; }
.warn .icon { color: var(--danger); margin-top: 2px; }
.warn b { color: #FFD9CF; }
.policy-legal { margin-top: 14px; color: var(--text-3); font-size: 13.5px; }

/* ---------- questions + join ---------- */

.qa-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .qa-grid { grid-template-columns: 1fr 360px; gap: 24px; } .join { position: sticky; top: 92px; } }
.faq { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); padding: 4px 18px; }
@media (min-width: 768px) { .faq { padding: 6px 26px; } }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--text-3); transition: transform var(--dur) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--amber); }
.faq .answer { padding-bottom: 18px; display: grid; gap: 10px; max-width: 66ch; color: var(--text-2); }
.faq details[open] .answer { animation: reveal var(--dur) var(--ease); }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq b { color: var(--text); }

.join { padding: 22px; border-radius: var(--r-lg); background: radial-gradient(90% 70% at 100% 0%, rgba(242, 180, 80, 0.16), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; gap: 16px; }
.join h2 { font-size: 30px; }
.join dl { margin: 0; display: grid; gap: 14px; }
.join dt { font-weight: 800; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.join dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.join .copy { min-height: 44px; border-radius: 12px; background: rgba(255, 244, 222, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.join-actions { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.join-actions p { font-size: 14px; color: var(--text-2); }

/* ---------- footer ---------- */

.site-foot { margin-top: 110px; padding: 48px 0 32px; background: var(--bg-2); box-shadow: inset 0 1px 0 var(--line); color: var(--text-2); font-size: 14.5px; }
.foot-top { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand p { margin-top: 12px; max-width: 36ch; }
.foot-col h2 { font-family: var(--sans); font-weight: 800; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-col a { color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot-promise { margin-top: 32px; padding: 16px 18px; border-radius: var(--r); background: rgba(242, 196, 90, 0.06); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.18); color: var(--gold-hi); font-weight: 700; }
.foot-legal { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 13px; }

/* ---------- dialogs: log in, cart ---------- */

dialog { color: var(--text); padding: 0; border: 0; }
dialog::backdrop { background: rgba(5, 3, 2, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal { width: min(440px, calc(100% - 32px)); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal[open] { animation: pop 220ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-in { padding: 22px; display: grid; gap: 16px; }
.modal-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.modal-top h2 { font-size: 28px; }
.modal-top p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: rgba(255, 244, 222, 0.06); color: var(--text-2); cursor: pointer; }
.close:hover { color: var(--text); background: rgba(255, 244, 222, 0.11); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100%); background: var(--surface); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5), inset 1px 0 0 var(--line-2); }
.drawer[open] { display: flex; flex-direction: column; animation: slide 240ms var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer .modal-in { flex: 1; overflow: auto; align-content: start; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.line img { width: 44px; }
.line b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; }
.line span { font-size: 13px; color: var(--text-3); font-weight: 600; }
.line .line-right { display: grid; justify-items: end; gap: 4px; }
.line .line-price { font-weight: 800; }
.line .remove { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.line .remove:hover { color: var(--danger); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold-hi); }
.empty { padding: 26px 10px; text-align: center; color: var(--text-2); display: grid; gap: 12px; justify-items: center; }
.empty .icon { width: 34px; height: 34px; color: var(--text-3); }

/* forms */
.field-label { display: block; font-weight: 800; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.field {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 0; border-radius: 12px;
  background: var(--bg-2); color: var(--text); font: 700 17px var(--sans);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 160ms var(--ease);
}
.field::placeholder { color: var(--text-3); font-weight: 600; }
.field:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--amber); }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.hint { margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.error { margin-top: 6px; font-size: 14px; font-weight: 700; color: #FF9C86; }
.error:empty { display: none; }
.notice { padding: 10px 14px; border-radius: 12px; background: rgba(242, 196, 90, 0.08); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.22); color: var(--gold-hi); font-size: 14px; font-weight: 600; }
.notice:empty { display: none; }
.seg-wrap { border: 0; margin: 0; padding: 0; }
.seg-wrap legend { display: block; font-weight: 800; font-size: 14px; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; gap: 1px; padding: 9px 10px; border-radius: 10px; text-align: center; cursor: pointer; transition: background-color 160ms var(--ease); }
.seg b { font-size: 15px; }
.seg small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.seg input:checked + span { background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.5); }
.seg input:checked + span b { color: var(--amber); }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- checkout page ---------- */

.checkout { max-width: 720px; margin: 24px auto 0; }
.checkout h1 { font-size: clamp(38px, 7vw, 52px); }
.steps-bar { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; counter-reset: s; }
.steps-bar li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 244, 222, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-3); font-weight: 700; font-size: 14px; }
.steps-bar li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 244, 222, 0.08); font-size: 12px; }
.steps-bar li[aria-current="step"] { color: var(--text); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.5); background: rgba(242, 196, 90, 0.1); }
.steps-bar li[aria-current="step"]::before { background: var(--amber); color: var(--on-amber); }
.steps-bar li.done { color: var(--text-2); }
.card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); display: grid; gap: 18px; }
@media (min-width: 640px) { .card { padding: 28px; } }
.card h2 { font-size: 26px; }
.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.who .head { width: 40px; height: 40px; border-radius: 8px; font-size: 20px; }
.who b { display: block; font-size: 17px; }
.who span { font-size: 13px; color: var(--text-3); font-weight: 600; }
.who .btn { margin-left: auto; }
.actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .actions { grid-template-columns: auto 1fr; align-items: center; } .actions .btn--ghost { order: -1; } }
.fine { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-3); }

.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-weight: 700; text-decoration: none; }
.back-link::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--gold-hi); }
.checkout-grid { display: grid; gap: 16px; }
.login-inline { display: grid; gap: 16px; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.thanks .thanks-what { color: var(--text); font-weight: 700; font-size: 18px; }
.legends { margin-top: 12px; }
.legends h1 { font-size: clamp(40px, 8vw, 60px); }
.center-card { gap: 14px; }

/* thanks / 404 / legends */
.center-card { max-width: 620px; margin: 40px auto 0; text-align: center; justify-items: center; }
.center-card img { width: 176px; }
.center-card h1 { font-size: clamp(36px, 7vw, 50px); }
.center-card p { color: var(--text-2); max-width: 46ch; }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

/* ---------- motion layer ---------- */

/* ember canvas in the hero, and the shared burst canvas for rewards */
.hero-embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.burst-layer { position: fixed; inset: 0; z-index: 120; width: 100%; height: 100%; pointer-events: none; }
.hero-title-line { margin: 18px auto 0; max-width: 20ch; font-family: var(--display); font-size: clamp(28px, 6vw, 46px); line-height: 1.08; color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); text-wrap: balance; }
.ranks-status { margin-top: 14px; text-align: center; color: var(--text-2); font-size: 14.5px; }
.ranks-status b { color: var(--text); }

/* rank cards: a slight lift and tilt towards the cursor, and a gold edge glow that follows it */
.rank {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.rank::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 95%, white), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.rank.is-hover { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition: transform 200ms var(--ease), box-shadow 400ms var(--ease); }
.rank.is-hover::after { opacity: 1; }
.rank.is-hover .rank-crest img { transform: translateY(-3px) scale(1.03); }
.rank-crest img { transition: transform 400ms var(--ease); }

/* Ascendant: a slow shimmering border that circles the card */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.rank--top::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), rgba(255, 224, 138, 0.15) 0deg, #FFF3C4 40deg, #F2C45A 80deg, rgba(255, 224, 138, 0.15) 150deg, rgba(255, 224, 138, 0.15) 220deg, #F7D27A 280deg, rgba(255, 224, 138, 0.15) 340deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (prefers-reduced-motion: no-preference) { .rank--top::before { animation: spin-border 9s linear infinite; } }
@keyframes spin-border { to { --spin: 360deg; } }

/* the "In your cart" state and the cart badge's pop */
.btn.is-added { background: rgba(124, 214, 90, 0.12); color: #CFF5BE; box-shadow: inset 0 0 0 1px rgba(124, 214, 90, 0.4); }
.btn.is-added:hover { color: #E6FBDD; filter: none; }
.cart-count.pop { animation: badge-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes badge-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* the comparison rows rise in, in sequence */
.reveal-ready tr { opacity: 0; transform: translateY(10px); }
.reveal-ready tr.is-in { opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }

/* the thanks page: the crest scales in with a soft glow */
.reward-crest { position: relative; display: grid; place-items: center; }
.reward-crest::before { content: ""; position: absolute; inset: -10% 5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 196, 90, 0.45), transparent); filter: blur(10px); }
.reward-crest img { position: relative; width: 220px; }
@media (prefers-reduced-motion: no-preference) {
  .reward-crest img { animation: crest-in 640ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both; }
  .reward-crest::before { animation: glow-in 900ms var(--ease) 200ms both; }
}
@keyframes crest-in { from { opacity: 0.3; transform: scale(0.6) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .wordmark { animation: rise 520ms var(--ease) both; }
  .hero h1 { animation: rise 520ms var(--ease) 90ms both; }
  .hero-lede, .hero-actions { animation: rise 520ms var(--ease) 160ms both; }
}
/* never starts fully transparent, so the hero is readable even if animations are paused */
@keyframes rise { from { opacity: 0.85; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* the 14-day cancellation consent on the checkout page: required before paying */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(242, 196, 90, 0.18); font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #CFA96F; cursor: pointer; }
.consent input:focus-visible { outline: 2px solid #F2C45A; outline-offset: 3px; }
.modal-top .why { margin-top: 6px; font-size: 13px; opacity: 0.8; }
.prose { max-width: 760px; margin: 24px auto 0; }
.prose h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose .updated { opacity: 0.7; font-size: 14px; }
