/* TSA landing page (/tsa-practice-test). Loaded only on page-template-tsa-mockup. Reuses homepage.css for shared design-system primitives. */

/* ============ TOKENS (page-specific: dark theme sections + semantic signal colors) ============ */
:root {
  --dark-bg: #0B1116;
  --dark-bg-2: #0F1820;
  --dark-ink-2: rgba(243, 239, 230, .7);
  --dark-ink-3: rgba(243, 239, 230, .42);
  --dark-rule: rgba(243, 239, 230, .14);
  --brand-red: #DC2626;
  --brand-green: #16A34A;
}

/* ============ LAYOUT WRAPS ============ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.wrap-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ TYPO (scoped overrides) ============ */
body.page-template-tsa-mockup h1,
body.page-template-tsa-mockup h2,
body.page-template-tsa-mockup h3,
body.page-template-tsa-mockup h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: inherit;
}

body.page-template-tsa-mockup h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  letter-spacing: -.035em;
  line-height: .98;
  font-weight: 700;
}

body.page-template-tsa-mockup h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.02;
  font-weight: 700;
}

body.page-template-tsa-mockup h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
}

body.page-template-tsa-mockup h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

body.page-template-tsa-mockup h1 em,
body.page-template-tsa-mockup h2 em,
body.page-template-tsa-mockup h3 em,
body.page-template-tsa-mockup h4 em {
  color: var(--brand-teal);
  letter-spacing: -.01em;
}

/* ============ BUTTONS (scoped overrides) ============ */
body.page-template-tsa-mockup .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all 300ms var(--ease);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
}

body.page-template-tsa-mockup .btn-dark {
  background: var(--ink);
  color: var(--bg);
}

body.page-template-tsa-mockup .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--brand-teal-dark);
}

body.page-template-tsa-mockup .btn-lime {
  background: var(--brand-lime);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

body.page-template-tsa-mockup .btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

body.page-template-tsa-mockup .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

body.page-template-tsa-mockup .btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

body.page-template-tsa-mockup .btn-white {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

body.page-template-tsa-mockup .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

body.page-template-tsa-mockup .btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, .9);
  border: 1.5px solid rgba(255, 255, 255, .3);
}

body.page-template-tsa-mockup .btn-ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

body.page-template-tsa-mockup .btn-teal {
  background: var(--brand-teal);
  color: #fff;
}

body.page-template-tsa-mockup .btn-teal:hover {
  background: var(--brand-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

body.page-template-tsa-mockup .btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

body.page-template-tsa-mockup .btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

body.page-template-tsa-mockup .btn-xl {
  padding: 20px 44px;
  font-size: 17px;
}

/* ============ REDESIGN PRIMITIVES (v1 sections below video) ============ */
body.page-template-tsa-mockup .rb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
}

body.page-template-tsa-mockup .rb-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

body.page-template-tsa-mockup .rb-eyebrow.danger {
  color: var(--brand-red);
}

body.page-template-tsa-mockup .rb-eyebrow.teal {
  color: var(--brand-teal);
}

body.page-template-tsa-mockup .rb-bighead {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
}

body.page-template-tsa-mockup .rb-bighead em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand-teal);
  font-weight: 400;
}

body.page-template-tsa-mockup .v1-why .rb-bighead em {
  color: var(--brand-red);
}

/* ============ UTILS ============ */
body.page-template-tsa-mockup .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-teal);
  background: rgba(0, 137, 172, .08);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
  letter-spacing: -.005em;
}

.eyebrow-lime {
  color: var(--ink);
  background: var(--brand-lime);
  border: 1.5px solid var(--ink);
}

.eyebrow-dark {
  color: var(--brand-lime);
  background: rgba(157, 214, 79, .12);
  border: 1px solid rgba(157, 214, 79, .3);
}

.sh {
  margin-bottom: 56px;
  max-width: 760px;
}

.sh.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.sh p.lede {
  font-size: 18px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 18px;
  max-width: 560px;
}

.sh.center p.lede {
  margin-left: auto;
  margin-right: auto;
}

/* ============ INDEPENDENCE BAR ============ */
.ind-bar {
  padding: 12px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.ind-bar p {
  font-size: 12px;
  color: var(--ink-3);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.55;
}

.ind-bar p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ HERO ============ */
.hero {
  background: var(--brand-lime);
  position: relative;
  overflow: hidden;
  padding: 72px 32px 88px;
  border-bottom: 1.5px solid var(--ink);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .4) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(157, 214, 79, .5) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 18px 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  box-shadow: 3px 3px 0 var(--ink);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust .stars {
  color: var(--brand-amber);
  letter-spacing: 1px;
  font-size: 12px;
}

.hero-trust .dot {
  width: 3px;
  height: 3px;
  background: var(--ink-4);
  border-radius: 50%;
  display: inline-block;
}

.hero-trust b {
  font-weight: 600;
  color: var(--ink);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .underline {
  position: relative;
  display: inline-block;
}

.hero h1 .underline em {
  color: var(--ink);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 .underline svg {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -14px;
  width: 108%;
  height: 18px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-urgency svg {
  color: var(--brand-amber);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta .sig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .sig svg {
  color: var(--ink);
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--ink);
  color: #fff;
  padding: 20px 32px;
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.trust-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-lime) 30%, var(--brand-lime) 70%, transparent);
  opacity: .35;
  pointer-events: none;
}

.trust-bar .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}

.ti {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
  min-height: 44px;
}

.ti-val {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.ti-val-hero {
  font-size: 34px;
  color: var(--brand-lime);
  letter-spacing: -.035em;
  text-shadow: 0 0 24px rgba(157, 214, 79, .25);
}

.ti-pct {
  font-size: .55em;
  color: inherit;
  margin-left: 2px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: .8;
}

.ti-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.35;
}

.ti-star .ti-val {
  color: var(--brand-amber);
}

.ti-star-mark {
  margin-right: 3px;
  font-size: .75em;
  position: relative;
  top: -2px;
}

.ti-hero {
  padding: 0 10px;
  border-left: 1px dashed rgba(157, 214, 79, .22);
  border-right: 1px dashed rgba(157, 214, 79, .22);
}

.ti-updated .ti-val {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.ti-live {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.ti-live .ti-live-lbl {
  font-size: 10px;
  color: var(--brand-lime);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ti-live .ti-live-count {
  font-size: 11px;
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
  letter-spacing: .01em;
  padding-left: 9px;
  border-left: 1px solid rgba(255, 255, 255, .14);
  margin-left: 2px;
}

.ti-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 0 rgba(157, 214, 79, .7);
  animation: tbPulse 1.8s infinite cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}

@keyframes tbPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(157, 214, 79, .55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(157, 214, 79, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(157, 214, 79, 0);
  }
}

.ti-sep {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .14) 25%, rgba(255, 255, 255, .14) 75%, transparent);
}

/* ============ PROOF STRIP (carousel) ============ */
.proof-strip {
  padding: 56px 0 64px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  contain: layout style;
}

.proof-strip::before,
.proof-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 3;
  pointer-events: none;
}

.proof-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 10%, transparent 100%);
}

.proof-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 10%, transparent 100%);
}

.proof-inner {
  width: 100%;
  padding: 0;
  position: relative;
}

.proof-viewport {
  /* overflow: clip + overflow-clip-margin lets the hover translate/shadow
   * breathe ~14px outside the box without establishing a scroll context
   * (which overflow: hidden with padding would fight with). Horizontal
   * cards still clip at their natural edge so the carousel illusion
   * holds. Fallback for older browsers: plain hidden. */
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 14px;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.proof-viewport.dragging {
  cursor: grabbing;
}

.proof-track {
  display: flex;
  transition: transform 450ms cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.proof-card {
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color 250ms var(--ease), box-shadow 350ms var(--ease), transform 350ms var(--ease);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  margin: 0 10px;
  width: calc(25% - 20px);
  min-height: 220px;
}

.proof-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.proof-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -.005em;
}

.proof-date {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
  white-space: nowrap;
}

.proof-outcome {
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .005em;
  margin-bottom: 8px;
}

.proof-stars {
  color: var(--brand-amber);
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.proof-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 12px;
}

.proof-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: .02em;
  font-weight: 500;
  text-transform: uppercase;
}

.proof-verified::before {
  content: '';
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%2316A34A'/%3E%3Cpath d='M5 8l2 2 4-4' fill='none' stroke='%23fff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.proof-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  position: relative;
  z-index: 4;
}

.proof-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms var(--ease);
  flex-shrink: 0;
  padding: 0;
}

.proof-arrow:hover:not(:disabled) {
  background: var(--brand-lime);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.proof-arrow:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.proof-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

.proof-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule-2);
  transition: all 250ms var(--ease);
  cursor: pointer;
  border: none;
  padding: 0;
}

.proof-dot:hover {
  background: var(--ink-4);
}

.proof-dot.active {
  background: var(--ink);
  width: 22px;
  border-radius: 4px;
}

/* ============ VSL ============ */
.vsl {
  background: var(--dark-bg);
  color: #fff;
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}

.vsl::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(157, 214, 79, .08) 0%, transparent 65%);
  pointer-events: none;
}

.vsl-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.vsl-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 36px;
}

.vsl-hook {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
}

.vsl-hook em {
  color: var(--brand-lime);
}

.vsl-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-lime);
  background: rgba(157, 214, 79, .1);
  border: 1px solid rgba(157, 214, 79, .3);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

.vsl-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-rule);
  margin-top: 24px;
}

.vsl-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-lime));
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.vsl-av img {
  /* !important overrides the theme's legacy app-style.css `img { height: auto }`
   * which otherwise lets the img shrink to natural-ratio height inside the
   * 44px round frame. */
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.vsl-author .name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.vsl-author .role {
  font-size: 12px;
  color: var(--dark-ink-3);
}

.vsl-pitch {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vsl-pitch .lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark-ink-3);
  margin-bottom: 4px;
}

.vsl-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--dark-ink-2);
  line-height: 1.5;
}

.vsl-bullet::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--brand-lime);
  flex-shrink: 0;
  margin-top: 11px;
}

.vsl-frame-wrap {
  cursor: pointer;
}

.vsl-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #080807;
  border: 1.5px solid rgba(255, 255, 255, .15);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 300ms;
}

.vsl-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #080807;
}

.vsl-frame.playing {
  cursor: default;
}

.vsl-frame.playing .vsl-frame-bg,
.vsl-frame.playing .vsl-frame-glow,
.vsl-frame.playing .play-btn,
.vsl-frame.playing .vsl-duration,
.vsl-frame.playing .vsl-frame-quote {
  display: none;
}

.vsl-frame:hover {
  border-color: rgba(255, 255, 255, .3);
}

.vsl-frame:hover .play-circle {
  transform: scale(1.08);
  box-shadow: 0 14px 44px rgba(157, 214, 79, .55);
}

.vsl-frame-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d3d52 0%, var(--brand-teal-dark) 50%, var(--brand-teal) 100%);
}

.vsl-frame-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(0, 137, 172, .2) 0%, transparent 60%);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.play-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-lime);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms var(--ease), box-shadow 300ms;
  box-shadow: 0 10px 32px rgba(157, 214, 79, .5);
}

.play-arrow {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid var(--ink);
  margin-left: 4px;
}

.play-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vsl-duration {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, .7);
  color: rgba(255, 255, 255, .85);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.vsl-frame-quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, transparent 100%);
}

.vsl-frame-quote p {
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  font-style: italic;
  line-height: 1.5;
}

.vsl-frame-quote span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  margin-top: 6px;
  letter-spacing: .04em;
}

.vsl-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  margin-top: 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}

.vsl-cta-left p {
  font-size: 14px;
  color: var(--dark-ink-2);
  line-height: 1.55;
}

.vsl-cta-left p b {
  color: #fff;
  font-weight: 600;
}

