/* =====================================================================
   DESIGN SYSTEM (MemeTrader waitlist pages)
   Adapted from the supplied design kit: purple accents, no external font, motion that
   respects reduced-motion, and nothing that hides content unless design-system.js runs.
   Loaded on every page of the waitlist site (web/pages/lib/context.ts waitlistKit).
   Visual styles only: tokens, buttons, animations, and pricing parts.
   No page layout. Every class is prefixed ds- so it won't clash with
   your existing site. Pair with design-system.js for the interactive bits.
   ===================================================================== */


/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --ds-bg: #07050f;
  --ds-bg-alt: #0c0a15;
  --ds-card: #13111c;
  --ds-inset: #0c0a14;
  --ds-raised: #181524;
  --ds-pop: #1d1a2b;
  --ds-groove: #08060e;

  /* brand (swap these four to rebrand) */
  --ds-green: #a78bfa;
  --ds-g1: #8b5cf6;
  --ds-g2: #c4b5fd;
  --ds-hi: #b79cff;

  /* text */
  --ds-white: #ffffff;
  --ds-body: #ddd8ea;
  --ds-muted: #ada8bf;
  --ds-muted-2: #a39db8;
  --ds-faint: #8d87a3;
  --ds-dim: #6f6986; /* separators and dividers only: too faint for text */

  /* lines */
  --ds-line: rgba(255, 255, 255, 0.08);
  --ds-line-2: rgba(255, 255, 255, 0.12);
  --ds-lip: 0 1px 0 rgba(221, 216, 234, 0.035);

  /* gradients */
  --ds-grad: linear-gradient(90deg, var(--ds-g1), var(--ds-g2));
  --ds-grad-text: linear-gradient(92deg, var(--ds-green) 14%, var(--ds-g2) 92%);
  --ds-grad-heading: linear-gradient(#fff 18%, var(--ds-hi));

  /* selected pill (tabs, toggles) */
  --ds-pill-drop: 0 1px 1px rgba(7, 5, 15, 0.55), 0 2px 3px rgba(7, 5, 15, 0.45);
  --ds-pill-green: linear-gradient(180deg, #2b1a55 0%, #1d1240 100%);
  --ds-pill-green-edge: inset 0 1px 0 rgba(196, 181, 253, 0.24), inset 0 -1px 0 rgba(7, 5, 15, 0.45), inset 0 0 0 1px rgba(167, 139, 250, 0.32);

  /* type */
  --ds-font: var(--body, "Geist", system-ui, sans-serif);

  /* motion */
  --ds-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ds-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ds-ease-roll: cubic-bezier(0.22, 1, 0.36, 1);

  /* dark text on the gradient fills (4.6:1 on the darkest end) */
  --ds-ink: #0b0716;
  /* full-bleed parts line up with the page's side padding */
  --ds-gutter: var(--gutter, 20px);

  /* the numbers design-system.js uses: it states none of its own */
  --ds-reveal-threshold: 0.15;
  --ds-reveal-margin: 0px 0px -8% 0px;
  --ds-stagger-step: 110;
  --ds-marquee-speed: 60;
  --ds-marquee-max-sets: 12;
}
@media (max-width: 991px) { :root { --ds-marquee-speed: 40; } }

/* Opt in on <body> (or any wrapper) to get the base font and colors */
.ds-root {
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
.ds-root :is(.ds-btn, .ds-btn-nav, .ds-btn-outline, .ds-btn-form, .ds-tab, .ds-toggle button, .ds-tile, .ds-more,
  .ds-promo__chip, .ds-nav__link, .ds-footer a, .ds-marquee a, .ds-marquee button):focus-visible {
  outline: 2px solid var(--ds-green); outline-offset: 3px;
}

/* =====================================================================
   TYPE
   ===================================================================== */
.ds-grad-text {
  background: var(--ds-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Hero headline: second line gets .ds-grad-text and data-ds-fit (see JS) */
.ds-h1 {
  margin: 0; font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 96px); line-height: 0.95; letter-spacing: -0.03em;
}
.ds-h1 > span { display: block; width: max-content; margin: 0 auto; }

/* Section heading: second line gets .ds-h2-grad */
.ds-h2 { margin: 0; font-size: 62px; line-height: 72px; font-weight: 500; letter-spacing: -1.86px; }
.ds-h2-grad {
  background-image: var(--ds-grad-heading);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ds-sub { margin: 24px 0 0; max-width: 512px; font-size: 16px; line-height: 24px; color: var(--ds-muted); }
@media (max-width: 991px) { .ds-h2 { font-size: 48px; line-height: 56px; letter-spacing: -1.2px; } }
@media (max-width: 767px) { .ds-h2 { font-size: 40px; line-height: 48px; } }
@media (max-width: 479px) {
  .ds-h2 { font-size: 32px; line-height: 36px; letter-spacing: -0.96px; }
  .ds-sub { margin-top: 16px; font-size: 15px; }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
@keyframes ds-shine-pause { 0%, 55% { transform: translateX(-200%) skewX(-20deg); } 100% { transform: translateX(300%) skewX(-20deg); } }
@keyframes ds-shine-loop  { 0% { transform: translateX(-200%) skewX(-20deg); } 100% { transform: translateX(300%) skewX(-20deg); } }

/* Shared shine sweep */
.ds-btn::after,
.ds-btn-nav::after {
  content: ""; position: absolute; top: 0; left: 0; z-index: 5;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-200%) skewX(-20deg);
  pointer-events: none; border-radius: inherit;
}

/* 1. Primary: glass frame + white face + rolling label + pause-shine
   <a class="ds-btn"><span class="ds-btn__face"><span class="ds-roll"><span>Label</span><span aria-hidden="true">Label</span></span></span></a> */
.ds-btn {
  position: relative; overflow: hidden;
  display: inline-flex; padding: 3px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font-family: var(--ds-font); font-size: 17px; text-decoration: none;
  box-shadow: inset 0 0 4px #fff, 0 0 14px rgba(167, 139, 250, 0.24);
  transition: transform 0.3s;
}
.ds-btn::after { animation: ds-shine-pause 2s ease-in-out infinite; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ds-btn:hover:not([aria-disabled="true"], .is-busy) { transform: translateY(-2px); }
}
.ds-btn--block { display: flex; width: 100%; }
.ds-btn__face {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 12px 32px; border-radius: 5px;
  background: #fcfcfc; color: #000; font-weight: 600;
  box-shadow: inset 0 4px 4px rgba(11, 7, 22, 0.16);
}
.ds-btn__face svg { width: 16px; height: 16px; flex: none; }
.ds-roll { display: block; height: 21px; overflow: hidden; }
.ds-roll > span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 21px; line-height: 21px; white-space: nowrap;
  transition: transform 0.35s var(--ds-ease-roll);
}
.ds-roll svg { width: 16px; height: 16px; flex: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.ds-btn, .ds-btn-nav, .ds-btn-outline, .ds-btn-form):hover:not(:disabled, [aria-disabled="true"], .is-busy) .ds-roll > span { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.ds-btn, .ds-btn-nav, .ds-btn-outline, .ds-btn-form):focus-visible:not(:disabled, [aria-disabled="true"], .is-busy) .ds-roll > span { transform: translateY(-100%); }
}
@media (max-width: 479px) { .ds-btn__face { padding: 12px 16px; } }

/* 2. Nav CTA: green pill, layered ring, constant shine */
.ds-btn-nav {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 30px;
  background: var(--ds-grad); color: var(--ds-ink);
  font-family: var(--ds-font); font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.4), 0 0 0 5px rgba(167, 139, 250, 0.12), 0 0 0 10px rgba(167, 139, 250, 0.04);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.ds-btn-nav::after { animation: ds-shine-loop 1.5s linear infinite; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ds-btn-nav:hover { transform: translateY(-2px); } }
.ds-btn-nav:hover {
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.6), 0 0 0 6px rgba(167, 139, 250, 0.18), 0 0 0 14px rgba(167, 139, 250, 0.06), 0 8px 24px rgba(167, 139, 250, 0.25);
}
.ds-btn-nav:active { transform: translateY(0); transition: transform 0.1s ease; }

/* 3. Outline: transparent with a 2px gradient border */
.ds-btn-outline {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 30px;
  background: none; color: #fff;
  font-family: var(--ds-font); font-size: 15px; font-weight: 600; text-decoration: none;
}
.ds-btn-outline::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 30px; padding: 2px;
  background: var(--ds-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* 4. Form / popup button: gradient fill, glow on hover */
.ds-btn-form {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border: 0; border-radius: 10px;
  background: var(--ds-grad); color: var(--ds-ink); cursor: pointer;
  font-family: var(--ds-font); font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  transition: all 250ms;
}
.ds-btn-form:hover:not(:disabled, [aria-disabled="true"], .is-busy) { background: linear-gradient(90deg, var(--ds-g1), var(--ds-hi)); box-shadow: 0 0 40px rgba(167, 139, 250, 0.35); }

/* =====================================================================
   ANNOUNCEMENT BAR
   ===================================================================== */
.ds-promo { background: var(--ds-bg-alt); border-bottom: 1px solid var(--ds-line); }
.ds-promo__inner {
  min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 6px 16px;
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
}
.ds-promo__inner p { margin: 0; white-space: nowrap; }
.ds-promo__chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  height: 26px; padding: 0 10px; border-radius: 6px;
  border: 1px dashed rgba(167, 139, 250, 0.45); background: rgba(167, 139, 250, 0.08);
  font: inherit; font-weight: 700; letter-spacing: 0.04em; color: inherit;
}
.ds-promo__chip svg { width: 14px; height: 14px; }
.ds-promo__divider { width: 1px; height: 16px; background: var(--ds-line-2); }
.ds-promo__timer { font-variant-numeric: tabular-nums; }
.ds-promo__timer .ds-u { color: var(--ds-faint); margin: 0 6px 0 1px; }
.ds-promo__timer .ds-u:last-child { margin-right: 0; }
@media (max-width: 339px) { .ds-promo__inner { font-size: 11px; } }

/* =====================================================================
   NAV SURFACE (look only; arrange it with your own layout)
   ===================================================================== */
.ds-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 15, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ds-line);
}
.ds-nav__link { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s; }
.ds-nav__link:hover { color: #fff; }
@media (max-width: 1200px) and (min-width: 992px) {
  .ds-nav__link, .ds-nav .ds-btn-nav, .ds-nav .ds-btn-outline { font-size: 14px; }
}

/* Feature pill (hero) */
.ds-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--ds-line); background: rgba(255, 255, 255, 0.03);
  font-size: 14px; line-height: 20px; color: var(--ds-body);
}
.ds-pill svg { width: 14px; height: 14px; color: var(--ds-green); }

