:root {
  --bg: #0a0a0f;
  --bg-elev: #12121a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #9a9aa6;
  --accent: #ff4d3d;
  --accent-2: #ffb13d;
  --success: #3dffaa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 60px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}

.page-optin {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 77, 61, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 177, 61, 0.10), transparent 60%),
    var(--bg);
}

.page-thanks {
  padding-top: 48px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 255, 170, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 177, 61, 0.08), transparent 60%),
    var(--bg);
}

.page-checkinbox {
  padding-top: 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 77, 61, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 177, 61, 0.10), transparent 60%),
    var(--bg);
}

.page-checkinbox main {
  text-align: center;
}

.page-checkinbox h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.1;
}

.page-checkinbox .sub {
  margin-right: auto;
  margin-left: auto;
}

.mail-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 28px rgba(255, 77, 61, 0.35));
}

.mail-icon svg {
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}

.page-thanks main {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 77, 61, 0.35);
  border-radius: 999px;
  background: rgba(255, 77, 61, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
}

h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--text);
  white-space: nowrap;
}

h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 24px rgba(255, 77, 61, 0.45);
}

.sub {
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
}

.sub:empty {
  display: none;
}

.page-thanks .sub {
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
}

.optin-form {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(8px);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input::placeholder {
  color: #555560;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  background: #16161f;
  box-shadow: 0 0 0 3px rgba(255, 77, 61, 0.18);
}

button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 16px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a3d 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(255, 77, 61, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.08s, box-shadow 0.15s, filter 0.15s;
}

button[type="submit"]:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 40px rgba(255, 77, 61, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.hp-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent);
  background: var(--bg-elev);
  cursor: pointer;
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: -1px;
  border-radius: 4px;
}

.check-row:hover input[type="checkbox"] {
  outline-color: var(--accent);
}

.check-row span em {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 700;
}

.check-row.consent-long input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.check-row.consent-long {
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.check-row.consent-long span strong {
  color: var(--text);
  font-weight: 800;
}

.footer {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

.footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.msg {
  display: none;
  padding: 14px 16px;
  margin-top: 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

.msg.show {
  display: block;
}

.msg.error {
  border: 1px solid rgba(255, 77, 61, 0.3);
  background: rgba(255, 77, 61, 0.08);
  color: #ff8b7d;
}

.skeleton {
  opacity: 0.3;
}

.bundle-label {
  margin: 18px auto 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bundle-preview {
  margin: 0 auto 28px;
  max-width: 560px;
}

.magnet-local-ai-finetuning-starter-kit main {
  max-width: 780px;
}

.magnet-local-ai-finetuning-starter-kit .bundle-preview {
  max-width: min(760px, 96vw);
  margin-bottom: 32px;
}

.bundle-preview svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.social-proof {
  margin: 0 auto 30px;
  max-width: 640px;
}

.social-proof[hidden] {
  display: none;
}

.social-proof-heading {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-proof-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof-card {
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.proof-card img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-card:nth-child(2) {
  max-width: 420px;
  margin: 0 auto;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border: 2px solid var(--success);
  border-radius: 50%;
  background: rgba(61, 255, 170, 0.1);
  box-shadow: 0 0 40px rgba(61, 255, 170, 0.35);
  color: var(--success);
  font-size: 36px;
}

.page-thanks h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.1;
}

.deliverables {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  text-align: left;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: border-color 0.15s, transform 0.08s, box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.promo-card {
  border-color: rgba(216, 180, 254, 0.28);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(255, 255, 255, 0.025));
}

.promo-card .icon {
  border-color: rgba(216, 180, 254, 0.36);
  background: rgba(168, 85, 247, 0.18);
}

.icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 77, 61, 0.3);
  border-radius: 10px;
  background: rgba(255, 77, 61, 0.15);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-label {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.card-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.card-action {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7a3d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 77, 61, 0.3);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.08s;
}

.card-action:hover {
  filter: brightness(1.1);
}

.card-action:active {
  transform: translateY(1px);
}

.email-note {
  padding: 16px 18px;
  margin-top: 18px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.email-note strong {
  color: var(--text);
}

.email-note a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 177, 61, 0.4);
}

.email-note a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-2);
}

.confirmed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
  padding: 14px 18px;
  border: 1px solid rgba(61, 255, 170, 0.35);
  border-radius: 10px;
  background: rgba(61, 255, 170, 0.10);
  color: var(--text);
  font-size: 14px;
  text-align: left;
}

.confirmed-banner-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: #062b1c;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 520px) {
  .row {
    grid-template-columns: 1fr;
  }

  .proof-card:nth-child(2) {
    max-width: 100%;
  }

  .card {
    flex-wrap: wrap;
  }

  .card-action {
    width: 100%;
    margin-top: 8px;
  }
}

