/* ============ tokens ============ */
:root {
  --ijc-teal:        #68c8c6;
  --ijc-purple:      #502d7f;
  --ijc-purple-deep: #3a1f5e;
  --ijc-pink:        #ef4f98;
  --ijc-light-purple:#b5b5db;
  --ijc-yellow:      #f1f0a0;
  --ijc-ink:         #14102b;
  --ijc-paper:       #fefce8;

  --bg:        var(--ijc-purple);
  --fg:        var(--ijc-ink);
  --muted:     #6b6b8c;
  --border:    var(--ijc-ink);
  --accent:    var(--ijc-pink);
  --accent-2:  var(--ijc-teal);

  --font-display: 'Bowlby One', 'Lilita One', system-ui, sans-serif;
  --font-body:    'Space Grotesk', -apple-system, system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'JetBrains Mono', monospace;

  --radius-card: 18px;
  --radius-btn:  8px;
  --shadow-ink:  4px 4px 0 var(--ijc-ink);
  --shadow-pink: 6px 6px 0 var(--ijc-pink);
  --shadow-teal: 6px 6px 0 var(--ijc-teal);
}

/* ============ alternate themes ============ */
:root[data-theme="hot-pavement"] {
  --ijc-teal:         #ff9469;
  --ijc-purple:       #b3245c;
  --ijc-purple-deep:  #6a1338;
  --ijc-pink:         #ffb547;
  --ijc-light-purple: #f0bcc7;
  --ijc-yellow:       #fff09b;
  --ijc-ink:          #2c0a1b;
  --ijc-paper:        #fff5ea;
}
:root[data-theme="neon-mall"] {
  --ijc-teal:         #00e5ff;
  --ijc-purple:       #1a0d36;
  --ijc-purple-deep:  #0a0420;
  --ijc-pink:         #ff2d8e;
  --ijc-light-purple: #9a7dd1;
  --ijc-yellow:       #d4ff32;
  --ijc-ink:          #06020f;
  --ijc-paper:        #f2eafe;
}
:root[data-theme="trapper-keeper"] {
  --ijc-teal:         #4ed8bb;
  --ijc-purple:       #5f4dbf;
  --ijc-purple-deep:  #3a2e8a;
  --ijc-pink:         #ff6b9c;
  --ijc-light-purple: #cab8eb;
  --ijc-yellow:       #ffd84a;
  --ijc-ink:          #1d1340;
  --ijc-paper:        #fdf6f1;
}
:root[data-theme="vhs-static"] {
  --ijc-teal:         #7fb6ad;
  --ijc-purple:       #6b4f9e;
  --ijc-purple-deep:  #4a346e;
  --ijc-pink:         #d68ba2;
  --ijc-light-purple: #c2bccc;
  --ijc-yellow:       #e8e0a0;
  --ijc-ink:          #28223a;
  --ijc-paper:        #f3eee3;
}
:root[data-theme="cosmic-bowling"] {
  --ijc-teal:         #4adfff;
  --ijc-purple:       #2b0e63;
  --ijc-purple-deep:  #160630;
  --ijc-pink:         #ff48c4;
  --ijc-light-purple: #b29cf0;
  --ijc-yellow:       #fff05c;
  --ijc-ink:          #f1eaff;
  --ijc-paper:        #1a0f3a;
}
/* Cosmic Bowling inverts surfaces — overrides where ink-on-paper assumes light bg */
:root[data-theme="cosmic-bowling"] body { background: #160630; }
:root[data-theme="cosmic-bowling"] .section--cream { background: #160630; color: #f1eaff; }
:root[data-theme="cosmic-bowling"] .sticker { color: #f1eaff; }
:root[data-theme="cosmic-bowling"] .sticker p { color: #b29cf0; }
:root[data-theme="cosmic-bowling"] .sticker--cream { background: #2b0e63; color: #f1eaff; }
:root[data-theme="cosmic-bowling"] .split .sticker .h-card { color: #f1eaff; }
:root[data-theme="cosmic-bowling"] .table-card { background: #2b0e63; }
:root[data-theme="cosmic-bowling"] .h-section--ink { color: #f1eaff; }
:root[data-theme="cosmic-bowling"] .btn { color: #f1eaff; }
:root[data-theme="cosmic-bowling"] .btn--primary { color: #f1eaff; }

/* Hero, Marketplaces, and Final CTA keep bright colorful backgrounds in this theme —
   the light "ink" loses contrast there. Swap it back to deep purple in those sections. */
:root[data-theme="cosmic-bowling"] .hero,
:root[data-theme="cosmic-bowling"] .section--teal,
:root[data-theme="cosmic-bowling"] .section--pink {
  --ijc-ink: var(--ijc-purple-deep);
}
:root[data-theme="cosmic-bowling"] .hero .btn,
:root[data-theme="cosmic-bowling"] .section--teal .btn,
:root[data-theme="cosmic-bowling"] .section--pink .btn {
  color: var(--ijc-ink);
}
/* Buttons inside the split-audience cards sit on bright yellow/teal/pink fills —
   force their text to deep purple so they don't blend into the button background. */
:root[data-theme="cosmic-bowling"] .sticker--cream .btn {
  color: var(--ijc-purple-deep);
}
/* Every button keeps the light "halo" drop-shadow at rest, then snaps to deep
   purple on hover/active for a contrast pop. Hero/Marketplaces/Pink-CTA buttons
   already get this via their scoped --ijc-ink; this rule extends it to the
   pricing and split-audience buttons too. */
:root[data-theme="cosmic-bowling"] .btn:hover {
  box-shadow: 6px 6px 0 var(--ijc-purple-deep);
}
:root[data-theme="cosmic-bowling"] .btn:active {
  box-shadow: 2px 2px 0 var(--ijc-purple-deep);
}
/* Footer social buttons sit on bright yellow — swap icon color + border to deep purple
   for contrast, but let the drop-shadow stay light-lavender (the surrounding ink). */
:root[data-theme="cosmic-bowling"] .footer .social {
  color: var(--ijc-purple-deep);
  border-color: var(--ijc-purple-deep);
}

/* Theme-switcher toggle button: yellow pill — match the social-button treatment
   (dark text + border, light drop-shadow). Also re-darken the inner swatch ring. */
:root[data-theme="cosmic-bowling"] .theme-switcher__toggle {
  color: var(--ijc-purple-deep);
  border-color: var(--ijc-purple-deep);
}
:root[data-theme="cosmic-bowling"] .theme-switcher__toggle .theme-switcher__swatch {
  border-color: var(--ijc-purple-deep);
}

/* Theme-switcher panel: the muted "hint" and per-option subtitles default to
   --ijc-purple (now dark-on-dark in this theme) — lift them so they read on the
   dark panel. Selected row gets a yellow background, so force its text + subtitle
   back to deep purple for contrast against the fill. */
:root[data-theme="cosmic-bowling"] .theme-switcher__panel header .hint,
:root[data-theme="cosmic-bowling"] .theme-option__name small {
  color: var(--ijc-light-purple);
}
:root[data-theme="cosmic-bowling"] .theme-option[aria-checked="true"],
:root[data-theme="cosmic-bowling"] .theme-option[aria-checked="true"] .theme-option__name small {
  color: var(--ijc-purple-deep);
}

/* Pricing table — selected tab sits on yellow, and the "USD / 1,000 cards" unit
   badge is designed as ink-on-yellow. Both need the dark-purple swap so they
   don't render as light-on-yellow in this theme. */
:root[data-theme="cosmic-bowling"] .tab[aria-selected="true"] {
  color: var(--ijc-purple-deep);
}
:root[data-theme="cosmic-bowling"] .table-card__head .unit {
  --ijc-ink: var(--ijc-purple-deep);
}

/* ============ theme switcher (floating) ============ */
.theme-switcher {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 80;
  font-family: var(--font-body);
}
.theme-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--ijc-yellow);
  color: var(--ijc-ink);
  border: 2px solid var(--ijc-ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ijc-ink);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.theme-switcher__toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ijc-ink);
}
.theme-switcher__toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ijc-ink);
}
.theme-switcher__swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ijc-ink);
  background:
    conic-gradient(
      var(--ijc-teal)   0deg 90deg,
      var(--ijc-pink)   90deg 180deg,
      var(--ijc-yellow) 180deg 270deg,
      var(--ijc-purple) 270deg 360deg
    );
}
.theme-switcher__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  width: clamp(220px, 26vw, 260px);
  background: var(--ijc-paper);
  color: var(--ijc-ink);
  border: 2px solid var(--ijc-ink);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 5px 5px 0 var(--ijc-pink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity 140ms ease, transform 140ms ease;
}
.theme-switcher[data-open="true"] .theme-switcher__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.theme-switcher__panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.25rem 0.5rem 0.5rem;
  border-bottom: 1.5px dashed var(--ijc-ink);
  margin-bottom: 0.35rem;
}
.theme-switcher__panel header .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.theme-switcher__panel header .hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ijc-purple);
  opacity: 0.7;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease, border-color 100ms ease;
}
.theme-option:hover {
  background: rgba(80, 45, 127, 0.08);
}
.theme-option[aria-checked="true"] {
  background: var(--ijc-yellow);
  border-color: var(--ijc-ink);
}
.theme-option__chip {
  flex: 0 0 auto;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--ijc-ink);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  overflow: hidden;
}
.theme-option__chip span { display: block; }
.theme-option__name { flex: 1; line-height: 1.2; }
.theme-option__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--ijc-purple);
  opacity: 0.75;
  text-transform: uppercase;
  margin-top: 1px;
}
@media (max-width: 480px) {
  .theme-switcher__panel { width: min(280px, calc(100vw - 1.5rem)); }
}