/* =====================================================================
   SURFACES
   ===================================================================== */
.ds-card {
  padding: 24px; border-radius: 16px;
  background: var(--ds-card); border: 1px solid var(--ds-line); border-top-color: var(--ds-line-2);
  color: inherit; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
button.ds-card { font: inherit; cursor: pointer; }
.ds-card:hover { border-color: var(--ds-line-2); }
.ds-card[aria-pressed="true"], .ds-card.is-selected {
  border-color: transparent;
  background: var(--ds-pill-green);
  box-shadow: inset 0 1px 0 rgba(196, 181, 253, 0.24), inset 0 0 0 1px rgba(167, 139, 250, 0.32);
}
.ds-panel {
  border-radius: 16px; background: var(--ds-card);
  border: 1px solid var(--ds-line); border-top-color: var(--ds-line-2);
}
.ds-panel__side { background: rgba(255, 255, 255, 0.022); }
.ds-sec-line { height: 1px; background: var(--ds-line); }
@media (max-width: 767px) { .ds-card { padding: 20px; } }

/* =====================================================================
   SEGMENTED TABS (program picker) with sliding colored thumb
   ===================================================================== */
.ds-seg-wrap {
  padding: 4px; border-radius: 16px;
  background: rgba(19, 17, 28, 0.72);
  border: 1px solid var(--ds-line); border-top-color: var(--ds-line-2);
}
.ds-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ds-seg__thumb {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(100% / var(--n, 2));
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 300ms var(--ds-ease);
  border-radius: 12px; pointer-events: none;
}
.ds-seg__thumb i { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 300ms ease; }
.ds-seg__thumb[data-tone="green"] i[data-tone="green"],
.ds-seg__thumb[data-tone="aqua"] i[data-tone="aqua"],
.ds-seg__thumb[data-tone="blend"] i[data-tone="blend"],
.ds-seg__thumb[data-tone="gray"] i[data-tone="gray"] { opacity: 1; }
.ds-seg__thumb i[data-tone="green"] { background: var(--ds-pill-green); box-shadow: var(--ds-pill-green-edge), var(--ds-pill-drop); }
.ds-seg__thumb i[data-tone="aqua"] {
  background: linear-gradient(180deg, #1b2350 0%, #121838 100%);
  box-shadow: inset 0 1px 0 rgba(199, 210, 254, 0.26), inset 0 -1px 0 rgba(7, 5, 15, 0.45), inset 0 0 0 1px rgba(129, 140, 248, 0.36), var(--ds-pill-drop);
}
.ds-seg__thumb i[data-tone="blend"] {
  background:
    radial-gradient(120% 160% at 0% 110%, rgba(99, 102, 241, 0.6) 0%, rgba(99, 102, 241, 0.2) 35%, rgba(99, 102, 241, 0) 65%),
    radial-gradient(90% 140% at 105% -10%, rgba(139, 92, 246, 0.55) 0%, rgba(139, 92, 246, 0) 60%), #0c0a14;
  box-shadow: inset 0 1px 0 rgba(199, 210, 254, 0.24), inset 0 -1px 0 rgba(7, 5, 15, 0.45), inset 0 0 0 1px rgba(99, 102, 241, 0.4), var(--ds-pill-drop);
}
.ds-seg__thumb i[data-tone="gray"] {
  background: linear-gradient(180deg, #241f33 0%, #1d1a2b 100%);
  box-shadow: inset 0 1px 0 rgba(221, 216, 234, 0.16), inset 0 -1px 0 rgba(7, 5, 15, 0.45), inset 0 0 0 1px rgba(221, 216, 234, 0.14), var(--ds-pill-drop);
}
.ds-tab {
  position: relative; z-index: 1;
  display: grid; justify-items: center; align-content: center; gap: 4px;
  min-height: 56px; padding: 4px 16px; border: 0; border-radius: 12px;
  background: none; color: #fff; font: inherit; cursor: pointer;
  transition: background-color 150ms var(--ds-ease);
}
.ds-tab:hover { background: rgba(255, 255, 255, 0.03); }
.ds-tab[aria-selected="true"]:hover { background: none; }
.ds-tab b { font-size: 20px; line-height: 20px; font-weight: 600; }
.ds-tab .ds-tab__tag { font-size: 14px; line-height: 20px; color: var(--ds-muted-2); }
.ds-tab[aria-selected="true"] .ds-tab__tag { color: var(--ds-body); }
@media (max-width: 767px) {
  .ds-seg-wrap { border-radius: 12px; }
  .ds-seg__thumb { border-radius: 8px; }
  .ds-tab { min-height: 44px; padding: 0 4px; border-radius: 8px; }
  .ds-tab .ds-tab__tag { display: none; }
  .ds-tab b { font-size: 16px; line-height: 24px; }
}

/* Small two-way toggle (Challenge / Funded) */
.ds-toggle {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  padding: 4px; border-radius: 8px;
  background: rgba(8, 6, 14, 0.6); box-shadow: 0 1px 0 rgba(221, 216, 234, 0.04), inset 0 0 0 1px var(--ds-line);
}
.ds-toggle .ds-seg__thumb {
  top: 4px; bottom: 4px; left: 4px; border-radius: 6px;
  width: calc((100% - 8px - (var(--n, 2) - 1) * 2px) / var(--n, 2));
  transform: translateX(calc(var(--i, 0) * (100% + 2px)));
  background: var(--ds-pill-green); box-shadow: var(--ds-pill-green-edge), var(--ds-pill-drop);
}
.ds-toggle button {
  position: relative; z-index: 1; height: 28px; min-width: 72px; padding: 0 12px;
  border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ds-faint);
  transition: color 150ms ease;
}
.ds-toggle button:hover { color: var(--ds-body); }
.ds-toggle button[aria-selected="true"] { color: #fff; }
@media (max-width: 767px) { .ds-toggle button { min-width: 0; height: 44px; margin: -8px 0; font-size: 12px; } }

/* =====================================================================
   ACCOUNT SIZE TILES
   ===================================================================== */
.ds-tile-wrap { position: relative; display: grid; }
.ds-tile {
  display: grid; grid-template-rows: auto auto 1fr; gap: 8px;
  width: 100%; text-align: left; overflow: hidden; cursor: pointer;
  padding: 28px 20px 20px; border-radius: 16px;
  background: var(--ds-inset); border: 1px solid var(--ds-line);
  font: inherit; color: #fff;
  transition: border-color 150ms var(--ds-ease), box-shadow 150ms var(--ds-ease);
}
.ds-tile__size { display: flex; align-items: baseline; gap: 8px; font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.6px; }
.ds-tile__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ds-tile__price b { font-size: 40px; line-height: 40px; font-weight: 500; letter-spacing: -1px; color: var(--ds-green); font-variant-numeric: tabular-nums; }
.ds-tile__price s { font-size: 18px; line-height: 24px; color: var(--ds-faint); }
.ds-tile__note {
  align-self: end; margin: 8px -20px -20px; padding: 12px 20px 16px;
  background: var(--ds-card); border-top: 1px solid var(--ds-groove); box-shadow: inset var(--ds-lip);
  font-size: 14px; line-height: 20px; color: var(--ds-muted-2);
}
.ds-tile[aria-pressed="true"] {
  border-color: rgba(167, 139, 250, 0.46);
  background: var(--ds-inset) linear-gradient(180deg, rgba(167, 139, 250, 0.12) 0%, rgba(167, 139, 250, 0.045) 100%);
  box-shadow: inset 0 1px 0 rgba(196, 181, 253, 0.22), var(--ds-pill-drop);
}
.ds-tile[aria-pressed="true"] .ds-tile__note { background: rgba(167, 139, 250, 0.035); border-top-color: rgba(7, 5, 15, 0.6); color: var(--ds-body); }
.ds-tile--popular {
  border-color: transparent;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(167, 139, 250, 0.17) 0%, rgba(167, 139, 250, 0.06) 38%, rgba(167, 139, 250, 0) 70%) padding-box,
    linear-gradient(var(--ds-inset), var(--ds-inset)) padding-box,
    linear-gradient(180deg, rgba(167, 139, 250, 0.6) 0%, rgba(167, 139, 250, 0.3) 34%, rgba(255, 255, 255, 0.08) 78%) border-box;
}
.ds-tile--popular[aria-pressed="true"] {
  border-color: rgba(167, 139, 250, 0.46);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(167, 139, 250, 0.17) 0%, rgba(167, 139, 250, 0.06) 38%, rgba(167, 139, 250, 0) 70%),
    linear-gradient(180deg, rgba(167, 139, 250, 0.12) 0%, rgba(167, 139, 250, 0.045) 100%), var(--ds-inset);
}
/* "MOST POPULAR" tab hanging off the top edge (sibling of the tile, inside .ds-tile-wrap) */
.ds-popular-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 5px 10px; border-radius: 0 0 8px 8px;
  background: linear-gradient(98deg, var(--ds-g1) 15%, var(--ds-g2) 92%);
  color: var(--ds-ink); font-size: 12px; line-height: 20px; font-weight: 700; white-space: nowrap; pointer-events: none;
}
.ds-popular-tag::before, .ds-popular-tag::after { content: ""; position: absolute; top: 0; width: 0; height: 0; border-bottom: 8px solid #5b21b6; }
.ds-popular-tag::before { left: -8px; border-left: 8px solid transparent; }
.ds-popular-tag::after { right: -8px; border-right: 8px solid transparent; }

@media (min-width: 992px) and (max-width: 1199px) {
  .ds-tile__size { font-size: 24px; line-height: 28px; letter-spacing: -0.5px; }
  .ds-tile__price b { font-size: 36px; line-height: 36px; }
  .ds-tile__price s { font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .ds-tile__size { font-size: 20px; line-height: 24px; }
  .ds-tile__price { flex-direction: column; gap: 0; }
  .ds-tile__price b { font-size: 32px; line-height: 36px; }
}
@media (max-width: 767px) {
  .ds-tile { padding: 20px 16px 16px; gap: 4px; border-radius: 12px; }
  .ds-tile__size { font-size: 18px; line-height: 24px; }
  .ds-tile__price b { font-size: 28px; line-height: 32px; letter-spacing: -0.6px; }
  .ds-tile__price s { font-size: 16px; }
  .ds-tile__note { margin: 12px -16px -16px; padding: 12px 16px; }
  .ds-popular-tag { top: -10px; left: 16px; transform: none; height: 20px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; line-height: 16px; }
  .ds-popular-tag::before, .ds-popular-tag::after { display: none; }
}

/* =====================================================================
   RULES TABLE
   ===================================================================== */
.ds-rules { background: var(--ds-inset); border: 1px solid var(--ds-line); border-radius: 12px; overflow: hidden; }
.ds-rule {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center;
  min-height: 44px; padding: 8px 16px;
  border-bottom: 1px solid var(--ds-groove); box-shadow: var(--ds-lip);
  font-size: 14px; line-height: 20px;
}
.ds-rule:last-child { border-bottom: 0; box-shadow: none; }
.ds-rule__l { color: var(--ds-muted-2); }
.ds-rule__v { text-align: right; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.ds-rule__v.is-good { color: var(--ds-green); }
.ds-rule--more .ds-rule__l { color: var(--ds-faint); }
.ds-rules.is-collapsible:not(.is-expanded) .ds-rule--more { display: none; }
/* Changed value: "was" struck through, new value in green, green edge on the row */
.ds-rule.is-changed { position: relative; background: linear-gradient(90deg, rgba(167, 139, 250, 0.09), rgba(167, 139, 250, 0) 80%); }
.ds-rule.is-changed::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ds-green); }
.ds-rule .ds-was { color: var(--ds-faint); text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.ds-rule .ds-now { color: var(--ds-green); }

.ds-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; margin-top: 12px;
  border: 1px solid var(--ds-line); border-radius: 10px; background: none; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: #fff;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.ds-more:hover { background: var(--ds-raised); border-color: var(--ds-line-2); }
.ds-more span { color: var(--ds-faint); }
.ds-more svg { width: 14px; height: 14px; transition: transform 300ms var(--ds-ease); }
.ds-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* =====================================================================
   SUMMARY PARTS
   ===================================================================== */
.ds-code-badge {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--ds-line-2);
  font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em;
}
.ds-code-badge svg, .ds-tag-icon { width: 16px; height: 16px; color: var(--ds-green); flex: none; }
.ds-group-title { margin: 0 0 12px; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -0.16px; }

.ds-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-checklist li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 20px; color: var(--ds-body); }
.ds-checklist svg { width: 16px; height: 16px; margin-top: 2px; color: var(--ds-green); }

