/* Marketing home (v6): hero try-it, lens reading table, compare cards. */
/* ===== NEO-120 home v5. Brand kit kept: #8942fe, Plus Jakarta Sans, logo, light + dark. ===== */
:root {
  --ink: #21173a; --ink-soft: #4b4062; --paper: #fbfafd; --paper-alt: #f3eefb; --surface-2: #ffffff;
  --violet: #8942fe; --violet-ink: #5a1fc4; --mist: #e4dcf3; --mint: #17a88c; --gold: #d8b46a;
  /* spacing scale (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --sec-y: clamp(4rem, 7vw, 6.5rem);
  --head-gap: clamp(2rem, 4vw, 3rem);
  --col-gap: clamp(2rem, 5vw, 4.5rem);
  --measure: 36rem;
  --radius-card: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] {
  --ink: #f3eefc; --ink-soft: #c9bfdc; --paper: #140b22; --paper-alt: #1b1030; --surface-2: #211538;
  --violet-ink: #d2b8ff; --mist: #33264d; --mint: #3fd3b4;
}
body { background: var(--paper); color: var(--ink); }
:where(main) a:focus-visible, :where(main) button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- Section rhythm: every section owns equal top/bottom padding, backgrounds alternate ---------- */
.v5-sec { padding: var(--sec-y) 0; background: var(--paper); }
.v5-alt { background: var(--paper-alt); }
.v5-head { max-width: var(--measure); margin-bottom: var(--head-gap); }
.v5-head--flush { margin-bottom: 0; }
.v5-head h2, .v5-faq-intro h2 { margin: 0 0 var(--s-4); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.022em; color: var(--ink); }
.v5-head p { margin: 0 0 var(--s-4); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.v5-head p:last-child { margin-bottom: 0; }
.v5-head strong { color: var(--ink); }
.v5-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--col-gap); align-items: start; }
.v5-split--center { align-items: center; }
.v5-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Hero ---------- */
.v5-hero { padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 var(--sec-y); background:
  radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 70%), var(--paper); }
.v5-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.v5-hero h1 { margin: 0 0 var(--s-5); font-size: clamp(2.25rem, 4.3vw, 3.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; color: var(--ink); }
.v5-hero h1 > span { display: block; }
@media (min-width: 961px) { .v5-hero h1 > span { white-space: nowrap; } }
.v5-lead { margin: 0 0 var(--s-6); max-width: var(--measure); font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); }
.v5-hero .v5-actions { margin-bottom: var(--s-4); }
.v5-fine { margin: 0; max-width: var(--measure); font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }

/* One orchestrated page-load moment */
.rise { animation: v5-rise 700ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes v5-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Try card ---------- */
.v5-try { margin: 0; padding: var(--s-5); background: var(--surface-2); border: 1px solid var(--mist); border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(59, 15, 143, 0.35); }
[data-theme="dark"] .v5-try { box-shadow: none; }
.tq-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); }
.tq-title { margin: 0; font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.tq-progress { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tq-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-1); margin-bottom: var(--s-5); }
.tq-steps span { height: 4px; border-radius: 999px; background: var(--mist); transition: background-color 300ms ease; }
.tq-steps span.is-done { background: var(--violet); }
.tq { padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--mist); }
.tq-text { margin: 0 0 var(--s-5); min-height: 2.4em; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.tq-text.is-swapping { animation: v5-swap 320ms var(--ease-out); }
@keyframes v5-swap { from { opacity: 0; transform: translateX(10px); } }
.tq-scale { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.tq-dot { position: relative; flex: none; padding: 0; border-radius: 50%; border: 2.5px solid var(--violet); background: transparent; cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease; }
.tq-dot--0, .tq-dot--4 { width: 52px; height: 52px; }
.tq-dot--1, .tq-dot--3 { width: 42px; height: 42px; }
/* Idle rings keep 3:1 against the card in both themes (WCAG 1.4.11). The
   neutral middle option used --mist and almost vanished, worst in dark. */
.tq-dot--2 { width: 34px; height: 34px; border-color: #8a7fa8; }
.tq-dot--0, .tq-dot--1 { border-color: color-mix(in srgb, var(--violet) 78%, var(--mist)); }
[data-theme="dark"] .tq-dot--2 { border-color: #9a8fb8; }
[data-theme="dark"] .tq-dot--0, [data-theme="dark"] .tq-dot--1 { border-color: color-mix(in srgb, #b58cff 70%, var(--mist)); }
[data-theme="dark"] .tq-dot--3, [data-theme="dark"] .tq-dot--4 { border-color: #b58cff; }
[data-theme="dark"] .tq-dot.is-picked { background: #b58cff; }
.tq-dot:hover { background: color-mix(in srgb, var(--violet) 16%, transparent); transform: scale(1.06); }
.tq-dot.is-picked { background: var(--violet); transform: scale(0.94); }
.tq-ends { display: flex; justify-content: space-between; margin-top: var(--s-3); font-size: 0.8125rem; color: var(--ink-soft); }
.tq-done { padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--mist); animation: v5-rise 450ms var(--ease-out) both; }
.tq-done-title { margin: 0 0 var(--s-2); font-size: 1.375rem; font-weight: 800; color: var(--ink); }
.tq-done p { margin: 0 0 var(--s-4); line-height: 1.55; color: var(--ink-soft); }
.tq-done-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tq-done-actions .btn { min-height: 48px; padding: 0 var(--s-5); font-size: 0.9375rem; }
.tq-restart { margin-top: var(--s-3); padding: var(--s-1) 0; border: 0; background: none; cursor: pointer; color: var(--violet-ink);
  font: 600 0.875rem var(--font); text-decoration: underline; text-underline-offset: 3px; }
.sp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.sp-trait { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 700; color: var(--ink); transition: color 200ms ease; }
.sp-row.is-active .sp-trait { color: var(--violet); }
.sp-track { position: relative; display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--mist), color-mix(in srgb, var(--violet) 45%, var(--mist))); }
.sp-marker { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin-left: -10px; transform: translateY(-50%); border-radius: 50%;
  background: var(--violet); border: 3px solid var(--surface-2); box-shadow: 0 2px 6px rgba(59, 15, 143, 0.4); transition: left 650ms var(--ease-out), background-color 200ms; }
.sp-marker.is-idle { background: var(--mist); box-shadow: none; }
.sp-poles { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: 0.35rem; font-size: 0.75rem; color: var(--ink-soft); }
.v5-try figcaption { margin-top: var(--s-4); font-size: 0.8125rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- How it works ---------- */

/* ---------- Lenses: the card draw ---------- */
.v5-lenses { background: radial-gradient(110% 80% at 50% 0%, #4a12b1 0%, #2a0b63 55%, #170734 100%); color: #f3eefc; overflow: hidden; }
.v5-lenses .v5-head h2 { color: #fff; }
.v5-lenses .v5-head p { color: rgba(243, 238, 252, 0.82); }
.deck { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); max-width: 60rem; margin: 0 auto; perspective: 1600px; }
.lc { position: relative; z-index: var(--z, 1); display: block; width: 100%; aspect-ratio: 860 / 1210; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px;
  transform: translate(0, 0) rotate(0deg); transition: transform 700ms var(--ease-out); transition-delay: var(--deal-delay, 0ms); }
.lc.is-stacked { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg)); cursor: default; }
.lc.is-active { transform: translateY(-10px); }
.lc.no-anim, .lc.no-anim .lc-inner { transition: none !important; }
.lc-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.lc.is-open .lc-inner { transform: rotateY(180deg); }
.lc-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px rgba(10, 4, 30, 0.45); }
.lc-back img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc:hover:not(.is-open) .lc-back { box-shadow: 0 22px 48px rgba(10, 4, 30, 0.55), 0 0 0 2px rgba(216, 180, 106, 0.55); }
.lc-front { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-5) var(--s-4);
  text-align: center; color: #fff; background: linear-gradient(160deg, var(--g1), var(--g2)); }
.lc-front::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(216, 180, 106, 0.6); border-radius: 10px; pointer-events: none; }
.lc-glyph { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--gold); border: 1.5px solid rgba(216, 180, 106, 0.7);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)); }
.lc-glyph svg { width: 24px; height: 34px; }
.lc-name { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 800; letter-spacing: -0.01em; }
.lc-tag { font-size: clamp(0.75rem, 1.1vw, 0.875rem); line-height: 1.4; color: rgba(255, 255, 255, 0.82); max-width: 12rem; }
.lc.is-active .lc-face { box-shadow: 0 26px 56px rgba(10, 4, 30, 0.6), 0 0 0 3px var(--gold); }
.deck-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-4); margin: var(--s-6) 0 var(--s-6); }
.v5-btn-light { background: #fff; color: #2a0b63; border: 0; }
.v5-btn-light:hover { background: #efe7ff; color: #2a0b63; }
.deck-hint { margin: 0; font-size: 0.9375rem; color: rgba(243, 238, 252, 0.75); }
.lr { max-width: 60rem; margin: 0 auto; }
.lr-empty { margin: 0; padding: var(--s-5); text-align: center; border: 1px dashed rgba(243, 238, 252, 0.3); border-radius: var(--radius-card); color: rgba(243, 238, 252, 0.75); }
.lr-item { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-card); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.lr-item + .lr-item { margin-top: var(--s-4); }
.js .lr-item { animation: v5-rise 450ms var(--ease-out) both; }
.lr-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.lr-glyph { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold); background: linear-gradient(160deg, var(--g1), var(--g2)); border: 1.5px solid rgba(216, 180, 106, 0.7); }
.lr-glyph svg { width: 18px; height: 26px; }
.lr-head h3 { margin: 0; font-size: 1.375rem; font-weight: 800; color: #fff; }
.lr-tag { margin: 0; color: rgba(243, 238, 252, 0.8); }
.lr-summary { margin: 0 0 var(--s-5); max-width: 46rem; line-height: 1.65; color: rgba(243, 238, 252, 0.9); }
.lr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.lr-cols h4 { margin: 0 0 var(--s-2); font-size: 0.9375rem; font-weight: 700; color: var(--gold); }
.lr-cols ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--s-1); color: rgba(243, 238, 252, 0.88); line-height: 1.5; font-size: 0.9375rem; }
.lr-facets { margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; color: rgba(243, 238, 252, 0.75); }

