@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* Brand Tokens - Renewed Future color system */
  --rf-blue: #123BFF;
  --rf-purple: #6E2BFF;
  --rf-orange: #FF7A00;
  --rf-ink: #10152B;
  --rf-surface: #FFFFFF;
  --rf-cyan: #49D7FF;

  /* Brand gradients */
  --rf-gradient: linear-gradient(135deg, var(--rf-blue) 0%, var(--rf-purple) 50%, var(--rf-orange) 100%);
  --rf-gradient-cta: linear-gradient(90deg, var(--rf-blue) 0%, var(--rf-purple) 48%, var(--rf-orange) 100%);

  /* Page Surfaces (Clean Light Interface) */
  --bg-page: #F4F6FF;
  --bg-surface: #FFFFFF;
  --bg-tinted: #EEF0FF;
  --bg-warm: #FFF4EC;
  
  /* Typography Colors */
  --text-primary: #0D1124;
  --text-body: #2A2F4A;
  --text-muted: #5B6385;
  --text-soft: #8891B0;

  /* UI Borders & Accents */
  --border: #DDE2F0;
  --border-strong: #B8C0DC;
  --success: #16A36A;
  --success-soft: #E5F9F1;
  --accent-red: #ef4444;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Shadows & Radius */
  --shadow-card: 0 8px 32px rgba(59, 79, 255, 0.08);
  --shadow-hover: 0 16px 48px rgba(59, 79, 255, 0.16);
  --shadow-cta: 0 10px 36px rgba(123, 53, 255, 0.28);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(18, 59, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 122, 0, 0.03) 0%, transparent 40%);
}

/* Base Wrapper for View States */
.app-container {
  width: 100%;
  max-width: 680px;
  padding: 24px 16px;
  margin: 0 auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Top Branding / Header */
.quiz-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quiz-header img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.quiz-header span {
  background: var(--rf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo link in header */
.quiz-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.quiz-header__logo-link:hover {
  opacity: 0.75;
}

/* Premium Card Style (Clean White surface) */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  width: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--rf-gradient);
}

.text-center {
  text-align: center;
}

/* Typography Hierarchy */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--rf-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  background: var(--rf-gradient-cta);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-cta);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(123, 53, 255, 0.38);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--bg-tinted);
  border: none;
  color: var(--rf-blue);
  box-shadow: none;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: rgba(18, 59, 255, 0.08);
  box-shadow: none;
  color: var(--rf-blue);
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
  width: 100%;
  text-align: left;
}

.input-field {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-field:focus {
  border-color: var(--rf-purple);
  box-shadow: 0 0 0 3px rgba(110, 43, 255, 0.15);
}

/* Verification list / bullet marks */
.features-list {
  list-style: none;
  margin-bottom: 30px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-body);
  font-size: 1.025rem;
  font-weight: 500;
}

.features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  font-size: 1.05rem;
  background: var(--success-soft);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Trust footer note */
.trust-badge {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}

.trust-badge svg {
  color: var(--rf-orange);
  flex-shrink: 0;
}

/* Quiz Option Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.option-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 1.025rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  outline: none;
}

.option-card:hover {
  border-color: var(--rf-blue);
  background: var(--bg-tinted);
}

.option-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(18, 59, 255, 0.15);
  border-color: var(--rf-blue);
}

.option-card.selected {
  border-color: var(--rf-blue);
  background: var(--bg-tinted);
  box-shadow: 0 0 0 2px var(--rf-blue);
  font-weight: 600;
}

.option-card.selected::after {
  content: '✓';
  color: var(--rf-blue);
  font-weight: bold;
}

.option-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Front-loaded Progress Bar */
.progress-container {
  width: 100%;
  margin-top: 12px;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--rf-gradient);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Mascot SVG Support Rail Component (Vanilla CSS port of MascotReaction) */
