/* ============================================
   IRK Brand Design System — Call Reflekt
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&family=JetBrains+Mono:wght@400;500&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- Outcome Selector (above transcript textarea) --- */
.outcome-selector {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.outcome-selector-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #AAFF00;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.outcome-selector-opt {
  color: #7A7A8C;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}
.outcome-chip-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}
@media (max-width: 900px) {
  .outcome-chip-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .outcome-chip-row { grid-template-columns: 1fr; }
}
.outcome-chip {
  font-family: 'Inter', sans-serif;
  color: #EFEFEF;
  background: rgba(255,255,255,0.03);
  border: 1px solid #1F1F28;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 78px;
}
.outcome-chip:hover {
  border-color: rgba(170, 255, 0, 0.3);
  background: rgba(170, 255, 0, 0.04);
  transform: translateY(-2px);
}
.outcome-chip-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #EFEFEF;
  line-height: 1.2;
}
.outcome-chip-desc {
  font-size: 0.72rem;
  font-weight: 400;
  color: #7A7A8C;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.outcome-chip-active {
  background: rgba(170, 255, 0, 0.08);
  border-color: rgba(170, 255, 0, 0.5);
}
.outcome-chip-active .outcome-chip-title {
  color: #AAFF00;
  font-weight: 700;
}
.outcome-chip-active:hover {
  background: rgba(170, 255, 0, 0.12);
  border-color: rgba(170, 255, 0, 0.7);
}

/* --- Outcome Banner (Section 0) + Predictive context --- */
.outcome-banner {
  background: rgba(255,255,255,0.02);
  padding: 1.75rem 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}
.outcome-banner-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.outcome-banner-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #EFEFEF;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.outcome-banner-framing {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #7A7A8C;
  line-height: 1.55;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.phase-overall-predictive {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #7A7A8C;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}

/* --- Design Tokens --- */
:root {
  --background:     #08080B;
  --background-alt: #0F0F14;
  --surface:        #16161E;
  --border:         #1F1F28;
  --accent:         #AAFF00;
  --accent-dim:     rgba(170, 255, 0, 0.08);
  --accent-border:  rgba(170, 255, 0, 0.25);
  --accent-glow:    rgba(170, 255, 0, 0.18);
  --off-white:      #EFEFEF;
  --warm-gray:      #7A7A8C;
  --success-green:  #00C853;
  --risk-red:       #FF3B30;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface);
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

::selection {
  background: var(--accent);
  color: var(--background);
}

body {
  background-color: var(--background);
  color: var(--off-white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Grain Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 3.5rem;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--off-white);
}

.logo span {
  color: var(--accent);
}

/* --- Auth Area --- */
#auth-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#user-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

#logout-btn {
  background: transparent !important;
  border: none !important;
  color: var(--warm-gray) !important;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

#logout-btn:hover {
  color: var(--accent) !important;
  transform: none;
  filter: none;
}

/* --- Glass Card --- */
.glass {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Cursor spotlight — radial glow follows mouse inside each card */
.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(170, 255, 0, 0.055),
    transparent 60%
  );
  z-index: 0;
}

.glass:hover::after {
  opacity: 1;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

/* --- Label Tag --- */
.label-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}

/* --- Headlines --- */
h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: var(--off-white);
}

h1 .accent {
  background: linear-gradient(135deg, #AAFF00 0%, #00E5B3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--off-white);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

p {
  color: var(--warm-gray);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
}

/* --- Analyzer Box --- */
.analyzer-box {
  padding: 2.5rem;
  margin-top: 2rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.analyzer-box:focus-within {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 20px 40px -10px rgba(170, 255, 0, 0.12);
}

/* --- Textarea --- */
textarea {
  width: 100%;
  height: 280px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--off-white);
  padding: 1.25rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  resize: none;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
}

textarea::placeholder {
  color: var(--warm-gray);
}

textarea:focus {
  outline: none;
  border-color: var(--accent-border);
}

/* --- Search Input --- */
#kb-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1.1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--off-white);
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

#kb-search::placeholder {
  color: var(--warm-gray);
}

#kb-search:focus {
  border-color: var(--accent-border);
}

/* --- Primary Button --- */
button#analyze-btn,
button.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--background);
  border: none;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

button#analyze-btn:hover,
button.btn-primary:hover {
  background: #c8ff40;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(170, 255, 0, 0.3);
  filter: none;
}

button#analyze-btn:active,
button.btn-primary:active {
  transform: translateY(0px) scale(0.98);
}

/* Shimmer sweep on primary button */
button#analyze-btn::before,
button.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

button#analyze-btn,
button.btn-primary {
  position: relative;
  overflow: hidden;
}

@keyframes shimmer {
  0%   { left: -100%; }
  40%, 100% { left: 160%; }
}

/* --- Secondary / Ghost Button --- */
button#reset-btn,
button#login-btn,
button.btn-secondary {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--off-white) !important;
  padding: 12px 28px !important;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

button#reset-btn:hover,
button#login-btn:hover,
button.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transform: translateY(-1px);
  filter: none;
}

/* --- View Pane --- */
.view-pane {
  display: none;
}

.view-pane.active {
  display: block;
}

/* --- Results View --- */
.results-view {
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

/* --- Pillar Grid --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pillar-card {
  padding: 1.5rem;
  text-align: center;
}

.pillar-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.pillar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* --- Better Frame Box --- */
.better-frame-box {
  margin-top: 2.5rem;
  padding: 2rem;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.8;
}

.better-frame-box h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Search Result Cards --- */
#search-results .glass {
  margin-bottom: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#search-results .glass:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

/* --- Loading View (compact analyzing bar) --- */
#loading-view {
  display: none;
  padding: 0.5rem 0 0.5rem;
  max-width: 760px;
  margin: 0 auto;
}

/* While analyzing, collapse the gap between the loading bar and the workshop
   pitch section below so the user can see the upgrade pitch in viewport. */
body.is-loading .workshop-section { padding-top: 1.25rem; }
body.is-loading main#app { padding-bottom: 0.5rem; }

.analyzing-bar {
  position: relative;
  border: 1px solid rgba(170, 255, 0, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(170, 255, 0, 0.06) 0%, transparent 65%),
    rgba(255, 255, 255, 0.018);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 30px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(170, 255, 0, 0.08);
}

.analyzing-bar-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(170, 255, 0, 0.10) 50%, transparent 100%);
  animation: scanSweep 2.4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes scanSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.analyzing-bar-content {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem 0.85rem;
  position: relative;
  z-index: 2;
}

.analyzing-bar-pulse-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent), 0 0 4px rgba(170, 255, 0, 0.8);
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

.analyzing-bar-text {
  display: flex; flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.analyzing-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.analyzing-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  color: var(--off-white);
  letter-spacing: -0.005em;
  transition: opacity 0.22s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analyzing-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.analyzing-step #analyzing-step-num {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.analyzing-step-sep {
  margin: 0 0.3rem;
  color: var(--warm-gray);
  font-weight: 400;
}

.analyzing-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 2;
}
.analyzing-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #c8ff40 100%);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(170, 255, 0, 0.6);
  position: relative;
}
.analyzing-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  filter: blur(2px);
}

.analyzing-fineprint {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

@media (max-width: 640px) {
  .analyzing-bar-content { padding: 0.85rem 1.1rem 0.75rem; gap: 0.75rem; grid-template-columns: 12px 1fr auto; }
  .analyzing-status      { font-size: 0.85rem; }
  .analyzing-step        { font-size: 0.72rem; }
}

/* --- Loading dots --- */
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.loading-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.loading-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40%           { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--accent-glow); }
}