/* ---------- Sample result ---------- */
.js .rs-card .rs-bar > span { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .rs-card.is-seen .rs-bar > span { transform: scaleX(1); }

/* ---------- Week ---------- */
.v5-phones { display: flex; justify-content: center; gap: var(--s-5); }
.v5-phones img { width: min(220px, 42%); height: auto; filter: drop-shadow(0 24px 30px rgba(59, 15, 143, 0.25)); }
.v5-phones img:last-child { margin-top: var(--s-7); }

/* ---------- Science ---------- */
.v5-facts { margin: 0; display: grid; gap: var(--s-5); }
.v5-facts > div { padding-bottom: var(--s-5); border-bottom: 1px solid var(--mist); }
.v5-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.v5-facts dt { margin-bottom: var(--s-1); font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.v5-facts dd { margin: 0; line-height: 1.6; color: var(--ink-soft); }
.v5-facts a, .v5-faq-intro a { color: var(--violet-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Compare ---------- */
.cmp { overflow: hidden; border: 1px solid var(--mist); border-radius: var(--radius-card); background: var(--surface-2); }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; }
.cmp-row > span { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--mist); line-height: 1.45; color: var(--ink-soft); }
.cmp-head > span { border-top: 0; font-weight: 700; color: var(--ink); }
.cmp-row [role="rowheader"] { font-weight: 700; color: var(--ink); }
.cmp-us { background: color-mix(in srgb, var(--violet) 8%, transparent); color: var(--ink) !important; font-weight: 600; }
.cmp-head .cmp-us { color: var(--violet-ink) !important; }

/* ---------- FAQ ---------- */
.v5-faq .container { text-align: left; }
.v5-faq-intro { position: sticky; top: calc(var(--nav-h) + var(--s-5)); align-self: start; max-width: 24rem; }
.v5-faq-intro p { margin: 0; line-height: 1.6; color: var(--ink-soft); }
.v5-faq .faq-list { display: block; gap: 0; max-width: none; margin: 0; }
.v5-faq .faq-item { margin: 0; background: transparent; box-shadow: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--mist); }
.v5-faq .faq-item:first-child { border-top: 1px solid var(--mist); }
.v5-faq .faq-item summary { min-height: 0; padding: var(--s-5) var(--s-6) var(--s-5) 0; font-size: 1.0625rem; color: var(--ink); }
.v5-faq .faq-item .faq-body { padding: 0 var(--s-6) var(--s-5) 0; margin: 0; line-height: 1.65; color: var(--ink-soft); }
.v5-faq .faq-chevron { right: 0; }
[data-theme="dark"] .v5-faq .faq-chevron { filter: invert(1) brightness(1.4); }

/* ---------- Start + apps ---------- */
#waitlist .v5-actions { margin-bottom: var(--s-7); }
.v5-apps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s-5); align-items: start; }
.v5-app-card { padding: var(--s-5); background: var(--surface-2); border: 1px solid var(--mist); border-radius: var(--radius-card); }
.v5-app-card h3 { margin: 0 0 var(--s-2); font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.v5-app-card > p { margin: 0 0 var(--s-4); line-height: 1.6; color: var(--ink-soft); }
.v5-app-card .waitlist-form { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; max-width: none; }
.v5-app-card .form-group label, .v5-app-card .form-success, .v5-app-card .form-success-title { color: var(--ink); }
.v5-app-card .form-optional, .v5-app-card .form-note, .v5-app-card .form-success-lead { color: var(--ink-soft); }
.v5-app-card .form-required { color: #c2413c; }
.v5-app-card .waitlist-form input[type="text"], .v5-app-card .waitlist-form input[type="email"] { background: var(--paper); color: var(--ink); border: 1px solid var(--mist); }
.v5-app-card .waitlist-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 25%, transparent); outline: none; }