/* Quantity box with bundle chip + stepper */
.ds-qtybox {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 8px 0 16px;
  border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-raised);
}
.ds-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(167, 139, 250, 0.1); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.26);
  color: var(--ds-green); font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap;
  transition: background-color 150ms ease;
}
.ds-chip:hover { background: rgba(167, 139, 250, 0.16); }
.ds-chip svg { width: 16px; height: 16px; }

.ds-stepper {
  display: inline-flex; align-items: center; height: 40px; padding: 0 4px; border-radius: 999px;
  background: rgba(8, 6, 14, 0.6); box-shadow: inset 0 0 0 1px var(--ds-line);
}
.ds-stepper button {
  width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: none; font: inherit; font-size: 20px; line-height: 20px; color: #fff;
  transition: background-color 150ms ease;
}
.ds-stepper button:not(:disabled):hover { background: var(--ds-pop); }
.ds-stepper button:disabled { color: var(--ds-dim); cursor: default; }
.ds-stepper output { min-width: 36px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tooltip (hover or keyboard focus) */
.ds-tip { position: relative; display: inline-flex; }
.ds-tip__box {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
  width: 280px; padding: 16px; border-radius: 12px;
  background: var(--ds-pop); border: 1px solid var(--ds-line-2); box-shadow: 0 10px 28px rgba(7, 5, 15, 0.7);
  font-size: 14px; line-height: 20px; color: var(--ds-body);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}
.ds-tip:hover .ds-tip__box, .ds-tip:focus-within .ds-tip__box { opacity: 1; visibility: visible; transform: none; }
.ds-tip__box b { color: #fff; font-weight: 600; }
.ds-btable { display: block; margin-top: 12px; border: 1px solid var(--ds-line); border-radius: 8px; overflow: hidden; }
.ds-brow { display: flex; justify-content: space-between; padding: 8px 12px; }
.ds-brow + .ds-brow { border-top: 1px solid var(--ds-line); }
.ds-brow span:last-child { font-weight: 600; color: #fff; }
.ds-brow.is-on { background: rgba(167, 139, 250, 0.1); color: #fff; }
.ds-brow.is-on span:last-child { color: var(--ds-green); }

/* Receipt */
.ds-receipt { display: grid; gap: 8px; }
.ds-rrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.ds-rrow__k { display: inline-flex; align-items: center; gap: 8px; color: var(--ds-muted-2); min-width: 0; }
.ds-rrow__v { color: var(--ds-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-rrow__v.is-off { color: var(--ds-green); }
.ds-rrow--total { margin-top: 4px; align-items: baseline; }
.ds-rrow--total .ds-rrow__k { font-size: 16px; font-weight: 600; color: #fff; }
.ds-rrow--total .ds-rrow__v { display: flex; align-items: baseline; gap: 8px; }
.ds-rrow--total small { font-size: 12px; font-weight: 500; color: var(--ds-faint); }
.ds-rrow--total b { font-size: 32px; line-height: 32px; font-weight: 500; letter-spacing: -0.56px; color: var(--ds-green); }
@media (max-width: 767px) { .ds-rrow--total b { font-size: 24px; } }

/* =====================================================================
   PRICING LAYOUT
   <div class="ds-pricing">
     <div class="ds-seg-wrap">…tabs…</div>
     <div class="ds-sizes" data-ds-select>…4 × .ds-tile-wrap…</div>
     <div class="ds-panel ds-pricing__panel">
       <div class="ds-pricing__rules">…title + .ds-toggle, .ds-rules, .ds-more…</div>
       <div class="ds-panel__side ds-pricing__summary">…head, checklist, bundles, receipt, CTA…</div>
     </div>
   </div>
   ===================================================================== */
.ds-pricing { display: grid; gap: 24px; }

/* Size tiles: 4 across, swipeable row on phones */
.ds-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* Panel: rules left (wider), summary right */
.ds-pricing__panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.ds-pricing__rules { padding: 24px; min-width: 0; }
.ds-pricing__summary {
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
  padding: 24px; border-left: 1px solid var(--ds-line); border-radius: 0 15px 15px 0;
}
.ds-pricing__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ds-pricing__name { margin: 0; font-size: 24px; line-height: 28px; font-weight: 500; letter-spacing: -0.432px; }
.ds-pricing__variant { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--ds-muted-2); }
.ds-pricing__rules-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 16px; }
.ds-pricing__rules-title { font-size: 20px; line-height: 24px; font-weight: 600; white-space: nowrap; }

/* Keep the summary visible while scrolling long rules on big screens */
@media (min-width: 992px) and (min-height: 800px) {
  .ds-pricing__summary { position: sticky; top: var(--ds-sticky-top, 96px); align-self: start; }
}

@media (max-width: 991px) {
  .ds-pricing__panel { grid-template-columns: minmax(0, 1fr); }
  .ds-pricing__summary { order: -1; border-left: 0; border-bottom: 1px solid var(--ds-line); border-radius: 15px 15px 0 0; }
}
@media (max-width: 767px) {
  .ds-sizes {
    display: flex; gap: 8px;
    margin: 0 calc(var(--ds-gutter, 20px) * -1);
    padding: 12px var(--ds-gutter, 20px) 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--ds-gutter, 20px);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ds-sizes::-webkit-scrollbar { display: none; }
  .ds-sizes > .ds-tile-wrap { flex: 0 0 66%; scroll-snap-align: start; }
  /* panel goes edge to edge */
  .ds-pricing__panel { margin: 0 calc(var(--ds-gutter, 20px) * -1); border-radius: 0; border-left: 0; border-right: 0; }
  .ds-pricing__summary { border-radius: 0; padding: 24px 16px; }
  .ds-pricing__rules { padding: 24px 16px; }
  .ds-pricing__name { font-size: 20px; line-height: 24px; }
  .ds-pricing__rules-title { font-size: 16px; }
}
@media (max-width: 379px) { .ds-sizes > .ds-tile-wrap { flex-basis: 76%; } }

/* =====================================================================
   STATS STRIP (icon box + number + label, with dividers)
   Desktop: one row spread across the width.
   991px and below: scrolls sideways on a loop. The markup has the group twice;
   the second copy (.ds-stats__group--clone, aria-hidden) only shows when scrolling.
   ===================================================================== */
.ds-stats { position: relative; overflow: hidden; }
.ds-stats__track { display: flex; width: 100%; }
.ds-stats__group { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex: 1 0 100%; }
.ds-stats__group--clone { display: none; }

.ds-stat { display: flex; align-items: center; gap: 12px; flex: none; }
.ds-stat__icon {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(180deg, #2a2536 0%, #17141f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(7, 5, 15, 0.55);
  color: #fff;
}
.ds-stat__icon::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.06) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.ds-stat__icon svg { width: 24px; height: 24px; }
.ds-stat__text { display: grid; gap: 2px; }
.ds-stat__num { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.3px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-stat__label { font-size: 14px; line-height: 20px; color: var(--ds-muted); white-space: nowrap; }
.ds-stats__divider {
  flex: none; width: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0));
}

@keyframes ds-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 991px) {
  .ds-stats {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  }
  .ds-stats__track { width: max-content; animation: ds-marquee 32s linear infinite; will-change: transform; }
  .ds-stats__group { flex: none; justify-content: flex-start; padding-right: 32px; }
  .ds-stats__group--clone { display: flex; }
}
@media (max-width: 767px) {
  .ds-stat__icon { width: 40px; height: 40px; border-radius: 9px; }
  .ds-stat__icon svg { width: 20px; height: 20px; }
  .ds-stat__num { font-size: 16px; line-height: 22px; }
  .ds-stat__label { font-size: 13px; line-height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-stats { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ds-stats__track { animation: none; }
  .ds-stats__group--clone { display: none; }
}

/* =====================================================================
   CARD CAROUSEL MOTION (endless sideways scroll, rows can run opposite ways)
   Motion only: put any cards you already have inside .ds-marquee__list.
   <div class="ds-marquee-stack">
     <div class="ds-marquee" data-ds-marquee><div class="ds-marquee__list">…your cards…</div></div>
     <div class="ds-marquee ds-marquee--reverse" data-ds-marquee>…</div>
   </div>
   The JS copies the cards until the row is long enough, then sets the
   distance and duration so the speed stays constant (60px/s, 40px/s on tablet and phone).
   ===================================================================== */
.ds-marquee-stack { display: grid; gap: 16px; }
.ds-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}
.ds-marquee:not(.is-looping) { overflow-x: auto; scrollbar-width: thin; }
.ds-marquee__list { display: flex; flex-wrap: nowrap; width: max-content; }
.ds-marquee.is-looping .ds-marquee__list {
  animation: ds-marquee-x var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}
/* spacing lives on the items (not gap) so the loop has no jump */
.ds-marquee__list > * { flex: none; margin-right: 16px; }
.ds-marquee--reverse .ds-marquee__list { animation-direction: reverse; }
.ds-marquee--pause:is(:hover, :focus-within) .ds-marquee__list,
.ds-marquee.is-paused .ds-marquee__list { animation-play-state: paused; }
@keyframes ds-marquee-x { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-100% / var(--sets, 2)), 0, 0); } }
@media (max-width: 767px) {
  .ds-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .ds-marquee__list > * { margin-right: 12px; }
  .ds-marquee-stack { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-marquee { overflow-x: auto; scrollbar-width: thin; }
  .ds-marquee .ds-marquee__list { animation: none; }
  .ds-marquee__list > [data-ds-clone] { display: none; }
}

/* =====================================================================
   FOOTER
   <footer class="ds-footer">
     <div class="ds-footer__top">logo + .ds-footer__links</div>
     <div class="ds-footer__bottom">.ds-footer__meta (© + policy links) + .ds-footer__social</div>
     <p class="ds-footer__legal">fine print</p>
   </footer>
   Width comes from your own container; the footer only handles its inner layout.
   ===================================================================== */
.ds-footer { border-top: 1px solid var(--ds-line); padding: 64px 0 40px; }
.ds-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.ds-footer__logo { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.ds-footer__logo img, .ds-footer__logo svg { height: 28px; width: auto; }
.ds-footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.ds-footer__links a { font-size: 16px; line-height: 24px; font-weight: 500; color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s; }
.ds-footer__links a:hover { color: #fff; }

.ds-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--ds-line);
}
.ds-footer__meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; font-size: 14px; line-height: 20px; color: var(--ds-muted-2); }
.ds-footer__meta > * + *::before { content: "|"; margin: 0 12px; color: var(--ds-dim); }
.ds-footer__meta a { color: var(--ds-muted-2); text-decoration: none; transition: color 0.2s; }
.ds-footer__meta a:hover { color: #fff; }

.ds-footer__social { display: flex; gap: 8px; }
.ds-footer__social a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  color: rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--ds-line);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.ds-footer__social a:hover { color: #fff; background: rgba(167, 139, 250, 0.1); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3); }
.ds-footer__social svg { width: 16px; height: 16px; }

.ds-footer__legal { margin: 32px 0 0; font-size: 12px; line-height: 18px; color: var(--ds-faint); }
.ds-footer__legal + .ds-footer__legal { margin-top: 12px; }
.ds-footer__legal strong { color: var(--ds-muted-2); font-weight: 600; }
.ds-footer__legal a { color: var(--ds-muted-2); }

@media (max-width: 767px) {
  .ds-footer { padding: 48px 0 32px; }
  .ds-footer__top { flex-direction: column; align-items: flex-start; }
  .ds-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; width: 100%; }
  .ds-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   SCROLL REVEAL (needs design-system.js, which adds .ds-anim to <html>)
   ===================================================================== */
/* Headings with data-ds-split: each word slides up from behind a mask */
.ds-anim .ds-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0; margin: -0.1em 0; }
.ds-anim .ds-wi {
  display: inline-block;
  translate: 0 110%;
  transition: translate 0.8s var(--ds-ease-out);
  transition-delay: calc(var(--d, 0) * 45ms);
}
.ds-anim .is-in .ds-wi { translate: none; }
.ds-anim .ds-w--line { display: block; }

/* Blocks with data-ds-reveal: fade and rise, delay from data-ds-delay */
.ds-anim [data-ds-reveal] {
  opacity: 0; translate: 0 24px;
  transition: opacity 0.7s ease var(--cd, 0ms), translate 0.9s var(--ds-ease-out) var(--cd, 0ms);
}
.ds-anim [data-ds-reveal].is-in { opacity: 1; translate: none; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ds-btn::after, .ds-btn-nav::after, .ds-promo__chip::after { animation: none; display: none; }
  .ds-btn:hover, .ds-btn-nav:hover { transform: none; }
  .ds-btn, .ds-btn-nav, .ds-roll > span, .ds-seg__thumb, .ds-seg__thumb i, .ds-more svg, .ds-card, .ds-tile, .ds-btn-form { transition: none; }
}

/* =====================================================================
   ADDITIONS FOR THE WAITLIST PAGE
   ===================================================================== */
/* Parts the page renders hidden until the script can drive them */
:is(.ds-seg-wrap, .ds-sizes, .ds-tile-wrap, .ds-toggle, .ds-more, .ds-rules)[hidden] { display: none; }
/* "Show all rules": the label keeps the button's colour; only the count is quieter */
.ds-more [data-ds-more-label] { color: inherit; }

/* The copy chip carries the kit's shine: its buttons' sweep, at their pace */
.ds-promo__chip { position: relative; overflow: hidden; isolation: isolate; }
.ds-promo__chip::after {
  content: ""; position: absolute; top: 0; left: 0; z-index: 1;
  width: 50%; height: 100%; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-200%) skewX(-20deg);
  animation: ds-shine-pause 2s ease-in-out infinite;
}

/* Busy and disabled buttons hold still and say so */
:is(.ds-btn, .ds-btn-nav, .ds-btn-outline, .ds-btn-form):is(:disabled, [aria-disabled="true"], .is-busy) { cursor: default; }
:is(.ds-btn, .ds-btn-nav, .ds-btn-outline, .ds-btn-form).is-busy { cursor: progress; }
.ds-btn-form:disabled:not(.is-busy) { opacity: 0.6; }
:is(.ds-btn, .ds-btn-nav)[aria-disabled="true"]::after, :is(.ds-btn, .ds-btn-nav).is-busy::after { animation: none; display: none; }

/* Carousel clones are decoration only; with reduced motion the row scrolls by hand instead */
@media (prefers-reduced-motion: reduce) {
  .ds-marquee__list > [data-ds-clone] { display: none; }
}