/* --- Staggered hero entrance --- */
.hero .label-tag  { animation: fadeIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero h1          { animation: fadeIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero > p         { animation: fadeIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
.hero .analyzer-box { animation: fadeIn 0.8s cubic-bezier(0.22,1,0.36,1) 0.4s both; }

/* --- Blockquote --- */
blockquote {
  border-left: 2px solid rgba(170, 255, 0, 0.4);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--warm-gray);
}

/* --- Drifting background orbs --- */
.orb-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: orbDrift 0.8s ease forwards;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(ellipse, #7B2FF7 0%, transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite, orbFadeIn 1.2s 0.2s ease forwards;
  opacity: 0;
}

.orb-2 {
  width: 500px;
  height: 500px;
  top: 100px;
  right: -150px;
  background: radial-gradient(ellipse, #F107A3 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite, orbFadeIn 1.2s 0.5s ease forwards;
  opacity: 0;
}

.orb-3 {
  width: 350px;
  height: 350px;
  bottom: 0;
  left: 30%;
  background: radial-gradient(ellipse, rgba(170, 255, 0, 0.4) 0%, transparent 70%);
  animation: orbFloat3 26s ease-in-out infinite, orbFadeIn 1.2s 0.9s ease forwards;
  opacity: 0;
}

@keyframes orbFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.12; }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 80px) scale(1.08); }
  66%      { transform: translate(-40px, 40px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-80px, 60px) scale(1.1); }
  70%      { transform: translate(30px, -50px) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, -80px) scale(1.15); }
}

