/* =============================================================
   splatvik — monarch edition
   -------------------------------------------------------------
   Same house palette as the main site: near-black grounds,
   hairline borders at 7% white, one white accent. No top bar —
   the page opens on the wordmark and goes straight to the shelf.

   Colour exists only in build-status dots and payment brand
   marks, so it always means something.
   ============================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
/* Sora carries every heading — the confident display face Monarch gives its
   Ondo, self-hosted so the CSP stays font-src 'self'. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/sora-700.woff2") format("woff2");
}

:root {
  --bg: #030303;          /* Monarch's ground: effectively pure black */
  --card: #070707;        /* cards sit a hair above the ground */
  --panel: #0b0b0b;       /* the card that is meant to stand out */

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-hi: rgba(255, 255, 255, 0.22);
  --tint: rgba(255, 255, 255, 0.02);
  --tint-2: rgba(255, 255, 255, 0.05);

  --fg: #fafafa;
  --muted: #a1a1a1;
  --dim: rgba(255, 255, 255, 0.45);
  --faint: rgba(255, 255, 255, 0.3);

  /* status is the only colour on the page */
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --r: 14px;
  --r-sm: 9px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1550px; padding: 0 24px; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  text-align: center;
  padding: 96px 22px 68px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -70% 50% auto;
  width: 940px;
  height: 660px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07), transparent 62%);
  pointer-events: none;
  animation: herodrift 16s ease-in-out infinite alternate;
}
@keyframes herodrift {
  from { transform: translateX(-50%) scale(1); opacity: 0.75; }
  to { transform: translateX(-50%) scale(1.14); opacity: 1; }
}
.hero > * { position: relative; }

.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(38px, 8.5vw, 74px);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  margin: 0;
  padding-bottom: 0.34em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
/* nowrap: the letters are separate inline-blocks for the entrance animation,
   which would otherwise let the word break mid-way on a narrow screen */
.wordmark .wm-rest { display: inline-block; white-space: nowrap; }
/* the snake mark, standing in for the S, with Monarch's glare sweep and glow */
.wordmark .mark {
  position: relative;
  display: inline-block;
  width: 1.75em;
  height: 1.75em;
  margin: -0.4em -0.12em -0.28em -0.18em;
  vertical-align: -0.5em;
  animation: markglow 3.4s ease-in-out infinite;
}
.wordmark .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* a blurred white halo, pulsing — Monarch parks an amber blob here */
.wordmark .mark::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 66%);
  filter: blur(22px);
  animation: markpulse 3.4s ease-in-out infinite;
  pointer-events: none;
}
/* the glare: a diagonal highlight sweeping across, clipped to the snake shape */
.wordmark .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.85) 52%,
    transparent 70%
  );
  background-size: 250% 100%;
  -webkit-mask: url("../media/logo-mark.png") center / contain no-repeat;
  mask: url("../media/logo-mark.png") center / contain no-repeat;
  mix-blend-mode: screen;
  animation: markshine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes markshine {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}
@keyframes markpulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.45; }
}
@keyframes markglow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.28)); }
}

.hero p.sub {
  margin: 26px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.divider i {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hi));
}
.divider i + i { background: linear-gradient(90deg, var(--line-hi), transparent); }
.divider span {
  width: 5px;
  height: 5px;
  background: var(--dim);
  transform: rotate(45deg);
}

.heroacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------------- section heads ---------------- */

.section { padding: 54px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head p {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- product grid ----------------
   Card anatomy copied from monarch.clinic: 32px padding, an 8px radius on a
   hairline border, a 200px square tile with a 2px border, centred type and
   centred bullets, a plain text link at the foot. The only motion is a
   diagonal wash fading in over half a second and the border lifting — no
   translate, no scale. Our own plan chips sit between the bullets and the
   link, which is the one thing Monarch's cards do not carry.
   -------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 32px;
}
/* The shelf is flex, not grid, so a trailing short row centres too — a grid
   only centres the track set as a whole and would strand the last two left. */
.products .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.products .card { width: 100%; }
@media (min-width: 720px) {
  .products .card { width: calc((100% - 32px) / 2); max-width: 340px; }
}
@media (min-width: 1040px) {
  .products .card { width: 340px; }
}

.card {
  position: relative;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.5s ease-out;
}
.card:hover { border-color: var(--line-hi); }

.card .wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.055) 0%, transparent 50%, transparent 100%);
  pointer-events: none;
}
.card:hover .wash { opacity: 1; }

.cardin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px;
  color: inherit;
}

/* the empty ring Monarch parks in the corner, carrying our build status */
.card .statusdot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease-out;
}
.card .statusdot i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.is-undetected i { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.55); animation: dotpulse 2.6s ease-in-out infinite; }
@keyframes dotpulse {
  50% { box-shadow: 0 0 15px rgba(52, 211, 153, 0.95); }
}
.is-maintenance i, .is-updating i { background: var(--warn); box-shadow: 0 0 8px rgba(251, 191, 36, 0.55); }
.is-detected i, .is-offline i { background: var(--bad); box-shadow: 0 0 8px rgba(248, 113, 113, 0.55); }