.vsl-cta-micro {
  font-size: 12px;
  color: var(--dark-ink-3);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.vsl-cta-micro .g {
  color: var(--brand-lime);
  font-weight: 600;
}

@media (max-width: 900px) {
  .vsl-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .vsl-cta-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 18px 20px;
  }
  .vsl-cta-strip > div:last-child {
    width: 100%;
    flex-wrap: nowrap;
  }
  /* The two CTAs inside the strip's right-hand wrapper flex evenly so
     neither overruns the dark container on narrow phones. */
  .vsl-cta-strip .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ============ GUARANTEE RIBBON ============ */
.g-ribbon {
  background: var(--brand-lime);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 20px 32px;
}

.g-ribbon .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.g-ribbon p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.g-ribbon p b {
  font-weight: 700;
}

.g-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.g-check svg {
  width: 16px;
  height: 16px;
}

/* ============ URGENCY BAR ============ */
.urg-bar {
  background: var(--ink);
  color: #fff;
  padding: 14px 32px;
  text-align: center;
  font-size: 14px;
}

.urg-bar b {
  color: var(--brand-amber);
  font-weight: 700;
}

.urg-bar .warn {
  color: var(--brand-amber);
}

/* ============ SECTION BASE ============ */
body.page-template-tsa-mockup section {
  padding: 96px 32px;
}

/* ============ STATS ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  transition: all 400ms var(--ease);
}

.stat-card:hover {
  background: var(--brand-lime);
  border-color: var(--ink);
  transform: translateY(-4px);
}

.stat-num {
  font-size: clamp(54px, 7vw, 88px);
  font-weight: 700;
  line-height: .95;
  color: var(--ink);
  letter-spacing: -.04em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.stat-cap {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 260px;
}

.stat-card:hover .stat-cap {
  color: var(--ink-2);
}

/* ============ AGITATION (v2-agit: huge headline + ticker marquee) ============ */
.v2-agit {
  background: #F3EFE6;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.v2-agit-top {
  padding: 60px 0 60px;
  position: relative;
}

.v2-agit-top::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 1.5px;
}

.v2-agit .rb-huge {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 160px);
  line-height: .88;
  letter-spacing: -.05em;
  color: var(--ink);
  margin-top: 18px;
}

.v2-agit .rb-huge em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand-red);
  font-size: .85em;
  font-weight: 400;
}

.v2-agit .rb-lede {
  margin-top: 28px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 700px;
  letter-spacing: -.01em;
}

.v2-agit .rb-lede b {
  background: var(--brand-lime);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Ticker marquee */
.v2-ticker {
  background: var(--ink);
  color: #F3EFE6;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: tickerScroll 40s linear infinite;
  font-size: 15px;
  font-weight: 500;
  padding-left: 40px;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ticker-item em {
  color: var(--brand-red);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.ticker-item b {
  color: var(--brand-lime);
  font-weight: 700;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}

.v2-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ============ AGITATION — Band 3: three evidence stat cards (Rev E) ============ */
.agit-stats {
  background: #F3EFE6;
  padding: 80px 32px 56px;
}

.agit-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agit-stat-card {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), background 400ms var(--ease);
  position: relative;
  overflow: hidden;
}

.agit-stat-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.agit-stats-grid .agit-stat-card:nth-child(1):hover { background: #FFE5E3; }
.agit-stats-grid .agit-stat-card:nth-child(2):hover { background: var(--brand-lime-soft); }
.agit-stats-grid .agit-stat-card:nth-child(3):hover { background: #FFE0D0; }

.agit-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 12px;
}

.agit-stat-ref {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--brand-red);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.01em;
}

.agit-stat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 4px 10px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  background: var(--bg);
  flex-shrink: 0;
}

.agit-stat-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(68px, 7.2vw, 104px);
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 8px;
}

.agit-stat-num em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .36em;
  color: var(--brand-teal);
  margin-left: 6px;
  letter-spacing: 0;
}

.agit-stat-num .slash {
  color: var(--ink-4);
  font-weight: 600;
  font-size: .36em;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

.agit-stat-desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: auto;
  padding-bottom: 18px;
}

.agit-stat-desc b {
  color: var(--ink);
  font-weight: 600;
}

.agit-stat-foot {
  border-top: 1px dashed var(--rule-2);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.agit-stat-foot-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.agit-stat-foot-val {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.agit-stat-foot-val em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-red);
  margin-left: 2px;
}

/* ============ AGITATION — Band 4: six failure-mode index cards (Rev E) ============ */
.agit-failmodes {
  background: #F3EFE6;
  padding: 56px 32px 110px;
}

.agit-fm-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.agit-fm-head .rb-eyebrow {
  justify-content: center;
  color: var(--brand-red);
  margin-bottom: 16px;
}

.agit-fm-head .rb-eyebrow::before {
  background: var(--brand-red);
}

.agit-fm-title {
  font-family: var(--sans);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}

.agit-fm-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-red);
}

.agit-fm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agit-fm-card {
  background: var(--bg);
  border: 1.5px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.agit-fm-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.agit-fm-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--rule-2);
}

.agit-fm-index {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 48px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.agit-fm-index em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .3em;
  color: var(--ink-4);
  margin-left: 2px;
}

.agit-fm-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-red);
  padding: 5px 10px;
  border: 1px solid rgba(220, 38, 38, .28);
  border-radius: var(--r-pill);
  background: rgba(220, 38, 38, .06);
  align-self: flex-start;
  flex-shrink: 0;
}

.agit-fm-card h4 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.agit-fm-card h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-red);
}

.agit-fm-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 18px;
}

.agit-fm-card p b.em {
  background: var(--brand-lime-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  font-weight: 500;
}

.agit-fm-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.agit-fm-bottom-r {
  text-align: right;
}

.agit-fm-stat {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}

.agit-fm-stat em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .46em;
  color: var(--brand-red);
  margin-left: 3px;
}

.agit-fm-stat .hash {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .7em;
  color: var(--brand-red);
  margin-right: 1px;
}

.agit-fm-stat.teal { color: var(--brand-teal); }
.agit-fm-stat.red  { color: var(--brand-red); }

.agit-fm-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.4;
  max-width: 120px;
}

.agit-fm-lbl-left {
  text-align: left;
  max-width: none;
}

/* sparkline on card 01 */
.agit-fm-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.agit-fm-spark span {
  width: 6px;
  background: var(--rule-2);
  border-radius: 1.5px 1.5px 0 0;
  min-height: 4px;
}

.agit-fm-spark span.red { background: var(--brand-red); }

/* Responsive */
@media (max-width: 1000px) {
  .agit-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agit-fm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .agit-stats {
    padding: 56px 20px 40px;
  }
  .agit-stats-grid {
    grid-template-columns: 1fr;
  }
  .agit-failmodes {
    padding: 48px 20px 80px;
  }
  .agit-fm-grid {
    grid-template-columns: 1fr;
  }
  .agit-stat-card {
    padding: 28px 26px 24px;
    min-height: auto;
  }
  .agit-fm-card {
    padding: 24px 24px 22px;
    min-height: auto;
  }
}

/* ============ WHY FAIL (v1-why: two panels with data viz) ============ */
.v1-why {
  background: var(--bg-soft);
  padding: 120px 32px;
  position: relative;
}

.v1-why .sh {
  max-width: 880px;
  margin-bottom: 72px;
}

.v1-why .rb-bighead {
  margin-top: 20px;
}

.fail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.fail-panel {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.fail-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

.fail-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fail-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--brand-red);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.01em;
}

.fail-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 4px 10px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
}

.fail-body {
  padding: 24px 28px 28px;
}

.fail-body h4 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}

.fail-body p {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
}

.fail-em {
  background: var(--brand-lime-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  font-weight: 500;
  font-family: inherit;
  font-style: normal;
}

/* Reason 01 — score gap chart (horizontal bars) */
.gap-chart {
  margin-top: 22px;
  padding: 18px 18px 16px;
  background: var(--bg-soft);
  border: 1px dashed var(--rule-2);
  border-radius: 14px;
}

.gap-stack {
  display: grid;
  grid-template-columns: 100px 1fr 44px;
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
}

.gap-row {
  display: contents;
}

.gap-row-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.25;
}

.gap-row-lbl em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin: 0 1px;
}

.gap-row-track {
  position: relative;
  height: 22px;
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  overflow: hidden;
}

.gap-row-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px 0 0 3px;
  position: relative;
  animation: gapFill 1.4s cubic-bezier(.3, .9, .3, 1) .3s forwards;
}

.gap-row-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 8px);
}

.gap-fill-free {
  background: var(--brand-trust);
  box-shadow: 0 0 0 1px rgba(0, 182, 122, .35), 0 1px 0 rgba(0, 182, 122, .3) inset;
}

.gap-fill-real {
  background: var(--brand-red);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, .45), 0 1px 0 rgba(220, 38, 38, .4) inset;
}

.gap-row-real .gap-row-fill {
  animation-delay: .55s;
}

@keyframes gapFill {
  from {
    width: 0;
  }

  to {
    width: var(--w, 50%);
  }
}

.gap-row-tick {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.gap-tick-free {
  color: var(--brand-trust);
}

.gap-tick-real {
  color: var(--brand-red);
}

.gap-row-tick-pct {
  font-size: .65em;
  font-weight: 700;
  color: inherit;
  opacity: .75;
  margin-left: 1px;
}

/* Gap indicator row — third row in the grid */
.gap-diff {
  grid-column: 2;
  position: relative;
  height: 24px;
  margin-top: 2px;
}

.gap-diff-fill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 42%;
  width: 43%;
  background: repeating-linear-gradient(135deg, rgba(220, 38, 38, .14) 0 4px, transparent 4px 9px);
  border-left: 1.5px dashed var(--brand-red);
  border-right: 1.5px dashed var(--brand-red);
  border-radius: 2px;
  opacity: 0;
  animation: gapDiffIn .5s var(--ease) 1.6s forwards;
}

.gap-diff-chip {
  position: absolute;
  top: 50%;
  left: calc(42% + 21.5%);
  transform: translate(-50%, -50%);
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(220, 38, 38, .35);
  white-space: nowrap;
  opacity: 0;
  animation: gapDiffIn .5s var(--ease) 1.75s forwards;
}

.gap-diff-chip b {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 13px;
  margin-right: 2px;
  vertical-align: baseline;
}

@keyframes gapDiffIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 4px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.gap-diff-fill {
  animation-name: gapFillFadeIn;
}

@keyframes gapFillFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Reason 02 — folding demo */
.fold-demo {
  margin-top: 22px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px dashed var(--rule-2);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 180px;
}

.fold-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fold-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

.fold-sublabel {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 500;
}

.fold-viz {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 140 / 120;
  position: relative;
}

/* SVGs carry hard-coded width/height attributes; force them to fluid. */
.fold-viz svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fold-btn {
  margin-top: 12px;
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 200ms;
  text-decoration: none;
  display: block;
}

.fold-btn:hover {
  border-color: var(--ink);
  background: var(--brand-lime-soft);
  color: var(--ink);
}

/* ============ LEGACY X-RAY AGITATION (between v1-why and product) ============
   Counter-positioning beat: "other sites prep you for the wrong test."
   Reuses the design system's flagship-panel idiom — ink border,
   var(--r-lg) radius, 8px 8px 0 offset shadow — same vocabulary as
   .fail-panel / .obj-card / .feat-card.full. Lead is a standard .sh block. */
.v1-legacy-warn {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

body.page-template-tsa-mockup .v1-legacy-warn h2 em {
  color: var(--brand-red);
}

body.page-template-tsa-mockup .eyebrow-danger {
  color: var(--brand-red);
  background: rgba(220, 38, 38, .08);
}

.legacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.legacy-panel:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

.legacy-panel-img {
  position: relative;
  background: var(--bg-soft);
  border-right: 1.5px solid var(--ink);
  min-height: 420px;
  overflow: hidden;
}

.legacy-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.82) contrast(.96);
}

.legacy-panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(220, 38, 38, .05) 0 10px, transparent 10px 22px),
    linear-gradient(rgba(10, 14, 20, .04), rgba(10, 14, 20, .04));
  pointer-events: none;
}

.legacy-panel-stamp {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 11px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--brand-red);
}

.legacy-panel-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .22);
  animation: legacyPulse 2.4s infinite;
}