.mascotReaction {
  --nova-size: 110px;
  --nova-blue: #123BFF;
  --nova-purple: #6E2BFF;
  --nova-orange: #FF7A00;
  --nova-ink: #10152B;
  --nova-surface: #FFFFFF;
  --nova-border: #DDE2F0;

  display: grid;
  grid-template-columns: minmax(110px, 0.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  min-height: 112px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mascotReaction.pattern-active {
  border: 1.5px solid var(--rf-blue);
  background: var(--bg-tinted);
  box-shadow: 0 0 16px rgba(18, 59, 255, 0.08);
}

.mascotReaction__figure {
  width: var(--nova-size);
  max-width: 100%;
  justify-self: center;
}

.novaMascot {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.novaBody,
.novaHead,
.novaWing,
.novaArm,
.novaSparkles,
.novaThoughtDot,
.novaBlinkEye {
  transform-box: fill-box;
  transform-origin: center;
}

.novaFace,
.novaSparkles,
.novaThoughtDot {
  opacity: 0;
  transition: opacity 140ms ease, transform 180ms ease;
}

.mascotReaction--neutral .novaFace--neutral,
.mascotReaction--happy .novaFace--happy,
.mascotReaction--thinking .novaFace--thinking,
.mascotReaction--confused .novaFace--confused,
.mascotReaction--celebrate .novaFace--celebrate {
  opacity: 1;
}

.mascotReaction--neutral .novaBlinkEye {
  animation: novaBlink 4.8s infinite;
}

.mascotReaction--happy .novaBody {
  animation: novaBounce 420ms ease-out 1;
}

.mascotReaction--thinking .novaBody {
  transform: rotate(-3deg);
}

.mascotReaction--thinking .novaThoughtDot {
  opacity: 1;
  animation: novaThought 900ms ease-in-out infinite alternate;
}

.mascotReaction--confused .novaBody {
  animation: novaMicroShake 260ms ease-in-out 1;
}

.mascotReaction--celebrate .novaBody {
  animation: novaPop 420ms ease-out 1;
}

.mascotReaction--celebrate .novaSparkles {
  opacity: 1;
  animation: novaSparklePop 700ms ease-out 1;
}

.mascotReaction__bubble {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.mascotReaction__bubble span.title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.mascotReaction__bubble span.title.pattern {
  color: var(--rf-blue);
}

.mascotReaction__bubble span.title.opportunity {
  color: var(--rf-orange);
}

/* Animations */
@keyframes novaBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}

@keyframes novaBounce {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes novaThought {
  0% { transform: translateY(0); opacity: 0.62; }
  100% { transform: translateY(-3px); opacity: 1; }
}

@keyframes novaMicroShake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  65% { transform: translateX(3px); }
}

@keyframes novaPop {
  0% { transform: scale(0.98); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes novaSparklePop {
  0% { transform: scale(0.8); opacity: 0; }
  45% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Analyzing / Loading View */
.analyzing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.score-loader-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-analyzing {
  width: 72px;
  height: 72px;
  border: 4px solid var(--bg-page);
  border-top: 4px solid var(--rf-blue);
  border-right: 4px solid var(--rf-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.checklist-group {
  text-align: left;
  width: 100%;
  max-width: 380px;
  margin: 24px auto;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.checklist-item.active {
  opacity: 1;
  color: var(--text-primary);
  font-weight: 600;
}

.checklist-item.completed {
  opacity: 0.9;
  color: var(--success);
  font-weight: 500;
}

.checklist-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.25s;
}

.checklist-item.active .dot {
  background: var(--rf-blue);
  box-shadow: 0 0 8px var(--rf-blue);
  transform: scale(1.25);
}

.checklist-item.completed .dot {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* Two-column Intro Page Layout */
.intro-grid-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 768px) {
  .intro-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.intro-left-col {
  display: flex;
  flex-direction: column;
}

.intro-right-col {
  display: flex;
  justify-content: center;
}

/* ResultsPreviewCard (Locked results preview) */
.results-preview-card {
  width: 100%;
  max-width: 310px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-card-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-align: center;
}

.preview-ring-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.preview-ring-svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.preview-ring-svg circle {
  fill: none;
  stroke-width: 6;
}

.preview-ring-svg .ring-bg {
  stroke: var(--bg-page);
}

.preview-ring-svg .ring-fill {
  stroke: url(#score-gradient-preview);
  /* Fallback color if SVG gradient isn't in scope */
  stroke: var(--rf-blue);
  stroke-linecap: round;
}

.preview-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary);
}

.preview-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  filter: blur(5px);
  user-select: none;
  margin-bottom: 12px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.preview-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
}

.preview-row-bar {
  width: 50%;
  height: 8px;
  background: var(--border-strong);
  border-radius: 4px;
}

.preview-frosted-overlay {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 70%, rgba(255, 255, 255, 0.5) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.preview-lock-circle {
  width: 42px;
  height: 42px;
  background: var(--bg-tinted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-blue);
  margin-bottom: 8px;
}

.preview-unlock-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.btn-preview-start {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: none;
  width: auto;
}

/* Score Reveal / Lead Capture Bridge */
body[data-view="lead"] {
  background-color: #F4F5FF;
  background-image:
    radial-gradient(circle at 8% 22%, rgba(18, 59, 255, 0.055) 0 1.5px, transparent 1.7px),
    radial-gradient(circle at 94% 56%, rgba(73, 215, 255, 0.07) 0 1.4px, transparent 1.6px),
    linear-gradient(180deg, #F8F9FF 0%, #F1F3FF 100%);
  background-size: 12px 12px, 13px 13px, auto;
}

body[data-view="lead"] .app-container {
  max-width: 1000px;
  justify-content: flex-start;
  padding-top: 14px;
}

body[data-view="lead"] .quiz-header {
  width: min(100% - 32px, 960px);
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(150px, 220px);
  margin: 18px auto 16px;
  gap: 16px;
}

body[data-view="lead"] .quiz-header__logo-link {
  justify-self: start;
}

body[data-view="lead"] .quiz-header img {
  height: 32px;
  max-width: 220px;
}

body[data-view="lead"] .quiz-header > div {
  justify-self: center;
  align-self: center;
  white-space: nowrap;
}

.lead-bridge {
  padding: 36px 44px 26px;
  border-radius: 22px;
  box-shadow: 0 18px 70px rgba(38, 52, 130, 0.12);
  overflow: hidden;
}

.lead-bridge::before {
  height: 5px;
}

.lead-bridge::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto auto;
  width: 42%;
  height: 220px;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(255, 122, 0, 0.08), transparent 58%);
}

.lead-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 20px;
}

.lead-score-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lead-completion-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--success-soft);
  color: var(--success);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.lead-score-ring {
  position: relative;
  width: 202px;
  height: 202px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
}

.lead-score-ring::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -90deg, rgba(136, 147, 190, 0.24) 0deg 1.1deg, transparent 1.1deg 7deg);
  mask: radial-gradient(circle, transparent 0 67%, #000 68% 72%, transparent 73%);
  -webkit-mask: radial-gradient(circle, transparent 0 67%, #000 68% 72%, transparent 73%);
}

.lead-score-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(209, 215, 239, 0.72);
  box-shadow: inset 0 0 0 16px rgba(246, 247, 255, 0.82);
}

.lead-score-ring__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform: rotate(-90deg);
}

.lead-score-ring__track {
  fill: none;
  stroke: #F0F1FF;
  stroke-width: 8.5;
}

.lead-score-ring__arc {
  fill: none;
  stroke: url(#lead-score-grad);
  stroke-width: 8.5;
  stroke-linecap: round;
  stroke-dasharray: 251.327;
  stroke-dashoffset: 251.327;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.lead-score-ring__content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 2px;
}

.lead-score-ring__number {
  display: block;
  min-width: 2ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.75rem;
  line-height: 0.92;
  background: linear-gradient(135deg, var(--rf-blue) 8%, var(--rf-purple) 52%, var(--rf-orange) 104%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-score-ring__total {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-body);
}

.lead-score-label {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--text-primary);
}

.lead-copy-panel {
  text-align: left;
}

.lead-copy-panel h1 {
  max-width: 430px;
  margin: 0 0 10px;
  font-size: clamp(2.05rem, 3.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead-interpretation {
  max-width: 500px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.48;
}

.lead-insight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 510px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 255, 0.95));
  box-shadow: 0 12px 26px rgba(41, 54, 126, 0.06);
}

.lead-insight-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--rf-purple);
}

.lead-insight-icon svg {
  width: 24px;
  height: 24px;
}

.lead-insight-card p {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.44;
}

.lead-section-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 10px 26px 10px;
  color: var(--rf-purple);
}

.lead-section-divider span {
  height: 1px;
  background: var(--border);
}

.lead-section-divider strong {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  white-space: nowrap;
}

.lead-preview-intro {
  margin: 0 0 14px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.locked-preview-container {
  margin: 0 0 22px;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.locked-card {
  min-height: 132px;
  padding: 16px 14px 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.locked-card--btn {
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.locked-card--btn:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 59, 255, 0.38);
  background: #FFFFFF;
  box-shadow: 0 18px 36px rgba(43, 54, 124, 0.1);
}

.locked-card--btn:focus-visible {
  outline: 2px solid var(--rf-blue);
  outline-offset: 3px;
}

.locked-card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.locked-card-icon svg {
  width: 26px;
  height: 26px;
}

.locked-card-icon--purple {
  color: var(--rf-purple);
  background: rgba(110, 43, 255, 0.12);
}

.locked-card-icon--blue {
  color: var(--rf-blue);
  background: rgba(18, 59, 255, 0.1);
}

.locked-card-icon--orange {
  color: var(--rf-orange);
  background: rgba(255, 122, 0, 0.12);
}

.locked-card-copy {
  display: grid;
  gap: 4px;
}

.locked-card-copy strong {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.18;
}

.locked-card-copy span {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.locked-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(246, 247, 255, 0.9);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.locked-card-footer svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.lead-unlock-form {
  position: relative;
  display: grid;
  justify-items: center;
  width: calc(100% + 88px);
  max-width: none;
  padding: 48px 44px 24px;
  margin: 12px -44px 22px;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(18, 59, 255, 0.06) 0%, rgba(110, 43, 255, 0.08) 50%, rgba(255, 122, 0, 0.05) 100%),
    linear-gradient(180deg, #F4F6FF 0%, #ECEEFF 50%, #F8F9FF 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(18, 59, 255, 0.06),
    0 0 0 1px rgba(18, 59, 255, 0.04);
  overflow: hidden;
}

/* Decorative top edge accent */
.lead-unlock-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rf-blue), var(--rf-purple), var(--rf-orange));
  opacity: 0.7;
}

.lead-form-icon {
  position: absolute;
  top: -19px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: linear-gradient(135deg, #7B5CFF 0%, var(--rf-purple) 100%);
  box-shadow: 0 14px 32px rgba(110, 43, 255, 0.32);
}

.lead-form-icon svg {
  width: 26px;
  height: 26px;
}

.lead-unlock-form h2 {
  margin: 0 0 6px;
  font-size: 1.38rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-unlock-form > p {
  max-width: 480px;
  margin: 0 0 6px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.48;
}


/* Let the Beehiiv form stretch edge-to-edge within the gradient section */
#beehiiv-form-container {
  margin-left: -44px;
  margin-right: -44px;
}

.lead-input-group {
  width: 100%;
  margin-bottom: 10px;
}

.lead-input-shell {
  position: relative;
  display: grid;
  align-items: center;
}

.lead-input-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  color: var(--text-soft);
  pointer-events: none;
}

.lead-input-shell .input-field {
  height: 46px;
  padding: 0 54px 0 52px;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
}

.lead-input-status {
  position: absolute;
  right: 16px;
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #AEB6C8;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  pointer-events: none;
}

#form-error-msg {
  display: block;
  margin-top: 8px;
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.lead-submit-btn {
  min-height: 56px;
  gap: 16px;
  border-radius: 10px;
  font-size: 1.08rem;
  box-shadow: 0 18px 34px rgba(110, 43, 255, 0.22);
}

.lead-form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 8px 18px;
  color: #4a5578;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(18, 59, 255, 0.06);
}

.lead-form-trust svg {
  width: 18px;
  height: 18px;
  color: var(--rf-purple);
}