/* --- Gradient Orb (hero inline) --- */
.hero-orb {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  pointer-events: none;
  background: radial-gradient(ellipse, #7B2FF7 0%, #F107A3 100%);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Inline status indicators --- */
.status-green { color: var(--success-green); font-weight: 700; }
.status-red   { color: var(--risk-red);     font-weight: 700; }

/* --- Results content inner formatting --- */
#results-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

#results-content h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

#results-content br + br {
  display: block;
  content: '';
  margin: 0.5rem 0;
}

/* ============================================
   Influence Roster Section
   ============================================ */

.roster-section {
  border-top: 1px solid var(--border);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.roster-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(170, 255, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.roster-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.roster-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.roster-subtitle {
  max-width: 580px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--off-white);
  opacity: 0.85;
  letter-spacing: -0.005em;
}

/* --- Uniform Grid: all 6 cards same size, 2 per row --- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.roster-primary,
.roster-supporting { grid-column: span 1; }

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

/* --- Base card --- */
.roster-card {
  position: relative;
  border-radius: 18px;
  padding: 2.25rem 2.25rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease,
    background 0.3s ease;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.2);
  isolation: isolate;
  --spotlight-color: rgba(255, 255, 255, 0.5);
}
.roster-card:hover { transform: translateY(-4px); }
.roster-card:active { transform: translateY(-2px) scale(0.99); transition-duration: 0.1s; }

/* Spotlight border — radial gradient that follows cursor, visible only on the border */
.roster-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    260px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 45%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.roster-card:hover::before { opacity: 1; }

/* Per-card spotlight color */
.roster-mason   { --spotlight-color: rgba(170, 255, 0, 0.85); }
.roster-wilde   { --spotlight-color: rgba(167, 139, 250, 0.9); }
.roster-gordon  { --spotlight-color: rgba(252, 211, 77, 0.85); }
.roster-miner   { --spotlight-color: rgba(45, 212, 191, 0.85); }
.roster-robbins { --spotlight-color: rgba(251, 146, 60, 0.85); }
.roster-voss    { --spotlight-color: rgba(96, 165, 250, 0.85); }

/* --- Bento rank watermark numerals --- */
.roster-rank {
  position: absolute;
  top: 1.75rem; right: 1.75rem;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 100;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: currentColor;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.roster-card:hover .roster-rank {
  opacity: 0.32;
  transform: translateY(-2px);
}
/* All cards now share the same watermark numeral treatment */

/* Per-card rank colors — match accent */
.roster-mason   .roster-rank { color: #AAFF00; }
.roster-wilde   .roster-rank { color: #A78BFA; }
.roster-gordon  .roster-rank { color: #FCD34D; }
.roster-miner   .roster-rank { color: #2DD4BF; }
.roster-robbins .roster-rank { color: #FB923C; }
.roster-voss    .roster-rank { color: #60A5FA; }

.roster-card-inner {
  position: relative;
  z-index: 1;
}

/* Ambient glow behind card content */
.roster-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.roster-card:hover .roster-glow {
  opacity: 1;
}

/* --- Tier label --- */
.roster-tier {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  opacity: 1;
}

/* --- Name --- */
.roster-name {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.4rem;
}

/* --- Method badge --- */
.roster-method {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.35rem;
  opacity: 0.95;
}

/* --- Pillars --- */
.roster-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roster-pillars span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: 100px;
  border: 1.5px solid;
  opacity: 1;
}

/* ── All cards now share the same hero treatment ── */
.roster-primary,
.roster-supporting {
  padding: 2.75rem 2.5rem 2.25rem;
}
.roster-primary .roster-name,
.roster-supporting .roster-name {
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.roster-primary .roster-method,
.roster-supporting .roster-method {
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

/* Mason Church — lime/chartreuse */
.roster-mason {
  background: rgba(170, 255, 0, 0.04);
  border-color: rgba(170, 255, 0, 0.18);
}
.roster-mason:hover {
  border-color: rgba(170, 255, 0, 0.55);
  background: rgba(170, 255, 0, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(170, 255, 0, 0.15);
}
.roster-mason .roster-tier { color: #AAFF00; }
.roster-mason .roster-name { color: #AAFF00; }
.roster-mason .roster-method { color: #AAFF00; }
.roster-mason .roster-pillars span { color: #DEFF7A; border-color: rgba(170, 255, 0, 0.5); background: rgba(170, 255, 0, 0.12); }
.roster-glow-mason { background: radial-gradient(ellipse at 30% 50%, rgba(170, 255, 0, 0.08) 0%, transparent 65%); }

/* Eli Wilde — electric purple */
.roster-wilde {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.18);
}
.roster-wilde:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(139, 92, 246, 0.18);
}
.roster-wilde .roster-tier { color: #A78BFA; }
.roster-wilde .roster-name { color: #A78BFA; }
.roster-wilde .roster-method { color: #A78BFA; }
.roster-wilde .roster-pillars span { color: #C4B5FD; border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.15); }
.roster-glow-wilde { background: radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.10) 0%, transparent 65%); }

/* ── Supporting cards — 4 across bottom ── */
.roster-supporting {
  /* nothing extra needed — inherits base */
}

/* Cole Gordon — amber/gold */
.roster-gordon {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.15);
}
.roster-gordon:hover {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(245, 158, 11, 0.16);
}
.roster-gordon .roster-tier { color: #FCD34D; }
.roster-gordon .roster-name { color: #FCD34D; }
.roster-gordon .roster-method { color: #FCD34D; }
.roster-gordon .roster-pillars span { color: #FDE68A; border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.13); }
.roster-glow-gordon { background: radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.09) 0%, transparent 65%); }

/* Jeremy Miner — cyan/teal */
.roster-miner {
  background: rgba(20, 184, 166, 0.04);
  border-color: rgba(20, 184, 166, 0.15);
}
.roster-miner:hover {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(20, 184, 166, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(20, 184, 166, 0.16);
}
.roster-miner .roster-tier { color: #2DD4BF; }
.roster-miner .roster-name { color: #2DD4BF; }
.roster-miner .roster-method { color: #2DD4BF; }
.roster-miner .roster-pillars span { color: #5EEAD4; border-color: rgba(20, 184, 166, 0.55); background: rgba(20, 184, 166, 0.13); }
.roster-glow-miner { background: radial-gradient(ellipse at 50% 80%, rgba(20, 184, 166, 0.09) 0%, transparent 65%); }

/* Tony Robbins — orange fire */
.roster-robbins {
  background: rgba(249, 115, 22, 0.04);
  border-color: rgba(249, 115, 22, 0.15);
}
.roster-robbins:hover {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(249, 115, 22, 0.16);
}
.roster-robbins .roster-tier { color: #FB923C; }
.roster-robbins .roster-name { color: #FB923C; }
.roster-robbins .roster-method { color: #FB923C; }
.roster-robbins .roster-pillars span { color: #FDBA74; border-color: rgba(249, 115, 22, 0.55); background: rgba(249, 115, 22, 0.13); }
.roster-glow-robbins { background: radial-gradient(ellipse at 50% 80%, rgba(249, 115, 22, 0.09) 0%, transparent 65%); }

/* Chris Voss — electric blue */
.roster-voss {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
}
.roster-voss:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(59, 130, 246, 0.18);
}
.roster-voss .roster-tier { color: #60A5FA; }
.roster-voss .roster-name { color: #60A5FA; }
.roster-voss .roster-method { color: #60A5FA; }
.roster-voss .roster-pillars span { color: #93C5FD; border-color: rgba(59, 130, 246, 0.55); background: rgba(59, 130, 246, 0.14); }
.roster-glow-voss { background: radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.09) 0%, transparent 65%); }

/* Scroll-reveal for roster cards */
.roster-card {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.roster-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.roster-card.revealed:hover {
  transform: translateY(-4px);
}

/* Stagger delays */
.roster-card:nth-child(1) { transition-delay: 0.05s; }
.roster-card:nth-child(2) { transition-delay: 0.14s; }
.roster-card:nth-child(3) { transition-delay: 0.22s; }
.roster-card:nth-child(4) { transition-delay: 0.30s; }
.roster-card:nth-child(5) { transition-delay: 0.38s; }
.roster-card:nth-child(6) { transition-delay: 0.46s; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .container { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 2.2rem; }
  .analyzer-box { padding: 1.5rem; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .roster-grid { grid-template-columns: 1fr; }
  .roster-section { padding: 4rem 0 3rem; }
}

/* ============================================
   Results Renderer Components
   ============================================ */

.results-view { max-width: 860px; }

.results-body {
  display: flex;
  flex-direction: column;
}

/* --- Section shell --- */
.result-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.result-section:last-child { border-bottom: none; }

/* Stagger entrance for result sections */
.result-section {
  opacity: 0;
  transform: translateY(12px);
  animation: resultSectionReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.result-section[data-num="1"] { animation-delay: 0.05s; }
.result-section[data-num="2"] { animation-delay: 0.18s; }
.result-section[data-num="3"] { animation-delay: 0.31s; }
.result-section[data-num="4"] { animation-delay: 0.44s; }
.result-section[data-num="5"] { animation-delay: 0.57s; }
.result-section[data-num="6"] { animation-delay: 0.70s; }
@keyframes resultSectionReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Tactile press feedback for all primary CTAs in the output */
.handoff-locked-cta:active,
.coaching-upsell-cta:active,
.fwm-cta-btn:active,
.workshop-cta-btn:active,
.workshop-section-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

/* Subtle ambient backdrop behind the results panel for editorial depth */
#results-view {
  position: relative;
}
#results-view::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(170, 255, 0, 0.06) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.result-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  position: relative;
}
.result-section-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.result-num {
  display: inline-flex; align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto; height: auto;
  flex-shrink: 0;
  box-shadow: none;
}
.result-num::before { content: '/ '; opacity: 0.45; }

.result-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--off-white);
  text-transform: none;
}

/* --- Shared score track --- */
.score-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Inline tags --- */
.tag-green {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em;
  color: #00C853; background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.25); border-radius: 4px;
  padding: 0.1rem 0.4rem; text-transform: uppercase;
}
.tag-red {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em;
  color: #FF3B30; background: rgba(255,59,48,0.1);
  border: 1px solid rgba(255,59,48,0.25); border-radius: 4px;
  padding: 0.1rem 0.4rem; text-transform: uppercase;
}
.tag-warn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em;
  color: #FFB300; background: rgba(255,179,0,0.1);
  border: 1px solid rgba(255,179,0,0.25); border-radius: 4px;
  padding: 0.1rem 0.4rem; text-transform: uppercase;
}
.score-inline {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* ─── SCORECARD ─── */
.scorecard { display: flex; flex-direction: column; gap: 1.5rem; }

.scorecard-overall { display: flex; flex-direction: column; gap: 0.75rem; }

.score-dial { display: flex; align-items: baseline; gap: 0.4rem; }
.score-big  { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 4.5rem; letter-spacing: -0.04em; line-height: 1; }
.score-over { font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; color: var(--warm-gray); }

.scorecard-bullets { display: flex; flex-direction: column; gap: 0.65rem; }

.scorecard-row {
  display: grid;
  grid-template-columns: 160px 1fr 52px;
  align-items: center;
  gap: 1rem;
}
.scorecard-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--warm-gray);
}
.scorecard-bar-wrap {
  height: 3px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.scorecard-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.scorecard-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 700; text-align: right;
}
.scorecard-summary {
  font-size: 0.95rem; color: var(--warm-gray);
  font-style: italic; line-height: 1.65; margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ─── SINGLE BIGGEST MISTAKE ─── */
.mistake-section { display: flex; flex-direction: column; gap: 1.25rem; }

.mistake-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900; font-size: 1.25rem;
  letter-spacing: -0.02em; color: var(--off-white);
  display: flex; align-items: center; gap: 0.65rem;
}
.mistake-x {
  color: #FF3B30; font-size: 1.1rem; flex-shrink: 0;
}
.mistake-context {
  font-size: 0.92rem; color: var(--warm-gray);
  line-height: 1.7; margin: 0;
}

.key-moment {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid #FF3B30;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

.key-moment-header {
  display: flex; align-items: center; gap: 0.75rem;
}
.key-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.25em;
  color: #FF3B30;
}
.key-timestamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: var(--warm-gray);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 0.15rem 0.5rem;
}

.prospect-said {
  font-size: 0.95rem; font-style: italic;
  color: var(--warm-gray); line-height: 1.65;
  padding-left: 1rem;
  border-left: 2px solid rgba(255,255,255,0.1);
}

.did-vs-should {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.did-block, .should-block {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1rem 1.25rem; border-radius: 10px;
}
.did-block {
  background: rgba(255,59,48,0.05);
  border: 1px solid rgba(255,59,48,0.15);
}
.should-block {
  background: rgba(0,200,83,0.04);
  border: 1px solid rgba(0,200,83,0.15);
}
.dvs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem;
}
.dvs-label-red  { color: #FF3B30; }
.dvs-label-green { color: #00C853; }

.did-block ul, .should-block ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.did-block li, .should-block li {
  font-size: 0.85rem; color: var(--off-white); line-height: 1.55;
  padding-left: 0.85rem; position: relative;
}
.did-block li::before    { content: '—'; position: absolute; left: 0; color: #FF3B30; }
.should-block li::before { content: '—'; position: absolute; left: 0; color: #00C853; }

.script-block {
  font-size: 0.88rem; color: var(--off-white);
  line-height: 1.7; font-style: italic;
}
.tonality {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.1em;
  color: var(--warm-gray);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 0.1rem 0.4rem;
  text-transform: capitalize; margin-left: 0.4rem;
}

/* ─── BUYING BELIEFS ─── */
.beliefs-section { display: flex; flex-direction: column; gap: 1rem; }

.beliefs-intro {
  font-size: 0.88rem; color: var(--warm-gray);
  font-style: italic; margin: 0 0 0.25rem;
}

.belief-group { display: flex; flex-direction: column; gap: 0.5rem; }

.belief-group-header {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.belief-group-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.group-green { color: #00C853; }
.group-green .belief-group-dot { background: #00C853; box-shadow: 0 0 6px rgba(0,200,83,0.5); }
.group-warn  { color: #FFB300; }
.group-warn  .belief-group-dot { background: #FFB300; }
.group-red   { color: #FF3B30; }
.group-red   .belief-group-dot { background: #FF3B30; }

.belief-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 1rem; align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.belief-row:last-child { border-bottom: none; }
.belief-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.88rem; color: var(--off-white);
}
.belief-note {
  font-size: 0.84rem; color: var(--warm-gray); line-height: 1.55;
}
.beliefs-stalled {
  font-size: 0.9rem; color: var(--off-white);
  margin: 0.5rem 0 0; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ─── MISSED SEQUENCES ─── */
.sequences { display: flex; flex-direction: column; gap: 2rem; }

.sequence-block {
  display: flex; flex-direction: column; gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sequence-block:last-child { border-bottom: none; padding-bottom: 0; }

.sequence-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--off-white); letter-spacing: -0.01em;
}
.sequence-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--warm-gray);
}

.sequence-skipped, .sequence-correct {
  border-radius: 10px; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.sequence-skipped {
  background: rgba(255,59,48,0.05);
  border: 1px solid rgba(255,59,48,0.15);
}
.sequence-correct {
  background: rgba(0,200,83,0.04);
  border: 1px solid rgba(0,200,83,0.15);
}

.seq-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem;
}
.seq-label-red   { color: #FF3B30; }
.seq-label-green { color: #00C853; }

.sequence-skipped ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.sequence-skipped li {
  font-size: 0.85rem; color: var(--off-white); line-height: 1.5;
  padding-left: 0.85rem; position: relative;
}
.sequence-skipped li::before { content: '—'; position: absolute; left: 0; color: #FF3B30; }

/* ─── WILDE OS ─── */
.wilde-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.wilde-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.wilde-top {
  display: flex; justify-content: space-between; align-items: baseline;
}
.wilde-label {
  font-size: 0.82rem; font-weight: 600; color: var(--off-white);
}
.wilde-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.wilde-note {
  font-size: 0.78rem; color: var(--warm-gray); line-height: 1.55; margin: 0;
}
.wilde-miss {
  margin-top: 1rem; padding: 1rem 1.25rem;
  background: rgba(255,59,48,0.06);
  border: 1px solid rgba(255,59,48,0.2); border-radius: 10px;
}
.miss-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.25em;
  color: #FF3B30; margin-bottom: 0.4rem;
}
.wilde-miss p { font-size: 0.88rem; color: var(--off-white); margin: 0; line-height: 1.6; }

/* ─── FOLLOW-UP MESSAGE ─── */
.followup-block {
  background: rgba(170,255,0,0.03);
  border: 1px solid rgba(170,255,0,0.18);
  border-radius: 14px; padding: 1.85rem 1.85rem 1.7rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.followup-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.28em;
  color: var(--accent);
}
.followup-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--off-white);
}
.followup-body p {
  margin: 0;
}
.followup-body p + p {
  padding-top: 0.15rem;
}
.followup-copy {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.followup-copy:hover {
  background: var(--accent-dim);
  transform: none; filter: none;
}

/* ─── HANDOFF LOCKED (Workshop-unlock scroll stopper) ─── */
.handoff-locked {
  position: relative;
  margin-top: 2rem;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(170, 255, 0, 0.05) 0%, rgba(123, 47, 247, 0.04) 50%, rgba(241, 7, 163, 0.04) 100%),
    rgba(8, 8, 11, 0.6);
  border: 1px solid rgba(170, 255, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(170, 255, 0, 0.15),
    0 0 0 1px rgba(170, 255, 0, 0.08);
}

/* Animated lime border conic glow */
.handoff-locked::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    rgba(170, 255, 0, 0.6),
    rgba(123, 47, 247, 0.3),
    rgba(241, 7, 163, 0.4),
    rgba(170, 255, 0, 0.6)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: handoffBorderSpin 6s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}
@keyframes handoffBorderSpin {
  to { transform: rotate(360deg); }
}

/* Magenta/purple radial orb behind */
.handoff-locked-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(123, 47, 247, 0.5) 0%, rgba(241, 7, 163, 0.25) 50%, transparent 75%);
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* Soft scanning sweep over the card */
.handoff-locked-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(170, 255, 0, 0.07) 50%, transparent 70%);
  animation: handoffScan 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes handoffScan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.handoff-locked-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem 2.5rem;
  display: flex; flex-direction: column;
  gap: 2.1rem;
}

/* HEAD: tag + headline + sub */
.handoff-locked-head {
  display: flex; flex-direction: column; gap: 0.85rem;
  text-align: center;
}
.handoff-locked-tag {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
  padding: 0.65rem 1.2rem 0.6rem;
  background: rgba(170, 255, 0, 0.1);
  border: 1.5px solid rgba(170, 255, 0, 0.5);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(170, 255, 0, 0.25);
}
.handoff-locked-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 1.5s ease-in-out infinite;
}
.handoff-locked-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--off-white);
  text-wrap: balance;
}
.handoff-locked-title-accent {
  display: block;
  color: var(--accent);
  font-weight: 900;
  position: relative;
}
.handoff-locked-sub {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--off-white);
  opacity: 0.88;
  max-width: 520px;
  align-self: center;
  letter-spacing: -0.005em;
}

/* ROW: locked app buttons */
.handoff-locked-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.handoff-locked-btn {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(170, 255, 0, 0.05) 0%, rgba(170, 255, 0, 0.02) 100%);
  border: 1.5px solid rgba(170, 255, 0, 0.32);
  cursor: not-allowed;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.handoff-locked-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 255, 0, 0.5), transparent);
}
.handoff-locked-btn:hover {
  background: linear-gradient(180deg, rgba(170, 255, 0, 0.08) 0%, rgba(170, 255, 0, 0.03) 100%);
  border-color: rgba(170, 255, 0, 0.55);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(170, 255, 0, 0.18);
}
.handoff-locked-btn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent) 0%, #00E5B3 100%);
  color: var(--background);
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 22px rgba(170, 255, 0, 0.4);
}
.handoff-locked-btn-meta {
  display: flex; flex-direction: column; gap: 0.2rem;
  min-width: 0;
}
.handoff-locked-btn-app {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--off-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handoff-locked-btn-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--warm-gray);
}
.handoff-locked-btn-lock {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.handoff-locked-btn:hover .handoff-locked-btn-lock {
  transform: scale(1.15);
  opacity: 1;
}

/* Big lime CTA */
.handoff-locked-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  align-self: stretch;
  padding: 1.4rem 1.85rem;
  background: var(--accent);
  color: var(--background);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 14px 38px rgba(170, 255, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.handoff-locked-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.handoff-locked-cta:hover {
  background: #c8ff40;
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px rgba(170, 255, 0, 0.45),
    0 0 60px rgba(170, 255, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.handoff-locked-cta:hover::before {
  transform: translateX(100%);
}
.handoff-locked-cta-label {
  position: relative; z-index: 1;
}
.handoff-locked-cta-price {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.75rem;
  background: rgba(8, 8, 11, 0.88);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  border-radius: 7px;
  border: 1.5px solid rgba(170, 255, 0, 0.5);
}
.handoff-locked-cta-arrow {
  position: relative; z-index: 1;
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.35s ease;
}
.handoff-locked-cta:hover .handoff-locked-cta-arrow {
  transform: translateX(5px);
}

@media (max-width: 640px) {
  .handoff-locked-inner { padding: 1.85rem 1.4rem 1.65rem; gap: 1.5rem; }
  .handoff-locked-row { grid-template-columns: 1fr; }
  .handoff-locked-cta { flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.25rem; font-size: 0.9rem; text-align: center; }
}

/* ─── FINAL TRUTH — Editorial pull-quote ─── */
.final-truth {
  font-family: 'DM Serif Display', 'Inter', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--off-white);
  padding: 0 0 0 2rem;
  background: none;
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  max-width: 56ch;
  position: relative;
}
.final-truth::before {
  content: '"';
  position: absolute;
  top: -0.85rem; left: 1rem;
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
}
.final-truth strong {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ─── Plain fallback ─── */
.result-plain {
  font-size: 0.92rem; color: var(--off-white); line-height: 1.75;
}
.result-plain strong { font-weight: 600; }

/* ═════════════════════════════════════════════════════════
   PHASE BREAKDOWN — Editorial Data Architecture
   ═════════════════════════════════════════════════════════ */
.phase-breakdown { display: flex; flex-direction: column; gap: 3.5rem; }

/* ─── HERO: Overall Score (asymmetric, editorial) ─── */
.phase-overall {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0 2.5rem;
  border: none;
  background: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.phase-overall::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 255, 0, 0.12), transparent 70%);
  filter: blur(40px);
  transform: translate(-30%, -50%);
  pointer-events: none;
  z-index: -1;
}
.phase-overall-dial {
  display: flex; align-items: baseline; gap: 0.2rem;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.phase-overall-num {
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 200;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.phase-overall-over {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-end;
  margin-bottom: 0.85rem;
}
.phase-overall-over::before { content: '/ '; }
.phase-overall-meta { display: flex; flex-direction: column; gap: 0.85rem; }
.phase-overall-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
}
/* hide the legacy <div class="score-track"> bar — overall hero handles its own viz */
.phase-overall .score-track { display: none; }
.phase-overall-summary {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--off-white);
  font-style: normal;
  letter-spacing: -0.018em;
  max-width: 52ch;
  text-wrap: balance;
}

/* ─── PHASE LIST — Stacked editorial rows ─── */
.phase-list {
  display: flex; flex-direction: column;
  gap: 0;
}
.phase-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: phaseRowReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.phase-row:nth-child(1) { animation-delay: 0.04s; }
.phase-row:nth-child(2) { animation-delay: 0.08s; }
.phase-row:nth-child(3) { animation-delay: 0.12s; }
.phase-row:nth-child(4) { animation-delay: 0.16s; }
.phase-row:nth-child(5) { animation-delay: 0.20s; }
.phase-row:nth-child(6) { animation-delay: 0.24s; }
.phase-row:nth-child(7) { animation-delay: 0.28s; }
.phase-row:nth-child(8) { animation-delay: 0.32s; }
.phase-row:last-child { border-bottom: none; padding-bottom: 0.75rem; }
@keyframes phaseRowReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Header row: number + name + score on one line */
.phase-row-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.phase-num {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  text-align: center;
}
.phase-name {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--off-white);
  letter-spacing: -0.025em;
  line-height: 1.2;
  min-width: 0;
}
.phase-score {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Clean score bar — full width below head */
.phase-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 0;
  position: static;
  display: block;
}
.phase-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: static;
  width: 0%;
  -webkit-mask: none;
          mask: none;
  filter: none;
}

/* Belief callout — full width, integrated badge style */
.phase-belief {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: rgba(170, 255, 0, 0.05);
  border: 1px solid rgba(170, 255, 0, 0.22);
  border-radius: 10px;
  margin: 0;
}
.phase-belief-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.phase-belief-text {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--off-white);
  letter-spacing: -0.005em;
  min-width: 220px;
}

/* Status pill */
.phase-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  white-space: nowrap;
}
.phase-pill-green   { background: rgba(0, 200, 83, 0.15); color: #5EEAB0; border: 1px solid rgba(0, 200, 83, 0.4); }
.phase-pill-warn    { background: rgba(255, 179, 0, 0.15); color: #FFCB47; border: 1px solid rgba(255, 179, 0, 0.4); }
.phase-pill-red     { background: rgba(255, 59, 48, 0.15); color: #FF7066; border: 1px solid rgba(255, 59, 48, 0.4); }
.phase-pill-neutral { background: rgba(255, 255, 255, 0.04); color: var(--warm-gray); border: 1px solid rgba(255, 255, 255, 0.08); }

/* What worked / What to fix — full-width stacked rows */
.phase-line {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left-width: 4px;
  border-radius: 9px;
  margin: 0;
}
.phase-line-good {
  border-left-color: #00C853;
  background: rgba(0, 200, 83, 0.06);
}
.phase-line-fix {
  border-left-color: #FF3B30;
  background: rgba(255, 59, 48, 0.05);
}
.phase-line-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.phase-line-good .phase-line-tag { color: #5EEAB0; }
.phase-line-fix  .phase-line-tag { color: #FF7066; }
.phase-line-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--off-white);
  letter-spacing: -0.012em;
}

/* ═════════════════════════════════════════════════════════
   WHAT WORKED — Editorial divide-y, no boxes
   ═════════════════════════════════════════════════════════ */
.what-worked { display: flex; flex-direction: column; gap: 0; }
.strength-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.5rem 1.25rem;
  padding: 1.85rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: phaseRowReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.strength-card:nth-child(1) { animation-delay: 0.05s; }
.strength-card:nth-child(2) { animation-delay: 0.12s; }
.strength-card:nth-child(3) { animation-delay: 0.19s; }
.strength-card:last-child { border-bottom: none; padding-bottom: 0.25rem; }
.strength-head {
  grid-column: 2;
  display: flex; align-items: baseline; gap: 0.85rem;
  flex-wrap: wrap;
}
.strength-check {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(170, 255, 0, 0.35);
}
.strength-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 800;
  color: var(--off-white);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.strength-ts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent);
  margin-left: auto;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.strength-body {
  grid-column: 2;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--off-white);
  opacity: 0.88;
  letter-spacing: -0.01em;
  max-width: 62ch;
}

/* ═════════════════════════════════════════════════════════
   TOP IMPROVEMENTS — Editorial spread, display numerals
   ═════════════════════════════════════════════════════════ */
.top-improvements { display: flex; flex-direction: column; gap: 0; }
.improvements-note {
  margin: 0 0 1.5rem;
  padding: 1rem 0 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--off-white);
  background: none;
  border-left: 3px solid #FFB300;
  border-radius: 0;
  font-style: italic;
  letter-spacing: -0.01em;
  max-width: 62ch;
}

.improvement-card {
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr;
  gap: 1.25rem 2rem;
  padding: 2.75rem 0;
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  border-radius: 0;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  animation: phaseRowReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.improvement-card:first-of-type { border-top: none; padding-top: 0.5rem; }
.improvement-card:nth-of-type(1) { animation-delay: 0.08s; }
.improvement-card:nth-of-type(2) { animation-delay: 0.18s; }
.improvement-card::before { content: none; }

.improvement-head {
  grid-column: 2;
  display: flex; align-items: baseline;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 0;
  border-bottom: none;
}
.improvement-num {
  grid-row: 1 / 3;
  align-self: start;
  display: inline-flex; align-items: baseline; justify-content: flex-start;
  width: auto; height: auto;
  background: none;
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.25rem, 5.5vw, 4.75rem);
  font-weight: 200;
  border-radius: 0;
  letter-spacing: -0.07em;
  line-height: 0.85;
  position: relative;
}
.improvement-num::before {
  content: '';
  position: absolute;
  top: -0.5rem; left: 0;
  width: 32px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.improvement-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--off-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}
.improvement-ts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* Fields stack below the head, separated by hairlines */
.improvement-field {
  grid-column: 2;
  display: flex; flex-direction: column;
  gap: 0.55rem;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.improvement-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
}
.improvement-field p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--off-white);
  letter-spacing: -0.01em;
  max-width: 62ch;
  opacity: 0.92;
}
.improvement-field-script .script-block {
  margin-top: 0.25rem;
  padding: 1.4rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(170, 255, 0, 0.06), rgba(0, 229, 179, 0.025));
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--off-white);
  font-style: italic;
  letter-spacing: -0.012em;
}
.improvement-field-script .script-block::before {
  content: '"';
  display: inline-block;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.3em;
  color: var(--accent);
  opacity: 0.5;
  margin-right: 0.15rem;
  line-height: 0.6;
  vertical-align: -0.05em;
}
.improvement-field-outcome p {
  color: #5EEAB0;
  font-weight: 500;
  opacity: 1;
}
.improvement-field-outcome .improvement-field-label { color: #5EEAB0; }

/* ─── PERSONALIZED COACHING OPPORTUNITY (Bold scroll-stopper — Coach's Note) ─── */
.coaching-upsell {
  position: relative;
  margin-top: 2rem;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(170, 255, 0, 0.04) 0%, rgba(0, 229, 179, 0.025) 100%),
    rgba(8, 8, 11, 0.7);
  border: 1.5px solid rgba(170, 255, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(170, 255, 0, 0.18),
    0 0 0 1px rgba(170, 255, 0, 0.1);
}

/* Lime/teal radial spotlight from the top-left where the portrait sits */
.coaching-upsell-glow {
  position: absolute;
  top: -120px; left: -80px;
  width: 600px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(170, 255, 0, 0.4) 0%, rgba(0, 229, 179, 0.18) 50%, transparent 75%);
  filter: blur(110px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.coaching-upsell-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(170, 255, 0, 0.06) 50%, transparent 70%);
  animation: coachingScan 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes coachingScan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.coaching-upsell-inner {
  position: relative;
  z-index: 2;
  padding: 2.25rem 2.25rem 2rem;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

/* Head: portrait + tag/byline */
.coaching-upsell-head {
  display: flex; align-items: center;
  gap: 1.1rem;
}
.coaching-upsell-portrait {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(170, 255, 0, 0.6);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(170, 255, 0, 0.3);
  background: var(--background-alt);
}
.coaching-upsell-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.coaching-upsell-head-meta {
  display: flex; flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.coaching-upsell-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
}
.coaching-upsell-byline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--off-white);
}

/* Body — quote-styled diagnosis */
.coaching-upsell-body {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--off-white);
  letter-spacing: -0.005em;
}
.coaching-upsell-body p { margin: 0; }
.coaching-upsell-body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}
.coaching-upsell-body strong { font-weight: 600; }

/* Kicker italic line ("Personalized 1-on-1 coaching will move you faster…") */
.coaching-upsell-kicker {
  margin: 0;
  padding: 1rem 1.25rem;
  background: rgba(170, 255, 0, 0.06);
  border-radius: 10px;
  font-family: 'DM Serif Display', 'Inter', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--off-white);
  text-align: center;
}

/* Big CTA */
.coaching-upsell-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  align-self: stretch;
  padding: 1.2rem 1.75rem;
  background: var(--accent);
  color: var(--background);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.005em;
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 14px 36px rgba(170, 255, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.coaching-upsell-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.coaching-upsell-cta:hover {
  background: #c8ff40;
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px rgba(170, 255, 0, 0.5),
    0 0 64px rgba(170, 255, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.coaching-upsell-cta:hover::before {
  transform: translateX(100%);
}
.coaching-upsell-cta-label {
  position: relative; z-index: 1;
}
.coaching-upsell-cta-price {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.7rem;
  background: rgba(8, 8, 11, 0.85);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0;
  border-radius: 7px;
  border: 1px solid rgba(170, 255, 0, 0.45);
}
.coaching-upsell-cta-arrow {
  position: relative; z-index: 1;
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.35s ease;
}
.coaching-upsell-cta:hover .coaching-upsell-cta-arrow {
  transform: translateX(5px);
}

.coaching-upsell-finep {
  align-self: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

@media (max-width: 640px) {
  .coaching-upsell-inner   { padding: 1.85rem 1.4rem 1.65rem; gap: 1.25rem; }
  .coaching-upsell-portrait { width: 56px; height: 56px; }
  .coaching-upsell-body    { font-size: 0.92rem; padding-left: 1rem; }
  .coaching-upsell-kicker  { font-size: 1rem; padding: 0.85rem 1rem; }
  .coaching-upsell-cta     { flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.25rem; font-size: 0.92rem; text-align: center; }
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .scorecard-row   { grid-template-columns: 120px 1fr 44px; }
  .did-vs-should   { grid-template-columns: 1fr; }
  .wilde-grid      { grid-template-columns: 1fr; }
  .belief-row      { grid-template-columns: 1fr; gap: 0.2rem; }
  .score-big       { font-size: 3rem; }
  .result-section  { padding: 1.75rem 0; }

  .phase-overall { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .phase-overall-num { font-size: 3rem; }
  .phase-row-head { grid-template-columns: 22px 1fr auto; gap: 0.6rem; }
  .phase-bar-wrap, .phase-belief, .phase-line { margin-left: calc(22px + 0.6rem); }
  .improvement-card { padding: 1.25rem 1.25rem 1.2rem; }
  .improvement-head { grid-template-columns: 28px 1fr; }
  .improvement-ts { grid-column: 2; margin-top: 0.2rem; }
  .coaching-upsell { padding: 1.4rem 1.25rem 1.25rem; }
  .coaching-upsell-cta { width: 100%; }
}
/* ─── SCRIPT BUILDER FORM ─── */
.script-form { display: flex; flex-direction: column; gap: 1.25rem; text-align: left; }
.script-field { display: flex; flex-direction: column; gap: 0.4rem; }
.script-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--warm-gray);
}
.script-form input[type="text"],
.script-form textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.85rem 1rem;
  resize: vertical;
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.script-form input[type="text"]:focus,
.script-form textarea:focus {
  border-color: rgba(170,255,0,0.4);
  outline: none;
}
.script-form input::placeholder,
.script-form textarea::placeholder { color: var(--warm-gray); opacity: 0.6; }

/* ─── SCRIPT OUTPUT ─── */
.script-output {
  font-size: 0.92rem; color: var(--off-white);
  line-height: 1.8; white-space: pre-wrap;
}
.script-section-block {
  margin-bottom: 2.5rem;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}
.script-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.script-section-body {
  font-size: 0.9rem; color: var(--off-white);
  line-height: 1.85;
}
.script-section-body strong { color: var(--accent); font-weight: 600; }
.script-pause-block {
  background: rgba(170,255,0,0.04);
  border: 1px solid rgba(170,255,0,0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--off-white);
}

/* ============================================================
   Page Hero — shared across all tools
   ============================================================ */
.page-hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 1.5rem 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.20;
  background: radial-gradient(ellipse, #7B2FF7 0%, #F107A3 100%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--off-white);
  margin: 0 0 1.25rem;
}

.page-hero-title .accent {
  color: var(--accent);
}

.page-hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .page-hero { padding: 3rem 1.25rem 2rem; }
  .page-hero-sub { font-size: 0.95rem; }
}

/* ============================================================
   Tool Cards — 3-up workflow row (replaces .mode-tabs)
   ============================================================ */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1140px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  padding: 1.75rem 1.75rem 1.85rem;
  background: rgba(170, 255, 0, 0.015);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(170, 255, 0, 0.28);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Inter', sans-serif;
  color: var(--off-white);
}

.tool-card:hover {
  background: rgba(170, 255, 0, 0.04);
  border-color: rgba(170, 255, 0, 0.55);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 16px 40px rgba(0,0,0,0.4),
    0 0 70px rgba(170, 255, 0, 0.28),
    0 0 0 1px rgba(170, 255, 0, 0.35);
}

.tool-card-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.tool-card-name {
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.tool-card-line {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--warm-gray);
  margin-top: 0.35rem;
}

.tool-card.tool-card-active {
  border-color: rgba(170, 255, 0, 0.5);
  background: rgba(170, 255, 0, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 30px rgba(170, 255, 0, 0.15);
}

.tool-card.tool-card-active:hover {
  border-color: rgba(170, 255, 0, 0.65);
  background: rgba(170, 255, 0, 0.07);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 16px 40px rgba(0,0,0,0.4),
    0 0 80px rgba(170, 255, 0, 0.32),
    0 0 0 1px rgba(170, 255, 0, 0.45);
}

@media (max-width: 860px) {
  .tool-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
}

/* Gated tool card (Live Objection Reframer) */
.tool-card-gated {
  background: rgba(255, 255, 255, 0.008);
}

.tool-card-gated .tool-card-name,
.tool-card-gated .tool-card-line {
  opacity: 0.7;
}

.tool-card-gated:hover {
  background: rgba(170, 255, 0, 0.02);
}

.tool-card-gated:hover .tool-card-name,
.tool-card-gated:hover .tool-card-line {
  opacity: 1;
}

.tool-card-lock {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-size: 0.95rem;
  opacity: 0.55;
}

.tool-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.575rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(170, 255, 0, 0.25);
  background: rgba(170, 255, 0, 0.06);
  border-radius: 999px;
  white-space: nowrap;
}

/* ============================================================
   Reframer Preview Modal
   ============================================================ */
.reframer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.reframer-modal[hidden] { display: none; }

.reframer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 11, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
  animation: fadeIn 0.25s ease both;
}

.reframer-modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 2.5rem 2.25rem 2.25rem;
  background: var(--background-alt);
  border: 1px solid rgba(170, 255, 0, 0.2);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 30px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(170, 255, 0, 0.06);
  animation: fadeIn 0.32s cubic-bezier(0.22,1,0.36,1) both;
}

.reframer-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.95rem;
  background: transparent;
  border: none;
  color: var(--warm-gray);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.reframer-modal-close:hover { color: var(--off-white); }

.reframer-modal-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(170, 255, 0, 0.25);
  background: rgba(170, 255, 0, 0.06);
  border-radius: 3px;
  margin-bottom: 1rem;
}

.reframer-modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--off-white);
  margin: 0 0 0.85rem;
}

.reframer-modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--warm-gray);
  margin-bottom: 1.75rem;
}

.reframer-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.reframer-modal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--background);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.22s, background 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 14px rgba(170,255,0,0.18), inset 0 1px 0 rgba(255,255,255,0.2);
}

