/* The homepage only (index.html): the hero's copy, the section frames and
   what the sections share. The rest of the landing is in site.css. Every
   animation draws the write page as it is now — the kit is /home-page.css
   (.pm-*, Sepia) — each section its own sheet and script: the hero
   (home-beats.js), KudoAI (home-kudoai.css, kudoai-demo.js), Expand's levels
   (home-levels.*), the Edit pass (home-editpass.*), Suggest (home-suggest.*),
   the Bible (home-bible.css, home-fx.js), Undo (home-versions.*). */


:root {
  --spark: #8b5cf6;
  --spark-strong: #7c3aed;
  --spark-text: #c4b5fd;
  --spark-soft: rgba(139, 92, 246, 0.14);
  --ka-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --paper: #f8f1e6;
  --paper-2: #efe4d3;
  --ink: #2b2127;
  --ink-2: #6f5f66;
}


@supports not (color: color-mix(in srgb, red, blue)) {


  :root {
    --spark__r: 139;
    --spark__g: 92;
    --spark__b: 246;
    --spark__a: 1;
    --spark-strong__r: 124;
    --spark-strong__g: 58;
    --spark-strong__b: 237;
    --spark-strong__a: 1;
    --spark-text__r: 196;
    --spark-text__g: 181;
    --spark-text__b: 253;
    --spark-text__a: 1;
    --spark-soft__r: 139;
    --spark-soft__g: 92;
    --spark-soft__b: 246;
    --spark-soft__a: 0.14;
    --paper__r: 248;
    --paper__g: 241;
    --paper__b: 230;
    --paper__a: 1;
    --paper-2__r: 239;
    --paper-2__g: 228;
    --paper-2__b: 211;
    --paper-2__a: 1;
    --ink__r: 43;
    --ink__g: 33;
    --ink__b: 39;
    --ink__a: 1;
    --ink-2__r: 111;
    --ink-2__g: 95;
    --ink-2__b: 102;
    --ink-2__a: 1;
  }
}

/* ================= 1. the hero ================= */
.hx {
  position: relative;
  overflow: hidden;
  /* The nav's own negative margin already slides the hero up under it; a
     second one here put the hero's top behind the nav on a phone. */
  padding-top: var(--site-head-h);
  min-height: min(920px, 100svh);
  display: flex;
  align-items: center;
}
@supports not (height: 1dvh) {


  .hx {
    min-height: min(920px, 100vh);
  }
}
.hx-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hx-glow i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: hx-drift 22s ease-in-out infinite alternate; }
.hx-glow i:nth-child(1) { width: 620px; height: 520px; right: 2%; top: 12%; background: radial-gradient(closest-side, rgba(240, 106, 155, 0.42), transparent); }
.hx-glow i:nth-child(2) { width: 560px; height: 480px; right: 22%; bottom: -14%; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.36), transparent); animation-duration: 28s; animation-delay: -8s; }
.hx-glow i:nth-child(3) { width: 520px; height: 420px; left: -8%; top: -10%; background: radial-gradient(closest-side, rgba(245, 166, 106, 0.2), transparent); animation-duration: 32s; }
@keyframes hx-drift { to { transform: translate(-60px, 40px) scale(1.12); } }