.teaser-expansion-box {
  margin: -6px 4px 22px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  background: var(--bg-warm);
  text-align: left;
  animation: slideDown 0.4s ease-out;
}

.teaser-expansion-box h3 {
  color: var(--rf-orange);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.teaser-expansion-box p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lead-bottom-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.lead-trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  text-align: left;
}

.lead-trust-item span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rf-purple);
  background: rgba(110, 43, 255, 0.1);
}

.lead-trust-item svg {
  width: 21px;
  height: 21px;
}

.lead-trust-item strong {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.2;
}

.lead-trust-item small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.lead-reads-teaser {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
}

.score-visual-bar {
  font-size: 1.15rem;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
  color: var(--text-primary);
}

@keyframes attentionPulse {
  0%   { box-shadow: 0 0 0 0 rgba(18,59,255,0.4); border-color: var(--rf-blue); }
  50%  { box-shadow: 0 0 0 8px rgba(18,59,255,0.0); border-color: var(--rf-purple); }
  100% { box-shadow: 0 0 0 0 rgba(18,59,255,0); border-color: var(--rf-blue); }
}

.input-field.attention-pulse {
  animation: attentionPulse 0.9s ease-out 2;
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(18, 59, 255, 0.18);
}

/* Public Nonprofit Website Pages */
.site-shell {
  display: block;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 16%, rgba(18, 59, 255, 0.06), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(255, 122, 0, 0.06), transparent 26%),
    linear-gradient(180deg, #F8F9FF 0%, #F3F5FF 100%);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1001;
  padding: 10px 14px;
  color: #FFFFFF;
  background: var(--rf-blue);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(248, 249, 255, 0.92);
  border-bottom: 1px solid rgba(221, 226, 240, 0.9);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-logo img {
  width: 190px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:not(.site-cta) {
  padding: 8px 4px;
}

.site-nav a:hover {
  color: var(--rf-blue);
}

.site-nav a[aria-current="page"] {
  color: var(--rf-blue);
}

.site-cta,
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #FFFFFF;
  background: var(--rf-gradient-cta);
  box-shadow: 0 12px 28px rgba(110, 43, 255, 0.22);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.site-button--secondary {
  color: var(--rf-blue);
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: none;
}

.site-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--text-primary);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.site-menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.site-main {
  padding: 58px 0 72px;
}

.site-hero {
  position: relative;
  overflow: hidden;
  padding: 62px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 22px 70px rgba(38, 52, 130, 0.12);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--rf-gradient);
}