.reframer-modal-btn-primary:hover {
  background: #bfff26;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(170,255,0,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}

.reframer-modal-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.22s, background 0.22s;
}

.reframer-modal-btn-secondary:hover {
  border-color: rgba(170, 255, 0, 0.4);
  background: rgba(170, 255, 0, 0.04);
}

@media (max-width: 640px) {
  .reframer-modal-card { padding: 2rem 1.5rem 1.75rem; }
  .reframer-modal-title { font-size: 1.35rem; }
}

/* ============================================================
   Workshop Section — homepage upgrade pitch
   ============================================================ */
.workshop-section {
  padding: 5rem 0 4rem;
  background: var(--background);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workshop-section-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.workshop-section-photo img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.workshop-section-copy .label-tag {
  display: inline-block;
  margin-bottom: 1rem;
}

.workshop-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--off-white);
  margin: 0 0 0.6rem;
}

.workshop-section-byline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--warm-gray);
  margin: 0 0 2rem;
}

.workshop-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workshop-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.workshop-stat-value {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.workshop-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  line-height: 1.3;
}

.workshop-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--background);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 1.7rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.22s, background 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 14px rgba(170,255,0,0.18), inset 0 1px 0 rgba(255,255,255,0.2);
}

.workshop-section-btn:hover {
  background: #bfff26;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(170,255,0,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}

@media (max-width: 860px) {
  .workshop-section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .workshop-section-photo {
    max-width: 280px;
    margin: 0 auto;
  }
  .workshop-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}

/* ============================================================
   Inline Post-Results Upsell — workshop-cta aside
   ============================================================ */
.workshop-cta {
  display: block;
  max-width: 640px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 1.85rem;
  background: rgba(170, 255, 0, 0.025);
  border: 1px solid rgba(170, 255, 0, 0.2);
  border-radius: 16px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.workshop-cta-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.workshop-cta-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--off-white);
  margin: 0 0 0.6rem;
}

