/* =========================================================================
   Uniq Games — design system
   Tokens follow an 8px spatial rhythm and a two-endpoint type scale that is
   interpolated with clamp() rather than breakpoints.
   ========================================================================= */

:root {
  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Neutrals */
  --white: #ffffff;
  --gray-050: #fafafa;
  --gray-100: #f5f5f7;
  --gray-150: #ebebef;
  --gray-200: #8e8f90;
  --gray-300: #3f4142;
  --gray-400: #323232;
  --gray-500: #1e1e1e;

  /* Brand — violet reads as the studio signature, gold as the reward accent.
     Both are lifted from the game's own UiTheme so site and app agree. */
  --primary: #7a2ff2;
  --primary-ink: #5a16c7;
  --primary-wash: #f2ecff;
  --gold: #ffd645;
  --ink: #120f1f;
  --deep: #34004f;

  /* Type scale */
  --title-xl: clamp(2.25rem, 1.35rem + 3.6vw, 3.875rem); /* 36 → 62 */
  --title-lg: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem); /* 30 → 44 */
  --title-md: clamp(1.625rem, 1.5rem + 0.5vw, 1.75rem); /* 26 → 28 */
  --title-sm: clamp(1.375rem, 1.3rem + 0.3vw, 1.5rem); /* 22 → 24 */
  --title-xs: clamp(1.125rem, 1.07rem + 0.22vw, 1.25rem); /* 18 → 20 */
  --body: clamp(1.125rem, 1.07rem + 0.22vw, 1.25rem); /* 18 → 20 */
  --body-sm: 1.125rem; /* 18 */
  --action: 1rem; /* 16 */
  --action-sm: 0.875rem; /* 14 */
  --micro: 0.8125rem; /* 13 */

  /* Space */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-64: 64px;
  --s-80: 80px;
  --s-96: 96px;
  --s-120: 120px;
  --section-y: clamp(64px, 8vw, 144px);

  /* Radius */
  --r-pill: 999px;
  --r-xl: clamp(28px, 4vw, 80px);
  --r-lg: 32px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 1px 2px rgb(18 15 31 / 6%), 0 4px 12px rgb(18 15 31 / 6%);
  --shadow-md: 0 8px 24px rgb(18 15 31 / 10%), 0 2px 6px rgb(18 15 31 / 6%);
  --shadow-lg: 0 24px 64px rgb(18 15 31 / 16%);

  --header-h: 76px;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ========================================================================= *
   Reset
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-24));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--gray-400);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--gray-500);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--s-4);
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/* ========================================================================= *
   Layout primitives
   ========================================================================= */

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container--narrow {
  max-width: 860px;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(48px, 5vw, 80px);
}

.section--wash {
  background: var(--gray-100);
}