.site-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.site-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--rf-purple);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-hero h1,
.site-page-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.site-hero p,
.site-lede {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.08rem;
  font-weight: 550;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.site-trust-line {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.site-visual-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, #F5F6FF);
}

.site-score-preview {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--text-primary);
  background:
    radial-gradient(circle, #FFFFFF 0 56%, transparent 57%),
    conic-gradient(from -50deg, var(--rf-blue), var(--rf-purple), var(--rf-orange), #EEF0FF 0);
}

.site-score-preview strong {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  background: var(--rf-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-score-preview span {
  display: block;
  color: var(--text-body);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.site-section {
  padding: 64px 0 0;
}

.site-section--band {
  margin-top: 64px;
  padding: 46px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.site-section h2 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.site-section p {
  max-width: 820px;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.site-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(38, 52, 130, 0.06);
}

.site-card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0;
  text-transform: none;
}

.site-card p,
.site-card li {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.site-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.site-card__tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--rf-purple);
  background: rgba(110, 43, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 850;
}

.site-detail-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.site-detail-list p {
  margin: 0;
}

.site-legal {
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
}

.site-legal h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.site-legal h2 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.site-legal p,
.site-legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.site-legal ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.site-contact-list a,
.site-legal a,
.site-footer a,
.lead-disclosure a {
  color: var(--rf-blue);
  font-weight: 750;
}

.site-contact-list {
  display: grid;
  gap: 14px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-hero__copy {
  max-width: 760px;
  padding-top: 10px;
}

.contact-newsletter-card {
  justify-self: end;
  width: 100%;
  max-width: 360px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 16px 46px rgba(38, 52, 130, 0.08);
}

.contact-newsletter-card h2 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1.2;
}

.contact-newsletter-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.contact-newsletter-card form {
  display: grid;
  gap: 12px;
}

.contact-newsletter-card__input-wrap {
  position: relative;
}

.contact-newsletter-card__input-wrap .input-field {
  padding: 13px 52px 13px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.contact-newsletter-card__input-wrap span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #FFFFFF;
  background: #B8C0CE;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.contact-newsletter-card .site-button {
  width: 100%;
  min-height: 44px;
  border-color: var(--rf-blue) !important;
  font-size: 0.98rem;
}

.contact-newsletter-card small {
  display: block;
  margin-top: 12px;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.contact-newsletter-card__success {
  margin: 0;
  color: var(--success);
  font-size: 0.98rem;
  font-weight: 750;
}

.site-footer {
  width: 100%;
  padding: 42px 0;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: 36px;
}

.site-footer__brand img {
  width: 190px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  align-content: start;
}

.site-footer__links a {
  color: var(--text-body);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--rf-blue);
}

.lead-disclosure {
  max-width: 660px;
  margin: 10px auto 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(18, 59, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 18px 42px rgba(38, 52, 130, 0.14);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a:not(.site-cta),
  .site-nav .site-cta {
    justify-content: flex-start;
    width: 100%;
    padding: 12px;
  }

  .site-hero,
  .site-legal,
  .site-section--band {
    padding: 34px 22px;
  }

  .site-hero__grid,
  .contact-hero,
  .site-grid,
  .site-grid--two,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .contact-hero__copy {
    padding-top: 0;
  }

  .contact-newsletter-card {
    justify-self: stretch;
    max-width: none;
  }

  .site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-logo img,
  .site-footer__brand img {
    width: 162px;
  }

  .site-main {
    padding: 34px 0 52px;
  }

  .site-hero h1,
  .site-page-title {
    font-size: 2.25rem;
  }

  .site-actions {
    display: grid;
  }

  .site-button,
  .site-cta {
    width: 100%;
  }

  .site-grid {
    gap: 14px;
  }

  .site-card {
    padding: 20px;
  }
}

@media (max-width: 860px) {
  body[data-view="lead"] .quiz-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    text-align: center;
    margin: 14px auto 12px;
  }

  body[data-view="lead"] .quiz-header__logo-link,
  body[data-view="lead"] .quiz-header > div {
    justify-self: center;
  }

  .lead-bridge {
    padding: 30px 22px 24px;
  }

  .lead-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 16px;
  }

  .lead-copy-panel {
    text-align: center;
  }

  .lead-copy-panel h1,
  .lead-interpretation,
  .lead-insight-card {
    margin-left: auto;
    margin-right: auto;
  }

  .locked-grid,
  .lead-bottom-trust {
    grid-template-columns: 1fr;
  }

  .lead-unlock-form {
    max-width: none;
    width: calc(100% + 48px);
    padding: 36px 24px 16px;
    margin: 12px -24px 20px;
  }

  #beehiiv-form-container {
    margin-left: -24px;
    margin-right: -24px;
  }

  .locked-card--btn {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .locked-card-footer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body[data-view="lead"] .app-container {
    padding: 10px 12px 16px;
  }

  body[data-view="lead"] .quiz-header img {
    height: 26px;
  }

  body[data-view="lead"] .quiz-header > div {
    white-space: normal;
    font-size: 0.78rem;
  }

  .lead-bridge {
    border-radius: 18px;
    padding: 20px 14px 22px;
  }

  .lead-score-ring {
    width: 146px;
    height: 146px;
  }

  .lead-score-ring::before {
    inset: 18px;
  }

  .lead-score-ring::after {
    inset: 16px;
  }

  .lead-score-ring__number {
    font-size: 2.78rem;
  }

  .lead-copy-panel h1 {
    font-size: 1.62rem;
    line-height: 1.08;
  }

  .lead-completion-pill {
    margin-bottom: 10px;
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .lead-score-label {
    margin-top: 8px;
    font-size: 0.92rem;
  }

  .lead-interpretation {
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .lead-insight-card {
    padding: 11px 12px;
    gap: 10px;
    margin-top: 0;
  }

  .lead-insight-card p {
    font-size: 0.82rem;
  }

  .lead-unlock-form h2 {
    font-size: 1.1rem;
  }

  .lead-unlock-form > p {
    font-size: 0.76rem;
    margin-bottom: 4px;
  }

  .lead-unlock-form {
    width: calc(100% + 24px);
    padding: 28px 12px 12px;
    margin-left: -12px;
    margin-right: -12px;
  }

  #beehiiv-form-container {
    margin-left: -12px;
    margin-right: -12px;
  }



  .lead-input-group {
    margin-bottom: 8px;
  }

  .lead-section-divider {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .lead-section-divider span {
    display: none;
  }

  .locked-card {
    min-height: 0;
  }

  .lead-submit-btn {
    min-height: 52px;
  }

  .lead-form-trust {
    margin-top: 6px;
  }
}

/* Recommendations Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 36, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--rf-gradient);
}

.popup-title {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.25;
}

.popup-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
}

.rec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  background: var(--bg-page);
  transition: all 0.2s ease;
}

.rec-card:hover {
  border-color: var(--rf-blue);
  background: var(--bg-tinted);
}

.rec-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.rec-card.selected {
  border-color: var(--rf-blue);
  background: var(--bg-tinted);
}

.rec-card.selected .rec-checkbox {
  background: var(--rf-blue);
  border-color: var(--rf-blue);
}

.rec-card.selected .rec-checkbox::after {
  content: '✓';
}

.rec-info .rec-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.rec-info .rec-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Results Dashboard Layout */
.results-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.results-panel h2 {
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-panel h2 svg {
  color: var(--rf-blue);
  flex-shrink: 0;
}

.results-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.results-top-score-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-score-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-tinted);
  border: 5px solid var(--rf-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.results-score-ring span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--rf-blue);
}

.results-top h2 {
  font-size: 1.5rem;
  margin-top: 8px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.results-top p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Opportunity & Bottleneck Visual styling */
.opportunity-highlight-card {
  border-left: 4px solid var(--success);
  background: var(--success-soft);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.opportunity-highlight-card h3 {
  color: var(--success);
  margin-bottom: 4px;
}

.bottleneck-highlight-card {
  border-left: 4px solid var(--rf-orange);
  background: var(--bg-warm);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.bottleneck-highlight-card h3 {
  color: var(--rf-orange);
  margin-bottom: 4px;
}

.leak-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-warm);
  color: var(--rf-orange);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

/* Stack Map CSS Grid */
.stack-map-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 500px) {
  .stack-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stack-map-cell {
  background: var(--bg-page);
  border: 1px solid var(--border);
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stack-map-cell.active-role {
  background: rgba(18, 59, 255, 0.08);
  border-color: var(--rf-blue);
  color: var(--rf-blue);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(18, 59, 255, 0.06);
}

.stack-map-cell.active-goal {
  background: rgba(110, 43, 255, 0.08);
  border-color: var(--rf-purple);
  color: var(--rf-purple);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(110, 43, 255, 0.06);
}

.tool-recommendations {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
}

.tool-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tinted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rf-blue);
  font-weight: 700;
  font-size: 0.85rem;
}

.tool-icon.orange {
  background: var(--bg-warm);
  color: var(--rf-orange);
}

.tool-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tool-why {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prompt-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
}

.prompt-item-header {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--rf-purple);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prompt-copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.prompt-copy-btn:hover {
  background: var(--bg-tinted);
  color: var(--rf-blue);
  border-color: var(--rf-blue);
}

.prompt-text {
  font-family: monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  background: var(--bg-surface);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-body);
}

/* Utility classes */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Reduced Motion overrides */
@media (prefers-reduced-motion: reduce) {
  .spinner-analyzing {
    animation: none !important;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .glass-card {
    padding: 24px 16px;
  }
  
  h1 {
    font-size: 1.75rem;
  }

  .options-grid {
    gap: 8px;
  }

  .option-card {
    padding: 13px 14px;
    font-size: 0.95rem;
  }
  
  .mascotReaction {
    --nova-size: 74px;
    padding: 12px;
    gap: 10px;
    min-height: 80px;
  }

  .mascotReaction__bubble {
    font-size: 0.85rem;
    line-height: 1.35;
  }
}

/* --- Blog Styles --- */
.blog-layout {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}

@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 32px;
  }
  .blog-layout__toc-col {
    display: none;
  }
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .blog-layout__sidebar-col {
    order: 2;
  }
}

/* Sidebar Score Card Preview */
.blog-sidebar-card {
  position: relative;
  top: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: visible;
  margin-bottom: 0;
}
.blog-sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rf-gradient);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.blog-sidebar-card__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-align: center;
}
.blog-score-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
}
.blog-score-ring-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.blog-score-ring-svg circle {
  fill: none;
  stroke-width: 8;
}
.blog-score-ring-svg .ring-bg {
  stroke: var(--bg-page);
}
.blog-score-ring-svg .ring-fill {
  stroke: var(--rf-blue);
  stroke-linecap: round;
}
.blog-score-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-align: center;
}
.blog-score-ring-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: -2px;
}
.blog-sidebar-card__content {
  text-align: center;
  margin-bottom: 20px;
}
.blog-sidebar-card__content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.blog-sidebar-card__content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* TOC Column Styling */
.blog-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 12px;
}
.blog-toc__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.blog-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-toc__link {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.4;
}
.blog-toc__link:hover {
  color: var(--rf-blue);
}
.blog-toc__link.active {
  color: var(--rf-blue);
  font-weight: 600;
  border-left: 2px solid var(--rf-blue);
  padding-left: 8px;
}

/* Center Content Column Styling - Fixed: Transparent, non-card style for articles */
.blog-content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
@media (max-width: 640px) {
  .blog-content {
    padding: 0;
  }
}

.blog-article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

/* Breadcrumbs */
.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.blog-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.blog-breadcrumbs a:hover {
  color: var(--rf-blue);
}
.blog-breadcrumbs span {
  color: var(--text-soft);
}

/* Post Meta Info */
.blog-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.blog-category-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-warm);
  color: var(--rf-orange);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}
.blog-category-pill--blue {
  background: var(--bg-tinted);
  color: var(--rf-blue);
}
.blog-category-pill--purple {
  background: rgba(110, 43, 255, 0.08);
  color: var(--rf-purple);
}

.blog-author {
  font-weight: 600;
  color: var(--text-primary);
}

/* Article Styling */
.blog-article h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .blog-article h1 {
    font-size: 1.85rem;
  }
}
.blog-article h2 {
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  scroll-margin-top: 100px;
}
.blog-article h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 24px;
  margin-bottom: 8px;
  scroll-margin-top: 100px;
}
.blog-article p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 20px;
}
.blog-article ul, .blog-article ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.blog-article li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text-body);
}

/* Key Takeaway / Callout box */
.blog-callout {
  background: var(--bg-tinted);
  border-left: 4px solid var(--rf-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px;
  margin: 32px 0;
}
.blog-callout p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}
.blog-callout__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rf-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Step/Practical Checklist card */
.blog-step-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}
.blog-step-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.blog-step-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.blog-step-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.blog-step-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--success);
  font-weight: 700;
}

/* Share Row */
.blog-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.blog-share-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.blog-share-btn:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
  background: var(--bg-tinted);
}

/* Related articles grid */
.blog-related-section {
  margin-top: 60px;
}
.blog-related-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .blog-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.blog-related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--rf-blue);
}
.blog-related-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 8px 0;
}
.blog-related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Bottom full-width CTA */
.blog-bottom-cta {
  background: var(--rf-ink);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.blog-bottom-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--rf-gradient);
}
.blog-bottom-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.blog-bottom-cta h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #FFFFFF;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 16px;
}
.blog-bottom-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.blog-bottom-cta .site-button {
  min-width: 260px;
}