/* ============ reset ============ */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw + 0.6rem, 17px);
  line-height: 1.55;
  color: var(--fg);
  background: var(--ijc-purple);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============ scrollbar (Memphis) ============ */
/* Firefox + modern spec */
html {
  scrollbar-color: var(--ijc-pink) var(--ijc-purple-deep);
  scrollbar-width: auto;
}
/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: var(--ijc-purple-deep);
  border-left: 2px solid var(--ijc-ink);
}
::-webkit-scrollbar-thumb {
  background: var(--ijc-pink);
  border: 2px solid var(--ijc-ink);
  border-radius: 8px;
  box-shadow: inset -2px -2px 0 rgba(20, 16, 43, 0.18);
}
::-webkit-scrollbar-thumb:hover { background: var(--ijc-yellow); }
::-webkit-scrollbar-thumb:active { background: var(--ijc-teal); }
::-webkit-scrollbar-corner { background: var(--ijc-purple-deep); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ============ utility ============ */
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.wrap-tight { width: min(960px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.tabular { font-variant-numeric: tabular-nums; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid var(--ijc-ink);
  border-radius: var(--radius-btn);
  background: var(--ijc-yellow);
  color: var(--ijc-ink);
  text-decoration: none;
  box-shadow: var(--shadow-ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ijc-ink);
}
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ijc-ink); }
.btn--primary { background: var(--ijc-pink); color: white; }
.btn--secondary { background: var(--ijc-teal); color: var(--ijc-ink); }
.btn--ghost { background: transparent; color: var(--ijc-ink); }
.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ sticker card ============ */
.sticker {
  background: var(--ijc-yellow);
  border: 2px solid var(--ijc-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ink);
  padding: 1.75rem;
  color: var(--ijc-ink);
}
.sticker--teal   { background: var(--ijc-teal); }
.sticker--pink   { background: var(--ijc-pink); color: white; }
.sticker--purple { background: var(--ijc-purple-deep); color: white; }
.sticker--cream  { background: var(--ijc-paper); }
.sticker--lift   { box-shadow: var(--shadow-pink); }
.sticker p { color: #2c2454; }
.sticker--pink p, .sticker--purple p { color: rgba(255, 255, 255, 0.88); }

/* ============ layered display headline ============ */
.layered {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ijc-yellow);
  -webkit-text-stroke: 2px var(--ijc-ink);
  paint-order: stroke fill;
  text-shadow:
    -3px 3px 0 var(--ijc-teal),
    -6px 6px 0 var(--ijc-pink);
  line-height: 1;
  letter-spacing: 0.005em;
}
.layered--big {
  font-size: clamp(56px, 11vw, 140px);
}
.layered--md {
  font-size: clamp(42px, 7vw, 84px);
  text-shadow:
    -2px 2px 0 var(--ijc-teal),
    -4px 4px 0 var(--ijc-pink);
}

/* ============ headings ============ */
h1,h2,h3,h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.h-section {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--ijc-yellow);
}
.h-section--ink { color: var(--ijc-ink); }
.h-card { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }

/* ============ memphis decoration ============ */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco svg { display: block; }
.section { isolation: isolate; }
.section > .wrap,
.section > .wrap-tight { position: relative; z-index: 2; }
.hero__inner { position: relative; z-index: 3; }
.grid-floor { z-index: 1; }
@media (max-width: 720px) {
  .deco { opacity: 0.55; transform: scale(0.78); }
  .deco--center, .deco--hide-mobile { display: none; }
}
@media (max-width: 480px) {
  .deco { opacity: 0.45; transform: scale(0.65); }
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(58, 31, 94, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ijc-ink);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 0.55rem 0;
  gap: 1rem;
}
.nav__brand {
  display: inline-flex; align-items: center; text-decoration: none; justify-self: start;
  transition: opacity 220ms ease, transform 220ms ease;
}
.nav__brand img { height: 38px; width: auto; display: block; }
.nav__links { display: none; gap: 1.75rem; justify-self: center; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ijc-light-purple);
  text-decoration: none; letter-spacing: 0.02em;
}
.nav__links a:hover { color: var(--ijc-yellow); }
.nav__cta {
  display: none;
  justify-self: end;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.nav__cta.is-visible { opacity: 1; transform: translateX(0); pointer-events: auto; }
@media (min-width: 800px) {
  .nav__inner { grid-template-columns: 1fr auto 1fr; }
  .nav__links { display: flex; }
  .nav__cta   { display: inline-flex; }
  .nav__brand { opacity: 0; transform: translateX(-8px); pointer-events: none; }
  .nav__brand.is-visible { opacity: 1; transform: translateX(0); pointer-events: auto; }
}

/* ============ hero ============ */
.hero {
  position: relative;
  background: linear-gradient(to bottom,
    var(--ijc-teal)   0%,
    var(--ijc-teal)   72%,
    #f9a8c5           84%,
    var(--ijc-pink)   94%,
    var(--ijc-purple) 100%);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(6rem, 11vw, 9.5rem);
  border-bottom: 2px solid var(--ijc-ink);
  isolation: isolate;
}
/* 6px yellow accent stripe pinned just above the ink border */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--ijc-yellow);
  z-index: 4;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
}
.hero__kicker {
  display: inline-block;
  background: var(--ijc-ink);
  color: var(--ijc-yellow);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero__logo {
  width: min(720px, 90%);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(6px 6px 0 rgba(20, 16, 43, 0.18));
  position: relative;
}
.hero__tagline {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--ijc-ink);
  max-width: 36ch;
  margin: 0 auto 2rem;
  text-wrap: balance;
  position: relative;
  text-shadow: 3px 3px 0 var(--ijc-yellow);
}
.hero__ctas {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
/* hero sun — rises behind content, center bisects the horizon transition */
.hero__sun {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: clamp(340px, 46vw, 540px);
  aspect-ratio: 1;
  background: var(--ijc-yellow);
  border: 2px solid var(--ijc-ink);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    0 0 0 6px rgba(254, 252, 232, 0.28),
    0 0 50px rgba(241, 240, 160, 0.55);
  overflow: hidden;
}
.hero__sun::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    var(--ijc-yellow) 0%,
    #ffd97a 35%,
    var(--ijc-pink) 80%,
    #d83b87 100%);
}
.hero__sun::after {
  /* dashed venetian-blind strip on the lower half */
  content: "";
  position: absolute;
  inset: 60% 0 0 0;
  background: repeating-linear-gradient(
    to bottom,
    var(--ijc-yellow) 0 7px,
    transparent 7px 14px
  );
  opacity: 0.85;
}
@media (max-width: 540px) {
  .hero__sun {
    width: 78vw;
    top: 60%;
    opacity: 0.92;
  }
}

