/* Design audit proposals (Nov 16, 2026).
   Rules here are scoped to a class on <html> that only ?design=<key> adds, so without the URL switch nothing
   in this file applies. When the user picks an item, move its rules into styles.css or anim.css (or make the
   JSX change) and delete them here. Keys match the design items in the copy review (copy-review/design.json).
   Open now: hero-a, hero-b, hero-c, hero-d (Nov 18, 2026): make it plain that the homepage hero's walkthrough is the product
   highlighted on the left (D is C plus B). The JSX side is WT_LINK_VARIANT in walkthrough.jsx. */

/* ---- Homepage hero: tie the walkthrough on the right to the highlighted product on the left ----
   All three: the active product is a solid block of its color (white text clears 4.5 to 1 on --deep). */
html:is(.dp-hero-a, .dp-hero-b, .dp-hero-c, .dp-hero-d) .wt-suite-list .wt-suite-tab.on { background: var(--deep); box-shadow: 0 12px 26px color-mix(in srgb, var(--deep) 34%, transparent); }
html:is(.dp-hero-a, .dp-hero-b, .dp-hero-c, .dp-hero-d) .wt-suite-list .wt-suite-tab.on .wt-suite-name,
html:is(.dp-hero-a, .dp-hero-b, .dp-hero-c, .dp-hero-d) .wt-suite-list .wt-suite-tab.on .wt-suite-desc { color: #fff; }
html:is(.dp-hero-a, .dp-hero-b, .dp-hero-c, .dp-hero-d) .wt-suite-list .wt-suite-tab.on .wt-suite-mark { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
html:is(.dp-hero-a, .dp-hero-b, .dp-hero-c, .dp-hero-d) .wt-suite-list .wt-suite-tab.on .wt-suite-progress { background: rgba(255, 255, 255, 0.65); }
html:is(.dp-hero-a, .dp-hero-b, .dp-hero-c, .dp-hero-d) .wt-split-demo .wt-suite { position: relative; z-index: 1; }

/* A: a line from the active tab across to the demo, with the demo lit in the same color. */
html.dp-hero-a .wt-link { position: absolute; z-index: 3; height: 0; border-top: 3px dashed var(--deep); transform: translateY(-1.5px); pointer-events: none; transition: top 420ms cubic-bezier(0.4, 0, 0.2, 1), left 420ms cubic-bezier(0.4, 0, 0.2, 1), width 420ms cubic-bezier(0.4, 0, 0.2, 1); }
html.dp-hero-a .wt-link::after { content: ""; position: absolute; right: -3px; top: -9.5px; border: 8px solid transparent; border-left: 13px solid var(--deep); border-right: 0; }
html.dp-hero-a .wt-split-demo .wt-suite { isolation: isolate; }
html.dp-hero-a .wt-split-demo .wt-suite::before { content: ""; position: absolute; z-index: -1; inset: 6px -14px 14px 46px; border-radius: 44px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 24%, transparent), transparent); }

/* B: a name tag on the demo (product mark, "Now showing", name and which of the three). */
html:is(.dp-hero-b, .dp-hero-d) .wt-split-demo { position: relative; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag { position: absolute; z-index: 6; left: 50%; bottom: -32px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--deep); color: #fff; box-shadow: 0 12px 26px color-mix(in srgb, var(--deep) 36%, transparent); }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-mark img { width: 66%; height: 66%; display: block; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-text { display: grid; line-height: 1.05; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-text small { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0.92; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-text b { font: 700 19px/1.1 var(--font-display); }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-dots { display: flex; gap: 5px; margin-left: 6px; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.45); transition: width 260ms ease, background-color 260ms ease; }
html:is(.dp-hero-b, .dp-hero-d) .wt-nametag-dots i.on { width: 20px; background: #fff; }

/* D = C plus the name tag, sitting on the panel's top edge. */
html.dp-hero-d .wt-nametag { bottom: -56px; }
html:is(.dp-hero-b, .dp-hero-c, .dp-hero-d) .hero.hero-stacked { padding-bottom: 100px; }
html:is(.dp-hero-c, .dp-hero-d) .wt-split { margin-top: 18px; }

/* C: the demo sits on a panel in the product's color, with a notch that points back at the active tab. */
html:is(.dp-hero-c, .dp-hero-d) .wt-split-demo { position: relative; }
html:is(.dp-hero-c, .dp-hero-d) .wt-suite-list { max-width: none; }
html:is(.dp-hero-c, .dp-hero-d) .wt-panel { position: absolute; z-index: 0; left: -26px; right: -22px; top: -2px; bottom: -30px; border-radius: 30px; background: color-mix(in srgb, var(--c) 9%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--deep) 46%, transparent); }
html:is(.dp-hero-c, .dp-hero-d) .wt-panel::before { content: ""; position: absolute; left: -12px; top: calc(var(--ny) + 2px); width: 22px; height: 22px; background: color-mix(in srgb, var(--c) 9%, #fff); border-left: 2px solid color-mix(in srgb, var(--deep) 46%, transparent); border-bottom: 2px solid color-mix(in srgb, var(--deep) 46%, transparent); border-radius: 0 0 0 5px; transform: rotate(45deg); transition: top 420ms cubic-bezier(0.4, 0, 0.2, 1); }

@media (max-width: 960px) {
  html.dp-hero-a .wt-link, html:is(.dp-hero-c, .dp-hero-d) .wt-panel::before { display: none; }
  html:is(.dp-hero-b, .dp-hero-d) .wt-nametag { display: none; } /* stacked: the filled tab sits right above the demo */
}