/* Blog Hub styles */
.blog-hub-hero {
  padding: 60px 0;
  text-align: center;
  position: relative;
}
.blog-hub-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}
.blog-hub-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.blog-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.blog-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.blog-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.blog-pill-btn:hover {
  border-color: var(--rf-blue);
  color: var(--rf-blue);
}
.blog-pill-btn.active {
  background: var(--rf-blue);
  border-color: var(--rf-blue);
  color: #FFFFFF;
}

.blog-search-box {
  position: relative;
  min-width: 280px;
}
@media (max-width: 640px) {
  .blog-search-box {
    width: 100%;
  }
}
.blog-search-input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
  background: var(--bg-surface);
}
.blog-search-input:focus {
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(18, 59, 255, 0.1);
}
.blog-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
  margin-bottom: 40px;
}
.blog-featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--rf-blue);
}
.blog-featured-card__content {
  padding: 40px;
}
.blog-featured-card__content h2 {
  font-size: 1.8rem;
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.blog-featured-card__content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--rf-blue);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  margin: 12px 0 16px 0;
  flex-grow: 0;
}
.blog-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

/* ==========================================================================
   Homepage V2 - Nova Mascot & Improved Conversions (Mockup Matched)
   ========================================================================== */

/* 1. Header CTA specific fix */
.site-nav a.site-cta {
  color: #FFFFFF !important;
}
.site-nav a.site-cta:hover,
.site-nav a.site-cta:focus {
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 59, 255, 0.28);
  filter: brightness(1.08);
}
.site-nav a.site-cta:active {
  transform: translateY(1px);
}

/* 2. Hero button states and actions */
.site-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--rf-gradient-cta);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-button:hover,
.site-button:focus {
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(110, 43, 255, 0.32);
  filter: brightness(1.08);
}
.site-button:active {
  transform: translateY(1px);
}
.site-button--secondary {
  background: #FFFFFF !important;
  border: 1px solid var(--rf-blue) !important;
  color: var(--rf-blue) !important;
  box-shadow: none !important;
}
.site-button--secondary:hover,
.site-button--secondary:focus {
  background: rgba(18, 59, 255, 0.04) !important;
  border-color: var(--rf-blue) !important;
  color: var(--rf-blue) !important;
  box-shadow: 0 8px 20px rgba(18, 59, 255, 0.06) !important;
}

/* 3. Gradient Text Override */
.gradient-text {
  background: linear-gradient(90deg, var(--rf-purple) 0%, var(--rf-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--rf-purple); /* fallback */
}

/* 4. Benefit Chips */
.site-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.site-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-body);
  white-space: nowrap;
}
.site-hero__chip.chip-audit {
  background: rgba(18, 59, 255, 0.05);
  border: 1px solid rgba(18, 59, 255, 0.1);
  color: var(--rf-blue);
}
.site-hero__chip.chip-audit svg {
  color: var(--rf-blue);
}
.site-hero__chip.chip-friendly {
  background: rgba(110, 43, 255, 0.05);
  border: 1px solid rgba(110, 43, 255, 0.1);
  color: var(--rf-purple);
}
.site-hero__chip.chip-friendly svg {
  color: var(--rf-purple);
}
.site-hero__chip.chip-steps {
  background: rgba(255, 122, 0, 0.05);
  border: 1px solid rgba(255, 122, 0, 0.1);
  color: var(--rf-orange);
}
.site-hero__chip.chip-steps svg {
  color: var(--rf-orange);
}

/* 5. Trust row styling under buttons */
.home-hero__trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.home-hero__trust-row svg {
  color: var(--rf-blue);
  flex-shrink: 0;
}
.home-hero__trust-row p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 6. Nova Mascot Visual Module */
.home-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  min-height: 500px;
  width: 100%;
}
.home-hero__visual-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.home-hero__visual-link:focus-visible {
  outline: 3px solid rgba(18, 59, 255, 0.35);
  outline-offset: 8px;
}
.home-hero__visual::before {
  display: none;
}
.home-hero__visual:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* Ambient colorful radial glow behind mascot */
.home-hero__nova-glow-wrap {
  position: absolute;
  inset: 5% 0 0 0;
  margin: auto;
  width: min(560px, 95%);
  height: min(560px, 95%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.9;
}
.home-hero__visual:hover .home-hero__nova-glow-wrap {
  opacity: 1;
  transform: scale(1.02);
}
.home-hero__nova-glow {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(110, 43, 255, 0.18), transparent 45%),
    radial-gradient(circle at 70% 55%, rgba(255, 122, 0, 0.16), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(18, 59, 255, 0.10), transparent 58%);
  filter: blur(2px);
  animation: novaGlow 7s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes novaGlow {
  0%, 100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.035);
  }
}