/* ---------- Footer ---------- */

/* ---------- Sticky mobile CTA ---------- */
.v5-sticky { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .v5-hero-grid, .v5-split, .v5-apps { grid-template-columns: 1fr; }
  .v5-faq-intro { position: static; }
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 26rem; }
  .lr-cols { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 760px) {
  .v5-sticky { position: fixed; z-index: 40; left: var(--s-3); right: var(--s-3); bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
    border-radius: 18px; background: var(--surface-2); border: 1px solid var(--mist); box-shadow: 0 12px 32px rgba(33, 23, 58, 0.22);
    transform: translateY(140%); transition: transform 250ms ease; }
  .v5-sticky.is-on { transform: none; }
  .v5-sticky .btn { min-height: 48px; padding: 0 var(--s-5); }
  .v5-sticky-copy { font-size: 0.875rem; color: var(--ink-soft); }
  .v5-sticky-copy strong { display: block; color: var(--ink); }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--mist); }
  .cmp-row:nth-child(2) { border-top: 0; }
  .cmp-row > span { padding: var(--s-1) 0; border: 0; }
  .cmp-row [role="rowheader"] { margin-bottom: var(--s-1); }
  .cmp-row [role="cell"]::before { content: attr(data-col) ": "; font-weight: 700; color: var(--ink); }
  .cmp-us { background: none; }
  .tq-text { font-size: 1.3rem; }
  .tq-dot--0, .tq-dot--4 { width: 46px; height: 46px; }
  .tq-dot--1, .tq-dot--3 { width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .v5-actions .btn { width: 100%; }
  .v5-try { padding: var(--s-4); border-radius: 20px; }
  .lc-glyph { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .tq-done, .js .lr-item, .tq-text.is-swapping { animation: none; }
  .lc, .lc-inner, .sp-marker, .tq-dot, .v5-sticky, .tq-steps span { transition: none !important; }
  .js .rs-card .rs-bar > span { transform: none; transition: none; }
}

/* ===== Critique pass 1 ===== */
h1, h2, h3 { text-wrap: balance; }
.v5-head { max-width: 42rem; }
/* Hero card fits the first screen at 1280x820 */
.v5-try { padding: 1.25rem 1.375rem; }
.tq-steps { margin-bottom: var(--s-4); }
.tq-text { min-height: 1.25em; margin-bottom: var(--s-4); font-size: 1.375rem; }
.tq { padding-bottom: var(--s-4); margin-bottom: var(--s-4); }
.tq-done { padding-bottom: var(--s-4); margin-bottom: var(--s-4); }
.sp-rows { gap: 0.55rem; }
.sp-trait { margin-bottom: 0.25rem; font-size: 0.8125rem; }
.sp-poles { margin-top: 0.2rem; font-size: 0.6875rem; }
.v5-try figcaption { margin-top: var(--s-3); }
/* Lenses: centered showpiece, centered head */
.v5-lenses .v5-head { margin-left: auto; margin-right: auto; text-align: center; }
/* FAQ answer sits below question size */
.v5-faq .faq-item .faq-body { font-size: 1rem; }
@media (max-width: 960px) {
  .deck { max-width: 21rem; gap: 0.75rem; }
  .lc-glyph { width: 48px; height: 48px; }
  .lc-glyph svg { width: 18px; height: 26px; }
  .lc-front { gap: var(--s-2); padding: var(--s-4) var(--s-3); }
  .deck-controls { margin: var(--s-5) 0; }
}

/* ===== v6 overrides: reading-table lenses, comparison cards ===== */

/* ---------- Lenses: one screen, hand of cards left, reading right ---------- */
.v5-lenses { --cw: 160px; --spread: 84px; }
.lx { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lx .v5-head { margin: 0 0 var(--s-5); text-align: left; }
.v5-lenses .lx .v5-head { margin-left: 0; margin-right: 0; text-align: left; }
.fan { position: relative; height: calc(var(--cw) * 1.407 + 56px); max-width: none; margin: 0; display: block; perspective: 1400px; }
.fan .lc { position: absolute; left: 50%; bottom: 8px; width: var(--cw); margin-left: calc(var(--cw) / -2); aspect-ratio: 860 / 1210;
  transform-origin: 50% 110%; z-index: calc(10 + var(--slot));
  transform: translateX(var(--fx)) translateY(var(--fy)) rotate(var(--fr));
  transition: transform 650ms var(--ease-out), filter 300ms ease; transition-delay: var(--deal-delay, 0ms); }
.fan .lc[data-slot="0"] { --slot: 0; --fx: calc(var(--spread) * -1.5); --fy: 14px; --fr: -13deg; --sr: -4deg; }
.fan .lc[data-slot="1"] { --slot: 1; --fx: calc(var(--spread) * -0.5); --fy: 2px;  --fr: -4.5deg; --sr: 2deg; }
.fan .lc[data-slot="2"] { --slot: 2; --fx: calc(var(--spread) * 0.5);  --fy: 2px;  --fr: 4.5deg; --sr: -2deg; }
.fan .lc[data-slot="3"] { --slot: 3; --fx: calc(var(--spread) * 1.5);  --fy: 14px; --fr: 13deg; --sr: 3deg; }
.fan.is-stacked .lc { transform: translateX(0) translateY(0) rotate(var(--sr)); }
.fan .lc.is-stacked { transform: translateX(0) translateY(0) rotate(var(--sr)); }
.fan:not(.is-stacked) .lc:not(.is-open):hover { transform: translateX(var(--fx)) translateY(calc(var(--fy) - 12px)) rotate(var(--fr)); }
.fan .lc.is-active { z-index: 20; transform: translateX(var(--fx)) translateY(calc(var(--fy) - 34px)) rotate(calc(var(--fr) * 0.35)) scale(1.07); }
.fan.has-active .lc:not(.is-active) { filter: saturate(0.75) brightness(0.82); }
.fan .lc-front { gap: var(--s-2); padding: var(--s-4) var(--s-3); }
.fan .lc-glyph { width: 50px; height: 50px; }
.fan .lc-glyph svg { width: 18px; height: 26px; }
.fan .lc-name { font-size: 1rem; }
.fan .lc-tag { font-size: 0.75rem; }
.lx .deck-controls { justify-content: flex-start; margin: var(--s-5) 0 0; }
.lx-dots { display: inline-flex; gap: 6px; }
.lx-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 238, 252, 0.28); transition: background-color 300ms, transform 300ms; }
.lx-dots i.is-on { background: var(--gold); transform: scale(1.15); }