/* synthwave perspective floor — pinned to bottom of hero,
   sits behind the sun and content but above the gradient background */
.grid-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(120px, 16vw, 200px);
  background: linear-gradient(to top,
    rgba(58, 31, 94, 0.40) 0%,
    rgba(80, 45, 127, 0.22) 55%,
    transparent 100%);
  transform-origin: bottom center;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.grid-floor::before,
.grid-floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.grid-floor::before {
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(50% - 1px),
      rgba(241, 240, 160, 0.55) calc(50% - 1px),
      rgba(241, 240, 160, 0.55) calc(50% + 1px),
      transparent calc(50% + 1px)
    );
  background-size: 7% 100%;
  mask-image: linear-gradient(to top, white 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, white 30%, transparent 100%);
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom center;
}
.grid-floor::after {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(100% - 2px),
      rgba(241, 240, 160, 0.7) calc(100% - 2px),
      rgba(241, 240, 160, 0.7) 100%
    );
  background-size: 100% 18%;
  mask-image: linear-gradient(to top, white 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, white 0%, transparent 70%);
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom center;
}
/* ============ pricing ============ */
.section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 2px solid var(--ijc-ink);
  overflow: hidden;
}
.section--purple { background: var(--ijc-purple); color: white; }
.section--teal   { background: var(--ijc-teal); color: var(--ijc-ink); }
.section--cream  { background: var(--ijc-paper); color: var(--ijc-ink); }
.section--pink   { background: var(--ijc-pink); color: white; }
.split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.split .sticker { display: flex; flex-direction: column; gap: 0.85rem; }
.split .sticker p { margin: 0; }
.split .sticker .h-card { color: var(--ijc-ink); }

