/* ==========================================================================
   Memberium — Components
   Nav, hero, cards, code blocks, integrations, pricing, footer, theme switcher
   ========================================================================== */

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn--ghost { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--space-5) var(--space-5);
  }
  .nav.is-open .nav__links a {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: var(--space-9);
  padding-bottom: var(--space-8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 600px;
  background: var(--glow);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 4.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-5);
}
.hero__title em { font-style: normal; color: var(--accent); }

.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__demo { order: 2; }
}

/* ---- Hero interactive demo: visitor<->member toggle ---- */
.demo {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
}
.demo__dots { display: flex; gap: 6px; }
.demo__dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-strong);
}
.demo__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  background: var(--code-bg);
  padding: 0.35em 0.75em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.demo__toggle {
  display: inline-flex;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 0;
}
.demo__toggle button {
  padding: 0.35em 0.9em;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.demo__toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

.demo__page {
  padding: var(--space-6);
  min-height: 320px;
  position: relative;
}
.demo__page h4 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.demo__page .meta { font-size: 0.8125rem; color: var(--text-dim); margin-bottom: var(--space-4); }
.demo__page p { color: var(--text-muted); margin-bottom: var(--space-3); }

.demo__locked {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: filter var(--dur) var(--ease);
}
.demo.is-visitor .demo__locked {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.demo__lockover {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  border-radius: var(--radius-md);
}
.demo.is-visitor .demo__lockover { display: flex; }
.demo__lockover .lockicon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.demo__lockover strong { color: var(--text); }
.demo__lockover span { font-size: 0.85rem; color: var(--text-muted); }

.demo__accessline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.demo__accessline .ok { color: var(--success); }

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust {
  padding-block: var(--space-7);
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}
.trust__label {
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-5);
}
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
  align-items: center;
}
.trust__logos span {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.trust__logos span:hover { color: var(--text); opacity: 1; }

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.1875rem; margin-bottom: var(--space-2); }
.card__text { font-size: 0.9375rem; color: var(--text-muted); }

/* ==========================================================================
   TRIPTYCH (three ways to log in)
   ========================================================================== */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .triptych { grid-template-columns: 1fr; } }

.triptych__col {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  position: relative;
}
.triptych__visual {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.triptych__visual svg { width: 32px; height: 32px; }
.triptych__num {
  position: absolute;
  top: var(--space-4); right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.triptych h3 { font-size: 1.1875rem; margin-bottom: var(--space-2); }
.triptych p { font-size: 0.9375rem; }

.triptych__plus {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4);
  color: var(--text-dim);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */
.intgroup { margin-bottom: var(--space-7); }
.intgroup__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.intgroup__title h3 { font-size: 1.0625rem; }
.intgroup__title span { font-size: 0.8125rem; color: var(--text-dim); font-family: var(--font-mono); }

.intgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.int {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.int:hover { border-color: var(--accent-line); background: var(--surface); }
.int__dot {
  width: 30px; height: 30px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--accent);
}
.int__name { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.int__sub { font-size: 0.75rem; color: var(--text-dim); }

/* ==========================================================================
   DEVELOPER SECTION
   ========================================================================== */
.dev__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) { .dev__grid { grid-template-columns: 1fr; } }

.dev__points { display: flex; flex-direction: column; gap: var(--space-4); }
.devpoint {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.devpoint__num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.devpoint h4 { font-size: 1rem; margin-bottom: var(--space-1); }
.devpoint p { font-size: 0.875rem; }

/* ---- Code block ---- */
.code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code__tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  overflow-x: auto;
}
.code__tab {
  padding: 0.7em 1.1em;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.code__tab[aria-selected="true"] {
  color: var(--accent);
  background: var(--code-bg);
}
.code__body { padding: var(--space-5); }
.code__pane { display: none; }
.code__pane.is-active { display: block; }
.code pre {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-text);
  overflow-x: auto;
  white-space: pre;
}
.code .tk-tag  { color: var(--secondary); }
.code .tk-fn   { color: var(--accent); }
.code .tk-str  { color: var(--success); }
.code .tk-kw   { color: var(--secondary); }
.code .tk-com  { color: var(--text-dim); font-style: italic; }
.code .tk-var  { color: var(--warning); }

/* ---- Connector architecture diagram ---- */
.arch {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.arch__title { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: var(--space-4); }
.arch__flow {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}
.arch__node {
  flex: 1 1 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}
.arch__node.is-accent { border-color: var(--accent-line); background: var(--accent-soft); }
.arch__node strong { display: block; font-size: 0.9375rem; margin-bottom: 2px; }
.arch__node span { font-size: 0.75rem; color: var(--text-dim); }
.arch__arrow {
  display: grid; place-items: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
@media (max-width: 700px) {
  .arch__arrow { transform: rotate(90deg); padding: var(--space-1) 0; }
  .arch__flow { flex-direction: column; }
}

/* ==========================================================================
   SUSHI LMS SPOTLIGHT
   ========================================================================== */
.lms__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 900px) { .lms__grid { grid-template-columns: 1fr; } }

.lms__features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.lms__feature {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.9375rem; color: var(--text);
}
.lms__feature svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---- Course outline preview ---- */
.course {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.course__head {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.course__head strong { font-size: 1rem; }
.course__progress {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.8125rem; color: var(--text-dim);
}
.course__progress-bar {
  width: 80px; height: 6px; border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: hidden;
}
.course__progress-bar > span { display: block; height: 100%; background: var(--accent); }

.course__list { padding: var(--space-3); }
.course__module { border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-2); }
.course__module > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--dur) var(--ease);
}
.course__module > summary::-webkit-details-marker { display: none; }
.course__module > summary:hover { background: var(--surface); }
.course__chev { transition: transform var(--dur) var(--ease); color: var(--text-dim); }
.course__module[open] > summary > .course__chev { transform: rotate(90deg); }
.course__mtitle { font-weight: 600; font-size: 0.9375rem; flex: 1; }
.course__check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center; flex: none;
}
.course__check.is-done { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.course__check.is-done svg { width: 11px; height: 11px; }
.course__lessons { padding: 0 var(--space-2) var(--space-2) calc(var(--space-4) + 22px); }
.course__lesson {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.course__lesson .ico { width: 16px; height: 16px; color: var(--text-dim); flex: none; }
.course__lesson.is-current { color: var(--accent); background: var(--accent-soft); }
.course__lesson .dur { margin-left: auto; font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); }

/* ==========================================================================
   VISIBILITY / CONTROL
   ========================================================================== */
.vis__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .vis__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vis__grid { grid-template-columns: 1fr; } }
.vis__stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}
.vis__stat .ico {
  width: 40px; height: 40px; margin: 0 auto var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent);
}
.vis__stat .ico svg { width: 20px; height: 20px; }
.vis__stat strong { display: block; font-size: 1.0625rem; margin-bottom: var(--space-1); }
.vis__stat span { font-size: 0.8125rem; color: var(--text-dim); }