/* Reading: one panel, content swaps with a short staggered entrance */
.lx-reading { position: relative; min-height: 420px; }
.lx-reading .lr-item { margin: 0; }
.lx-reading .lr-item + .lr-item { margin-top: 0; }
.js .lx-reading .lr-item { animation: none; }
.lr-item.is-in > * { animation: v6-in 520ms var(--ease-out) both; }
.lr-item.is-in > :nth-child(2) { animation-delay: 70ms; }
.lr-item.is-in > :nth-child(3) { animation-delay: 140ms; }
.lr-item.is-in > :nth-child(4) { animation-delay: 210ms; }
@keyframes v6-in { from { opacity: 0; transform: translateY(10px); filter: blur(2px); } }
.lx-reading .lr-summary { font-size: 1rem; }
.lx-reading .lr-cols { gap: var(--s-4); }
.lx-reading .lr-cols > div { padding: var(--s-4); border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.lx-reading .lr-cols ul { padding-left: 1rem; font-size: 0.875rem; }
.lx-reading .lr-facets { margin-top: var(--s-4); }

/* ---------- Compare: three cards, rows aligned with subgrid ---------- */
.cx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto repeat(4, auto) auto; column-gap: var(--s-5); align-items: stretch; }
.cx-card { grid-row: span 7; display: grid; grid-template-rows: subgrid; row-gap: 0; padding: var(--s-5); border-radius: 22px; background: var(--surface-2); border: 1px solid var(--mist); }
.cx-card h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.cx-sub { margin: var(--s-1) 0 var(--s-4); font-size: 0.9375rem; color: var(--ink-soft); }
.cx-rows { display: contents; }
.cx-row { padding: var(--s-3) 0; border-top: 1px solid var(--mist); }
.cx-row dt { margin-bottom: var(--s-1); font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.cx-row dd { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; line-height: 1.45; color: var(--ink-soft); }
.cx-ic { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-ic--no circle { stroke: var(--mist); } .cx-ic--no path { stroke: var(--ink-soft); }
.cx-ic--yes circle { fill: color-mix(in srgb, var(--mint) 18%, transparent); stroke: var(--mint); } .cx-ic--yes path { stroke: var(--mint); stroke-width: 2.2; }
.cx-foot { display: block; }
.cx-card--us { position: relative; border: 0; color: var(--ink);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(140deg, #8942fe, #c6a6ff 45%, #17a88c) border-box;
  border: 2px solid transparent; box-shadow: 0 30px 60px -34px rgba(59, 15, 143, 0.55); transform: translateY(-8px); }
.cx-card--us h3 { color: var(--violet-ink); }
.cx-card--us .cx-row dd { color: var(--ink); font-weight: 600; }
.cx-cta { align-self: end; width: 100%; margin-top: var(--s-4); }
.js .cx-card--us .cx-ic--yes { transform: scale(0.4); opacity: 0; transition: transform 420ms var(--ease-out), opacity 300ms; transition-delay: calc(var(--r) * 110ms + 150ms); }
.js .cx.is-seen .cx-card--us .cx-ic--yes { transform: none; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lx { grid-template-columns: 1fr; gap: var(--s-5); }
  .lx-reading { min-height: 0; }
  .v5-lenses { --cw: 140px; --spread: 74px; }
  .fan { max-width: 26rem; margin: 0 auto; }
  .lx .deck-controls { justify-content: center; }
  .cx { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 21rem); overflow-x: auto; scroll-snap-type: x mandatory;
    padding: var(--s-3) var(--s-1) var(--s-4); margin: 0 calc(var(--s-1) * -1); scrollbar-width: none; }
  .cx::-webkit-scrollbar { display: none; }
  .cx-card { scroll-snap-align: start; }
  .cx-card--us { order: -1; transform: none; }
}
@media (max-width: 560px) {
  .v5-lenses { --cw: 104px; --spread: 64px; }
  .fan .lc-tag { display: none; }
  .fan .lc-name { font-size: 0.8125rem; }
  .fan .lc-glyph { width: 40px; height: 40px; }
  .fan .lc-front::before { inset: 5px; }
  .lx-reading .lr-cols { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -0.25rem; padding: 0 0.25rem; }
  .lx-reading .lr-cols::-webkit-scrollbar { display: none; }
  .lx-reading .lr-cols > div { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .fan .lc { transition: none !important; }
  .lr-item.is-in > * { animation: none; }
  .js .cx-card--us .cx-ic--yes { transform: none; opacity: 1; transition: none; }
}

/* critique pass: single-column tracks must not grow past the viewport */
@media (max-width: 960px) { .lx { grid-template-columns: minmax(0, 1fr); } }
.cx-note { align-self: end; margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: 12px; background: var(--paper-alt); font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }
[data-theme="dark"] .cx-note { background: #241838; }

/* a11y pass: 44px minimum hit area on every Likert dot, without changing the visual scale */
.tq-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; }
[aria-disabled="true"][data-draw] { opacity: 0.6; cursor: progress; }
.cx:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 22px; }
