:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --text: #10131a;
  --muted: #5f6780;
  --border: #e1e7f3;
  --brand: #7c3aed;
  --brand-2: #a855f7;
}

[data-theme="dark"] {
  --bg: #0b0e15;
  --surface: #12182a;
  --surface-2: #1a2238;
  --text: #eef2ff;
  --muted: #a3b0d0;
  --border: #2a3552;
  --brand: #a78bfa;
  --brand-2: #c4b5fd;
}

* { box-sizing: border-box; }
html {
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at 0% -20%, rgba(124, 58, 237, .18), transparent 40%), var(--bg);
  color: var(--text);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Ecommerce-style brand lockup */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-logo:hover {
  opacity: 0.92;
}
.brand-logo:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 8px;
}
.brand-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--brand);
}
.brand-logo__mark svg {
  display: block;
  width: 26px;
  height: 26px;
}
.brand-logo__type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}
.brand-logo__wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand-logo__wordmark span:last-child {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-logo__tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.links { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* Header cart (always visible — not buried under Mac / Safari chrome) */
.cart-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}
.cart-nav__icon {
  display: flex;
  color: var(--text);
}
.cart-nav__icon svg {
  display: block;
}
.cart-nav__text {
  color: var(--text);
}
.cart-nav__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.cart-nav[data-count="0"] .cart-nav__count {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.cart-nav[aria-current="page"] {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}
.cart-nav--pop {
  animation: cart-nav-pop 0.45s ease;
}
@keyframes cart-nav-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 520px) {
  .cart-nav__text {
    display: none;
  }
  .cart-nav {
    padding: 8px 10px;
  }
}
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 12px; padding: 9px 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

.hero { padding: 46px 0 16px; }
.hero-box { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 28px; }
h1 { margin: 0; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; }
h2 { margin: 0 0 12px; letter-spacing: -.02em; }
h3 { margin: 10px 0 8px; letter-spacing: -.02em; }
p { color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.section { padding: 18px 0; }
.section[id] {
  scroll-margin-top: 92px;
}
.grid { display: grid; gap: 12px; }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-1 { grid-template-columns: 1fr; }

.card, .cat {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 14px;
}
.cat-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cat-link .cat {
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.cat-link:hover .cat {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 14%, transparent);
}
.chip {
  display: inline-block; font-size: 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--muted); padding: 4px 8px;
}
.chip .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: -2px;
}
.icon-notion {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
[data-theme="dark"] .icon-notion {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.icon-ai {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #d8b4fe;
}
.icon-creator {
  background: #fce7f3;
  color: #9d174d;
  border: 1px solid #f9a8d4;
}
.icon-business {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}
.icon-wellness {
  background: #dcfce7;
  color: #065f46;
  border: 1px solid #86efac;
}
.chip.ai-workflow {
  background: color-mix(in srgb, #7c3aed 16%, var(--surface));
  border-color: color-mix(in srgb, #7c3aed 36%, var(--border));
  color: color-mix(in srgb, #4c1d95 82%, var(--text));
}
.chip.notion-ai {
  background: color-mix(in srgb, #2563eb 16%, var(--surface));
  border-color: color-mix(in srgb, #2563eb 36%, var(--border));
  color: color-mix(in srgb, #1e40af 82%, var(--text));
}
.chip.creator-automation {
  background: color-mix(in srgb, #db2777 14%, var(--surface));
  border-color: color-mix(in srgb, #db2777 36%, var(--border));
  color: color-mix(in srgb, #9d174d 82%, var(--text));
}
.chip.business-ops {
  background: color-mix(in srgb, #d97706 14%, var(--surface));
  border-color: color-mix(in srgb, #d97706 36%, var(--border));
  color: color-mix(in srgb, #92400e 82%, var(--text));
}
.chip.wellness-productivity {
  background: color-mix(in srgb, #059669 14%, var(--surface));
  border-color: color-mix(in srgb, #059669 36%, var(--border));
  color: color-mix(in srgb, #065f46 82%, var(--text));
}
.category-block {
  margin-bottom: 16px;
  scroll-margin-top: 92px;
}
.category-title {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}
.category-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.price { font-weight: 800; margin-top: 8px; font-size: 20px; }
.meta { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; margin-top: 6px; }
.short { margin: 0 0 8px; color: var(--text); font-weight: 600; }
.cta-row { display: flex; gap: 8px; margin-top: 10px; }
.cta-row--wrap { flex-wrap: wrap; align-items: center; }

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--text);
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-add-cart:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 65%, var(--border));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 18%, transparent);
}
.btn-add-cart:active {
  transform: translateY(0);
}
.btn-add-cart__hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  opacity: 0.9;
}
.btn-add-cart--secondary {
  background: var(--surface);
  border-style: dashed;
}
.btn-add-cart--pulse {
  animation: cart-btn-pop 0.45s ease;
}
.btn-add-cart--success {
  border-color: #16a34a !important;
  background: color-mix(in srgb, #16a34a 12%, var(--surface)) !important;
}
.btn-add-cart--success .btn-add-cart__label::after {
  content: " ✓";
  font-weight: 800;
}
@keyframes cart-btn-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.cart-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 22%, transparent) inset;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cart-fab:hover {
  transform: scale(1.06);
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--brand) 45%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 28%, transparent) inset;
  color: #fff;
}
.cart-fab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.cart-fab__svg {
  display: block;
}
.cart-fab__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.cart-fab--pop {
  animation: cart-fab-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cart-fab-bounce {
  0% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(1.12) rotate(-6deg);
  }
  55% {
    transform: scale(1.08) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
[data-theme="dark"] .cart-fab__badge {
  background: #f87171;
  color: #1a1025;
}
.cart-fab[data-count="0"] .cart-fab__badge {
  background: color-mix(in srgb, var(--muted) 85%, var(--surface));
  color: var(--surface);
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--muted);
  font-size: 13px;
}
.btn-tiny {
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 8px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.cart-table th,
.cart-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cart-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}
.cart-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cart-title {
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.cart-price {
  font-weight: 700;
  white-space: nowrap;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-footer {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.cart-subtotal-line {
  font-size: 18px;
  color: var(--text);
}
.cart-note {
  font-size: 13px;
  margin: 10px 0 14px;
}
.cart-checkout-btn {
  padding: 12px 22px;
  font-size: 16px;
}
.cart-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #059669 18%, var(--surface));
  border: 1px solid color-mix(in srgb, #059669 40%, var(--border));
  color: var(--text);
  font-size: 14px;
}

.cart-toast {
  position: fixed;
  bottom: max(96px, calc(88px + env(safe-area-inset-bottom, 0px)));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 2147483647;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 25%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cart-toast--show {
  opacity: 1;
  transform: translateY(0);
}
[data-theme="dark"] .cart-toast {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.bundle {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 16px;
}
.bundle .save { color: #1da67a; font-weight: 700; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}
.product-main, .buy-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
}
.buy-box {
  position: sticky;
  top: 88px;
  height: fit-content;
}
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.proof-item {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--surface-2);
}
.strike {
  text-decoration: line-through;
  color: var(--muted);
}
.buy-price {
  font-size: 30px;
  font-weight: 800;
  margin: 8px 0;
}
.buy-box-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.buy-box-cta .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.buy-box-cta .btn-ghost {
  display: block;
}
.buy-box-bundle-note {
  margin-top: 10px;
  font-size: 13px;
}

.foot { margin-top: 28px; border-top: 1px solid var(--border); padding: 20px 0 30px; color: var(--muted); font-size: 13px; }

/* Catalog page: mixed grid + category filter pills */
#catalog {
  scroll-margin-top: 96px;
}
.catalog-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.catalog-heading-count {
  font-size: 0.92em;
  font-weight: 700;
  color: var(--muted);
}
.catalog-intro {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.catalog-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.catalog-filter:hover {
  border-color: #c8c0f5;
  background: var(--surface-2);
}
.catalog-filter.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.catalog-filter:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.catalog-filter-count {
  font-weight: 600;
  margin-left: 2px;
}
.catalog-filter:not(.is-active) .catalog-filter-count {
  color: var(--muted);
}
.catalog-filter.is-active .catalog-filter-count {
  color: rgba(255, 255, 255, 0.92);
}
[data-theme="dark"] .catalog-filter:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

/* Blog index: full-card links */
.blog-index-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-index-card:hover .blog-index-card__cta {
  color: var(--brand);
}
.blog-index-card .card h3 {
  margin-top: 10px;
}
.blog-index-card__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Long-form SEO blog articles */
.blog-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.blog-back:hover {
  color: var(--brand);
}
.blog-article-wrap {
  max-width: 760px;
  margin: 0 auto;
}
article.blog-article {
  padding: 28px 32px;
}
.blog-article .lede {
  font-size: 1.08rem;
  line-height: 1.68;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.blog-article h2 {
  font-size: 1.35rem;
  margin: 2.1rem 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.blog-article h2:first-of-type {
  margin-top: 0.35rem;
}
.blog-article h3 {
  font-size: 1.08rem;
  margin: 1.4rem 0 0.45rem;
  color: var(--text);
}
.blog-article p {
  margin: 0 0 1rem;
  line-height: 1.68;
  color: #3f3f46;
}
body.ds-cm[data-theme="dark"] .blog-article p {
  color: var(--muted);
}
.blog-article ul,
.blog-article ol {
  margin: 0 0 1.15rem 1.35rem;
  line-height: 1.65;
  color: #3f3f46;
}
body.ds-cm[data-theme="dark"] .blog-article ul,
body.ds-cm[data-theme="dark"] .blog-article ol {
  color: var(--muted);
}
.blog-article li {
  margin-bottom: 0.4rem;
}
.blog-article a {
  font-weight: 600;
  text-underline-offset: 3px;
}
body.ds-cm .blog-article a {
  color: var(--cm-teal);
}
.blog-article .prompt-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.55;
  margin: 1rem 0 1.25rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
}
.blog-article .faq-item {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.blog-article .faq-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ========== Claw Mart–inspired marketplace shell (DigiStack Hub) ========== */
body.ds-cm {
  /* Purple marketplace brand (matches DigiStack Hub reference) */
  --cm-teal: #7c3aed;
  --cm-teal-hover: #6d28d9;
  --cm-teal-soft: #ede9fe;
  --cm-max: 1320px;
  --brand: var(--cm-teal);
  --brand-2: #a855f7;
  background: #fafafa;
  color: #0a0a0a;
}
body.ds-cm[data-theme="dark"] {
  --cm-teal: #a78bfa;
  --cm-teal-hover: #c4b5fd;
  --cm-teal-soft: color-mix(in srgb, var(--cm-teal) 18%, var(--surface));
  background: var(--bg);
  color: var(--text);
}
body.ds-cm .container {
  max-width: var(--cm-max);
  padding-left: 28px;
  padding-right: 28px;
}
body.ds-cm .nav {
  background: var(--surface);
  border-bottom: 1px solid #e5e5e5;
  backdrop-filter: none;
}
body.ds-cm[data-theme="dark"] .nav {
  border-bottom-color: var(--border);
}
body.ds-cm .brand-logo__wordmark {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.ds-cm .links a {
  color: #404040;
  font-weight: 500;
}
body.ds-cm .links a:hover {
  color: var(--cm-teal);
}
body.ds-cm[data-theme="dark"] .links a {
  color: var(--muted);
}
body.ds-cm[data-theme="dark"] .links a:hover {
  color: var(--cm-teal);
}
body.ds-cm .hero-box {
  border-color: #e5e5e5;
  box-shadow: 0 4px 28px rgba(124, 58, 237, 0.07);
}
body.ds-cm .section-lede {
  margin: -4px 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #525252;
  max-width: 52ch;
}
body.ds-cm[data-theme="dark"] .section-lede {
  color: var(--muted);
}
body.ds-cm .btn-primary {
  background: linear-gradient(135deg, var(--cm-teal), var(--brand-2));
}
body.ds-cm .hero {
  padding-top: 36px;
}
body.ds-cm .cat,
body.ds-cm .card {
  border-color: #e5e5e5;
}
.grid.cm-grid {
  gap: 28px;
}

/* Product cards — matches claw-mart-demo */
.cm-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 26px 26px 22px;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  min-height: 100%;
}
body.ds-cm[data-theme="dark"] .cm-card {
  border-color: var(--border);
}
.cm-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border-color: #d4d4d4;
}
body.ds-cm .cm-card:hover {
  border-color: color-mix(in srgb, #7c3aed 28%, #d4d4d4);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.09);
}
body.ds-cm[data-theme="dark"] .cm-card:hover {
  border-color: color-mix(in srgb, var(--cm-teal) 45%, var(--border));
  box-shadow: 0 14px 44px rgba(167, 139, 250, 0.12);
}
.cm-card__top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px 18px;
  align-items: start;
  margin-bottom: 16px;
}
.cm-card__logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa, #f4f4f5);
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.ds-cm[data-theme="dark"] .cm-card__logo-wrap {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--border);
}
.cm-card__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.cm-card__title-block {
  min-width: 0;
}
.cm-card__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.cm-card__niche {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.cm-card__meta-line {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}
.cm-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cm-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cm-card__pill--skill {
  background: var(--cm-teal-soft);
  color: var(--cm-teal);
}
body.ds-cm[data-theme="dark"] .cm-card__pill--skill {
  background: color-mix(in srgb, var(--cm-teal) 22%, var(--surface));
  color: var(--cm-teal);
}
.cm-card__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cm-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.cm-card__desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #525252;
  flex: 1;
}
body.ds-cm[data-theme="dark"] .cm-card__desc {
  color: var(--muted);
}
.cm-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid #f5f5f5;
}
body.ds-cm[data-theme="dark"] .cm-card__foot {
  border-top-color: var(--border);
}
.cm-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #404040;
}
body.ds-cm[data-theme="dark"] .cm-card__author {
  color: var(--muted);
}
.cm-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cm-teal), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.cm-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  justify-content: flex-end;
}
.cm-card__view {
  font-size: 14px;
  font-weight: 600;
  color: #737373;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cm-card__view:hover {
  color: var(--cm-teal);
}
.cm-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--cm-teal);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: background 0.15s;
}
.cm-card__buy:hover {
  background: var(--cm-teal-hover);
  color: #fff !important;
}
.cm-card__add-cart {
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}
body.ds-cm .catalog-filter.is-active {
  background: linear-gradient(135deg, var(--cm-teal), var(--brand-2));
}
body.ds-cm .catalog-filter:hover {
  border-color: color-mix(in srgb, var(--cm-teal) 35%, #e5e5e5);
}

/* Bundle cards — teal CTA */
.cm-bundle-card {
  border-radius: 16px;
  padding: 22px;
  border: 1px solid #e5e5e5;
}
body.ds-cm[data-theme="dark"] .cm-bundle-card {
  border-color: var(--border);
}
.cm-bundle-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cm-teal-soft);
  color: var(--cm-teal);
}
.cm-bundle-card__title {
  margin: 12px 0 8px;
}
.cm-bundle-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}
.cm-bundle-card__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cm-bundle-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.cm-bundle-card__buy {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 720px) {
  .cm-card__top {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .cm-card__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 1020px) {
  .brand-logo__tagline { display: none; }
  .brand-logo__wordmark { font-size: 1.05rem; }
  .brand-logo__mark { width: 38px; height: 38px; }
  .links { display: none; }
  .grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