@keyframes legacyPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, .22); }
  50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, .06); }
}

.legacy-panel-body {
  padding: 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legacy-panel-body .feat-lbl-danger {
  color: var(--brand-red);
  background: rgba(220, 38, 38, .08);
  margin-bottom: 14px;
}

.legacy-panel-body h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  color: var(--ink);
}

.legacy-compare {
  display: flex;
  flex-direction: column;
  margin: 0 0 28px;
  padding: 6px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--rule-2);
  border-radius: var(--r-md);
}

.legacy-compare-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
}

.legacy-compare-row + .legacy-compare-row {
  border-top: 1px solid var(--rule);
}

.legacy-compare-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--bg);
  text-align: center;
  line-height: 1;
  justify-self: start;
  margin-top: 1px;
}

.legacy-compare-tag span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 2px;
}

.legacy-compare-tag-muted {
  border-color: var(--rule-2);
  color: var(--ink-4);
}

.legacy-compare-tag-win {
  background: var(--brand-lime);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.legacy-compare-txt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  padding-top: 1px;
}

.legacy-compare-txt b {
  color: var(--ink);
  font-weight: 700;
}

.legacy-compare-row-win .legacy-compare-txt {
  color: var(--ink-2);
}

.legacy-panel-cta {
  align-self: flex-start;
}

@media (max-width: 860px) {
  .legacy-panel {
    grid-template-columns: 1fr;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .legacy-panel-img {
    border-right: none;
    border-bottom: 1.5px solid var(--ink);
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .legacy-panel-body {
    padding: 28px 24px;
  }
  .legacy-compare {
    padding: 4px 14px;
  }
  .legacy-compare-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }
  .legacy-compare-tag {
    margin-top: 0;
  }
  .legacy-panel-body h3 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  /* Section gutter: the default 32px horizontal section padding leaves
     the panel's 8×8 offset shadow crashing into the viewport edge on
     narrow phones. Tighten both the section padding and the panel's
     internal rhythm so the whole card + its shadow sits inside. */
  body.page-template-tsa-mockup .v1-legacy-warn {
    padding-left: 16px;
    padding-right: 16px;
  }
  .legacy-panel {
    box-shadow: 4px 4px 0 var(--ink);
  }
  .legacy-panel-body {
    padding: 22px 18px;
  }
  .legacy-panel-body h3 {
    font-size: 20px;
  }
  .legacy-panel-body > .feat-lbl {
    margin-bottom: 10px;
  }
  .legacy-compare {
    padding: 2px 12px;
  }
  .legacy-compare-txt {
    font-size: 13px;
  }
  .legacy-panel-stamp {
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    font-size: 9.5px;
    letter-spacing: .1em;
  }
}

/* Pricing-card assertion row — one-line checkmark line inside the
   .covers-box reassuring legacy-CBT candidates they're covered. */
.covers-assertion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule-2);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
  letter-spacing: -.005em;
}
.covers-assertion svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-green, #16A34A);
}

/* ============ PRODUCT PILLARS ============ */
.product {
  background: var(--bg);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.pillar {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: 32px 30px;
  transition: all 400ms var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 0 var(--ink);
}

.pillar.wide {
  grid-column: 1 / -1;
  background: var(--brand-lime-soft);
}

.pillar:nth-child(2) {
  background: var(--bg-soft);
}

.pillar:nth-child(3) {
  background: #E0F4EE;
}

.pillar:nth-child(4) {
  background: #FDE8B8;
}

.p-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 10px;
  display: inline-block;
}

.pillar h4 {
  margin-bottom: 10px;
}

.pillar p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

.cred-bar {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 22px 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cred-item {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  padding: 6px 22px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.cred-item:last-child {
  border-right: none;
}

.cred-item b {
  color: #fff;
  font-weight: 700;
}

.cred-item .hi {
  color: var(--brand-lime);
  font-weight: 700;
}

.cred-item .stars {
  color: var(--brand-amber);
  letter-spacing: 1px;
}

.format-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.fmt-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-teal);
  background: rgba(0, 137, 172, .08);
  border: 1px solid rgba(0, 137, 172, .2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

/* ============ CTA STRIPS ============ */
.cta-strip {
  padding: 56px 32px;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cta-strip .inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta-strip .urgency-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
  box-shadow: 2px 2px 0 var(--ink);
}

.cta-strip .urgency-note svg {
  color: var(--brand-amber);
}

.cta-strip p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-strip p b {
  color: var(--ink);
  font-weight: 700;
}

.cta-micro {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-micro .g {
  color: var(--brand-green);
  font-weight: 600;
}

/* ============ CATEGORY CARDS (podium) ============ */
.category {
  background: var(--bg);
}

.cat-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.cat-card {
  background: var(--bg);
  border: 1.5px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 34px 28px 28px;
  text-align: left;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 250ms var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 0 var(--ink);
}

.cat-card.win {
  border-color: var(--brand-green);
  background: linear-gradient(180deg, rgba(157, 214, 79, .08) 0%, rgba(22, 163, 74, .03) 100%);
  transform: translateY(-12px);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 2;
}

.cat-card.win:hover {
  transform: translateY(-18px);
  box-shadow: 8px 8px 0 var(--ink);
}

.cat-card.warn {
  border-color: var(--brand-amber);
  background: rgba(245, 156, 8, .04);
  margin-top: 4px;
}

.cat-card.danger {
  border-color: var(--brand-red);
  background: rgba(220, 38, 38, .04);
  margin-top: 12px;
}

/* Rank numeral */
.cat-rank {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
  letter-spacing: -.02em;
  pointer-events: none;
  z-index: 1;
}

.cat-card.win .cat-rank {
  color: var(--brand-green);
  opacity: .5;
}

.cat-card.warn .cat-rank {
  color: var(--brand-amber);
  opacity: .45;
}

.cat-card.danger .cat-rank {
  color: var(--brand-red);
  opacity: .4;
}

/* Laurel wreath (Best Qualified only) */
.cat-laurel {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 210px;
  color: var(--brand-green);
  opacity: .14;
  pointer-events: none;
  z-index: 0;
}

/* Hourglass (Qualified) */
.cat-hourglass {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 140px;
  height: 140px;
  color: var(--brand-amber);
  opacity: .18;
  pointer-events: none;
  z-index: 0;
}

/* "LOCKED OUT" stamp (Not Qualified) */
.cat-stamp {
  position: absolute;
  top: 58px;
  right: -18px;
  transform: rotate(-11deg);
  z-index: 3;
  pointer-events: none;
}

.cat-stamp-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px 5px;
  border: 2.5px solid var(--brand-red);
  border-radius: 4px;
  color: var(--brand-red);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 0 rgba(220, 38, 38, .15);
  opacity: .78;
}

.cat-stamp-line1 {
  font-size: 14px;
  text-transform: uppercase;
}

.cat-stamp-line2 {
  font-size: 8px;
  margin-top: 2px;
  letter-spacing: .2em;
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.cat-card.win .cat-icon {
  background: rgba(22, 163, 74, .14);
  color: var(--brand-green);
}

.cat-card.warn .cat-icon {
  background: rgba(245, 156, 8, .14);
  color: var(--brand-amber);
}

.cat-card.danger .cat-icon {
  background: rgba(220, 38, 38, .14);
  color: var(--brand-red);
}

.cat-tier {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.015em;
  position: relative;
  z-index: 2;
}

.cat-card.win .cat-tier {
  color: var(--brand-green);
  font-size: 26px;
}

.cat-card.warn .cat-tier {
  color: var(--brand-amber);
}

.cat-card.danger .cat-tier {
  color: var(--brand-red);
}

.cat-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  letter-spacing: -.005em;
}

.cat-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  flex: 1;
  margin-bottom: 20px;
}

.cat-outcome {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid;
  position: relative;
  z-index: 2;
  font-family: var(--sans);
}

.cat-outcome-arrow {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.cat-outcome-val {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.cat-outcome-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-left: auto;
  opacity: .65;
  line-height: 1;
}

.cat-outcome-win {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.cat-outcome-warn {
  background: rgba(245, 156, 8, .1);
  color: var(--brand-amber);
  border-color: rgba(245, 156, 8, .32);
}

.cat-outcome-danger {
  background: rgba(220, 38, 38, .08);
  color: var(--brand-red);
  border-color: rgba(220, 38, 38, .32);
}

/* ============ HOW IT WORKS (scrollytelling) ============ */
.tsa-method {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 100px 32px 0;
}

.tsa-method .sh {
  max-width: 780px;
  margin: 0 auto 40px;
}

body.page-template-tsa-mockup .tsa-method-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

body.page-template-tsa-mockup .tsa-method .method-step {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

body.page-template-tsa-mockup .tsa-method .step-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.page-template-tsa-mockup .tsa-method .step-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

body.page-template-tsa-mockup .tsa-method .method-step h3 {
  font-family: var(--sans);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 18px;
  color: var(--ink);
}

body.page-template-tsa-mockup .tsa-method .method-step h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-teal);
}

body.page-template-tsa-mockup .tsa-method .method-step p {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 26px;
  max-width: 460px;
}

body.page-template-tsa-mockup .tsa-method .step-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: transparent;
  transition: all 200ms var(--ease);
  text-decoration: none;
  align-self: flex-start;
}

body.page-template-tsa-mockup .tsa-method .step-link svg {
  width: 14px;
  height: 14px;
  transition: transform 250ms var(--ease);
}

body.page-template-tsa-mockup .tsa-method .step-link:hover {
  background: var(--brand-lime);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

body.page-template-tsa-mockup .tsa-method .step-link:hover svg {
  transform: translateX(3px);
}

.tsa-vstack {
  max-width: 480px;
  aspect-ratio: 4 / 5;
}

/* Shared window chrome */
.tsa-win-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
}

.tsa-win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF5F57;
  flex-shrink: 0;
}

.tsa-win-dot:nth-child(2) {
  background: #FEBC2E;
}

.tsa-win-dot:nth-child(3) {
  background: #28C840;
}

.tsa-win-title {
  flex: 1;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: -.005em;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsa-win-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

.tsa-win-live .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
}

.tsa-win-live .live-dot.live {
  animation: tbPulse 1.6s infinite;
}

/* ============ Visual 01 — Diagnostic card ============ */
.tsa-diag-card {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(10, 14, 20, .08), 0 40px 80px rgba(10, 14, 20, .08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tsa-diag-body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tsa-diag-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.tsa-diag-kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-4);
  margin-bottom: 6px;
}

.tsa-diag-score {
  font-family: var(--sans);
  font-size: 68px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ink);
}

.tsa-diag-score-slash {
  font-size: .42em;
  color: var(--ink-4);
  font-weight: 600;
  margin-left: 4px;
}

.tsa-diag-verdict {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tsa-verdict-chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tsa-verdict-chip.warn {
  color: var(--brand-amber);
  background: rgba(245, 156, 8, .12);
  border: 1px solid rgba(245, 156, 8, .35);
}

.tsa-verdict-sub {
  font-size: 12px;
  color: var(--ink-3);
}

.tsa-verdict-sub b {
  color: var(--ink);
  font-weight: 700;
}

.tsa-diag-gauge {
  width: 130px;
  flex-shrink: 0;
  margin-top: 4px;
}

.tsa-diag-gauge svg {
  width: 100%;
  display: block;
  overflow: visible;
}

.method-visual.active .tsa-diag-gauge-arc {
  animation: diagGaugeFill 1.4s cubic-bezier(.3, .9, .3, 1) .15s both;
}

@keyframes diagGaugeFill {
  from {
    stroke-dashoffset: 157;
  }

  to {
    stroke-dashoffset: 50;
  }
}

.tsa-diag-sectionlbl {
  margin-bottom: 12px;
}

.tsa-diag-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.tsa-diag-row {
  display: grid;
  grid-template-columns: 110px 1fr 44px;
  gap: 14px;
  align-items: center;
}

.tsa-diag-row-lbl {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: -.005em;
}

.tsa-diag-row-bar {
  height: 8px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  display: block;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transform-origin: left;
}

.method-visual.active .bar-fill {
  animation: barFill 1.2s cubic-bezier(.3, .9, .3, 1) .3s forwards;
}

.bar-red {
  background: var(--brand-red);
}

.bar-amber {
  background: var(--brand-amber);
}

.bar-lime {
  background: var(--brand-lime);
}

@keyframes barFill {
  from {
    width: 0;
  }

  to {
    width: var(--w, 50%);
  }
}

.tsa-diag-row-val {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: -.01em;
}

.tsa-diag-row-val.red {
  color: var(--brand-red);
}

.tsa-diag-row-val.amber {
  color: var(--brand-amber);
}

.tsa-diag-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.tsa-diag-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(220, 38, 38, .08);
  color: var(--brand-red);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.005em;
}