/* Mascot PNG sizing and animations */
.home-hero__nova-float {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: novaFloat 6.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes novaFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.home-hero__nova-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.home-hero__visual:hover .home-hero__nova-lift {
  transform: translateY(-4px);
}

.home-hero__nova {
  width: min(520px, 100%);
  max-height: 560px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
  animation: novaEntrance 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes novaEntrance {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Speech bubble at the top-right of Nova */
.home-hero__speech {
  position: absolute;
  top: 10%;
  right: -5%;
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
  box-shadow: 0 8px 30px rgba(16, 21, 43, 0.08);
  border: 1px solid var(--border);
  z-index: 3;
  text-align: left;
  white-space: nowrap;
  animation: speechEntrance 500ms cubic-bezier(0.16, 1, 0.3, 1) 450ms both;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-hero__speech::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20%;
  transform: rotate(45deg);
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-hero__visual:hover .home-hero__speech {
  transform: translateY(-2px);
}
@keyframes speechEntrance {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Nova caption style at the bottom-right */
.home-hero__nova-caption {
  position: absolute;
  bottom: 8%;
  right: -5%;
  z-index: 3;
  text-align: left;
  max-width: 220px;
}
.home-hero__nova-caption span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  display: inline-block;
  margin-right: 6px;
}
.home-hero__nova-caption strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--rf-gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--rf-purple);
  display: inline-block;
}
.home-hero__nova-caption p {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 0 0;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .home-hero__nova,
  .home-hero__nova-float,
  .home-hero__nova-lift,
  .home-hero__nova-glow,
  .home-hero__nova-glow-wrap,
  .home-hero__speech {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 7. Choose Your Path Section (Horizontal layout paths) */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 64px auto 40px;
}
.section-header h2 {
  font-size: 2.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-subheader {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.home-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.home-path-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-path-card__icon-wrap {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-path-card__icon-wrap.blue {
  background: rgba(18, 59, 255, 0.05);
  color: var(--rf-blue);
}
.home-path-card__icon-wrap.purple {
  background: rgba(110, 43, 255, 0.05);
  color: var(--rf-purple);
}
.home-path-card__icon-wrap.orange {
  background: rgba(255, 122, 0, 0.05);
  color: var(--rf-orange);
}
.home-path-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.home-path-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.home-path-card__content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
  flex-grow: 1;
}
.home-path-card__link {
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}
.home-path-card__link.blue { color: var(--rf-blue); }
.home-path-card__link.purple { color: var(--rf-purple); }
.home-path-card__link.orange { color: var(--rf-orange); }

.home-path-card__link:hover {
  text-decoration: underline;
}
.home-path-card__link:hover svg {
  transform: translateX(3px);
}
.home-path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

/* Card 1 Emphasized Accent */
.home-path-card--emphasized {
  border-color: var(--rf-blue);
  box-shadow: 0 16px 42px rgba(18, 59, 255, 0.06);
}
.home-path-card--emphasized .card-accent-line {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--rf-gradient-cta);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.home-path-card--emphasized:hover {
  border-color: var(--rf-purple);
  box-shadow: 0 20px 48px rgba(110, 43, 255, 0.1);
}

/* 8. Split Grid Layout: Outcomes (Left) & Nonprofit Card (Right) */
.home-outcomes {
  width: 100%;
  border-top: 1px solid var(--border);
}
.home-outcomes__inner {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}
.home-bottom-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 44px;
  padding: 64px 0 54px;
}

/* Left Outcomes Container */
.home-outcomes-container h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.home-outcomes-container > p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 600px;
}

/* 3-Column sub-grid for Outcomes items */
.home-outcomes-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.home-outcome-item {
  display: flex;
  flex-direction: column;
}
.home-outcome-item__icon {
  margin-bottom: 14px;
}
.home-outcome-item__icon.blue { color: var(--rf-blue); }
.home-outcome-item__icon.purple { color: var(--rf-purple); }
.home-outcome-item__icon.orange { color: var(--rf-orange); }

.home-outcome-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.home-outcome-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Right Nonprofit Card styling */
.home-nonprofit-card {
  background: rgba(18, 59, 255, 0.02);
  border: 1px solid rgba(18, 59, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  gap: 20px;
  align-self: start;
  box-shadow: 0 10px 32px rgba(18, 59, 255, 0.02);
}
.home-nonprofit-card__icon-wrap {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(18, 59, 255, 0.05);
  color: var(--rf-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-nonprofit-card__content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.home-nonprofit-card__content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.home-nonprofit-card__link {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--rf-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-nonprofit-card__link:hover {
  text-decoration: underline;
}
.home-nonprofit-card__link:hover svg {
  transform: translateX(3px);
}

/* About / Programs page alignment polish */
.about-page .site-hero,
.programs-page .site-hero {
  text-align: center;
}

.about-page .site-eyebrow,
.programs-page .site-eyebrow {
  justify-content: center;
}

.about-page .site-hero h1,
.about-page .site-hero p,
.about-page .site-section > h2,
.about-page .site-section > p,
.about-page .site-section--band > h2,
.about-page .site-section--band > p,
.programs-page .site-hero h1,
.programs-page .site-hero p,
.programs-page .site-section > h2,
.programs-page .site-section > p,
.programs-page .site-section--band > h2,
.programs-page .site-section--band > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-page .site-detail-list,
.programs-page .site-detail-list {
  justify-items: center;
  text-align: center;
}

/* Mobile & Tablet responsiveness for Mockup updates */
@media (max-width: 991px) {
  .home-hero__visual {
    min-height: auto;
    padding: 24px 0;
    margin-top: 24px;
  }
  .home-hero__nova-glow-wrap {
    width: min(380px, 90vw);
    height: min(380px, 90vw);
    inset: 0;
    top: 0;
  }
  .home-hero__nova {
    width: min(380px, 90vw);
    max-height: 400px;
  }
  .home-hero__speech {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto 20px auto;
    white-space: normal;
    text-align: center;
    display: inline-block;
    animation: none;
  }
  .home-hero__speech::after {
    top: auto;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-left: 0;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
  .home-hero__nova-caption {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    text-align: center;
    max-width: none;
  }
  .home-paths__grid {
    grid-template-columns: 1fr;
  }
  .home-bottom-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-outcomes-subgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* ==========================================================================
   BLOG / RESOURCES UI FIX — v13
   Fixes scroll lock, adds thumbnails, Quick Answer box, premium hub layout
   ========================================================================== */

/* Fix: body on site-shell pages must NOT use the quiz flex layout */
body.site-shell {
  display: block !important;
  overflow-x: hidden;
  overflow-y: auto !important;
  align-items: unset;
  justify-content: unset;
  min-height: 100vh;
}

/* Fix: site-main must never be trapped in a fixed-height container */
body.site-shell .site-main {
  flex: unset;
  display: block;
  width: 100%;
  overflow: visible;
}

/* ---- Header CTA compact fix ---- */
.site-cta,
a.site-cta {
  font-size: 0.875rem;
  padding: 0 16px;
  white-space: nowrap;
}

/* ---- Blog Hub Hero ---- */
.blog-hub-hero {
  padding: 48px 0 36px;
  text-align: center;
  position: relative;
}
.blog-hub-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-blue);
  background: var(--bg-tinted);
  border: 1px solid rgba(18,59,255,0.18);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  margin-bottom: 20px;
}
.blog-hub-hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.blog-hub-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .blog-hub-hero h1 { font-size: 1.9rem; }
  .blog-hub-hero p { font-size: 1rem; }
}

/* ---- Hero + Search bar row ---- */
.blog-hub-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.blog-hub-search-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}
.blog-hub-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
  width: 16px;
  height: 16px;
}
.blog-hub-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--bg-surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-hub-search-input:focus {
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(18,59,255,0.1);
}

/* ---- Topic filters (hub) ---- */
.blog-topics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
@media (max-width: 640px) {
  .blog-topics-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 12px;
  }
  .blog-topics-row::-webkit-scrollbar { display: none; }
}

/* ---- Blog Card with Thumbnail ---- */
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  padding: 0;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--rf-blue);
  box-shadow: var(--shadow-hover);
}
.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Thumbnail themes */
.thumb--ai-tools {
  background: linear-gradient(135deg, #0F2ADB 0%, #5B21FF 60%, #1E1E2E 100%);
}
.thumb--ai-writing {
  background: linear-gradient(135deg, #5B21FF 0%, #9C3BFF 50%, #FF7A00 100%);
}
.thumb--productivity {
  background: linear-gradient(135deg, #0D6EFD 0%, #0DCAF0 60%, #20C997 100%);
}
.thumb--ai-agents {
  background: linear-gradient(135deg, #10152B 0%, #1E3A8A 50%, #6E2BFF 100%);
}
.thumb--small-business {
  background: linear-gradient(135deg, #D97706 0%, #FF7A00 50%, #F59E0B 100%);
}
.thumb--ai-research {
  background: linear-gradient(135deg, #047857 0%, #0D9488 50%, #49D7FF 100%);
}
.thumb--ai-workflows {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #3B82F6 100%);
}
.blog-card__thumb-icon {
  position: relative;
  z-index: 2;
}
.blog-card__read-time {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(13,17,36,0.72);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  z-index: 3;
}
.blog-card__body {
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__body .blog-category-pill {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 0.7rem;
}
.blog-card h3,
.blog-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  margin: 0 0 10px;
  flex-grow: 0;
}
.blog-card p,
.blog-card__body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.blog-card__read-more {
  font-weight: 700;
  color: var(--rf-blue);
  font-size: 0.85rem;
  transition: gap 0.2s;
}
.blog-card:hover .blog-card__read-more {
  text-decoration: underline;
}

/* ---- Blog Grid (hub) ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Blog Hub Layout with Sidebar ---- */
.blog-hub-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-hub-layout {
    grid-template-columns: 1fr;
  }
  .blog-hub-layout .blog-hub-sidebar {
    order: 3;
  }
}

/* Hub sidebar */
.blog-hub-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- Sidebar Score Card (Premium) ---- */
.blog-score-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.blog-score-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rf-gradient);
}
.blog-score-card__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}
.blog-score-card__ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}
.blog-score-ring-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.blog-score-ring-svg circle {
  fill: none;
  stroke-width: 8;
}
.blog-score-ring-svg .ring-bg {
  stroke: var(--bg-page);
}
.blog-score-ring-svg .ring-fill {
  stroke: url(#scoreGradient);
  stroke-linecap: round;
}
.blog-score-ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--text-primary);
  text-align: center;
  line-height: 1;
}
.blog-score-ring-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}
.blog-score-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}
.blog-score-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
}
.blog-score-card__checks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.blog-score-card__checks li {
  font-size: 0.82rem;
  color: var(--text-body);
  padding: 4px 0 4px 22px;
  position: relative;
  margin-bottom: 2px;
}
.blog-score-card__checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---- Newsletter Card ---- */
.blog-newsletter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.blog-newsletter-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.blog-newsletter-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.blog-newsletter-card .input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  margin-bottom: 10px;
  outline: none;
}
.blog-newsletter-card .input-field:focus {
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(18,59,255,0.1);
}

/* ---- Bottom CTA (blog) ---- */
.blog-bottom-cta {
  background: var(--rf-ink);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}
.blog-bottom-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--rf-gradient);
}
.blog-bottom-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.blog-bottom-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
  border: none;
  padding-bottom: 0;
  margin-bottom: 14px;
  margin-top: 0;
}
.blog-bottom-cta p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.blog-bottom-cta .site-button {
  min-width: 240px;
  font-size: 1rem;
}