/* one flat square image; tools/tiles.py bakes the art and the mark together */
.tile {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto 24px;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  transition: border-color 0.3s ease-out;
}
.card:hover .tile { border-color: var(--line-2); }
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .tile img { transform: scale(1.06); }
.tile .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }

.card h3 {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.card .kicker {
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.bullets { list-style: none; margin: 0 0 20px; padding: 0; }
.bullets li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: rgba(250, 250, 250, 0.8);
}
.bullets .bd {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
}

/* plan chips — buying happens right here */
.plans {
  display: flex;
  gap: 6px;
  margin: 10px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
}
.plan {
  position: relative;
  flex: 1;
  padding: 8px 4px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.plan .amt { display: block; margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--fg); }
.plan:hover { background: var(--tint-2); color: var(--fg); }
.plan[aria-pressed="true"] { background: var(--tint-2); border-color: var(--line-2); color: var(--fg); }
.plan .tag {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 20px;
  background: var(--fg);
  color: #0b0b0b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--tint);
  color: var(--fg);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: var(--line-hi); background: var(--tint-2); }
.btn-block { width: 100%; }
.btn-white { border-color: transparent; background: var(--fg); color: #0b0b0b; }
.btn-white:hover { background: #fff; border-color: transparent; }

/* a gloss sweeping across on hover — dark over the white button, light over
   the ghost ones, so it reads on both */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}
.btn-white::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent); }
.btn:hover::after { transform: translateX(130%) skewX(-18deg); }
.btn-sm { height: 38px; font-size: 13px; }
.btn svg { flex: none; }

.card .cta { margin-top: auto; }

/* a private build carries no price chip — it says so instead */
.card .privtag {
  align-self: center;
  margin-top: auto;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card .privtag + .more { margin-top: 12px; }

/* the foot of the card is a plain link, not a second button */
.card .more {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.card .more:hover { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

/* ---------------- detail page ---------------- */

.detail-hero {
  position: relative;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.detail-hero .bgart {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  filter: grayscale(1) blur(2px);
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.55), var(--bg));
}
.detail-hero .wrap { position: relative; z-index: 2; }

.crumbs { color: var(--faint); font-size: 12.5px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--fg); }

.dhead { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.dhead .tile { margin: 0; width: 124px; max-width: 124px; }
.dhead h1 { margin: 0; font-family: var(--display); font-size: clamp(28px, 5vw, 40px); font-weight: 600; letter-spacing: 0.01em; }
.dhead .tagline { margin: 8px 0 0; color: var(--muted); max-width: 540px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 600;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
  padding: 42px 0;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.panel + .panel { margin-top: 18px; }
.panel h3 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec tr + tr td { border-top: 1px solid var(--line-soft); }
.spec td { padding: 9px 0; vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 46%; }
.spec td:last-child { text-align: right; font-weight: 600; }

.buybox { position: sticky; top: 22px; }
.buybox .panel:first-child { background: var(--panel); }
.buybox .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.buybox .price b { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.buybox .price span { color: var(--muted); font-size: 13px; }
.buybox .plans { flex-direction: column; }
.buybox .plan { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; text-align: left; }
.buybox .plan .amt { margin: 0; }
.buybox .plan .tag { position: static; transform: none; margin-left: 8px; }
.buybox .note { margin: 12px 0 0; color: var(--faint); font-size: 12px; line-height: 1.5; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.shot { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #0a0a0a; }
.shot img, .shot video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot .cap { padding: 11px 13px; }
.shot .cap b { display: block; font-size: 13px; }
.shot .cap span { color: var(--faint); font-size: 12px; }

.reqlist { list-style: none; margin: 0; padding: 0; }
.reqlist li { display: flex; gap: 9px; padding: 6px 0; color: var(--muted); font-size: 13.5px; }
.reqlist li svg { flex: none; margin-top: 3px; color: var(--dim); }

.backrow { display: flex; justify-content: center; padding: 8px 0 10px; }

/* ---------------- spotlight ----------------
   One game at a time under the shelf. Deliberately compact — a glance, not a
   second product page: the shot is small and the copy sits beside it. */

.spotlight { padding: 42px 0; }
.spotlight .section-head { margin-bottom: 26px; }

.spot { position: relative; max-width: 880px; margin: 0 auto; }
.spot-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.spot-slide.is-on { display: grid; animation: spotin 0.4s var(--ease); }
@keyframes spotin { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 780px) { .spot-slide { grid-template-columns: 1fr; gap: 16px; padding: 14px; } }

.spot-shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #060606;
}
.spot-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.spot-slide:hover .spot-shot img { transform: scale(1.035); }

.spot-copy h3 {
  margin: 9px 0 4px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.spot-tag { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.spot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10.5px;
  font-weight: 600;
}
.spot-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.spot-copy .reqlist li { padding: 3px 0; font-size: 12.5px; }
.spot-acts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.spot-acts .btn { height: 34px; font-size: 12.5px; padding: 0 14px; }
.spot-from { color: var(--faint); font-size: 12px; }

.spot-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.spot-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.spot-dot.is-on { width: 20px; border-radius: 4px; background: var(--dim); }

/* ---------------- legal / help sheets ---------------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sheetin 0.2s var(--ease);
}
.sheet[hidden] { display: none; }
@keyframes sheetin { from { opacity: 0; } }
@keyframes sheetcard { from { opacity: 0; transform: translateY(12px) scale(0.985); } }

.sheet-card {
  animation: sheetcard 0.3s var(--ease);
  position: relative;
  width: min(620px, 100%);
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 30px 30px 8px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.sheet-x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.sheet-x:hover { color: var(--fg); background: var(--tint-2); }

.sheet-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}
.sheet-title svg { color: var(--dim); }
.sheet-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.sheet-rule i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi)); }
.sheet-rule i + i { background: linear-gradient(90deg, var(--line-hi), transparent); }
.sheet-rule span { width: 5px; height: 5px; background: var(--dim); transform: rotate(45deg); }

.sheet-body { overflow-y: auto; padding: 12px 4px 24px; }
.sheet-body section + section { margin-top: 22px; }
.sheet-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.sheet-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sheet-body ul { margin: 10px 0 0; padding-left: 18px; }
.sheet-body li { color: var(--muted); font-size: 14px; line-height: 1.6; padding: 3px 0; }
.sheet-body::-webkit-scrollbar { width: 8px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

/* ---------------- footer ---------------- */

.footer { border-top: 1px solid var(--line-soft); padding: 46px 0 30px; margin-top: 40px; }

.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 30px; }
.fcol h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--dim);
}
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { padding: 3px 0; color: var(--faint); font-size: 13px; }
.fcol a { color: var(--muted); }
.fcol a:hover { color: var(--fg); }

.fbottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12.5px;
}
.pays { display: flex; align-items: center; gap: 10px; }
.pays img, .pays svg { opacity: 0.8; }

/* ---------------- motion layer ----------------
   Everything here is opt-in: the styles hang off a class the script adds, so a
   page with no JS (or a reader that asks for less motion) shows plain content
   rather than blank space waiting for an observer that never fires. */

/* things rise into place as they scroll in, one after another */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* a soft light follows the cursor across a card */
.card .glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 68%);
  pointer-events: none;
}
.card:hover .glow { opacity: 1; }