.pricing-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.pricing-head .eyebrow { color: var(--ijc-pink); }
.pricing-head .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.25rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--ijc-ink);
  border-bottom: 2px solid var(--ijc-ink);
  border-radius: 12px 12px 0 0;
  background: var(--ijc-light-purple);
  color: var(--ijc-ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  top: 2px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--ijc-yellow);
  border-bottom-color: var(--ijc-yellow);
  z-index: 3;
}
.tab .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--ijc-ink);
}
.tab .dot--mtg { background: #c84a3a; }
.tab .dot--pkm { background: #ffcb05; }
.tab .dot--ygo { background: #6c2bd9; }

.table-card {
  background: var(--ijc-yellow);
  border: 2px solid var(--ijc-ink);
  border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-ink);
  overflow: hidden;
}
.table-card__head {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ijc-ink);
}
.table-card__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.005em;
}
.table-card__head .unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ijc-ink);
  color: var(--ijc-yellow);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px dashed rgba(20, 16, 43, 0.25);
}
.price-row:last-child { border-bottom: 0; }
.price-row__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.price-row__label strong { font-weight: 700; font-size: 16px; }
.price-row__label small { color: var(--muted); font-size: 13px; }
.price-row__value {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-row__value.dim {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.price-row__value.dim::before { content: ""; }

.table-card__foot {
  padding: 1.1rem 1.5rem;
  background: var(--ijc-paper);
  border-top: 2px solid var(--ijc-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.table-card__foot p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 50ch;
}

@media (max-width: 540px) {
  .table-card__head {
    padding: 1rem 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .table-card__head h3 { font-size: 26px; }
  .price-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.85rem 1.15rem;
  }
  .price-row__value {
    justify-self: start;
    font-size: 20px;
  }
  .price-row__value.dim { font-size: 13px; }
  .table-card__foot {
    padding: 1rem 1.15rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .table-card__foot .btn { width: 100%; justify-content: center; }
  .tab { padding: 0.65rem 0.85rem; font-size: 13px; }
}

/* Stack the three pricing panels in one grid cell — the tallest panel defines
   the section height, so switching tabs no longer shrinks the section and the
   absolute-positioned decorations stay put. */
.panels-stack { display: grid; }
.panels-stack > .panel {
  grid-column: 1;
  grid-row: 1;
  display: block; /* override [hidden]'s display:none so the panel still occupies the grid cell */
  visibility: hidden;
}
.panels-stack > .panel.is-active { visibility: visible; }

/* ============ marketplace grid ============ */
.market-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .market-grid { grid-template-columns: repeat(3, 1fr); }
}
.market {
  background: var(--ijc-yellow);
  border: 2px solid var(--ijc-ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ink);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.market__art {
  height: 30px;
  margin: -1.5rem -1.5rem 0;
  background: var(--ijc-teal);
  border-bottom: 2px solid var(--ijc-ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.market__art img {
  max-height: 100%;
  width: auto;
  object-fit: cover;
}
.market__art--purple { background: var(--ijc-purple-deep); }
.market__art--pink { background: var(--ijc-pink); }
.market__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.market h3 {
  font-size: 20px;
  margin: -0.5rem 0 0;
}
.market p { margin: 0; font-size: 14px; color: var(--muted); }
.market a.market__cta {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--ijc-ink);
  border-bottom: 2px solid var(--ijc-pink);
  align-self: flex-start;
  padding-bottom: 2px;
}
.market a.market__cta:hover { color: var(--ijc-pink); }

/* ============ about ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 220px 1fr; }
}
.about-mark {
  display: flex;
  justify-content: center;
}
.about-mark img {
  width: 200px;
  height: 200px;
  transform: rotate(-6deg);
  filter: drop-shadow(6px 6px 0 var(--ijc-pink));
}
.about-copy h2 {
  color: var(--ijc-yellow);
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 0.75rem;
}
.about-copy p {
  color: var(--ijc-light-purple);
  font-size: 17px;
  line-height: 1.65;
  max-width: 60ch;
}
.about-copy p + p { margin-top: 1rem; }
.about-copy em { color: var(--ijc-yellow); font-style: normal; font-weight: 700; }

/* ============ final cta ============ */
.cta-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-banner .layered { color: var(--ijc-yellow); }
.cta-banner p {
  max-width: 50ch;
  font-size: 18px;
  font-weight: 500;
  color: white;
  margin: 0;
}

/* ============ footer ============ */
.footer {
  background: var(--ijc-purple-deep);
  padding: 3rem 0 2rem;
  color: var(--ijc-light-purple);
  font-size: 14px;
}
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.footer__brand img { height: 56px; width: auto; display: block; }
.footer__brand .sub { color: var(--ijc-light-purple); font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ijc-yellow);
  border: 2px solid var(--ijc-ink);
  border-radius: 10px;
  color: var(--ijc-ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ijc-ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.social:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ijc-pink);
  background: var(--ijc-pink);
  color: white;
}
.social svg { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid rgba(181, 181, 219, 0.2);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ijc-light-purple);
}
@media (min-width: 720px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============ memphis decoration positions ============ */
.deco--1 { top: 8%; left: 4%; }
.deco--2 { top: 14%; right: 6%; }
.deco--3 { bottom: 30%; left: 7%; }
.deco--4 { top: 22%; right: 12%; }
.deco--5 { bottom: 20%; right: 9%; }
.deco--6 { top: 9%; left: 22%; }
.deco--7 { top: 30%; left: 50%; transform: translateX(-50%); }
.deco--8 { bottom: 36%; right: 28%; }

@media (max-width: 720px) {
  .deco--2, .deco--4, .deco--6, .deco--8 { display: none; }
}

/* ============ accessibility ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 3px solid var(--ijc-pink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