.tsa-diag-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 600;
}

.tsa-diag-time .tick {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
}

/* ============ Visual 02 — Folding Hack lesson player ============ */
.tsa-lesson-player {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(10, 14, 20, .08), 0 40px 80px rgba(10, 14, 20, .08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tsa-lesson-stage {
  flex: 1;
  padding: 24px;
  background: linear-gradient(135deg, #0F1820 0%, #0B3C52 100%);
  color: #F3EFE6;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 220px;
  overflow: hidden;
}

.tsa-lesson-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 137, 172, .25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(157, 214, 79, .15), transparent 40%);
  pointer-events: none;
}

.tsa-cube-scene {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  perspective: 900px;
  z-index: 1;
}

.tsa-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cubeSpin 14s linear infinite;
}

@keyframes cubeSpin {
  0% {
    transform: rotateX(-22deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(-22deg) rotateY(360deg);
  }
}

.tsa-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  margin: 35px;
  background: rgba(157, 214, 79, .14);
  border: 1.5px solid rgba(157, 214, 79, .68);
  box-shadow: inset 0 0 30px rgba(157, 214, 79, .08);
}

.f-front {
  transform: translateZ(40px);
}

.f-back {
  transform: rotateY(180deg) translateZ(40px);
}

.f-right {
  transform: rotateY(90deg) translateZ(40px);
}

.f-left {
  transform: rotateY(-90deg) translateZ(40px);
}

.f-top {
  transform: rotateX(90deg) translateZ(40px);
  background: rgba(157, 214, 79, .22);
}

.f-bottom {
  transform: rotateX(-90deg) translateZ(40px);
  background: rgba(0, 137, 172, .2);
  border-color: rgba(0, 137, 172, .55);
}

.tsa-cube-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tsa-cube-label {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  animation: labelPulse 3s ease-in-out infinite;
}

.tsa-cube-label.l-a {
  top: 28%;
  left: 18%;
  animation-delay: 0s;
}

.tsa-cube-label.l-b {
  top: 22%;
  right: 18%;
  animation-delay: .8s;
}

.tsa-cube-label.l-c {
  bottom: 22%;
  left: 32%;
  animation-delay: 1.6s;
}

@keyframes labelPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .85;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.tsa-lesson-caption {
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  background: rgba(243, 239, 230, .06);
  border-left: 2px solid var(--brand-lime);
  border-radius: 0 10px 10px 0;
  max-width: 90%;
}

.tsa-caption-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-lime);
  margin-bottom: 4px;
  display: block;
}

.tsa-lesson-caption p {
  font-size: 13px;
  color: rgba(243, 239, 230, .85);
  line-height: 1.45;
  margin: 0;
}

.tsa-lesson-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--ink);
  color: rgba(243, 239, 230, .75);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tsa-lesson-progress {
  flex: 1;
  height: 4px;
  background: rgba(243, 239, 230, .12);
  border-radius: 2px;
  overflow: hidden;
}

.tsa-lesson-progress-fill {
  height: 100%;
  width: 77%;
  background: var(--brand-lime);
  border-radius: 2px;
}

.method-visual.active .tsa-lesson-progress-fill {
  animation: lessonProgress 2s cubic-bezier(.3, .9, .3, 1) .3s forwards;
  transform-origin: left;
}

@keyframes lessonProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.tsa-lesson-playlist {
  padding: 16px 20px 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tsa-pl-item {
  display: grid;
  grid-template-columns: 22px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
  transition: background 200ms var(--ease);
}

.tsa-pl-item:hover {
  background: var(--bg-soft);
}

.tsa-pl-item .pl-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rule);
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 700;
}

.tsa-pl-item.done {
  color: var(--ink-4);
  text-decoration: line-through;
  text-decoration-color: var(--rule-2);
}

.tsa-pl-item.done .pl-n {
  background: var(--brand-green);
  color: #fff;
}

.tsa-pl-item.now {
  color: var(--ink);
  font-weight: 600;
  background: rgba(157, 214, 79, .14);
}

.tsa-pl-item.now .pl-n {
  background: var(--brand-lime);
  color: var(--ink);
  font-size: 9px;
}

.tsa-pl-item .pl-d {
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ============ Visual 03 — Readiness dashboard ============ */
.tsa-ready-dash {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(10, 14, 20, .08), 0 40px 80px rgba(10, 14, 20, .08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tsa-ready-body {
  padding: 30px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tsa-ready-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.tsa-ring {
  position: relative;
  text-align: center;
}

.tsa-ring svg {
  width: 100%;
  max-width: 96px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
  overflow: visible;
}

.tsa-ring-arc {
  transition: stroke-dashoffset 1.2s cubic-bezier(.3, .9, .3, 1);
}

.method-visual.active .tsa-ring-arc {
  animation: ringFill 1.4s cubic-bezier(.3, .9, .3, 1) .2s both;
}

@keyframes ringFill {
  from {
    stroke-dashoffset: 201;
  }
}

.tsa-ring-val {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}

.tsa-ring-pct {
  font-size: .5em;
  font-weight: 700;
  color: var(--ink-3);
  margin-left: 1px;
}

.tsa-ring-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

.tsa-ready-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  padding: 10px 18px 8px;
  border: 2px solid var(--brand-green);
  border-radius: 4px;
  color: var(--brand-green);
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  background: rgba(22, 163, 74, .06);
  transform: rotate(-3deg);
  margin: 0 auto 20px;
  box-shadow: 0 2px 0 rgba(22, 163, 74, .2);
}

.tsa-stamp-line1 {
  font-size: 16px;
  text-transform: uppercase;
  font-family: var(--sans);
}

.tsa-stamp-line2 {
  font-size: 8px;
  margin-top: 3px;
  letter-spacing: .22em;
  font-family: var(--sans);
}

.tsa-ready-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: #F3EFE6;
  border-radius: var(--r-md);
  border: 1.5px solid var(--brand-lime);
  box-shadow: 0 12px 32px rgba(10, 14, 20, .2);
  margin-bottom: 14px;
  position: relative;
}

.method-visual.active .tsa-ready-toast {
  animation: toastIn 600ms cubic-bezier(.34, 1.56, .64, 1) .8s both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tsa-toast-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.tsa-toast-t {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.tsa-toast-t b {
  color: var(--brand-lime);
  font-weight: 700;
}

.tsa-toast-s {
  font-size: 11px;
  color: rgba(243, 239, 230, .6);
  margin-top: 2px;
}

.tsa-ready-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  align-self: center;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.tsa-ready-next b {
  color: var(--ink);
  font-weight: 700;
}

.tsa-calendar {
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
}

/* ============ FREE TEST (v1-ft: lime bg + interactive puzzle) ============ */
.v1-ft {
  background: var(--brand-lime);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.v1-ft::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(11, 60, 82, .15) 0%, transparent 55%);
  pointer-events: none;
}

.v1-ft::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, .35) 0%, transparent 55%);
  pointer-events: none;
}

.v1-ft .ft-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ft-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ft-left h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
}

.ft-left h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brand-teal-darker);
  font-weight: 400;
}

.ft-left p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 460px;
  line-height: 1.55;
  margin: 0;
}

.ft-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.ft-meta {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.ft-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Puzzle widget */
.puzzle {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.puzzle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

.puzzle-head {
  padding: 16px 22px;
  background: var(--ink);
  color: #F3EFE6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.puzzle-head .q {
  color: var(--brand-lime);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
}

.puzzle-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  animation: puzzlePulse 1s infinite;
  flex-shrink: 0;
}

@keyframes puzzlePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.puzzle-body {
  padding: 28px;
}

.puzzle-q {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.puzzle-q b {
  background: var(--brand-lime-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.puzzle-stim {
  display: flex;
  justify-content: center;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: 16px;
  margin-bottom: 20px;
}

.puzzle-opts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.puzzle-opt {
  aspect-ratio: 1;
  background: #fff;
  border: 1.5px solid var(--rule-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms var(--ease);
  position: relative;
  overflow: hidden;
  padding: 0;
  font-family: inherit;
}

.puzzle-opt:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.puzzle-opt.correct {
  border-color: var(--brand-green);
  background: #F0FDF4;
}

.puzzle-opt.correct::after {
  content: '\2713';
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 14px;
}

.puzzle-opt.wrong {
  border-color: var(--brand-red);
  background: #FEF2F2;
}

.puzzle-opt.wrong::after {
  content: '\2715';
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 14px;
}

.puzzle-opt .opt-letter {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: .02em;
}

.puzzle-foot {
  padding: 0 28px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.puzzle-hint {
  font-size: 12px;
  color: var(--ink-4);
}

/* Outcome panel: revealed after the user picks an option. Converts the
   puzzle from a dead-end micro-interaction into a handoff to the full
   5-question AI diagnostic (same modal #free-test CTAs open). */
.puzzle-outcome {
  /* 18px top margin gives the outcome panel air under the puzzle-foot
     ("Tap a cube to answer" hint) so the reveal reads as a new step,
     not a cramped continuation. */
  margin: 18px 20px 20px;
  padding: 18px 20px 20px;
  background: #0A0E14;
  color: #F3EFE6;
  border-radius: 16px;
  border: 1.5px solid #0A0E14;
  /* Offset shadow was getting clipped by .puzzle's overflow: hidden and
     caused the panel to read as "out of bounds". Drop to a soft ambient
     shadow that sits fully inside the parent's corner radius. */
  box-shadow: 0 4px 18px rgba(10, 14, 20, .18);
  animation: puzzleOutcomeIn 360ms var(--ease, cubic-bezier(.22, .61, .36, 1));
}
@keyframes puzzleOutcomeIn {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.puzzle-outcome-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.puzzle-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #F3EFE6;
  flex-shrink: 0;
}
.puzzle-outcome-badge.is-good { background: rgba(22, 163, 74, .22); color: #86EFAC; }
.puzzle-outcome-badge.is-bad  { background: rgba(220, 38, 38, .22); color: #FCA5A5; }
.puzzle-outcome-copy {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(243, 239, 230, .78);
  flex: 1;
  min-width: 0;
}
.puzzle-outcome-stat {
  font-size: 14px;
  line-height: 1.5;
  color: #F3EFE6;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  border-left: 3px solid var(--brand-lime);
  margin-bottom: 16px;
}
.puzzle-outcome-stat b {
  color: var(--brand-lime);
  font-weight: 700;
}
.puzzle-outcome-cta {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  background: var(--brand-lime);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
  border-radius: 999px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 200ms var(--ease, cubic-bezier(.22, .61, .36, 1)),
              background 200ms var(--ease, cubic-bezier(.22, .61, .36, 1));
}
.puzzle-outcome-cta:hover {
  background: #B8E870;
  transform: translateY(-1px);
}
.puzzle-outcome-cta:focus-visible {
  outline: 2px solid var(--brand-lime);
  outline-offset: 3px;
}
.puzzle-outcome-cta svg {
  transition: transform 200ms var(--ease, cubic-bezier(.22, .61, .36, 1));
}
.puzzle-outcome-cta:hover svg {
  transform: translateX(3px);
}
.puzzle-outcome-micro {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 11px;
  color: rgba(243, 239, 230, .65);
  letter-spacing: .02em;
}
@media (max-width: 520px) {
  .puzzle-outcome { margin: 14px 14px 16px; padding: 16px 14px 18px; }
  .puzzle-outcome-head { gap: 10px; }
  .puzzle-outcome-copy { font-size: 12.5px; }
  .puzzle-outcome-stat { font-size: 13px; padding: 12px 14px; }
  .puzzle-outcome-cta { padding: 13px 16px; font-size: 13.5px; }
  .puzzle-outcome-micro { gap: 8px 14px; font-size: 10.5px; }
}

/* Disable pointer interactions on option buttons once answered. */
.puzzle-opt[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

/* Diagnostic modal (full-screen ld_quiz overlay) */
.diag-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  animation: diagFade 200ms var(--ease);
}

.diag-modal.open {
  display: flex;
}

@keyframes diagFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.diag-modal-inner {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 var(--ink);
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: diagSlide 260ms var(--ease);
}

@keyframes diagSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.diag-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 14px 22px;
  background: var(--ink);
  color: #F3EFE6;
  border-bottom: 1.5px solid var(--ink);
  flex-shrink: 0;
}

.diag-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: rgba(243, 239, 230, .92);
}

.diag-modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 8px rgba(157, 214, 79, .6);
  animation: tbPulse 1.6s infinite;
  flex-shrink: 0;
}

.diag-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 230, .18);
  background: transparent;
  color: #F3EFE6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: all 200ms var(--ease);
  font-family: inherit;
}

.diag-modal-close:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.diag-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 32px;
  background: var(--bg);
  color: var(--ink);
}

.diag-modal-body,
.diag-modal-body * {
  color: var(--ink);
}

.diag-modal-body a,
.diag-modal-body a * {
  color: inherit;
}

.diag-modal-body .wpProQuiz_content,
.diag-modal-body .wpProQuiz_quiz {
  background: transparent;
}

@media (max-width: 560px) {
  .diag-modal {
    padding: 12px;
  }

  .diag-modal-body {
    padding: 20px;
  }

  .diag-modal-inner {
    box-shadow: 6px 6px 0 var(--ink);
  }
}

/* ============ REVIEWS ============ */
.reviews {
  background: var(--bg);
}

.reviews-grid {
  margin-top: 48px;
  columns: 3;
  column-gap: 20px;
}

.review-tile {
  break-inside: avoid;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 20px;
  transition: all 300ms var(--ease);
}

.review-tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.rv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rv-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.rv-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.rv-stars {
  color: var(--brand-amber);
  font-size: 11px;
  letter-spacing: 1px;
}

.review-tile p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 14px;
}

.rv-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.tag-teal {
  background: rgba(0, 137, 172, .08);
  color: var(--brand-teal);
}

.tag-green {
  background: rgba(22, 163, 74, .08);
  color: var(--brand-green);
}

.tag-lime {
  background: var(--brand-lime);
  color: var(--ink);
}

/* ============ FEATURES ============ */
.features {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.feats-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.feat-card {
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: all 300ms var(--ease);
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.feat-card.full {
  grid-column: 1 / -1;
  background: var(--brand-lime-soft);
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.feat-card.full:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

.feat-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 10px;
  display: inline-block;
  background: rgba(0, 137, 172, .08);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.feat-card h4 {
  margin-bottom: 12px;
}

.feat-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
}

/* ============ OBJECTIONS ============ */
.objections {
  background: var(--bg);
}

.obj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.obj-card {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all 300ms var(--ease);
}

.obj-card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 6px 0 var(--ink);
}

.obj-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: rgba(0, 137, 172, .08);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
  display: inline-block;
}

.obj-card h4 {
  margin-bottom: 14px;
  font-size: 19px;
}

.obj-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ============ PRICING ============ */
.pricing {
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}

.p-side h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 16px;
  line-height: 1.15;
}