.section--ink {
  background: var(--ink);
  color: rgb(255 255 255 / 72%);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

.stack > * + * {
  margin-top: var(--s-24);
}

.skip-link {
  position: absolute;
  left: var(--s-16);
  top: var(--s-16);
  z-index: 200;
  padding: var(--s-12) var(--s-24);
  border-radius: var(--r-pill);
  background: var(--gray-500);
  color: var(--white);
  font-size: var(--action-sm);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ========================================================================= *
   Typography helpers
   ========================================================================= */

.eyebrow {
  display: inline-block;
  font-size: var(--action-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.section--ink .eyebrow {
  color: var(--gold);
}

.title-xl {
  font-size: var(--title-xl);
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.title-lg {
  font-size: var(--title-lg);
  text-transform: uppercase;
}

.title-md {
  font-size: var(--title-md);
}

.title-sm {
  font-size: var(--title-sm);
}

.title-xs {
  font-size: var(--title-xs);
}

.lede {
  font-size: var(--body);
  color: var(--gray-300);
  max-width: var(--measure);
}

.section--ink .lede {
  color: rgb(255 255 255 / 72%);
}

.muted {
  color: var(--gray-200);
  font-size: var(--body-sm);
}

.center {
  text-align: center;
}

.center .lede,
.center .measure {
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

/* ========================================================================= *
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  min-height: 52px;
  padding: var(--s-12) var(--s-32);
  border-radius: var(--r-pill);
  font-size: var(--action);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgb(122 47 242 / 28%);
}

.btn--primary:hover {
  background: var(--primary-ink);
}

.btn--dark {
  background: var(--gray-500);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink);
}

.btn--light {
  background: var(--white);
  color: var(--gray-500);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  border: 2px solid currentColor;
  color: var(--gray-500);
}

.btn--ghost:hover {
  background: var(--gray-500);
  border-color: var(--gray-500);
  color: var(--white);
}

.section--ink .btn--ghost {
  color: var(--white);
}

.section--ink .btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
}

.center .btn-row {
  justify-content: center;
}

/* Store badges are drawn in CSS so there is no dependency on marketing art
   that does not exist yet. */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  padding: 10px var(--s-24) 10px var(--s-16);
  border-radius: var(--r-md);
  background: var(--gray-500);
  color: var(--white);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.store-badge span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.3;
}

.store-badge strong {
  display: block;
  font-size: var(--action);
  font-weight: 700;
  line-height: 1.2;
}

.store-badge[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.section--ink .store-badge {
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 16%);
}

/* ========================================================================= *
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--gray-150);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  flex: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1;
}

/* --- Desktop navigation ------------------------------------------------- */

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
}

.nav__item {
  position: relative;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-12) var(--s-16);
  border-radius: var(--r-pill);
  font-size: var(--action-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link:hover,
.nav__item:focus-within > .nav__link {
  color: var(--gray-500);
  background: var(--gray-100);
}

.nav__link[aria-current="page"] {
  color: var(--primary);
}

.header__actions {
  display: none;
  align-items: center;
  gap: var(--s-12);
}

/* --- Mobile navigation -------------------------------------------------- */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  flex: none;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gray-500);
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  padding: var(--s-24) clamp(20px, 5vw, 40px) var(--s-64);
  background: var(--white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__group + .mobile-nav__group {
  margin-top: var(--s-8);
  border-top: 1px solid var(--gray-150);
  padding-top: var(--s-8);
}

.mobile-nav__title {
  display: block;
  padding: var(--s-16) 0 var(--s-8);
  font-size: var(--action-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-200);
}

.mobile-nav__group a {
  display: block;
  padding: var(--s-12) 0;
  font-size: var(--title-xs);
  font-weight: 700;
  color: var(--gray-500);
}

.mobile-nav__group a[aria-current="page"] {
  color: var(--primary);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: var(--s-32);
}

@media (min-width: 62rem) {
  .nav {
    display: block;
  }

  .header__actions {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }
}

.header__actions .btn {
  min-height: 44px;
  padding-inline: var(--s-24);
  font-size: var(--action-sm);
}

/* ========================================================================= *
   Hero
   ========================================================================= */

.hero {
  padding-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.hero__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: radial-gradient(
      120% 100% at 50% 12%,
      #6b1a9c 0%,
      var(--deep) 44%,
      var(--ink) 100%
    );
  color: var(--white);
  isolation: isolate;
}

.hero__stage::after {
  /* Subtle vignette keeps the copy legible over the art. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    90% 70% at 22% 50%,
    rgb(18 15 31 / 55%) 0%,
    transparent 70%
  );
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: var(--s-32);
  align-items: center;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-24);
  max-width: 560px;
}

.hero__logo {
  width: min(100%, 420px);
}

.hero__title {
  font-size: var(--title-xl);
  color: var(--white);
  text-transform: uppercase;
}

.hero__text {
  font-size: var(--body);
  color: rgb(255 255 255 / 80%);
}

.hero__art {
  justify-self: center;
  width: min(100%, 520px);
  filter: drop-shadow(0 32px 48px rgb(0 0 0 / 45%));
}

.hero__stage .btn--ghost {
  color: var(--white);
}

.hero__stage .btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s-48);
  }

  .hero__art {
    justify-self: end;
  }
}

/* ========================================================================= *
   Split rows — the alternating image/text rhythm
   ========================================================================= */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-24);
}

.split__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--gray-100);
}

.split__media img {
  width: 100%;
}

/* For cut-out art that should float rather than sit in a filled panel. Capping
   the height has to come with width: auto, or the image is squashed to fit —
   and this block must stay after the one above, which sets the same property at
   the same specificity. */
.split__media--bare {
  background: transparent;
  border-radius: 0;
}

.split__media--bare img {
  margin-inline: auto;
  width: auto;
  max-width: 100%;
  max-height: clamp(320px, 40vw, 520px);
}

.split + .split {
  margin-top: var(--section-y);
}

/* The game's own logo used in place of a text heading. */
.wordmark {
  width: min(300px, 68%);
  height: auto;
}

/* Holds a cut-out character over the brand gradient, standing in for the
   photography a studio site would normally use. */
.art-panel {
  display: grid;
  place-items: end center;
  min-height: clamp(320px, 40vw, 480px);
  padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0;
  border-radius: var(--r-xl);
  background: radial-gradient(
    90% 80% at 50% 100%,
    #9c4fd9 0%,
    var(--deep) 55%,
    var(--ink) 100%
  );
}

.art-panel img {
  max-height: clamp(260px, 32vw, 400px);
  width: auto;
  filter: drop-shadow(0 22px 32px rgb(0 0 0 / 40%));
}

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

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__copy {
    order: 2;
  }
}

/* ========================================================================= *
   Section heading block
   ========================================================================= */

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head.center {
  align-items: center;
}

.section-cta {
  margin-top: clamp(32px, 4vw, 48px);
}

.subhead {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.subhead.center {
  align-items: center;
}

.subsection + .subsection {
  margin-top: clamp(56px, 7vw, 96px);
}

/* ========================================================================= *
   Feature / character grids
   ========================================================================= */

.cards {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
}

.cards--2 {
  grid-template-columns: 1fr;
}

.cards--3 {
  grid-template-columns: 1fr;
}

.cards--4 {
  grid-template-columns: 1fr;
}

/* Two-up only once a column is wide enough to set a readable line. */
@media (min-width: 30rem) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 48rem) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--gray-150);
}