/* ---- Quick Answer Box ---- */
.blog-quick-answer {
  background: linear-gradient(135deg, #F0F3FF 0%, #F8F0FF 100%);
  border: 1.5px solid rgba(110,43,255,0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
}
.blog-quick-answer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rf-blue), var(--rf-purple));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.blog-quick-answer__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-purple);
  margin-bottom: 12px;
}
.blog-quick-answer p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---- Sidebar card (article page) ---- */
.blog-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: visible;
  margin-bottom: 0;
  position: relative;
}
.blog-sidebar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--rf-gradient);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.blog-sidebar-card__title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-align: center;
}
.blog-sidebar-card__content {
  text-align: center;
  margin-bottom: 18px;
}
.blog-sidebar-card__content h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.blog-sidebar-card__content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---- Blog layout outer wrapper fix ---- */
.blog-outer-wrapper {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

/* On article pages, make the outer wrapper wider to fit the 1440px grid */
.blog-outer-wrapper--article {
  width: min(100% - 64px, 1440px);
  max-width: 1440px;
}
@media (max-width: 768px) {
  .blog-outer-wrapper--article {
    width: min(100% - 32px, 1440px);
  }
}

/* ---- Article 3-col layout ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) 320px;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}
.blog-layout__toc-col,
.blog-layout__sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
}
@media (min-width: 1024px) {
  .blog-layout__toc-col,
  .blog-layout__sidebar-col {
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .blog-layout__toc-col {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}
@media (max-width: 1023px) {
  .blog-layout__toc-col,
  .blog-layout__sidebar-col {
    position: static !important;
    max-height: none !important;
  }
}
@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: 1fr 320px;
  }
  .blog-layout__toc-col { display: none; }
}
@media (max-width: 860px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .blog-layout__sidebar-col { order: 2; }
}

/* ---- Misc improvements ---- */
.blog-hub-hero .blog-hub-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* No-results state */
.blog-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}
.blog-no-results h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
}
.blog-no-results p { margin: 0; font-size: 0.95rem; }

/* ---- Article rhythm polish — v19 ---- */
.blog-outer-wrapper--article {
  width: min(100% - 64px, 1320px);
}

.blog-layout {
  grid-template-columns: 210px minmax(0, 700px) 300px;
  gap: 56px;
  padding: 48px 0 32px;
  justify-content: center;
}

.blog-content.blog-article {
  max-width: 700px;
}

.blog-article-hero-img {
  margin: 4px 0 40px;
  box-shadow: 0 18px 48px rgba(16, 21, 43, 0.08);
}

.blog-post-meta {
  margin-bottom: 28px;
  padding-bottom: 18px;
}

.blog-quick-answer {
  margin: 34px 0 46px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(240, 243, 255, 0.86) 0%, rgba(248, 240, 255, 0.76) 100%);
  border-color: rgba(110, 43, 255, 0.16);
  box-shadow: 0 14px 34px rgba(18, 59, 255, 0.06);
}

.blog-quick-answer p {
  line-height: 1.72;
}

.blog-article h1 {
  max-width: 680px;
  margin-bottom: 20px;
}

.blog-article h2 {
  margin-top: 58px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom-color: rgba(16, 21, 43, 0.09);
}

.blog-article h2:first-of-type {
  margin-top: 42px;
}

.blog-article h3 {
  margin-top: 34px;
  margin-bottom: 10px;
}

.blog-article p {
  line-height: 1.78;
  margin-bottom: 22px;
}

.blog-article ul,
.blog-article ol {
  margin: 12px 0 34px;
}

.blog-article li {
  line-height: 1.68;
  margin-bottom: 10px;
}

.blog-callout,
.blog-step-card {
  margin: 42px 0;
}

.blog-callout {
  padding: 26px 28px;
}

.blog-step-card {
  background: rgba(248, 250, 255, 0.72);
  box-shadow: 0 12px 30px rgba(16, 21, 43, 0.04);
}

.blog-share-row {
  margin-top: 54px;
}

.blog-related-section {
  margin-top: 68px;
}

.blog-related-grid {
  gap: 20px;
}

.blog-layout__sidebar-col {
  gap: 18px;
}

.blog-sidebar-card {
  padding: 20px;
  border-color: rgba(16, 21, 43, 0.09);
  box-shadow: 0 12px 30px rgba(16, 21, 43, 0.06);
}

.blog-sidebar-card::before {
  height: 3px;
  opacity: 0.86;
}

.blog-sidebar-card__title {
  margin-bottom: 14px;
}

.blog-sidebar-card .blog-score-ring-wrap {
  width: 104px !important;
  height: 104px !important;
  margin-bottom: 14px !important;
}

.blog-sidebar-card .blog-score-ring-wrap svg {
  width: 104px !important;
  height: 104px !important;
}

.blog-sidebar-card .blog-score-ring-text {
  font-size: 1.55rem;
}

.blog-sidebar-card__content {
  margin-bottom: 14px;
}

.blog-sidebar-card__content h4 {
  font-size: 0.96rem;
}

.blog-sidebar-card__content p {
  font-size: 0.82rem;
}

.blog-sidebar-card .blog-score-card__checks {
  margin-bottom: 14px !important;
}

.blog-sidebar-card .site-button {
  min-height: 40px;
  box-shadow: none;
}

.blog-toc {
  padding: 16px 14px 16px 0;
  border-right: 1px solid rgba(16, 21, 43, 0.08);
}

.blog-toc__list {
  gap: 10px;
}

.blog-toc__link {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.blog-toc__link.active {
  background: rgba(18, 59, 255, 0.06);
  border-radius: 0 8px 8px 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

.blog-bottom-cta {
  width: min(100% - 64px, 1040px);
  margin: 72px auto 0;
  padding: 44px 40px;
  border-radius: var(--radius-md);
}

.blog-bottom-cta__inner {
  max-width: 560px;
}

.blog-bottom-cta h2 {
  font-size: 1.72rem;
}

.blog-bottom-cta p {
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .blog-layout {
    grid-template-columns: minmax(0, 700px) 300px;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .blog-outer-wrapper--article {
    width: min(100% - 32px, 700px);
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px 0 16px;
  }

  .blog-layout__sidebar-col {
    order: 2;
    gap: 16px;
  }

  .blog-bottom-cta {
    width: min(100% - 32px, 700px);
    margin-top: 52px;
    padding: 36px 24px;
  }
}

@media (max-width: 640px) {
  .blog-article h1 {
    font-size: 1.78rem;
    line-height: 1.22;
  }

  .blog-article h2 {
    font-size: 1.32rem;
    margin-top: 48px;
  }

  .blog-article h3 {
    margin-top: 30px;
  }

  .blog-article p,
  .blog-article li {
    font-size: 1rem;
  }

  .blog-quick-answer {
    margin: 28px 0 38px;
    padding: 20px;
  }

  .blog-callout,
  .blog-step-card {
    margin: 34px 0;
    padding: 22px;
  }

  .blog-related-section {
    margin-top: 52px;
  }
}

/* ---- Blog hub above-fold alignment — v20 ---- */
.blog-hub-hero {
  padding: 30px 0 22px;
}

.blog-hub-pill {
  margin-bottom: 12px;
  padding: 4px 14px;
}

.blog-hub-hero h1 {
  font-size: 2.45rem;
  margin-bottom: 10px;
}

.blog-hub-hero p {
  max-width: 620px;
  font-size: 1.02rem;
  line-height: 1.5;
}

.blog-hub-hero-row {
  margin-top: 18px;
}

.blog-hub-search-input {
  padding-top: 10px;
  padding-bottom: 10px;
}

.blog-topics-row {
  gap: 8px;
  padding: 14px 0 16px;
  margin-bottom: 24px;
}

.blog-pill-btn {
  padding: 7px 15px;
}

@media (max-width: 640px) {
  .blog-hub-hero {
    padding: 24px 0 18px;
  }

  .blog-hub-hero h1 {
    font-size: 1.78rem;
  }

  .blog-hub-hero-row {
    margin-top: 16px;
  }

  .blog-topics-row {
    padding: 10px 0 12px;
    margin-bottom: 20px;
  }
}

/* ---- Audit page blog cards and proof snippets — v23 ---- */
.audit-social-proof,
.audit-blog-recommendations {
  display: none;
  width: min(100% - 32px, 1120px);
  margin: 6px auto 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 56px rgba(38, 52, 130, 0.08);
}

body > .quiz-header {
  order: 0;
}

body > .app-container {
  order: 1;
}

.audit-blog-recommendations {
  order: 2;
}

.audit-social-proof {
  order: 3;
}

body > .site-footer {
  order: 4;
}

body[data-view="intro"] .audit-social-proof,
body[data-view="quiz"] .audit-social-proof,
body[data-view="intro"] .audit-blog-recommendations,
body[data-view="quiz"] .audit-blog-recommendations {
  display: block;
}

.audit-social-proof {
  padding: 26px 28px;
}

.audit-social-proof__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.audit-blog-recommendations__header {
  max-width: 720px;
  margin-bottom: 22px;
}

.audit-social-proof__header span,
.audit-blog-recommendations__header span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(18, 59, 255, 0.16);
  border-radius: var(--radius-pill);
  color: var(--rf-blue);
  background: rgba(18, 59, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.audit-social-proof__header span {
  margin-bottom: 0;
  color: var(--rf-purple);
  background: rgba(110, 43, 255, 0.07);
  border-color: rgba(110, 43, 255, 0.16);
  white-space: nowrap;
}

.audit-social-proof__header h2,
.audit-blog-recommendations__header h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.audit-social-proof__header h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.audit-blog-recommendations__header p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.audit-social-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audit-proof-card {
  display: none;
  min-height: 100%;
  padding: 17px;
  border: 1px solid rgba(16, 21, 43, 0.08);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(38, 52, 130, 0.05);
}

.audit-proof-card.is-visible-random {
  display: block;
}

.audit-proof-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.audit-proof-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(18, 59, 255, 0.14), 0 8px 18px rgba(16, 21, 43, 0.08);
}

.audit-proof-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.2;
}

.audit-proof-card small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.72rem;
  line-height: 1.3;
}

.audit-proof-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.55;
}