.p-side h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-teal);
}

.p-side p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 20px;
}

.p-side .covers-box {
  margin-bottom: 24px;
}

.p-side .checklist {
  margin-bottom: 24px;
}

.roi-box {
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
}

.roi-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.roi-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--brand-green);
}

.roi-row span:first-child {
  color: var(--ink-3);
}

.roi-row b {
  color: var(--ink);
  font-weight: 700;
}

/* --- Plans stack (3 timed-access cards) --- */
.plans-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
  /* Anchor target for every "See plans / Enroll" CTA on the page —
     offset so the first card clears the fixed nav (76px desktop / 64px mobile)
     plus breathing room. Mobile override is in the responsive block below. */
  scroll-margin-top: 96px;
}

.plan-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 22px 24px 20px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.plan-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.plan-card.is-featured {
  background: var(--brand-lime-soft);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 28px 26px 26px;
}

.plan-card.is-featured:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ink);
  color: var(--brand-lime);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  box-shadow: 2px 2px 0 var(--brand-lime);
  line-height: 1;
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.plan-dur {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.1;
}

.plan-sub {
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.35;
  margin: 0;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.plan-price-amt {
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.plan-card.is-featured .plan-price-amt {
  font-size: 52px;
}

.plan-price-was {
  font-size: 16px;
  color: var(--ink-4);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.plan-save {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-red);
  background: rgba(220, 38, 38, .08);
  padding: 4px 8px;
  border-radius: var(--r-pill);
  line-height: 1;
}

.plan-fine {
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.5;
  margin-bottom: 16px;
}

.plan-cta {
  width: 100%;
  font-size: 14px;
  padding: 12px 18px;
}

.plan-card.is-featured .plan-cta {
  padding: 14px 20px;
  font-size: 15px;
}

.plans-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 14px 2px 0;
  line-height: 1.4;
  margin: 0;
}

.plans-foot svg {
  flex-shrink: 0;
  color: var(--brand-green);
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .plans-stack {
    position: static;
    top: auto;
    /* On mobile the stack sits BELOW the narrative column, so scroll needs
       only to clear the 64px fixed nav (plus a little breathing room). */
    scroll-margin-top: 80px;
  }
}

@media (max-width: 560px) {
  .plan-card {
    padding: 20px 20px 18px;
  }
  .plan-card.is-featured {
    padding: 24px 22px 22px;
  }
  .plan-price-amt {
    font-size: 38px;
  }
  .plan-card.is-featured .plan-price-amt {
    font-size: 44px;
  }
}

.covers-box {
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.covers-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 9px;
}

.covers-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.covers-pills span {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.checklist {
  list-style: none;
  margin-bottom: 22px;
}

.checklist li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2 2L8 3' fill='none' stroke='%230A0E14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  border: 1.5px solid var(--ink);
}

.g-block {
  background: rgba(157, 214, 79, .2);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  padding: 22px;
  text-align: center;
  margin-top: 18px;
}

.g-block p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
}

.g-block p b {
  font-weight: 700;
  color: var(--ink);
}

.g-sig {
  font-size: 12px;
  color: var(--brand-teal);
  margin-top: 8px;
  font-style: italic;
}

/* ============ EXPERT BIO ============ */
.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-top: 40px;
  max-width: 960px;
  align-items: start;
}

.about-photo {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink-4);
  text-align: center;
  padding: 20px;
}

.about-photo .avatar-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.about-photo .avatar-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.about-photo .ph-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.about-photo .ph-sub {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 4px;
}

.about-grid p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.about-grid p b {
  color: var(--ink);
  font-weight: 700;
}

.about-creds {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.about-creds .stars {
  color: var(--brand-amber);
}

/* ============ FAQ ============ */
.faq {
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  margin-top: 40px;
  max-width: 1040px;
}

.faq-aside h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.faq-aside h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-teal);
}

.faq-aside p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

/* Strip borders/shadows that homepage.css + tsa-promotion.css apply to
 * .faq-item and .tsa-mockup-page .faq-item. Scope by body class so we
 * out-specify both sources without !important. */
body.page-template-tsa-mockup .faq-item,
body.page-template-tsa-mockup .faq-item:hover,
body.page-template-tsa-mockup .faq-item.open,
body.page-template-tsa-mockup.tsa-mockup-page .faq-item,
body.page-template-tsa-mockup.tsa-mockup-page .faq-item:hover,
body.page-template-tsa-mockup.tsa-mockup-page .faq-item.open {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: 0;
  overflow: visible;
  transition: background 200ms;
}

body.page-template-tsa-mockup .faq-item.open,
body.page-template-tsa-mockup.tsa-mockup-page .faq-item.open {
  background: var(--bg-soft);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
  letter-spacing: -.01em;
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
  transition: all 300ms var(--ease);
  flex-shrink: 0;
}

.faq-item:hover .faq-plus {
  background: var(--brand-lime);
}

.faq-item.open .faq-plus {
  background: var(--brand-lime);
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease);
}

.faq-item.open .faq-a {
  max-height: 360px;
}

.faq-a-in {
  padding: 0 4px 22px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ============ FINAL CTA (scoped overrides) ============ */
body.page-template-tsa-mockup .final {
  background: var(--brand-lime);
  padding: 112px 32px 104px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

body.page-template-tsa-mockup .final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #9DD64F 0%, transparent 40%);
  pointer-events: none;
}

body.page-template-tsa-mockup .final-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  /* Flow is now column with explicit gaps between blocks so each pair
     (h2 ↔ lede, lede ↔ buttons, buttons ↔ trust-close) reads at the
     same rhythm. Replaces ad-hoc margins on each child. */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

body.page-template-tsa-mockup .final .eyebrow {
  background: var(--ink);
  color: var(--brand-lime);
}

body.page-template-tsa-mockup .final h2 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
}

body.page-template-tsa-mockup .final h2 em {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* Scope the lede paragraph so it doesn't fight with .trust-close (which
   is also a <p>). */
body.page-template-tsa-mockup .final-inner > p:first-of-type {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 520px;
  margin: -6px 0 0;
}

body.page-template-tsa-mockup .final-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

body.page-template-tsa-mockup .final-divider {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: lowercase;
  letter-spacing: .04em;
  padding: 0 4px;
  flex-shrink: 0;
}

body.page-template-tsa-mockup .trust-close {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 560px;
}

body.page-template-tsa-mockup .trust-close .hi {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  background: var(--ink);
  color: var(--brand-lime);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .01em;
  border-radius: 999px;
}

@media (max-width: 640px) {
  body.page-template-tsa-mockup .final {
    padding: 72px 20px 68px;
  }
  body.page-template-tsa-mockup .final-inner {
    gap: 22px;
  }
  body.page-template-tsa-mockup .final-inner > p:first-of-type {
    font-size: 16px;
  }
  body.page-template-tsa-mockup .final-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  body.page-template-tsa-mockup .final-btns .btn-xl {
    width: 100%;
  }
  /* "or" reads awkwardly between stacked full-width buttons — collapse
     to a thin visual divider. */
  body.page-template-tsa-mockup .final-divider {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .65;
  }
  body.page-template-tsa-mockup .trust-close {
    font-size: 12.5px;
  }
}

/* ============ SEO FOOTER BLOCK ============ */
.seo-block {
  background: var(--bg-soft);
  padding: 48px 32px;
  border-top: 1px solid var(--rule);
}

.seo-block .inner {
  max-width: 860px;
  margin: 0 auto;
}

.seo-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-teal);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.seo-block p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ============ STICKY BAR ============ */
#sticky-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 300;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  /* Symmetric horizontal inset so the pill's internal rhythm reads the same
     on both ends. The lime CTA keeps its own 9×18 button padding on top. */
  padding: 10px 14px 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(10, 14, 20, .25);
  transition: transform 500ms var(--ease-bounce);
  max-width: calc(100% - 32px);
  min-width: 0;
  white-space: nowrap;
}

#sticky-bar.show {
  transform: translateX(-50%) translateY(0);
}

#sticky-bar .sbar-badge {
  background: var(--brand-lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

#sticky-bar .sbar-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
  /* Allow the copy to shrink to zero before the bar overflows — keeps the
     CTAs fully visible at every width and prevents the pill from pushing
     past its max-width cap. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sticky-bar .sbar-r {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#sticky-bar .sb-free {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  transition: all 200ms;
}

#sticky-bar .sb-free:hover {
  border-color: #fff;
}

#sticky-bar .sb-enroll {
  background: var(--brand-lime);
  color: var(--ink);
  border: none;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  transition: all 200ms;
}

#sticky-bar .sb-enroll:hover {
  background: #fff;
}

/* Progressive collapse: both CTAs stay visible at every width — they are
   the bar's reason for existing. We shed the supporting trust copy first,
   then tighten spacing and badge weight at phone widths. */
@media (max-width: 820px) {
  #sticky-bar {
    gap: 14px;
  }
  #sticky-bar .sbar-copy {
    display: none;
  }
}