/* a faux log strip */
.logstrip {
  margin-top: var(--space-6);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  overflow-x: auto;
}
.logstrip .row { display: flex; gap: var(--space-3); white-space: nowrap; }
.logstrip .ts { color: var(--text-dim); }
.logstrip .lv-ok { color: var(--success); }
.logstrip .lv-info { color: var(--secondary); }
.logstrip .lv-warn { color: var(--warning); }
.logstrip .msg { color: var(--text-muted); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
@media (max-width: 900px) { .pricegrid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

.price {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column;
}
.price.is-featured {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 40%);
}
.price__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-contrast);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3em 0.9em; border-radius: var(--radius-pill);
}
.price__name { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-2); }
.price__amount { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-1); }
.price__amount .num { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.price__amount .per { color: var(--text-dim); font-size: 0.9375rem; }
.price__note { font-size: 0.8125rem; color: var(--accent); margin-bottom: var(--space-5); min-height: 1.2em; }
.price__list { display: flex; flex-direction: column; gap: var(--space-3);; margin-bottom: var(--space-6); flex: 1; }
.price__list li { display: flex; gap: var(--space-3); font-size: 0.9375rem; color: var(--text-muted); }
.price__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.price .btn { width: 100%; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.ctaband {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.ctaband__inner {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow);
}
.ctaband::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--glow);
  pointer-events: none;
}
.ctaband h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-bottom: var(--space-4); }
.ctaband p { max-width: 52ch; margin: 0 auto var(--space-6); font-size: 1.0625rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-6);
  background: var(--bg-elevated);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .brand { margin-bottom: var(--space-3); }
.footer__brand p { font-size: 0.875rem; max-width: 32ch; }
.footer__col h5 {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: var(--space-3); font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__col a { color: var(--text-muted); font-size: 0.9375rem; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-top: var(--space-5); border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-dim); flex-wrap: wrap;
}

/* ==========================================================================
   THEME SWITCHER (floating)
   ========================================================================== */
.themeswitch {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow);
}
.themeswitch__label {
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); text-align: center; padding: 2px 0;
}
.swatch {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatch span { width: 16px; height: 16px; border-radius: 3px; }
.swatch--navy span     { background: linear-gradient(135deg, #0B1426 50%, #E0B15E 50%); }
.swatch--slate span    { background: linear-gradient(135deg, #0F172A 50%, #3B6FE0 50%); }
.swatch--charcoal span { background: linear-gradient(135deg, #111418 50%, #10B981 50%); }
@media (max-width: 600px) {
  .themeswitch { bottom: var(--space-3); right: var(--space-3); }
}