.section--wash .card {
  border-color: transparent;
}

.section--ink .card {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 10%);
}

.card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

/* Fixed box so cards with differently proportioned art keep their headings
   on the same baseline across a row. */
.card__figure {
  height: clamp(160px, 20vw, 240px);
  width: 100%;
  object-fit: contain;
}

.card.center {
  align-items: center;
  text-align: center;
}

.card.center img {
  margin-inline: auto;
}

.card.center .card__icon {
  object-position: center;
}

.card p {
  font-size: var(--body-sm);
  color: var(--gray-300);
}

.section--ink .card p {
  color: rgb(255 255 255 / 70%);
}

.section--ink .split__copy p a,
.cta-band a:not(.btn):not(.store-badge) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-band .muted {
  color: rgb(255 255 255 / 55%);
}

/* Character cards keep the monster on a coloured pedestal. */
.character {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--gray-100);
}

.character__stage {
  display: grid;
  place-items: end center;
  min-height: 340px;
  padding: var(--s-32) var(--s-24) 0;
  background: radial-gradient(
    80% 70% at 50% 100%,
    var(--stage, #9c4fd9) 0%,
    color-mix(in srgb, var(--stage, #9c4fd9) 58%, var(--ink)) 100%
  );
}

.character__stage img {
  max-height: 300px;
  width: auto;
  filter: drop-shadow(0 18px 26px rgb(0 0 0 / 35%));
}

.character__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  padding: clamp(24px, 3vw, 32px);
}

.character__role {
  font-size: var(--micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.character__body p {
  font-size: var(--body-sm);
  color: var(--gray-300);
}

/* Swatch strip for the match items. */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  justify-content: center;
}

.swatches img {
  width: clamp(56px, 8vw, 88px);
  filter: drop-shadow(0 10px 16px rgb(18 15 31 / 20%));
}

/* ========================================================================= *
   Phone frame
   ========================================================================= */

.phone {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3b3b46, #16161c);
  box-shadow: var(--shadow-lg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #101015;
  z-index: 2;
}

.phone img {
  width: 100%;
  border-radius: 36px;
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  justify-content: center;
}

.phone-row .phone {
  flex: 1 1 240px;
  max-width: 300px;
}

/* ========================================================================= *
   Article / legal pages
   ========================================================================= */

.page-head {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(28px, 3vw, 48px);
  border-bottom: 1px solid var(--gray-150);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin-bottom: var(--s-16);
  font-size: var(--action-sm);
  color: var(--gray-200);
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--s-8);
  color: var(--gray-150);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.page-head .lede {
  margin-top: var(--s-16);
}

.prose {
  padding-block: clamp(40px, 5vw, 72px);
  font-size: var(--body-sm);
  color: var(--gray-300);
}

/* Vertical rhythm. These pages wrap their body in .container, so the flow rule
   has to reach through that wrapper as well as apply directly. */
:is(.prose, .prose > .container) > * + * {
  margin-top: var(--s-24);
}

:is(.prose, .prose > .container) > * + h2 {
  margin-top: var(--s-64);
}

:is(.prose, .prose > .container) > * + h3 {
  margin-top: var(--s-40);
}

/* A heading leads the block beneath it, so it sits closer to that than to the
   section it follows. */
:is(.prose, .prose > .container) > :is(h2, h3) + * {
  margin-top: var(--s-16);
}

.prose h2 {
  font-size: var(--title-sm);
  scroll-margin-top: calc(var(--header-h) + var(--s-24));
}

.prose h3 {
  font-size: var(--title-xs);
}

.prose ul,
.prose ol {
  padding-left: var(--s-24);
}

.prose li + li {
  margin-top: var(--s-8);
}

.prose a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--gray-500);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--action);
}

.prose th,
.prose td {
  padding: var(--s-12) var(--s-16);
  text-align: left;
  border: 1px solid var(--gray-150);
  vertical-align: top;
}

.prose th {
  background: var(--gray-100);
  color: var(--gray-500);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.callout {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--primary-wash);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  font-size: var(--body-sm);
}

.callout strong {
  color: var(--primary-ink);
}

.toc {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-lg);
  background: var(--gray-100);
}