@media (max-width: 560px) {
  #sticky-bar {
    /* Roomier horizontal inset so the lime CTA has clear ink buffer on
       its right edge. Once the badge + copy drop out the pill is just
       two buttons, and tight padding reads as "touching the edge". */
    padding: 8px 18px;
    /* With only .sbar-r visible, zero out the pill's flex gap so the
       (display: none) badge + copy can't contribute phantom spacing on
       the left, which some engines render as lopsided centering. */
    gap: 0;
    justify-content: center;
    max-width: calc(100% - 24px);
  }
  #sticky-bar .sbar-badge {
    display: none;
  }
  #sticky-bar .sb-free,
  #sticky-bar .sb-enroll {
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* ============ EXIT OVERLAY ============ */
#exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 14, 20, .7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#exit-overlay.open {
  display: flex;
}

.exit-modal {
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 12px 12px 0 var(--ink);
}

.exit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--ink-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.exit-modal h3 {
  font-size: 26px;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.exit-modal h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-teal);
}

.exit-modal p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 24px;
}

.exit-skip {
  font-family: inherit;
  background: none;
  border: none;
  color: var(--ink-4);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 12px;
}

/* ============ VSL MODAL ============ */
#vsl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#vsl-modal .vm-inner {
  width: 100%;
  max-width: 960px;
  position: relative;
}

#vsl-modal .vm-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}

#vsl-modal .vm-close:hover {
  color: #fff;
}

#vsl-modal .vm-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
}

#vsl-modal iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .proof-card {
    width: calc(20% - 20px);
  }
}

@media (max-width: 1023px) {
  .proof-card {
    width: calc(33.333% - 20px);
  }
}

@media (max-width: 767px) {
  .proof-card {
    width: calc(50% - 20px);
  }

  .proof-strip::before,
  .proof-strip::after {
    width: 72px;
  }

  .proof-strip {
    padding: 40px 0 48px;
  }
}

@media (max-width: 479px) {
  .proof-card {
    width: calc(100% - 20px);
  }

  .proof-arrow {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 900px) {
  body.page-template-tsa-mockup section {
    padding: 72px 24px;
  }

  .obj-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent horizontal page overflow on mobile. The site's offscreen
   * mobile-menu drawer (#pt-mobile-drawer) is position:fixed at
   * left: 100vw, which browsers include in the page scroll width and
   * creates a blank gutter on the right. Using overflow-x: clip (not
   * hidden) so we don't establish a scroll context that reserves
   * scrollbar-gutter space. */
  html:has(body.page-template-tsa-mockup),
  body.page-template-tsa-mockup {
    overflow-x: clip;
  }

  /* Force body to fill viewport on mobile. On headed desktop Chromium
   * (devtools mobile emulation) the vertical scrollbar reserves ~15px
   * which otherwise leaves a white strip on the right. overflow-x:clip
   * on html clips any bleed. Real mobile browsers use overlay scrollbars
   * and ignore this entirely. */
  body.page-template-tsa-mockup {
    width: 100vw;
  }

  /* Hide the vertical scrollbar on mobile — it's a desktop-emulator artifact.
   * Real touch devices use overlay scrollbars that don't reserve width. */
  html:has(body.page-template-tsa-mockup)::-webkit-scrollbar { width: 0; height: 0; }
  html:has(body.page-template-tsa-mockup) { scrollbar-width: none; }

  /* ─── Pricing section on mobile ──────────────────────────────────
   * Grid items default to min-width: auto (intrinsic content width),
   * so tabular-nums price readouts can push the right column wider
   * than its container. minmax(0, 1fr) + explicit min-width: 0 on
   * children forces them to shrink to the grid. */
  body.page-template-tsa-mockup .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 36px;
  }
  body.page-template-tsa-mockup .pricing .p-side,
  body.page-template-tsa-mockup .pricing .plans-stack {
    min-width: 0;
  }
  body.page-template-tsa-mockup .pricing .plan-card.is-featured {
    box-shadow: 5px 5px 0 var(--ink);
  }
  body.page-template-tsa-mockup .pricing .p-side h3 {
    font-size: clamp(22px, 6.2vw, 28px);
  }
  body.page-template-tsa-mockup .pricing .roi-box {
    padding: 18px 18px;
  }
  body.page-template-tsa-mockup .pricing .roi-row {
    gap: 12px;
    font-size: 13px;
  }
  body.page-template-tsa-mockup .pricing .roi-row b {
    text-align: right;
  }
  body.page-template-tsa-mockup .pricing .checklist li {
    font-size: 13px;
  }

  /* ─── Scrollytelling (tsa-method) on mobile ─────────────────────
   * Interleave each .method-visual with its matching .method-step so
   * the user sees "visual 1 → text 1 → visual 2 → text 2 → …" rather
   * than "all visuals, then all text". We flatten the two parent
   * containers via display:contents and order the descendants with
   * grid-row.                                                       */
  body.page-template-tsa-mockup .tsa-method {
    /* Defensive clip: the widgets carry large drop-shadows and a cube
       whose 3D projection extends beyond its 150×150 stage. Without
       this, anything that spills contributes to page-level horizontal
       scroll on narrow phones. */
    overflow-x: clip;
  }
  body.page-template-tsa-mockup .tsa-method-sticky {
    display: grid;
    /* minmax(0, 1fr) instead of 1fr: grid items default to min-width:auto,
       which would expand the column to the intrinsic width of any
       descendant (e.g. .tsa-diag-rows 3-col subgrid, playlist rows). */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(6, auto);
    column-gap: 0;
    row-gap: 0;
  }

  body.page-template-tsa-mockup .tsa-method .method-visuals,
  body.page-template-tsa-mockup .tsa-method .method-visual-stack,
  body.page-template-tsa-mockup .tsa-method .method-content {
    display: contents;
  }

  /* Each visual is a fixed-size viewport that contains the full-fidelity
     widget (480×600, the exact desktop design size) and scales it
     uniformly so every interior detail — row grids, playlist, rings,
     gauge, cube, drop-shadow, padding, font sizes — stays proportional
     to the desktop rendering. The widget itself is NEVER restyled on
     mobile; only the outer scale factor changes. Visually this is the
     desktop layout, just smaller.

     CSS cannot divide length/length, so both source and target are kept
     as unitless custom properties and multiplied by 1px where needed.
     The --mv-target number is stepped down in breakpoints below so the
     scaled widget always fits the viewport with a small side gutter. */
  body.page-template-tsa-mockup .tsa-method .method-visual {
    --mv-source: 480;
    --mv-target: 420;
    /* Extra breathing room (in the SCALED coordinate system) below the
       widget so drop-shadows, the cube's 3D projection, and any toast
       that animates in near the bottom stay fully visible. Without this
       the scaled box is exactly target × 1.25px tall — the child's
       scaled height — and anything extending below gets clipped by the
       section's overflow rules. */
    --mv-bleed: 20px;
    position: static;
    opacity: 1;
    transform: none;
    width: calc(var(--mv-target) * 1px);
    /* Was aspect-ratio: 4/5. Explicit height lets us add --mv-bleed
       without distorting the child's scaling math. */
    height: calc(var(--mv-target) / 4 * 5 * 1px + var(--mv-bleed));
    overflow: visible;
    margin: 0 auto 28px;
  }
  body.page-template-tsa-mockup .tsa-method .method-visual > .tsa-diag-card,
  body.page-template-tsa-mockup .tsa-method .method-visual > .tsa-lesson-player,
  body.page-template-tsa-mockup .tsa-method .method-visual > .tsa-ready-dash {
    width: calc(var(--mv-source) * 1px);
    height: calc(var(--mv-source) / 4 * 5 * 1px);
    transform: scale(calc(var(--mv-target) / var(--mv-source)));
    transform-origin: top left;
  }

  body.page-template-tsa-mockup .tsa-method .method-visual[data-visual="0"] { grid-row: 1; }
  body.page-template-tsa-mockup .tsa-method .method-step[data-step="0"]    { grid-row: 2; }
  body.page-template-tsa-mockup .tsa-method .method-visual[data-visual="1"] { grid-row: 3; }
  body.page-template-tsa-mockup .tsa-method .method-step[data-step="1"]    { grid-row: 4; }
  body.page-template-tsa-mockup .tsa-method .method-visual[data-visual="2"] { grid-row: 5; }
  body.page-template-tsa-mockup .tsa-method .method-step[data-step="2"]    { grid-row: 6; }

  body.page-template-tsa-mockup .tsa-method .method-step {
    min-height: auto;
    max-width: 520px;
    margin: 0 auto;
    padding: 4px 4px 56px;
    text-align: left;
    min-width: 0;
  }

  body.page-template-tsa-mockup .tsa-method .method-step:last-child {
    padding-bottom: 8px;
  }

  .tsa-method {
    padding: 72px 24px 24px;
  }

  .v2-agit-top {
    padding: 80px 0 48px;
  }

  .v2-agit .rb-lede {
    font-size: 18px;
  }

  .v1-why {
    padding: 72px 24px;
  }

  .fail-layout,
  .v1-ft .ft-layout,
  .ft-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .v1-ft .ft-layout {
    justify-items: center;
  }

  .fail-panel {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .puzzle {
    box-shadow: 5px 5px 0 var(--ink);
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .v1-ft {
    padding: 80px 24px;
  }

  .ft-left {
    text-align: center;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .ft-left p {
    max-width: none;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-card.win,
  .cat-card.warn,
  .cat-card.danger {
    transform: none;
    margin-top: 0;
  }

  .cat-card.win:hover {
    transform: translateY(-6px);
  }

  .cat-laurel {
    width: 180px;
    height: 180px;
  }

  .cat-hourglass {
    width: 110px;
    height: 110px;
  }

  .pillars,
  .feats-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    columns: 1;
  }

  .feat-card.full {
    grid-template-columns: 1fr;
  }

  .pillar.wide {
    grid-column: auto;
  }

  .hero h1 .underline svg {
    display: none;
  }

  .trust-bar {
    padding: 16px 20px;
  }

  .trust-bar .inner {
    gap: 20px;
  }

  .ti-hero {
    padding: 0 6px;
  }

  .ti-val {
    font-size: 18px;
  }

  .ti-val-hero {
    font-size: 28px;
  }

  .full-diagnostic {
    padding: 72px 20px 80px;
  }

  .full-diagnostic-frame {
    padding: 20px;
  }
}

/* ============ THREE-PHASE SCALE TARGETS ============
   These stepped --mv-target overrides MUST come after the 900px block
   above, which sets --mv-target: 420 as the mobile base. Without this
   ordering the 420 default wins the cascade at every narrower width
   and every .method-visual stays 420px wide — overflowing the viewport
   on any phone. Each target is set well under (viewport - section
   padding) so the widget, its drop-shadow, AND the cube's 3D projection
   all clear the page edges with visible breathing room. */
@media (max-width: 680px) {
  body.page-template-tsa-mockup .tsa-method .method-visual { --mv-target: 400; }
}
@media (max-width: 560px) {
  body.page-template-tsa-mockup .tsa-method .method-visual { --mv-target: 340; }
}
@media (max-width: 480px) {
  body.page-template-tsa-mockup .tsa-method .method-visual { --mv-target: 300; }
}
@media (max-width: 420px) {
  body.page-template-tsa-mockup .tsa-method {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.page-template-tsa-mockup .tsa-method .method-visual { --mv-target: 272; }
}
@media (max-width: 380px) {
  body.page-template-tsa-mockup .tsa-method .method-visual { --mv-target: 248; }
}
@media (max-width: 340px) {
  body.page-template-tsa-mockup .tsa-method {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.page-template-tsa-mockup .tsa-method .method-visual { --mv-target: 220; }
}

@media (max-width: 560px) {
  body.page-template-tsa-mockup section {
    padding: 56px 20px;
  }

  .cred-item {
    padding: 4px 12px;
    border: none;
  }

  .trust-bar .inner {
    gap: 14px 18px;
    row-gap: 14px;
  }

  .ti {
    min-height: 36px;
  }

  .ti-sep {
    display: none;
  }

  .ti-live {
    width: 100%;
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .v2-agit-top {
    padding: 72px 0 40px;
  }

  .v2-ticker {
    padding: 14px 0;
  }

  .ticker-track {
    gap: 28px;
    font-size: 13px;
  }

  .fail-head {
    padding: 18px 20px;
  }

  .fail-body {
    padding: 20px 20px 24px;
  }

  .fail-body h4 {
    font-size: 20px;
  }

  .fold-demo {
    padding: 14px;
    gap: 10px;
  }

  .fold-viz {
    max-width: 110px;
  }

  .puzzle-body {
    padding: 20px;
  }

  .puzzle-opts {
    grid-template-columns: repeat(2, 1fr);
  }

  .v1-ft {
    padding: 64px 20px;
  }

  /* v1-why headline: smaller + tighter on mobile so it doesn't run to 6 lines */
  body.page-template-tsa-mockup .v1-why .rb-bighead {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.025em;
  }

  .v1-why {
    padding: 56px 16px;
  }

  .v1-why .sh {
    margin-bottom: 40px;
  }

  .fail-panel {
    border-radius: 22px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .fail-panel:hover {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .fail-head {
    padding: 14px 18px;
    gap: 10px;
  }

  .fail-num {
    font-size: 22px;
  }

  .fail-tag {
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: .12em;
  }

  .fail-body {
    padding: 16px 18px 20px;
  }

  .fail-body h4 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .fail-body p {
    font-size: 14px;
  }

  /* gap-chart: stack label above the track so the bars have full width
   * and the 85% / 42% ticks don't get crammed on small screens.        */
  .gap-chart {
    padding: 14px 14px 12px;
  }

  .gap-stack {
    grid-template-columns: 1fr 44px;
    column-gap: 10px;
    row-gap: 4px;
  }

  .gap-row-lbl {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 2px;
  }

  .gap-row-track {
    grid-column: 1;
  }

  .gap-row-tick {
    grid-column: 2;
    text-align: right;
  }

  .gap-diff {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .gap-diff-chip {
    font-size: 10px;
    padding: 3px 7px;
  }

  .v1-ft {
    padding: 56px 16px;
  }

  .cat-stamp {
    right: -12px;
    top: 50px;
  }

  .cat-stamp-line1 {
    font-size: 12px;
  }

  .cat-stamp-line2 {
    font-size: 7px;
  }
}

/* ============================================================
 * TSA FOLDING DIAGNOSTIC QUIZ (standalone · lives inside diag-modal)
 * ============================================================ */

.tsa-quiz {
  font-family: var(--sans);
  color: var(--ink);
}

.tsa-quiz[hidden] { display: none; }

/* Screens wrapper */
.tsa-quiz-screen { animation: tsaQuizFade 220ms var(--ease); }
.tsa-quiz-screen[hidden] { display: none; }
@keyframes tsaQuizFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Intro screen ───────────────────────────────────────── */
.tsa-quiz-screen-intro {
  text-align: center;
  padding: 12px 0 6px;
}

.tsa-quiz-intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-teal);
  padding: 5px 12px;
  background: rgba(0, 137, 172, .08);
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

.tsa-quiz-intro-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: 14px;
}

.tsa-quiz-intro-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-red);
}

.tsa-quiz-intro-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 520px;
  margin: 0 auto 28px;
}

.tsa-quiz-intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 500px;
  margin: 0 auto 26px;
}

.tsa-quiz-intro-stat {
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .01em;
  line-height: 1.35;
}

.tsa-quiz-intro-stat b {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.tsa-quiz-intro-seg { margin-bottom: 22px; }

.tsa-quiz-intro-seg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.tsa-quiz-intro-seg-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tsa-quiz-seg-pill {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 7px 14px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.tsa-quiz-seg-pill:hover { border-color: var(--ink); }

.tsa-quiz-seg-pill.active {
  background: var(--ink);
  color: #F3EFE6;
  border-color: var(--ink);
}

.tsa-quiz-start-btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--brand-lime);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  min-width: 280px;
}

.tsa-quiz-start-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.tsa-quiz-intro-micro {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 12px;
  letter-spacing: .01em;
}

/* ─── Question screen ───────────────────────────────────── */
.tsa-quiz-screen-question {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tsa-quiz-qhead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 10px;
}

.tsa-quiz-qprog { min-width: 0; }

.tsa-quiz-qprog-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.tsa-quiz-qprog-track {
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.tsa-quiz-qprog-fill {
  height: 100%;
  background: var(--brand-lime);
  width: 0%;
  transition: width 400ms var(--ease);
  border-radius: 3px;
}

.tsa-quiz-timers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tsa-quiz-gtimer,
.tsa-quiz-qtimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-pill);
  color: var(--ink-3);
  background: var(--bg);
  transition: all 260ms var(--ease);
}

.tsa-quiz-gtimer-lbl,
.tsa-quiz-qtimer-lbl { font-size: 10px; color: var(--ink-4); }

.tsa-quiz-gtimer-val,
.tsa-quiz-qtimer-val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-gtimer.is-green,
.tsa-quiz-qtimer.is-green  { border-color: rgba(22, 163, 74, .35); color: var(--brand-green); background: rgba(22, 163, 74, .05); }
.tsa-quiz-gtimer.is-green .tsa-quiz-gtimer-val,
.tsa-quiz-qtimer.is-green .tsa-quiz-qtimer-val  { color: var(--brand-green); }

.tsa-quiz-gtimer.is-yellow,
.tsa-quiz-qtimer.is-yellow { border-color: rgba(246, 156, 8, .42); color: var(--brand-amber); background: rgba(246, 156, 8, .06); }
.tsa-quiz-gtimer.is-yellow .tsa-quiz-gtimer-val,
.tsa-quiz-qtimer.is-yellow .tsa-quiz-qtimer-val { color: var(--brand-amber); }

.tsa-quiz-gtimer.is-red,
.tsa-quiz-qtimer.is-red    { border-color: rgba(220, 38, 38, .42); color: var(--brand-red); background: rgba(220, 38, 38, .06); animation: tsaQuizPulse 1.2s ease-in-out infinite; }
.tsa-quiz-gtimer.is-red .tsa-quiz-gtimer-val,
.tsa-quiz-qtimer.is-red .tsa-quiz-qtimer-val    { color: var(--brand-red); }

@keyframes tsaQuizPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Global timer progress bar */
.tsa-quiz-gtimer-bar {
  width: 100%;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.tsa-quiz-gtimer-fill {
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-lime) 100%);
  transform-origin: left;
  transition: width 1s linear, background 300ms var(--ease);
}

.tsa-quiz-gtimer-fill.is-yellow { background: linear-gradient(90deg, var(--brand-amber) 0%, #F59E0B 100%); }
.tsa-quiz-gtimer-fill.is-red    { background: linear-gradient(90deg, var(--brand-red) 0%, #F87171 100%); }

.tsa-quiz-qbody {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 0 6px;
  text-align: center;
}

.tsa-quiz-q-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tsa-quiz-q-kicker::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.tsa-quiz-q-prompt {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 16px;
}

.tsa-quiz-q-imgwrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 16px;
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  justify-content: center;
}

.tsa-quiz-q-imgwrap img {
  max-width: 100%;
  max-height: 360px;
  height: auto;
  display: block;
  object-fit: contain;
}

.tsa-quiz-q-helper {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tsa-quiz-q-helper b {
  color: var(--ink);
  font-weight: 700;
}

.tsa-quiz-blanks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px 18px;
  max-width: 640px;
  margin: 0 auto;
  justify-content: center;
}

.tsa-quiz-blank {
  display: grid;
  grid-template-columns: 44px 16px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  transition: all 200ms var(--ease);
}

.tsa-quiz-blank:focus-within {
  border-color: var(--ink);
  background: var(--bg);
  box-shadow: 2px 2px 0 var(--ink);
}

.tsa-quiz-blank-label {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  text-align: right;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-blank-eq {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-4);
  font-size: 20px;
  text-align: center;
  line-height: 1;
}

.tsa-quiz-blank-input {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--rule-2);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  transition: all 150ms var(--ease);
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-blank-input:focus {
  outline: none;
  border-color: var(--brand-teal);
  background: #fff;
}

.tsa-quiz-qfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  flex-wrap: wrap;
}

.tsa-quiz-qfoot-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: -.005em;
  transition: color 200ms var(--ease);
}

.tsa-quiz-qfoot-hint.is-ready {
  color: var(--brand-green);
}

.tsa-quiz-next-btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.005em;
  color: #F3EFE6;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 22px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), opacity 200ms var(--ease);
}

.tsa-quiz-next-btn:not([disabled]):hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.tsa-quiz-next-btn[disabled] {
  cursor: not-allowed;
  opacity: .35;
  box-shadow: none;
  background: var(--ink-4);
  border-color: var(--ink-4);
}

/* ─── Processing screen ─────────────────────────────────── */
.tsa-quiz-screen-proc { padding: 36px 8px; text-align: center; }

.tsa-quiz-proc-head { max-width: 420px; margin: 0 auto 28px; }

.tsa-quiz-proc-dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 18px;
}

.tsa-quiz-proc-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
  animation: tsaQuizBounce 1.2s ease-in-out infinite;
}