.workshop-cta-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-gray);
  margin: 0 0 1.4rem;
}

.workshop-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--background);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.22s, background 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 14px rgba(170,255,0,0.18), inset 0 1px 0 rgba(255,255,255,0.2);
}

.workshop-cta-btn:hover {
  background: #bfff26;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(170,255,0,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}

@media (max-width: 640px) {
  .workshop-cta { padding: 1.6rem 1.4rem 1.5rem; }
  .workshop-cta-title { font-size: 1.2rem; }
}

/* ─── ROSTER CARD — clickable button reset (preserves per-card colors) ─── */
.roster-card[data-framework] {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  appearance: none;
  /* Note: padding/background/border come from .roster-card and per-card classes */
}
.roster-card[data-framework]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Per-card CTA chip — color matches the card's accent */
.roster-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 8px;
  border: 1.5px solid;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.roster-card-cta span { transition: transform 0.3s ease; display: inline-block; }
.roster-card[data-framework]:hover .roster-card-cta span { transform: translateX(3px); }

/* Per-card CTA palette */
.roster-mason   .roster-card-cta { color: #DEFF7A; background: rgba(170, 255, 0, 0.12); border-color: rgba(170, 255, 0, 0.45); }
.roster-mason[data-framework]:hover   .roster-card-cta { background: rgba(170, 255, 0, 0.2);  border-color: rgba(170, 255, 0, 0.7);  box-shadow: 0 0 22px rgba(170, 255, 0, 0.25); }
.roster-wilde   .roster-card-cta { color: #C4B5FD; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.5); }
.roster-wilde[data-framework]:hover   .roster-card-cta { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.75); box-shadow: 0 0 22px rgba(139, 92, 246, 0.28); }
.roster-gordon  .roster-card-cta { color: #FDE68A; background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.5); }
.roster-gordon[data-framework]:hover  .roster-card-cta { background: rgba(245, 158, 11, 0.2);  border-color: rgba(245, 158, 11, 0.75); box-shadow: 0 0 22px rgba(245, 158, 11, 0.28); }
.roster-miner   .roster-card-cta { color: #5EEAD4; background: rgba(20, 184, 166, 0.13); border-color: rgba(20, 184, 166, 0.5); }
.roster-miner[data-framework]:hover   .roster-card-cta { background: rgba(20, 184, 166, 0.2);  border-color: rgba(20, 184, 166, 0.75); box-shadow: 0 0 22px rgba(20, 184, 166, 0.28); }
.roster-robbins .roster-card-cta { color: #FDBA74; background: rgba(249, 115, 22, 0.13); border-color: rgba(249, 115, 22, 0.5); }
.roster-robbins[data-framework]:hover .roster-card-cta { background: rgba(249, 115, 22, 0.2);  border-color: rgba(249, 115, 22, 0.75); box-shadow: 0 0 22px rgba(249, 115, 22, 0.28); }
.roster-voss    .roster-card-cta { color: #93C5FD; background: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.5); }
.roster-voss[data-framework]:hover    .roster-card-cta { background: rgba(59, 130, 246, 0.22); border-color: rgba(59, 130, 246, 0.75); box-shadow: 0 0 22px rgba(59, 130, 246, 0.28); }

/* ═══════════════════════════════════════════════════════
   FRAMEWORK DEEP-DIVE MODAL
   ═══════════════════════════════════════════════════════ */
.framework-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.framework-modal[hidden] { display: none; }
.framework-modal-open { opacity: 1; pointer-events: auto; }

.framework-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.framework-modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 4rem);
  border-radius: 24px;
  background: rgba(15, 15, 20, 0.92);
  border: 1px solid rgba(170, 255, 0, 0.22);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(170, 255, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.framework-modal-open .framework-modal-card {
  transform: scale(1) translateY(0);
}

.framework-modal-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(170, 255, 0, 0.18) 0%, rgba(123, 47, 247, 0.1) 50%, transparent 75%);
  filter: blur(110px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.framework-modal-close {
  position: absolute;
  top: 1.1rem; right: 1.25rem;
  z-index: 10;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--off-white);
  font-size: 1.4rem; font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 0;
  padding-bottom: 2px;
}
.framework-modal-close:hover {
  background: rgba(170, 255, 0, 0.1);
  border-color: rgba(170, 255, 0, 0.3);
  color: var(--accent);
}

.framework-modal-scroll {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  padding: 3rem 2.75rem 2.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(170,255,0,0.4) transparent;
}
.framework-modal-scroll::-webkit-scrollbar { width: 4px; }
.framework-modal-scroll::-webkit-scrollbar-thumb { background: rgba(170,255,0,0.4); border-radius: 4px; }

/* HERO */
.fwm-hero {
  position: relative;
  text-align: center;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fwm-tier {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.fwm-tier-primary {
  color: var(--fwm-accent, var(--accent));
  background: rgba(170, 255, 0, 0.08);
  border: 1px solid color-mix(in srgb, var(--fwm-accent, #AAFF00) 40%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--fwm-accent, #AAFF00) 25%, transparent);
}
.fwm-tier-supporting {
  color: var(--warm-gray);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fwm-name {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--off-white);
  background: linear-gradient(135deg, var(--fwm-accent, #AAFF00) 0%, var(--fwm-accent-2, #00E5B3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fwm-method {
  margin: 0.6rem 0 1.1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--off-white);
}
.fwm-tagline {
  margin: 0 auto;
  max-width: 540px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--warm-gray);
}

/* SECTIONS */
.fwm-section { margin-bottom: 2.5rem; }
.fwm-section-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fwm-accent, var(--accent));
  margin-bottom: 1.1rem;
}
.fwm-core {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--off-white);
  letter-spacing: -0.005em;
}

/* PILLARS */
.fwm-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.fwm-pillar {
  position: relative;
  padding: 1.4rem 1.3rem 1.35rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  transition: all 0.3s ease;
}
.fwm-pillar:hover {
  border-color: color-mix(in srgb, var(--fwm-accent, #AAFF00) 35%, transparent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.fwm-pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fwm-accent, var(--accent));
}
.fwm-pillar-title {
  margin: 0.45rem 0 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--off-white);
}
.fwm-pillar-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--warm-gray);
}

/* MECHANICS */
.fwm-mechanics {
  display: flex; flex-direction: column;
  gap: 0.9rem;
}
.fwm-mechanic {
  padding: 1.2rem 1.3rem 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid color-mix(in srgb, var(--fwm-accent, #AAFF00) 50%, transparent);
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}
.fwm-mechanic:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--fwm-accent, var(--accent));
  padding-left: 1.65rem;
}
.fwm-mechanic-title {
  margin: 0 0 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--off-white);
}
.fwm-mechanic-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--warm-gray);
}

/* SIGNATURE */
.fwm-signature {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--fwm-accent, #AAFF00) 6%, transparent) 0%,
    color-mix(in srgb, var(--fwm-accent-2, #00E5B3) 4%, transparent) 100%);
  border-left: 3px solid var(--fwm-accent, var(--accent));
  border-radius: 0 14px 14px 0;
  font-family: 'DM Serif Display', 'Inter', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--off-white);
  position: relative;
}
.fwm-signature::before {
  content: '"';
  position: absolute;
  top: -10px; left: 12px;
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: var(--fwm-accent, var(--accent));
  opacity: 0.25;
  line-height: 1;
}

/* CTA CARD */
.fwm-cta-card {
  position: relative;
  padding: 2rem 2rem 1.85rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%,
      color-mix(in srgb, var(--fwm-accent, #AAFF00) 12%, transparent) 0%,
      transparent 65%),
    rgba(8, 8, 11, 0.5);
  border: 1.5px solid color-mix(in srgb, var(--fwm-accent, #AAFF00) 45%, transparent);
  display: flex; flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  align-items: center;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 60px color-mix(in srgb, var(--fwm-accent, #AAFF00) 12%, transparent);
}
.fwm-cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fwm-accent, var(--accent)), transparent);
}
.fwm-cta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fwm-accent, var(--accent));
}
.fwm-cta-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--off-white);
  max-width: 560px;
}
.fwm-cta-body {
  margin: 0 0 0.5rem;
  max-width: 580px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-gray);
}
.fwm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.85rem;
  background: var(--accent);
  color: var(--background);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border-radius: 14px;
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 14px 36px rgba(170, 255, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.fwm-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.fwm-cta-btn:hover {
  background: #c8ff40;
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px rgba(170, 255, 0, 0.5),
    0 0 64px rgba(170, 255, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.fwm-cta-btn:hover::before { transform: translateX(100%); }
.fwm-cta-arrow {
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.32s ease;
}
.fwm-cta-btn:hover .fwm-cta-arrow {
  transform: translateX(5px);
}
.fwm-cta-finep {
  margin-top: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

@media (max-width: 640px) {
  .framework-modal { padding: 0.75rem; }
  .framework-modal-card { max-height: calc(100vh - 1.5rem); border-radius: 18px; }
  .framework-modal-scroll { padding: 2.25rem 1.4rem 2rem; }
  .fwm-section { margin-bottom: 2rem; }
  .fwm-pillar-grid { grid-template-columns: 1fr; }
  .fwm-cta-card { padding: 1.5rem 1.25rem; }
  .fwm-cta-btn { width: 100%; justify-content: center; }
}

/* --- Site Footer --- */
.site-footer {
  margin-top: 6rem;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--off-white);
}
.site-footer-brand span { color: var(--accent); }

.site-footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer-link:hover { color: var(--accent); }

/* --- Legal Page (Privacy / Terms) --- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.legal-page .label-tag { margin-bottom: 1rem; }

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.75rem;
}

.legal-page .legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
  color: var(--off-white);
}

.legal-page h3 {
  font-size: 0.95rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--accent);
  text-transform: none;
  letter-spacing: -0.01em;
}

.legal-page p,
.legal-page li {
  color: var(--warm-gray);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

.legal-page p { margin-bottom: 1rem; }

.legal-page ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.legal-page ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(170, 255, 0, 0.3);
  transition: border-color 0.2s ease;
}
.legal-page a:hover { border-bottom-color: var(--accent); }

.legal-page strong {
  color: var(--off-white);
  font-weight: 600;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--accent); }

/* --- Legal Page: TL;DR Callout --- */
.legal-tldr {
  position: relative;
  margin: 0 0 3.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: rgba(170, 255, 0, 0.04);
  border: 1px solid rgba(170, 255, 0, 0.18);
  border-radius: 14px;
}

.legal-tldr-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.legal-tldr-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--off-white);
  margin: 0 0 0.85rem;
}

.legal-tldr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-tldr ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  color: var(--off-white);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

.legal-tldr ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-tldr ul li.is-warn::before {
  content: '\26A0';
  font-size: 0.85rem;
  top: 0.05em;
}

.legal-tldr-note {
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* --- Data Subject Request Form --- */
.dsr-form {
  margin: 1.5rem 0 2rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dsr-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dsr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.dsr-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dsr-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.dsr-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dsr-radio-label {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-gray);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.dsr-radio:hover .dsr-radio-label {
  color: var(--off-white);
  border-color: rgba(170, 255, 0, 0.3);
}

.dsr-radio input[type="radio"]:checked + .dsr-radio-label {
  background: rgba(170, 255, 0, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.dsr-radio input[type="radio"]:focus-visible + .dsr-radio-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dsr-input,
.dsr-textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.dsr-input:focus,
.dsr-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.dsr-textarea {
  min-height: 110px;
  resize: vertical;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.dsr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.dsr-submit {
  background: var(--accent);
  color: var(--background);
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dsr-submit:hover {
  background: #c8ff40;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(170, 255, 0, 0.25);
}

.dsr-fallback {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
}

.dsr-fallback a {
  color: var(--warm-gray);
  border-bottom-color: rgba(122, 122, 140, 0.4);
}

.dsr-fallback a:hover { color: var(--accent); }