.toc h2 {
  margin: 0 0 var(--s-12);
  font-size: var(--action-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-200);
}

.toc ol {
  padding-left: var(--s-24);
  font-size: var(--action);
  columns: 2;
  column-gap: var(--s-32);
}

@media (max-width: 40rem) {
  .toc ol {
    columns: 1;
  }
}

.toc a {
  color: var(--gray-300);
  text-decoration: none;
}

.toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ========================================================================= *
   FAQ (native details/summary)
   ========================================================================= */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.faq details {
  border: 1px solid var(--gray-150);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  padding: var(--s-24);
  font-size: var(--title-xs);
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq .faq__answer {
  padding: 0 var(--s-24) var(--s-24);
  font-size: var(--body-sm);
  color: var(--gray-300);
}

.faq .faq__answer > * + * {
  margin-top: var(--s-16);
}

.faq .faq__answer a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================================================= *
   Consent preferences
   ========================================================================= */

.pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-24);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--gray-150);
  border-radius: var(--r-lg);
}

.pref__text {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.pref__text p {
  font-size: var(--action);
  color: var(--gray-300);
}

.switch {
  position: relative;
  flex: none;
  width: 56px;
  height: 32px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--gray-150);
  transition: background-color 0.2s var(--ease);
  pointer-events: none;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}

.switch input:checked + .switch__track {
  background: var(--primary);
}

.switch input:checked + .switch__track::after {
  transform: translateX(24px);
}

.switch input:disabled + .switch__track {
  background: color-mix(in srgb, var(--primary) 40%, var(--gray-150));
  opacity: 0.7;
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.form-status {
  font-size: var(--action);
  font-weight: 700;
  color: var(--primary-ink);
  min-height: 1.5em;
}

/* ========================================================================= *
   Copy-to-clipboard control
   ========================================================================= */

.copy-field {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  flex-wrap: wrap;
}

/* Email addresses have no natural break opportunity. */
.copy-field a {
  overflow-wrap: anywhere;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--s-12);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: var(--micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease);
}

.copy-btn:hover {
  opacity: 1;
}

/* ========================================================================= *
   CTA band
   ========================================================================= */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
  background: radial-gradient(
    110% 130% at 15% 20%,
    #7b2fbd 0%,
    var(--deep) 45%,
    var(--ink) 100%
  );
  color: var(--white);
}

.cta-band__grid {
  display: grid;
  gap: var(--s-32);
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgb(255 255 255 / 78%);
  max-width: 46ch;
}

.cta-band__art {
  justify-self: center;
  width: min(100%, 360px);
  filter: drop-shadow(0 24px 36px rgb(0 0 0 / 45%));
}

@media (min-width: 56rem) {
  .cta-band__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .cta-band__art {
    justify-self: end;
  }
}

/* ========================================================================= *
   Footer
   ========================================================================= */

.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 64%);
  font-size: var(--action);
}

.site-footer a {
  color: rgb(255 255 255 / 64%);
  transition: color 0.16s var(--ease);
}

.site-footer a:hover {
  color: var(--white);
}

.footer__top {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
}

@media (min-width: 48rem) {
  .footer__top {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  align-items: flex-start;
}

.footer__brand .brand__name {
  color: var(--white);
}

.footer__blurb {
  font-size: var(--action);
  color: rgb(255 255 255 / 56%);
  max-width: 34ch;
}

.footer__col h2 {
  margin-bottom: var(--s-16);
  font-size: var(--micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 40%);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  list-style: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  padding-block: var(--s-24);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: var(--action-sm);
  color: rgb(255 255 255 / 44%);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-24);
  list-style: none;
}

/* ========================================================================= *
   404
   ========================================================================= */

.notfound {
  display: grid;
  place-items: center;
  gap: var(--s-32);
  min-height: 62vh;
  padding-block: var(--section-y);
  text-align: center;
}

.notfound img {
  width: min(100%, 240px);
}

/* ========================================================================= *
   Motion
   ========================================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