.tsa-quiz-proc-dots span:nth-child(2) { animation-delay: .15s; }
.tsa-quiz-proc-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes tsaQuizBounce { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }

.tsa-quiz-proc-head h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}

.tsa-quiz-proc-head h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brand-teal); }

.tsa-quiz-proc-head p { font-size: 14px; color: var(--ink-3); line-height: 1.5; }

.tsa-quiz-proc-steps { max-width: 340px; margin: 0 auto; text-align: left; }

.tsa-quiz-proc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-3);
  border-bottom: 1px dashed var(--rule);
  transition: color 260ms var(--ease);
}

.tsa-quiz-proc-step:last-child { border-bottom: none; }

.tsa-quiz-proc-step.active { color: var(--ink); font-weight: 600; }
.tsa-quiz-proc-step.done   { color: var(--brand-green); font-weight: 500; }

.tsa-quiz-proc-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--rule);
  color: var(--ink-4);
  flex-shrink: 0;
  transition: all 260ms var(--ease);
}

.tsa-quiz-proc-step.active .tsa-quiz-proc-icon {
  background: rgba(0, 137, 172, .15);
  color: var(--brand-teal);
  animation: tsaQuizSpin 1.4s linear infinite;
}

.tsa-quiz-proc-step.done .tsa-quiz-proc-icon {
  background: rgba(22, 163, 74, .15);
  color: var(--brand-green);
  animation: none;
}

@keyframes tsaQuizSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ─── Result screen ─────────────────────────────────────── */
.tsa-quiz-screen-result {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tsa-quiz-result-zone1 {
  text-align: center;
  padding: 8px 8px 20px;
  border-bottom: 1px solid var(--rule);
}

.tsa-quiz-result-ring { margin-bottom: 14px; }

.tsa-quiz-result-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border: 1px solid;
}

.tsa-quiz-result-badge.is-good { color: var(--brand-green); background: rgba(22, 163, 74, .08); border-color: rgba(22, 163, 74, .3); }
.tsa-quiz-result-badge.is-warn { color: var(--brand-amber); background: rgba(246, 156, 8, .08); border-color: rgba(246, 156, 8, .35); }
.tsa-quiz-result-badge.is-bad  { color: var(--brand-red); background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .3); }

.tsa-quiz-result-msg {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 auto;
}

.tsa-quiz-result-msg b { color: var(--ink); font-weight: 700; }

.tsa-quiz-result-zone2 { padding: 20px 4px; border-bottom: 1px solid var(--rule); }