/* ─────────────────────────────────────────────────────────
   Blue theme — opt-in via `body.theme-blue` (set by index.js
   for specific magnet slugs, e.g. magnus-podcast). Overrides
   accent vars and the page-optin glow gradients to a cool
   blue palette while leaving the rest of the layout intact.
   ───────────────────────────────────────────────────────── */
body.theme-blue {
  --accent: #3d7aff;
  --accent-2: #3dd1ff;
}

body.theme-blue.page-optin {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 122, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(61, 209, 255, 0.10), transparent 60%),
    var(--bg);
}

body.theme-blue.page-thanks {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 209, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(61, 122, 255, 0.10), transparent 60%),
    var(--bg);
}

body.theme-blue .badge {
  border-color: rgba(61, 122, 255, 0.40);
  background: rgba(61, 122, 255, 0.14);
}

body.theme-blue h1 .hl::after {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 24px rgba(61, 122, 255, 0.50);
}

body.theme-blue input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 122, 255, 0.22);
}

body.theme-blue button[type="submit"] {
  background: linear-gradient(135deg, var(--accent) 0%, #5b8def 100%);
  box-shadow: 0 8px 32px rgba(61, 122, 255, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

body.theme-blue button[type="submit"]:hover {
  box-shadow: 0 10px 40px rgba(61, 122, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.theme-blue .icon {
  border-color: rgba(61, 122, 255, 0.35);
  background: rgba(61, 122, 255, 0.18);
}

body.theme-blue .card-action {
  background: linear-gradient(135deg, var(--accent) 0%, #5b8def 100%);
  box-shadow: 0 4px 16px rgba(61, 122, 255, 0.35);
}

body.theme-blue .msg.error {
  /* keep red for errors — semantic, don't theme */
}

/* Smaller subtext for the long consent checkbox (this magnet only). */
body.theme-blue .check-row.consent-long {
  font-size: 11.5px;
  line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────
   Green theme — opt-in via `body.theme-green` (set by
   index.js for specific magnet slugs, e.g. hermes-ceo).
   Bright emerald + lime palette, deeper page background,
   glowing accents — the green is the main theme, not just
   a tint.
   ───────────────────────────────────────────────────────── */
body.theme-green {
  --bg: #06100c;
  --bg-elev: #0c1a14;
  --accent: #22e07a;
  --accent-2: #a4f76a;
  --text: #f1faf3;
  --text-dim: #8aa996;
}

body.theme-green.page-optin {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(34, 224, 122, 0.30), transparent 62%),
    radial-gradient(ellipse 70% 45% at 80% 100%, rgba(164, 247, 106, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 12% 95%, rgba(16, 185, 129, 0.18), transparent 60%),
    var(--bg);
}

body.theme-green.page-thanks {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 224, 122, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(164, 247, 106, 0.12), transparent 60%),
    var(--bg);
}

/* Subtle scanning grid behind the hero, themed green */
body.theme-green main::before {
  background-image:
    linear-gradient(rgba(34, 224, 122, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 224, 122, 0.05) 1px, transparent 1px);
}

body.theme-green .badge {
  border: 1px solid rgba(34, 224, 122, 0.45);
  background: rgba(34, 224, 122, 0.14);
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(34, 224, 122, 0.55);
}

body.theme-green .badge .dot {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 28px rgba(34, 224, 122, 0.6);
}

body.theme-green h1 {
  text-shadow: 0 1px 30px rgba(34, 224, 122, 0.10);
}

body.theme-green h1 .hl {
  background: linear-gradient(135deg, #a4f76a 0%, #22e07a 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-green h1 .hl::after {
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 50%, #10b981 100%);
  box-shadow: 0 0 28px rgba(34, 224, 122, 0.65);
}

body.theme-green .bundle-label {
  color: var(--accent-2);
  letter-spacing: 0.14em;
}

body.theme-green .optin-form {
  border: 1px solid rgba(34, 224, 122, 0.18);
  background:
    linear-gradient(180deg, rgba(34, 224, 122, 0.06), rgba(34, 224, 122, 0.01)),
    rgba(8, 16, 12, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(34, 224, 122, 0.15);
}

body.theme-green input {
  border: 1px solid rgba(34, 224, 122, 0.22);
  background: rgba(7, 18, 13, 0.85);
}

body.theme-green input::placeholder {
  color: rgba(164, 247, 106, 0.45);
}

body.theme-green input[type="checkbox"] {
  accent-color: var(--accent);
}

body.theme-green .check-row input[type="checkbox"] {
  outline: 1px solid rgba(34, 224, 122, 0.45);
  background: rgba(7, 18, 13, 0.85);
}

body.theme-green .check-row:hover input[type="checkbox"] {
  outline-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 224, 122, 0.18);
}

body.theme-green input:focus {
  border-color: var(--accent);
  background: #0a1f15;
  box-shadow: 0 0 0 3px rgba(34, 224, 122, 0.25), 0 0 24px rgba(34, 224, 122, 0.20);
}

body.theme-green button[type="submit"] {
  background: linear-gradient(135deg, #22e07a 0%, #10b981 60%, #059669 100%);
  color: #04130b;
  font-weight: 800;
  text-shadow: none;
  box-shadow:
    0 10px 36px rgba(34, 224, 122, 0.45),
    0 0 0 1px rgba(34, 224, 122, 0.55) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.theme-green button[type="submit"]:hover {
  filter: brightness(1.10);
  box-shadow:
    0 14px 50px rgba(34, 224, 122, 0.65),
    0 0 0 1px rgba(34, 224, 122, 0.75) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.theme-green .check-row.consent-long {
  font-size: 11.5px;
  line-height: 1.55;
}

body.theme-green .footer {
  color: rgba(164, 247, 106, 0.55);
}

body.theme-green .icon {
  border-color: rgba(34, 224, 122, 0.40);
  background: rgba(34, 224, 122, 0.18);
}

body.theme-green .card-action {
  background: linear-gradient(135deg, var(--accent) 0%, #10b981 100%);
  box-shadow: 0 4px 16px rgba(34, 224, 122, 0.45);
}

body.theme-green .msg.error {
  /* keep red for errors — semantic, don't theme */
}

/* Bundle preview hover glow tinted green for this magnet */
.magnet-local-ai-finetuning-starter-kit.theme-green .bundle-preview svg .bundle-card:not(:has(.card-inner)):hover,
.magnet-local-ai-finetuning-starter-kit.theme-green .bundle-preview svg .bundle-card:hover .card-inner {
  filter: brightness(1.16) drop-shadow(0 14px 34px rgba(34, 224, 122, 0.50));
}

/* ─────────────────────────────────────────────────────────
   Purple theme — opt-in via `body.theme-purple` for the
   Hermes + Vapi phone-agent magnet. Dark purple palette with
   a subtle gritty/noisy background texture.
   ───────────────────────────────────────────────────────── */
body.theme-purple {
  --bg: #07030f;
  --bg-elev: #13091f;
  --accent: #a855f7;
  --accent-2: #f0abfc;
}

body.theme-purple.page-optin {
  background:
    radial-gradient(ellipse 82% 52% at 50% -10%, rgba(168, 85, 247, 0.26), transparent 62%),
    radial-gradient(ellipse 64% 44% at 88% 100%, rgba(91, 33, 182, 0.24), transparent 62%),
    radial-gradient(ellipse 46% 32% at 8% 72%, rgba(240, 171, 252, 0.08), transparent 66%),
    var(--bg);
}

body.theme-purple.page-thanks {
  background:
    radial-gradient(ellipse 82% 52% at 50% -10%, rgba(168, 85, 247, 0.18), transparent 62%),
    radial-gradient(ellipse 64% 44% at 88% 100%, rgba(91, 33, 182, 0.18), transparent 62%),
    var(--bg);
}

body.theme-purple::before {
  background-image:
    linear-gradient(rgba(216, 180, 254, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 254, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 78% 66% at 50% 30%, black 34%, transparent 92%);
}

body.theme-purple::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.12) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.10) 0 0.8px, transparent 1px),
    radial-gradient(circle at 34% 82%, rgba(255,255,255,0.09) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 58% 56%, rgba(168,85,247,0.20) 0 0.9px, transparent 1.1px);
  background-size: 23px 23px, 31px 31px, 37px 37px, 43px 43px;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 28%, black 34%, transparent 92%);
}

body.theme-purple .badge {
  border-color: rgba(168, 85, 247, 0.46);
  background: rgba(168, 85, 247, 0.16);
}

body.theme-purple h1 .hl::after {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.58);
}

body.theme-purple .optin-form,
body.theme-purple .card {
  border-color: rgba(216, 180, 254, 0.14);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.055), rgba(255, 255, 255, 0.012));
}

body.theme-purple input[type="text"],
body.theme-purple input[type="email"] {
  background: #12091f;
}

body.theme-purple input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.24);
}

body.theme-purple button[type="submit"] {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

body.theme-purple button[type="submit"]:hover {
  box-shadow: 0 10px 42px rgba(168, 85, 247, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.theme-purple .icon {
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(168, 85, 247, 0.20);
}

body.theme-purple .card-action {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.38);
}

body.theme-purple .check-row.consent-long {
  font-size: 11.5px;
  line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────
   Bundle preview — interactive hover zoom on each card.
   Per-magnet SVGs use one of two patterns:
     A) <g class="bundle-card"> (no SVG transform) — CSS scales the
        whole group. Used by magnus/tmux/vapi-style bundles.
     B) <g class="bundle-card" transform="translate(..)"> with a nested
        <g class="card-inner"> — CSS must scale .card-inner because a CSS
        transform on .bundle-card would clobber the SVG translate and
        snap the card to (0,0). Used by local-ai-finetuning / uncensored.
   We detect (B) by presence of .card-inner; otherwise default to (A).
   ───────────────────────────────────────────────────────── */

/* Shared affordance: cursor + pointer-events on the card group */
.bundle-preview svg .bundle-card {
  cursor: pointer;
  pointer-events: auto;
}

/* Pattern A: scale the whole <g class="bundle-card"> */
.bundle-preview svg .bundle-card:not(:has(.card-inner)) {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.24s ease,
              opacity 0.24s ease;
}

.bundle-preview svg:hover .bundle-card:not(:has(.card-inner)) {
  opacity: 0.88;
}

.bundle-preview svg .bundle-card:not(:has(.card-inner)):hover {
  transform: scale(1.075);
  opacity: 1;
  filter: brightness(1.14) drop-shadow(0 12px 30px rgba(168, 85, 247, 0.42));
}

/* Pattern B: scale the inner <g class="card-inner"> so the outer SVG
   transform="translate(..)" on .bundle-card is preserved */
.bundle-preview svg .bundle-card .card-inner {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.24s ease,
              opacity 0.24s ease;
}

.bundle-preview svg:hover .bundle-card .card-inner {
  opacity: 0.88;
}

.bundle-preview svg .bundle-card:hover .card-inner {
  transform: scale(1.075);
  opacity: 1;
  filter: brightness(1.14) drop-shadow(0 12px 30px rgba(168, 85, 247, 0.42));
}

.magnet-local-ai-finetuning-starter-kit .bundle-preview svg .bundle-card:not(:has(.card-inner)):hover,
.magnet-local-ai-finetuning-starter-kit .bundle-preview svg .bundle-card:hover .card-inner {
  filter: brightness(1.14) drop-shadow(0 12px 30px rgba(255, 77, 61, 0.42));
}

@media (prefers-reduced-motion: reduce) {
  .bundle-preview svg .bundle-card:not(:has(.card-inner)),
  .bundle-preview svg .bundle-card:not(:has(.card-inner)):hover,
  .bundle-preview svg .bundle-card .card-inner,
  .bundle-preview svg .bundle-card:hover .card-inner {
    transition: none;
    transform: none;
    filter: none;
  }
}

/* ============ cmux-ai-agents-bundle: dark + blue cmux palette ============ */
.magnet-cmux-ai-agents-bundle {
  --accent: #3b82f6;
  --accent-2: #22d3ee;
}

.magnet-cmux-ai-agents-bundle.page-optin {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    #06080f;
}

.magnet-cmux-ai-agents-bundle .badge {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.magnet-cmux-ai-agents-bundle .badge .dot {
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.magnet-cmux-ai-agents-bundle h1 .accent,
.magnet-cmux-ai-agents-bundle #headline em {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.magnet-cmux-ai-agents-bundle h1::after,
.magnet-cmux-ai-agents-bundle #headline + .sub::before {
  background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
}

.magnet-cmux-ai-agents-bundle .optin-form input:focus {
  border-color: var(--accent);
  background: #0d1424;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.magnet-cmux-ai-agents-bundle .optin-form input,
.magnet-cmux-ai-agents-bundle .optin-form textarea {
  background: #0c1322;
  border-color: rgba(148, 180, 255, 0.12);
}

.magnet-cmux-ai-agents-bundle #submit-btn {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.magnet-cmux-ai-agents-bundle #submit-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 34px rgba(59, 130, 246, 0.5);
}

.magnet-cmux-ai-agents-bundle .check-row span em {
  color: var(--accent-2);
}

.magnet-cmux-ai-agents-bundle .footer a,
.magnet-cmux-ai-agents-bundle .footer {
  color: #94a3b8;
}

.magnet-cmux-ai-agents-bundle .footer a {
  color: var(--accent-2);
}

.magnet-cmux-ai-agents-bundle .msg.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
  color: #fca5a5;
}

.magnet-cmux-ai-agents-bundle .bundle-preview svg .bundle-card:hover .card-inner,
.magnet-cmux-ai-agents-bundle .bundle-preview svg .bundle-card:not(:has(.card-inner)):hover {
  filter: brightness(1.14) drop-shadow(0 12px 30px rgba(59, 130, 246, 0.5));
}