.audit-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.audit-blog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--text-body);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(38, 52, 130, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-blog-card.is-hidden-random {
  display: none;
}

.audit-blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--rf-blue);
  box-shadow: 0 18px 44px rgba(38, 52, 130, 0.12);
}

.audit-blog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tinted);
}

.audit-blog-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.audit-blog-card__thumb span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  background: rgba(13, 17, 36, 0.74);
  font-size: 0.68rem;
  font-weight: 800;
}

.audit-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.audit-blog-card__body small {
  align-self: flex-start;
  margin-bottom: 9px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--rf-blue);
  background: rgba(18, 59, 255, 0.07);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-blog-card__body h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.audit-blog-card__body p {
  flex: 1;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.audit-blog-card__body strong {
  color: var(--rf-blue);
  font-size: 0.82rem;
}

@media (max-width: 1040px) {
  .audit-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .audit-social-proof,
  .audit-blog-recommendations {
    padding: 24px 18px;
  }

  .audit-social-proof__header {
    display: block;
  }

  .audit-social-proof__header span {
    margin-bottom: 10px;
  }

  .audit-social-proof__grid {
    grid-template-columns: 1fr;
  }

  .audit-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .audit-blog-grid {
    grid-template-columns: 1fr;
  }
}



/* ============================================================
   HOMEPAGE NEWSLETTER SECTION
   ============================================================ */
.home-newsletter-section {
  position: relative;
  padding: 56px 24px;
  background:
    linear-gradient(135deg, rgba(18, 59, 255, 0.06) 0%, rgba(110, 43, 255, 0.08) 50%, rgba(255, 122, 0, 0.05) 100%),
    linear-gradient(180deg, #F4F6FF 0%, #ECEEFF 50%, #F8F9FF 100%);
  text-align: center;
  overflow: hidden;
}

.home-newsletter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rf-blue), var(--rf-purple), var(--rf-orange));
  opacity: 0.6;
}

.home-newsletter__inner {
  max-width: 640px;
  margin: 0 auto;
}

.home-newsletter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7B5CFF 0%, var(--rf-purple) 100%);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(110, 43, 255, 0.28);
}

.home-newsletter__icon svg {
  width: 26px;
  height: 26px;
}

.home-newsletter-section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px;
}

.home-newsletter-section > .home-newsletter__inner > p {
  max-width: 480px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-newsletter__embed {
  max-width: 520px;
  margin: 0 auto 18px;
}

.home-newsletter__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-newsletter__trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.home-newsletter__trust svg {
  width: 14px;
  height: 14px;
  color: var(--rf-purple);
}

@media (max-width: 700px) {
  .home-newsletter-section {
    padding: 40px 16px;
  }
  .home-newsletter-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 520px) {
  .home-newsletter-section {
    padding: 32px 12px;
  }
  .home-newsletter-section h2 {
    font-size: 1.15rem;
  }
  .home-newsletter__trust {
    flex-direction: column;
    gap: 6px;
  }
}

/* ============================================================
   BLOG INLINE NEWSLETTER CTA (after article content)
   ============================================================ */
.blog-newsletter-cta {
  position: relative;
  margin-top: 32px;
  padding: 36px 32px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(18, 59, 255, 0.05) 0%, rgba(110, 43, 255, 0.07) 50%, rgba(255, 122, 0, 0.04) 100%),
    linear-gradient(180deg, #F6F7FF 0%, #ECEEFF 100%);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 255, 0.06);
}

.blog-newsletter-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rf-blue), var(--rf-purple), var(--rf-orange));
  opacity: 0.5;
  border-radius: 16px 16px 0 0;
}

.blog-newsletter-cta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
}

.blog-newsletter-cta > p {
  max-width: 440px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.blog-newsletter-cta__embed {
  max-width: 460px;
  margin: 0 auto 12px;
}

.blog-newsletter-cta__disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 700px) {
  .blog-newsletter-cta {
    padding: 28px 20px;
  }
  .blog-newsletter-cta h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 520px) {
  .blog-newsletter-cta {
    padding: 24px 14px;
    border-radius: 12px;
  }
}

/* ============================================================
   BLOG SIDEBAR BEEHIIV — make iframe fit sidebar width
   ============================================================ */
.blog-sidebar-newsletter .blog-sidebar-card {
  overflow: hidden;
}

.blog-sidebar-newsletter .blog-sidebar-card__beehiiv {
  margin: 0 -4px;
}

/* ============================================================
   MOBILE STICKY NEWSLETTER BAR
   ============================================================ */
.mobile-sticky-newsletter {
  display: none;
}

@media (max-width: 700px) {
  .mobile-sticky-newsletter {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-sticky-newsletter.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-sticky-newsletter.is-hidden-by-scroll {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-sticky-newsletter.is-dismissed {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .mobile-sticky-newsletter__inner {
    position: relative;
    padding: 14px 16px 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(18, 59, 255, 0.08);
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.08),
      0 -1px 4px rgba(18, 59, 255, 0.06);
  }

  .mobile-sticky-newsletter__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rf-blue), var(--rf-purple), var(--rf-orange));
    opacity: 0.7;
  }

  .mobile-sticky-newsletter__text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 32px;
  }

  .mobile-sticky-newsletter__text strong {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
  }

  .mobile-sticky-newsletter__text span {
    font-size: 0.76rem;
    color: var(--text-muted);
  }

  .mobile-sticky-newsletter__embed {
    width: 100%;
  }

  .mobile-sticky-newsletter__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 0.15s ease;
  }

  .mobile-sticky-newsletter__close:hover,
  .mobile-sticky-newsletter__close:active {
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
  }

  /* Add bottom padding to body so sticky bar doesn't overlap footer content */
  body:has(.mobile-sticky-newsletter.is-visible:not(.is-hidden-by-scroll):not(.is-dismissed)) {
    padding-bottom: 120px;
  }
}