.tsa-quiz-result-sectlbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.tsa-quiz-result-weakgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tsa-quiz-weakcard {
  border: 1px solid;
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.tsa-quiz-weakcard.is-good { background: rgba(22, 163, 74, .06); border-color: rgba(22, 163, 74, .22); }
.tsa-quiz-weakcard.is-warn { background: rgba(246, 156, 8, .06); border-color: rgba(246, 156, 8, .26); }
.tsa-quiz-weakcard.is-bad  { background: rgba(220, 38, 38, .06); border-color: rgba(220, 38, 38, .22); }

.tsa-quiz-weakcard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.tsa-quiz-weakcard-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.tsa-quiz-weakcard-pct {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-weakcard.is-good .tsa-quiz-weakcard-pct { color: var(--brand-green); }
.tsa-quiz-weakcard.is-warn .tsa-quiz-weakcard-pct { color: var(--brand-amber); }
.tsa-quiz-weakcard.is-bad  .tsa-quiz-weakcard-pct { color: var(--brand-red); }

.tsa-quiz-weakcard-meta { font-size: 11px; color: var(--ink-3); margin-bottom: 8px; }

.tsa-quiz-weakcard-track {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.tsa-quiz-weakcard-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: width 1.2s var(--ease);
}

.tsa-quiz-weakcard.is-good .tsa-quiz-weakcard-fill { background: var(--brand-green); }
.tsa-quiz-weakcard.is-warn .tsa-quiz-weakcard-fill { background: var(--brand-amber); }
.tsa-quiz-weakcard.is-bad  .tsa-quiz-weakcard-fill { background: var(--brand-red); }

.tsa-quiz-result-timerow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tsa-quiz-timecell {
  background: var(--bg-soft);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 10px 8px;
  text-align: center;
}

.tsa-quiz-timecell-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}

.tsa-quiz-timecell-num em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .55em;
  color: var(--ink-4);
  margin-left: 2px;
}

.tsa-quiz-timecell.is-good .tsa-quiz-timecell-num { color: var(--brand-green); }
.tsa-quiz-timecell.is-warn .tsa-quiz-timecell-num { color: var(--brand-amber); }
.tsa-quiz-timecell.is-bad  .tsa-quiz-timecell-num { color: var(--brand-red); }

.tsa-quiz-timecell-lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 4px;
}

.tsa-quiz-result-zone3 {
  padding: 20px 4px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
}

.tsa-quiz-result-ai {
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  min-height: 110px;
}

.tsa-quiz-result-ai b { color: var(--ink); font-weight: 700; }

.tsa-quiz-ai-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-4);
  font-size: 12px;
}

.tsa-quiz-ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  animation: tsaQuizBounce 1.2s ease-in-out infinite;
}

.tsa-quiz-ai-dots span:nth-child(2) { animation-delay: .15s; }
.tsa-quiz-ai-dots span:nth-child(3) { animation-delay: .3s; }

.tsa-quiz-ai-dots em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
  font-size: 13px;
}

.tsa-quiz-ai-text {
  animation: tsaQuizFade 250ms var(--ease);
}

.tsa-quiz-ai-caret {
  display: inline-block;
  color: var(--brand-teal);
  animation: tsaQuizBlink 1s steps(2, start) infinite;
  margin-left: 2px;
  font-weight: 700;
  transform: translateY(-1px);
}

@keyframes tsaQuizBlink { to { visibility: hidden; } }

/* ─── AI Report card (server-side structured response) ─── */
.tsa-quiz-ai-card {
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: tsaQuizFade 300ms var(--ease);
}

.tsa-quiz-ai-header {
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(0, 137, 172, .09) 0%, rgba(157, 214, 79, .09) 100%);
  border-bottom: 1px solid var(--rule);
}

.tsa-quiz-ai-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-teal);
  padding: 4px 10px;
  background: rgba(0, 137, 172, .1);
  border: 1px solid rgba(0, 137, 172, .24);
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

.tsa-quiz-ai-badge.is-err { color: var(--brand-red); background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .25); }

.tsa-quiz-ai-htitle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.tsa-quiz-ai-htitle em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-teal);
}

.tsa-quiz-ai-hsub {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.tsa-quiz-ai-letter {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.tsa-quiz-ai-letter p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  border-left: 3px solid var(--brand-teal);
  padding: 4px 0 4px 14px;
}

.tsa-quiz-ai-predictor {
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--rule);
}

.tsa-quiz-ai-predictor-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.tsa-quiz-ai-predictor-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tsa-quiz-ai-predictor-val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-ai-predictor-val em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-4);
  margin-left: 2px;
}

.tsa-quiz-ai-predictor-track {
  position: relative;
  height: 10px;
  background: var(--rule);
  border-radius: 5px;
  overflow: visible;
  margin-bottom: 24px;
}

.tsa-quiz-ai-predictor-fill {
  position: absolute;
  inset: 0;
  right: auto;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-lime) 100%);
  border-radius: 5px;
  transition: width 1.2s var(--ease);
  animation: tsaQuizPredFill 1.2s var(--ease) 200ms both;
}

@keyframes tsaQuizPredFill { from { width: 0; } }

.tsa-quiz-ai-predictor-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 0;
  border-left: 2px dashed;
}

.tsa-quiz-ai-predictor-mark.is-pass { border-color: var(--brand-amber); }
.tsa-quiz-ai-predictor-mark.is-bq   { border-color: var(--brand-green); }

.tsa-quiz-ai-predictor-mark span {
  position: absolute;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.tsa-quiz-ai-predictor-mark.is-pass span { color: var(--brand-amber); }
.tsa-quiz-ai-predictor-mark.is-bq   span { color: var(--brand-green); }

.tsa-quiz-ai-predictor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-4);
}

.tsa-quiz-ai-cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 18px 18px;
}

.tsa-quiz-ai-cat {
  border: 1px solid;
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--bg);
}

.tsa-quiz-ai-cat.is-good { border-color: rgba(22, 163, 74, .3); background: rgba(22, 163, 74, .05); }
.tsa-quiz-ai-cat.is-warn { border-color: rgba(246, 156, 8, .32); background: rgba(246, 156, 8, .05); }
.tsa-quiz-ai-cat.is-bad  { border-color: rgba(220, 38, 38, .3); background: rgba(220, 38, 38, .05); }

.tsa-quiz-ai-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}

.tsa-quiz-ai-cat-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -.01em;
}

.tsa-quiz-ai-cat-score {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-ai-cat.is-good .tsa-quiz-ai-cat-score { color: var(--brand-green); }
.tsa-quiz-ai-cat.is-warn .tsa-quiz-ai-cat-score { color: var(--brand-amber); }
.tsa-quiz-ai-cat.is-bad  .tsa-quiz-ai-cat-score { color: var(--brand-red); }

.tsa-quiz-ai-cat-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.tsa-quiz-ai-cat.is-good .tsa-quiz-ai-cat-status { color: var(--brand-green); }
.tsa-quiz-ai-cat.is-warn .tsa-quiz-ai-cat-status { color: var(--brand-amber); }
.tsa-quiz-ai-cat.is-bad  .tsa-quiz-ai-cat-status { color: var(--brand-red); }

.tsa-quiz-ai-cat-insight {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.tsa-quiz-ai-cat-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tsa-quiz-ai-cat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 12px 6px 12px;
  transition: all 180ms var(--ease);
  box-shadow: 2px 2px 0 var(--ink);
}

.tsa-quiz-ai-cat-cta::after {
  content: '→';
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-teal);
  margin-left: 2px;
}

.tsa-quiz-ai-cat-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--brand-lime);
}

.tsa-quiz-ai-card-err {
  border-color: rgba(220, 38, 38, .3);
  background: rgba(220, 38, 38, .03);
  padding: 14px 18px;
}

.tsa-quiz-ai-err-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-red);
  margin: 6px 0 2px;
}

.tsa-quiz-ai-err-sub {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .01em;
  margin: 0;
}

.tsa-quiz-ai-local {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.tsa-quiz-ai-local p { margin: 0; }
.tsa-quiz-ai-local b { color: var(--ink); font-weight: 700; }

.tsa-quiz-result-zone4 {
  padding: 22px 4px 20px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.tsa-quiz-result-cta {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.005em;
  color: var(--ink);
  background: var(--brand-lime);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  min-width: 280px;
}

.tsa-quiz-result-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }

.tsa-quiz-result-cta-micro {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 10px;
  letter-spacing: .01em;
}

.tsa-quiz-result-zone5 { padding: 14px 0 4px; }

.tsa-quiz-result-accordion {
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg);
}

.tsa-quiz-result-ac-head {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -.005em;
  transition: background 200ms var(--ease);
}

.tsa-quiz-result-ac-head:hover { background: var(--bg-soft); }

.tsa-quiz-ac-tog {
  font-size: 18px;
  color: var(--brand-teal);
  font-weight: 300;
  line-height: 1;
  transition: transform 260ms var(--ease);
}

.tsa-quiz-result-accordion.open .tsa-quiz-ac-tog { transform: rotate(45deg); }

.tsa-quiz-result-ac-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms var(--ease), padding 260ms var(--ease);
  background: var(--bg-soft);
}

.tsa-quiz-result-accordion.open .tsa-quiz-result-ac-body {
  max-height: 600px;
  padding: 14px 16px 16px;
}

/* Pacing chart */
.tsa-quiz-pace {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  padding: 4px 0;
}

.tsa-quiz-pace-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
}

.tsa-quiz-pace-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  opacity: .9;
}

.tsa-quiz-pace-fast { background: var(--brand-teal); }
.tsa-quiz-pace-good { background: var(--brand-green); }
.tsa-quiz-pace-over { background: var(--brand-red); }
.tsa-quiz-pace-skip { background: var(--rule-2); }

.tsa-quiz-pace-ix {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-4);
  margin-top: 4px;
}

.tsa-quiz-pace-key {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-3);
  align-items: center;
}

.tsa-quiz-pace-key-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Breakdown */
.tsa-quiz-bd-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-2);
}

.tsa-quiz-bd-row:last-child { border-bottom: none; }

.tsa-quiz-bd-icon {
  width: 38px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.tsa-quiz-bd-icon.is-allcorrect { background: rgba(22, 163, 74, .14); color: var(--brand-green); }
.tsa-quiz-bd-icon.is-allwrong   { background: rgba(220, 38, 38, .12); color: var(--brand-red); }
.tsa-quiz-bd-icon.is-partial    { background: rgba(246, 156, 8, .12); color: var(--brand-amber); }
.tsa-quiz-bd-icon.is-skip       { background: var(--rule); color: var(--ink-4); }

.tsa-quiz-bd-title { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.tsa-quiz-bd-sub   { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.tsa-quiz-bd-time  { font-size: 11px; color: var(--ink-4); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Context */
.tsa-quiz-ctx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule-2);
  font-size: 12.5px;
  color: var(--ink-2);
}

.tsa-quiz-ctx-row:last-child { border-bottom: none; }
.tsa-quiz-ctx-row.tsa-quiz-ctx-row-you { border-top: 1px solid var(--rule); padding-top: 10px; margin-top: 4px; font-weight: 600; }

.tsa-quiz-ctx-val {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.tsa-quiz-ctx-val.is-good { color: var(--brand-green); }
.tsa-quiz-ctx-val.is-warn { color: var(--brand-amber); }
.tsa-quiz-ctx-val.is-bad  { color: var(--brand-red); }

/* Responsive */
@media (max-width: 640px) {
  .tsa-quiz-intro-stats { grid-template-columns: repeat(2, 1fr); }
  .tsa-quiz-blanks { grid-template-columns: 1fr; }
  .tsa-quiz-qhead { grid-template-columns: 1fr; gap: 10px; }
  .tsa-quiz-result-timerow { grid-template-columns: 1fr; }
  .tsa-quiz-result-zone3 { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .tsa-quiz-q-imgwrap { padding: 12px; }
  .tsa-quiz-q-imgwrap img { max-height: 260px; }
  .tsa-quiz-q-prompt { font-size: 16px; }
}