/* how far down the page you are — the only fixed element on the site */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.85));
  pointer-events: none;
}

/* ---------------- motion layer, part two ---------------- */

/* film grain: a tiny SVG noise tile drifting over everything, which stops the
   large black fields from banding and gives the page some texture */
.grain {
  position: fixed;
  inset: -150%;
  z-index: 125;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(9) infinite;
  will-change: transform;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-4%, -3%); }
  20%  { transform: translate(-8%, 2%); }
  30%  { transform: translate(3%, -6%); }
  40%  { transform: translate(-2%, 6%); }
  50%  { transform: translate(-6%, 3%); }
  60%  { transform: translate(5%, 0); }
  70%  { transform: translate(0, 5%); }
  80%  { transform: translate(-5%, -5%); }
  90%  { transform: translate(4%, 4%); }
  100% { transform: translate(0, 0); }
}

/* the page settles in rather than snapping on */
.js-motion body { animation: pagein 0.5s var(--ease); }
@keyframes pagein { from { opacity: 0; } }

/* the wordmark spells itself out */
.js-motion .wm-rest span {
  display: inline-block;
  animation: letterin 0.6s var(--ease) backwards;
  animation-delay: var(--ld, 0ms);
}
@keyframes letterin {
  from { opacity: 0; transform: translateY(0.22em); filter: blur(5px); }
}

/* cards lean a few degrees toward the cursor */
.products .grid { perspective: 1400px; }
.js-motion .card {
  transform-style: preserve-3d;
  transition: border-color 0.5s ease-out, transform 0.45s var(--ease);
}
.js-motion .card.is-tilting { transition: border-color 0.5s ease-out, transform 0.12s linear; }

/* buttons drift toward the pointer, then spring back */
.js-motion .btn { transition: transform 0.35s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease); }
.js-motion .btn.is-pulled { transition: transform 0.1s linear, border-color 0.2s var(--ease), background 0.2s var(--ease); }

/* the price flicks over when the term changes */
.price b.is-swap { animation: priceswap 0.34s var(--ease); }
@keyframes priceswap {
  0%   { opacity: 1; transform: translateY(0); filter: blur(0); }
  45%  { opacity: 0; transform: translateY(-0.22em); filter: blur(4px); }
  55%  { opacity: 0; transform: translateY(0.22em); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* the art behind a product page header drifts as you scroll */
.detail-hero .bgart { will-change: transform; }

/* keyboard users get the same care as the cursor does */
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  .progress, .grain { display: none; }
  .js-motion .wm-rest span { opacity: 1; transform: none; filter: none; }
}