.hx-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
  width: 100%;
}
.hx-copy { padding: 64px 0 80px; }
.hx-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc(clamp(36px, 4.7vw, 64px) / var(--tz, 1));
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 22px 0 20px;
  text-wrap: balance;
}
.hx-copy h1 em {
  font-style: italic;
  background: linear-gradient(100deg, #ffb3cf 0%, #f06a9b 30%, #c084fc 62%, #a78bfa 80%, #f5a66a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hx-shine 9s ease-in-out infinite;
}
@keyframes hx-shine { 50% { background-position: 100% 0; } }
/* "beat" in the headline, as a beat card: a lit box, its badge dot, a slight
   tilt, floating — rose, then violet when the word comes twice. */
.hx-beat {
  --c: 240, 106, 155;
  position: relative;
  display: inline-block;
  padding: 0.02em 0.26em 0.08em 0.42em;
  margin: 0 0.06em;
  border-radius: 0.2em;
  line-height: 1.05;
  font-style: italic;
  color: #ffe1ec;
  -webkit-text-fill-color: #ffe1ec;
  background:
    linear-gradient(160deg, rgba(var(--c), 0.34), rgba(var(--c), 0.1) 60%),
    rgba(28, 20, 32, 0.6);
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--c), 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px -10px rgba(var(--c), 0.9),
    0 0 40px -12px rgba(var(--c), 0.9);
  transform: rotate(-2deg);
  animation: hx-beat-float 4.5s ease-in-out infinite;
}
.hx-beat::before {
  content: "";
  position: absolute;
  left: 0.16em; top: 0.2em;
  width: 0.13em; height: 0.13em;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 0.25em rgb(var(--c));
}
.hx-beat ~ .hx-beat { --c: 167, 139, 250; color: #ece4ff; -webkit-text-fill-color: #ece4ff; transform: rotate(1.6deg); animation-delay: -2.2s; }
@keyframes hx-beat-float { 50% { translate: 0 -0.06em; box-shadow: inset 0 0 0 1.5px rgba(var(--c), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 34px -10px rgba(var(--c), 1), 0 0 50px -10px rgba(var(--c), 1); } }
@media (prefers-reduced-motion: reduce) { .hx-beat { animation: none; } }
.hx-copy .hero-sub { margin: 0 0 30px; max-width: 46ch; font-size: calc(18px / var(--tz, 1)); text-wrap: pretty; color: var(--fg-2); }
.hx-copy .hero-ctas .btn-primary { font-size: calc(15.5px / var(--tz, 1)); padding: 15px 28px; border-radius: 12px; }
.hx-watch { color: var(--spark-text); font-weight: 700; }
.hx-watch:hover { color: #fff; }
.hx-play {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 8%, #d9ccff 22%, var(--spark) 52%, var(--spark-strong) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 0 16px rgba(139, 92, 246, 0.7);
  animation: hx-orb 1.8s ease-in-out infinite;
}
@keyframes hx-orb { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 0 28px rgba(139, 92, 246, 0.95); } }
.js .hx-copy > * { animation: hx-rise 0.9s var(--ka-ease) both; }
.js .hx-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hx-copy > :nth-child(3) { animation-delay: 0.18s; }
.js .hx-copy > :nth-child(4) { animation-delay: 0.28s; }
.js .hx-copy > :nth-child(5) { animation-delay: 0.36s; }
@keyframes hb-pulse { 50% { opacity: 0.45; } }
@keyframes hb-blink { 50% { opacity: 0; } }
@keyframes hx-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }


@media (max-width: 1000px) {
  .hx { min-height: 0; }
  .hx-grid { grid-template-columns: 1fr; gap: 0; }
  .hx-copy { padding: 56px 0 8px; text-align: center; max-width: 680px; margin: 0 auto; }
  .hx-copy .eyebrow { margin-inline: auto; }
  /* "beat" in the headline, as a beat card: a lit box, its badge dot, a slight
   tilt, floating — rose, then violet when the word comes twice. */
.hx-beat {
  --c: 240, 106, 155;
  position: relative;
  display: inline-block;
  padding: 0.02em 0.26em 0.08em 0.42em;
  margin: 0 0.06em;
  border-radius: 0.2em;
  line-height: 1.05;
  font-style: italic;
  color: #ffe1ec;
  -webkit-text-fill-color: #ffe1ec;
  background:
    linear-gradient(160deg, rgba(var(--c), 0.34), rgba(var(--c), 0.1) 60%),
    rgba(28, 20, 32, 0.6);
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--c), 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px -10px rgba(var(--c), 0.9),
    0 0 40px -12px rgba(var(--c), 0.9);
  transform: rotate(-2deg);
  animation: hx-beat-float 4.5s ease-in-out infinite;
}
.hx-beat::before {
  content: "";
  position: absolute;
  left: 0.16em; top: 0.2em;
  width: 0.13em; height: 0.13em;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 0.25em rgb(var(--c));
}
.hx-beat ~ .hx-beat { --c: 167, 139, 250; color: #ece4ff; -webkit-text-fill-color: #ece4ff; transform: rotate(1.6deg); animation-delay: -2.2s; }
@keyframes hx-beat-float { 50% { translate: 0 -0.06em; box-shadow: inset 0 0 0 1.5px rgba(var(--c), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 34px -10px rgba(var(--c), 1), 0 0 50px -10px rgba(var(--c), 1); } }
@media (prefers-reduced-motion: reduce) { .hx-beat { animation: none; } }
.hx-copy .hero-sub { margin-inline: auto; }
  .hx-copy .hero-ctas, .hx-copy .hero-note { justify-content: center; }
}
@media (max-width: 720px) {
  .hx-copy { padding-top: 28px; }
  .hx-copy .eyebrow { margin-bottom: 0; }
  .hx-copy h1 { margin: 16px 0 16px; }
  .hx-copy { padding-bottom: 56px; }
  /* "beat" in the headline, as a beat card: a lit box, its badge dot, a slight
   tilt, floating — rose, then violet when the word comes twice. */
.hx-beat {
  --c: 240, 106, 155;
  position: relative;
  display: inline-block;
  padding: 0.02em 0.26em 0.08em 0.42em;
  margin: 0 0.06em;
  border-radius: 0.2em;
  line-height: 1.05;
  font-style: italic;
  color: #ffe1ec;
  -webkit-text-fill-color: #ffe1ec;
  background:
    linear-gradient(160deg, rgba(var(--c), 0.34), rgba(var(--c), 0.1) 60%),
    rgba(28, 20, 32, 0.6);
  box-shadow:
    inset 0 0 0 1.5px rgba(var(--c), 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px -10px rgba(var(--c), 0.9),
    0 0 40px -12px rgba(var(--c), 0.9);
  transform: rotate(-2deg);
  animation: hx-beat-float 4.5s ease-in-out infinite;
}
.hx-beat::before {
  content: "";
  position: absolute;
  left: 0.16em; top: 0.2em;
  width: 0.13em; height: 0.13em;
  border-radius: 50%;
  background: rgb(var(--c));
  box-shadow: 0 0 0.25em rgb(var(--c));
}
.hx-beat ~ .hx-beat { --c: 167, 139, 250; color: #ece4ff; -webkit-text-fill-color: #ece4ff; transform: rotate(1.6deg); animation-delay: -2.2s; }
@keyframes hx-beat-float { 50% { translate: 0 -0.06em; box-shadow: inset 0 0 0 1.5px rgba(var(--c), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 34px -10px rgba(var(--c), 1), 0 0 50px -10px rgba(var(--c), 1); } }
@media (prefers-reduced-motion: reduce) { .hx-beat { animation: none; } }
.hx-copy .hero-sub { font-size: calc(16px / var(--tz, 1)); }
}
@media (max-width: 380px) { .hx-copy .hero-ctas .btn { width: 100%; } }

/* ================= 2. KudoAI: its own sheet, /home-kudoai.css ================= */
.ka-kicker { justify-content: center; color: var(--spark-text); }
.ka-kicker i { background: var(--spark) !important; box-shadow: 0 0 12px var(--spark) !important; }

@media (prefers-reduced-motion: reduce) {
  .hx-glow i, .hx-play, .hx-copy h1 em { animation: none !important; }
}

/* ================= Suggest next beat: its three kinds, drawn ================= */
.sgk-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.sgk {
  --kind: #7cc4f0;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 50%, color-mix(in srgb, var(--kind) 12%, transparent), transparent 60%),
    linear-gradient(180deg, #1d1922, #16131a);
  border: 1px solid color-mix(in srgb, var(--kind) 22%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px -26px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ka-ease), border-color 0.35s, box-shadow 0.35s;
}
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk {
    --kind__r: 124;
    --kind__g: 196;
    --kind__b: 240;
    --kind__a: 1;
    background: radial-gradient(120% 120% at 0% 50%, rgba(var(--kind__r), var(--kind__g), var(--kind__b), calc(var(--kind__a) * 0.12)), transparent 60%),
    linear-gradient(180deg, #1d1922, #16131a);
    border: 1px solid rgba(calc(var(--kind__r) * 0.22 + 198.9), calc(var(--kind__g) * 0.22 + 198.9), calc(var(--kind__b) * 0.22 + 198.9), calc(var(--kind__a) * 0.22 + 0.047));
  }
}
.sgk:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--kind) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kind) 12%, transparent), 0 24px 44px -24px var(--kind); }
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk:hover {
    border-color: rgba(var(--kind__r), var(--kind__g), var(--kind__b), calc(var(--kind__a) * 0.55));
    box-shadow: 0 0 0 3px rgba(var(--kind__r), var(--kind__g), var(--kind__b), calc(var(--kind__a) * 0.12)), 0 24px 44px -24px var(--kind);
  }
}
.sgk[data-k="progress"] { --kind: #86d29a; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk[data-k="progress"] {
    --kind__r: 134;
    --kind__g: 210;
    --kind__b: 154;
    --kind__a: 1;
  }
}
.sgk[data-k="twist"] { --kind: #f0a3e8; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk[data-k="twist"] {
    --kind__r: 240;
    --kind__g: 163;
    --kind__b: 232;
    --kind__a: 1;
  }
}
.sgk-art {
  flex: none; width: 112px; aspect-ratio: 120 / 72;
  border-radius: 14px;
  color: var(--kind);
  background: radial-gradient(100% 90% at 50% 30%, color-mix(in srgb, var(--kind) 20%, transparent), transparent 75%), rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk-art {
    background: radial-gradient(100% 90% at 50% 30%, rgba(var(--kind__r), var(--kind__g), var(--kind__b), calc(var(--kind__a) * 0.2)), transparent 75%), rgba(255, 255, 255, 0.03);
  }
}
.sgk-art svg { display: block; width: 100%; height: 100%; }
.sgk b { display: flex; align-items: center; gap: 7px; font-size: calc(15.5px / var(--tz, 1)); color: var(--fg); }
.sgk b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kind); box-shadow: 0 0 10px var(--kind); }
.sgk p { margin: 4px 0 0; font-size: calc(13.5px / var(--tz, 1)); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.sgk-glow { fill: var(--kind); opacity: 0.12; transform-origin: 52px 32px; animation: sgk-glow 3s ease-in-out infinite; }
@keyframes sgk-glow { 50% { opacity: 0.3; transform: scale(1.12); } }
.sgk-heart { transform-origin: 52px 34px; animation: sgk-beat 1.6s ease-in-out infinite; }
@keyframes sgk-beat { 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }
.sgk-tw { transform-box: fill-box; transform-origin: center; animation: sgk-tw 2.4s ease-in-out infinite; }
.sgk-tw.t2 { animation-delay: -1.2s; }
@keyframes sgk-tw { 50% { transform: scale(0.4) rotate(45deg); opacity: 0.4; } }
.sgk-road { stroke-dasharray: 5 6; animation: sgk-march 1.2s linear infinite; }
@keyframes sgk-march { to { stroke-dashoffset: -11; } }
.sgk-walker { offset-path: path("M8 62C28 62 26 38 46 40s30 16 46-4"); filter: drop-shadow(0 0 6px #86d29a); animation: sgk-walk 3.4s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes sgk-walk { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.sgk-flag { transform-box: fill-box; transform-origin: 0 50%; animation: sgk-wave 1.4s ease-in-out infinite; }
@keyframes sgk-wave { 50% { transform: skewY(-8deg) scaleX(0.9); } }
.sgk-loop { stroke-dasharray: 200; stroke-dashoffset: 200; animation: sgk-draw 3.6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes sgk-draw { 0% { stroke-dashoffset: 200; } 55%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sgk-burst { transform-box: fill-box; transform-origin: center; animation: sgk-burst 3.6s ease-out infinite; }
@keyframes sgk-burst { 0%, 30% { transform: scale(0); } 42% { transform: scale(1.6) rotate(30deg); } 60%, 100% { transform: scale(1) rotate(45deg); } }
@media (max-width: 720px) {
  .sgk { gap: 12px; padding: 10px 14px 10px 10px; }
  .sgk-art { width: 88px; }
  .sgk p { font-size: calc(13px / var(--tz, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .sgk-glow, .sgk-heart, .sgk-tw, .sgk-road, .sgk-walker, .sgk-flag, .sgk-loop, .sgk-burst { animation: none !important; }
  .sgk-loop { stroke-dashoffset: 0; }
  .sgk-walker { display: none; }
}

/* Shared ring keyframe (the levels section uses it; the Undo section moved to home-versions.css). */
@keyframes vx-ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }

/* The Rewrite's three levels, as the Suggest cards: the app's own drawings
   (EffortArt, src/lib/ui/rewrite-art.tsx, rendered into the page). */
.sgk-lv[data-k="stick"] { --kind: #f7b4cb; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk-lv[data-k="stick"] {
    --kind__r: 247;
    --kind__g: 180;
    --kind__b: 203;
    --kind__a: 1;
  }
}
.sgk-lv[data-k="short"] { --kind: #f06a9b; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk-lv[data-k="short"] {
    --kind__r: 240;
    --kind__g: 106;
    --kind__b: 155;
    --kind__a: 1;
  }
}
.sgk-lv[data-k="novel"] { --kind: #d0457c; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .sgk-lv[data-k="novel"] {
    --kind__r: 208;
    --kind__g: 69;
    --kind__b: 124;
    --kind__a: 1;
  }
}
.sgk-lv .sgk-art { aspect-ratio: 200 / 132; width: 104px; }
.sgk-lv .sgk-art svg { transform: scale(1.18) translateY(-4%); }
.sgk-lv b em { margin-left: auto; padding-left: 10px; font-style: normal; font-size: calc(11px / var(--tz, 1)); font-weight: 700; color: var(--kind); white-space: nowrap; }
.sgk-lv b { width: 100%; }
.sgk-lv > div:last-child { flex: 1; min-width: 0; }
@media (max-width: 720px) { .sgk-lv .sgk-art { width: 84px; } }

/* ================= A lot more to explore: cards bubbling up ================= */
.wx { position: relative; overflow: hidden; isolation: isolate; min-height: min(900px, 110svh); display: flex; align-items: center; padding: 100px 0; margin-top: 40px;
  background:
    radial-gradient(900px 500px at 50% 100%, rgba(240, 106, 155, 0.16), transparent 70%),
    radial-gradient(700px 420px at 15% 30%, rgba(139, 92, 246, 0.12), transparent 70%),
    radial-gradient(700px 420px at 88% 40%, rgba(245, 166, 106, 0.1), transparent 70%); }
@supports not (height: 1dvh) {


  .wx {
    min-height: min(900px, 110vh);
  }
}
.wx > .wrap { position: relative; z-index: 2; width: 100%; }
.wx-anchor { position: absolute; top: 0; }
.wx-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; contain: strict; }
.wx-copy { position: relative; z-index: 3; max-width: 640px; margin: 0 auto; text-align: center; padding: 30px 0; }
.wx-copy::before { content: ""; position: absolute; inset: -80px -160px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 14, 18, 0.97), rgba(15, 14, 18, 0.85) 55%, transparent); }
.wx-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: calc(clamp(34px, 5vw, 60px) / var(--tz, 1)); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.wx-copy h2 em { font-style: italic; background: linear-gradient(100deg, #ffb3cf, #f06a9b 35%, #c084fc 70%, #f5a66a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx-shine 9s ease-in-out infinite; }
.wx-copy p { color: var(--fg-2); font-size: calc(17px / var(--tz, 1)); margin: 0 auto 28px; max-width: 46ch; }
.wx-copy .btn-primary { font-size: calc(16px / var(--tz, 1)); padding: 16px 32px; border-radius: 14px; box-shadow: 0 18px 44px -14px rgba(240, 106, 155, 0.9), 0 0 0 6px rgba(240, 106, 155, 0.12); animation: wx-pulse 2.6s ease-in-out infinite; }
.wx-copy .btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes wx-pulse { 50% { box-shadow: 0 18px 44px -14px rgba(240, 106, 155, 0.9), 0 0 0 12px rgba(240, 106, 155, 0.05); } }

/* The cards: a grid without JS (and with reduced motion), floating with it. */
.wx-grid { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.wx.live .wx-grid { display: none; }
.wx-card { --tint: #f06a9b; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-card {
    --tint__r: 240;
    --tint__g: 106;
    --tint__b: 155;
    --tint__a: 1;
  }
}
.wx-card[data-tint="violet"] { --tint: #a78bfa; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-card[data-tint="violet"] {
    --tint__r: 167;
    --tint__g: 139;
    --tint__b: 250;
    --tint__a: 1;
  }
}
.wx-card[data-tint="apricot"] { --tint: #f5a66a; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-card[data-tint="apricot"] {
    --tint__r: 245;
    --tint__g: 166;
    --tint__b: 106;
    --tint__a: 1;
  }
}
.wx-card[data-tint="pink"] { --tint: #f0a3e8; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-card[data-tint="pink"] {
    --tint__r: 240;
    --tint__g: 163;
    --tint__b: 232;
    --tint__a: 1;
  }
}
.wx-card[data-tint="green"] { --tint: #86d29a; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-card[data-tint="green"] {
    --tint__r: 134;
    --tint__g: 210;
    --tint__b: 154;
    --tint__a: 1;
  }
}
.wx-card[data-tint="sky"] { --tint: #7cc4f0; }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-card[data-tint="sky"] {
    --tint__r: 124;
    --tint__g: 196;
    --tint__b: 240;
    --tint__a: 1;
  }
}
.wx-card-in, .wx-float {
  padding: 8px 8px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(44, 38, 52, 0.96), rgba(27, 24, 32, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 26px 50px -26px rgba(0, 0, 0, 0.95), 0 0 50px -18px var(--tint);
}
.wx-float { position: absolute; left: 0; top: 0; width: 196px; will-change: transform, opacity; opacity: 0; }
.wx-float .wx-card-in { padding: 0; border: 0; background: none; box-shadow: none; }
.wx-art { aspect-ratio: 140 / 84; border-radius: 15px; overflow: hidden; background: radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 72%), rgba(255, 255, 255, 0.03); }
@supports not (color: color-mix(in srgb, red, blue)) {


  .wx-art {
    background: radial-gradient(120% 90% at 50% 18%, rgba(var(--tint__r), var(--tint__g), var(--tint__b), calc(var(--tint__a) * 0.22)), transparent 72%), rgba(255, 255, 255, 0.03);
  }
}
.wx-art svg { display: block; width: 100%; height: 100%; }
.wx-card b, .wx-float b { display: flex; align-items: center; gap: 7px; margin: 9px 6px 2px; font-size: calc(13.5px / var(--tz, 1)); color: var(--fg); line-height: 1.25; }
.wx-card b::before, .wx-float b::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 8px var(--tint); }
.wx-card span, .wx-float span { display: block; margin: 0 6px; font-size: calc(11.5px / var(--tz, 1)); line-height: 1.4; color: var(--fg-2); }
.wx-bubble { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.8) 0 12%, rgba(240, 163, 232, 0.25) 35%, rgba(167, 139, 250, 0.08) 70%);
  border: 1px solid rgba(255, 255, 255, 0.25); }
@media (max-width: 720px) {
  .wx { min-height: 0; padding: 70px 0; }
  /* The cards rise behind the words, which sit in the middle of them. */
  .wx.live { min-height: max(760px, 100svh); align-items: center; }
  @supports not (height: 1dvh) {


    .wx.live {
      min-height: max(760px, 100vh);
    }
  }
  .wx-copy::before { inset: -130px -90px; background: radial-gradient(closest-side, rgba(15, 14, 18, 0.98), rgba(15, 14, 18, 0.92) 60%, transparent); }
  .wx-copy p { font-size: calc(15.5px / var(--tz, 1)); }
  .wx-float { width: 156px; padding: 6px 6px 9px; border-radius: 18px; }
  .wx-float span { display: none; }
  .wx-float b { font-size: calc(12px / var(--tz, 1)); margin: 7px 4px 0; }
  .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .wx-copy .btn-primary, .wx-copy h2 em { animation: none; } }
@media (max-width: 720px) {
  .wx-fx { -webkit-mask: linear-gradient(transparent, #000 70px, #000 calc(100% - 30px), transparent); mask: linear-gradient(transparent, #000 70px, #000 calc(100% - 30px), transparent); }
}
