/* CSS Variables */
:root {
    --deep-blue: #07366E;
    --primary-blue: #1E3F7A;
    --accent-orange: #FF7500;
    --white: #FFFFFF;
    --soft-blue: #EEF4FB;
    --light-surface: #F3F7FC;
    --blue-border: #D3E0F2;
    --primary-text: #102033;
    --secondary-text: #4A607C;
    --shadow-sm: 0 4px 12px rgba(7, 54, 110, 0.05);
    --shadow-md: 0 8px 24px rgba(7, 54, 110, 0.08);
    --shadow-lg: 0 16px 40px rgba(7, 54, 110, 0.12);
    --transition: all 0.4s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, sans-serif; color: var(--primary-text); background-color: var(--white); line-height: 1.6; }
h1, h2, h3, h4, h5 { color: var(--deep-blue); font-weight: 700; line-height: 1.2; }
p { color: var(--secondary-text); }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-light { background-color: var(--light-surface); }
.bg-soft { background-color: var(--soft-blue); }
.bg-primary { background-color: var(--primary-blue) !important; }
.bg-white { background-color: var(--white) !important; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.justify-center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background-color: var(--accent-orange); color: var(--white); }
.btn-primary:hover { background-color: #E66A00; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--primary-blue); border-color: var(--blue-border); }
.btn-secondary:hover { background-color: var(--soft-blue); border-color: var(--primary-blue); transform: translateY(-2px); }
header { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--white); z-index: 100; transition: var(--transition); border-bottom: 1px solid transparent; }
header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--blue-border); }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); letter-spacing: 0.05em; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a:not(.btn) { font-weight: 500; color: var(--secondary-text); transition: color 0.2s; }
.main-nav a:not(.btn):hover { color: var(--primary-blue); }
/* Subtle, discreet reviewer portal entry, stays visible on mobile. */
.reviewer-portal-link { font-size: 0.9rem; opacity: 0.85; }
@media (max-width: 640px) { .main-nav a.reviewer-portal-link { display: inline-flex !important; opacity: 1; } }
.hero-section { padding-top: 160px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-title { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.125rem; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; }
.hero-card { background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--blue-border); }
.hero-step { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: var(--light-surface); opacity: 0.5; transform: translateX(-10px); transition: var(--transition); border: 1px solid transparent; }
.hero-step.active { opacity: 1; transform: translateX(0); background: var(--white); border-color: var(--blue-border); box-shadow: var(--shadow-sm); }
.step-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--primary-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.step-icon svg { width: 20px; height: 20px; }
.hero-step.active .highlight-icon { background: var(--accent-orange); color: var(--white); }
.hero-step.active .highlight-text { color: var(--accent-orange); font-weight: 600; }
.hero-step span { font-weight: 600; color: var(--secondary-text); }
.hero-step.active span { color: var(--primary-text); }
.hero-connector { width: 2px; height: 20px; background: var(--blue-border); margin-left: 36px; transform-origin: top; transform: scaleY(0); transition: var(--transition); }
.hero-connector.active { transform: scaleY(1); background: var(--primary-blue); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.section-header { max-width: 700px; margin: 0 auto 64px auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.card { background: var(--white); border-radius: 16px; padding: 40px 32px; box-shadow: var(--shadow-md); border: 1px solid var(--blue-border); transition: var(--transition); position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; bottom: 0; left: 0; height: 4px; width: 0%; background: var(--accent-orange); transition: width 0.4s ease; }
.card-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--soft-blue); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: var(--transition); }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.why-card { opacity: 0; transform: translateY(20px); }
.why-card.visible { opacity: 1; transform: translateY(0); }
.why-card.active { transform: translateY(-8px); border-color: var(--blue-border); box-shadow: var(--shadow-lg); }
.why-card.active::after { width: 100%; }
.why-card.active .card-icon { background: var(--primary-blue); color: var(--white); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.demo-card { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--blue-border); overflow: hidden; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.demo-card.visible { opacity: 1; transform: translateY(0); }
.demo-card-header { padding: 24px; border-bottom: 1px solid var(--blue-border); display: flex; align-items: center; gap: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--soft-blue); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--light-surface); color: var(--secondary-text); margin-top: 4px; transition: var(--transition); }
.badge.active { background: rgba(255, 117, 0, 0.1); color: var(--accent-orange); }
.demo-card-body { padding: 24px; }
.trait-group { margin-bottom: 16px; opacity: 0.3; transition: opacity 0.4s; }
.trait-group.active { opacity: 1; }
.trait-group:last-child { margin-bottom: 0; }
.trait-group h5 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--secondary-text); margin-bottom: 4px; }
.trait-group p { font-weight: 500; }
.strategy-intro { font-weight: 600; margin-bottom: 16px; color: var(--deep-blue); }
.strategy-list { list-style: none; }
.strategy-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; opacity: 0; transform: translateX(-10px); transition: var(--transition); }
.strategy-list li.active { opacity: 1; transform: translateX(0); }
.strategy-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.avoid-item { color: var(--secondary-text); }
.avoid-item svg { stroke: var(--accent-orange); }
.status-box { margin-top: 24px; padding: 12px; background: var(--soft-blue); border-radius: 8px; text-align: center; font-weight: 600; color: var(--primary-blue); font-size: 0.875rem; opacity: 0; transition: opacity 0.4s; }
.status-box.active { opacity: 1; }
.steps-wrapper { display: flex; justify-content: space-between; position: relative; max-width: 1000px; margin: 0 auto; }
.steps-line { position: absolute; top: 24px; left: 40px; right: 40px; height: 2px; background: var(--blue-border); z-index: 0; }
.steps-progress { height: 100%; background: var(--primary-blue); width: 0%; transition: width 0.6s ease; }
.step-item { position: relative; z-index: 1; width: 22%; text-align: center; opacity: 0.5; transition: var(--transition); }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue-border); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--secondary-text); margin: 0 auto 16px auto; transition: var(--transition); }
.step-item h4 { margin-bottom: 8px; font-size: 1.125rem; }
.step-item p { font-size: 0.875rem; }
.step-item.active { opacity: 1; }
.step-item.active .step-number { border-color: var(--primary-blue); background: var(--primary-blue); color: var(--white); box-shadow: 0 0 0 4px rgba(30,63,122,0.1); }
.soft-card { background: var(--white); padding: 32px; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--blue-border); text-align: center; transition: var(--transition); opacity: 0; transform: translateY(20px); }
.soft-card.visible { opacity: 1; transform: translateY(0); }
.soft-card.active { transform: translateY(-8px); border-color: var(--primary-blue); box-shadow: var(--shadow-md); }
.soft-card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--soft-blue); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; }
.soft-card-icon svg { width: 24px; height: 24px; }
.soft-card h4 { margin-bottom: 12px; }
.assessment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.assessment-text h2 { font-size: 2.5rem; margin-bottom: 16px; }
.assessment-ui { background: var(--white); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--blue-border); position: relative; }
.mock-header { margin-bottom: 32px; }
.progress-track { height: 6px; background: var(--soft-blue); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-orange); width: 30%; transition: width 0.6s ease; }
.progress-label { font-size: 0.75rem; color: var(--secondary-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.mock-question h3 { font-size: 1.25rem; margin-bottom: 24px; }
.mock-options { display: flex; flex-direction: column; gap: 12px; }
.mock-option { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--blue-border); border-radius: 8px; transition: var(--transition); }
.radio-btn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--blue-border); position: relative; transition: var(--transition); }
.mock-option.selected { border-color: var(--primary-blue); background: var(--soft-blue); }
.mock-option.selected .radio-btn { border-color: var(--primary-blue); }
.mock-option.selected .radio-btn::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: var(--primary-blue); }
.mock-footer { margin-top: 32px; display: flex; justify-content: flex-end; }
.btn-mock { padding: 12px 24px; background: var(--blue-border); color: var(--secondary-text); border-radius: 6px; font-weight: 600; transition: var(--transition); }
.btn-mock.active { background: var(--accent-orange); color: var(--white); }
.mock-result { position: absolute; inset: 0; background: rgba(255,255,255,0.95); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mock-result.active { opacity: 1; }
.mock-result svg { width: 48px; height: 48px; }
.mock-result span { font-size: 1.25rem; font-weight: 700; color: var(--deep-blue); }
.final-cta h2 { font-size: 2.5rem; margin-bottom: 16px; }
.final-cta p { font-size: 1.125rem; margin-bottom: 32px; }
.footer { background-color: var(--deep-blue); color: var(--white); padding: 64px 0 24px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 48px; }
.footer-left p { color: rgba(255,255,255,0.7); margin-top: 8px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
@media (max-width: 992px) { .hero-grid, .assessment-grid, .demo-grid { grid-template-columns: 1fr; } .hero-section { padding-top: 120px; } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } .hero-title { font-size: 2.5rem; } .hero-ctas { flex-direction: column; } .main-nav { display: none; } .steps-wrapper { flex-direction: column; gap: 32px; } .steps-line { top: 0; bottom: 0; left: 24px; right: auto; width: 2px; height: 100%; } .steps-progress { width: 100%; height: 0%; transition: height 0.6s ease; } .step-item { width: 100%; display: flex; align-items: flex-start; text-align: left; gap: 24px; } .step-number { margin: 0; flex-shrink: 0; } .footer-content { flex-direction: column; text-align: center; gap: 32px; } .footer-nav { flex-direction: column; gap: 16px; } }

/* Animated circle background pattern */
.patterned-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.patterned-section > .container {
    position: relative;
    z-index: 2;
}

.circle-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    perspective: 1200px;
    transform-style: preserve-3d;
    opacity: 0.16;
}

.circle-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.62), rgba(255,255,255,0.28));
    z-index: 3;
    pointer-events: none;
}

.bg-light .circle-pattern::after,
.bg-soft .circle-pattern::after {
    background: linear-gradient(90deg, rgba(243,247,252,0.58), rgba(238,244,251,0.28));
}

.patterned-circle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--x);
    top: var(--y);
    transform-origin: 50% 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 2;
    transform-style: preserve-3d;
}

.patterned-circle svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.patterned-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke: var(--deep-blue);
    stroke-dasharray: 190 60;
    animation: patternedStrokeShift 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--color-delay);
}

@keyframes patternedStrokeShift {
    0%, 100% { stroke: var(--deep-blue); }
    45%, 55% { stroke: var(--accent-orange); }
}

@media (prefers-reduced-motion: reduce) {
    .patterned-circle { animation: none !important; transform: none !important; }
    .patterned-circle circle { animation: none !important; stroke: var(--deep-blue); }
}

/* REQUITY hardcoded animated logo */
:root {
  --requity-blue: #003366;
  --requity-orange: #FF6A00;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: baseline;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--requity-blue);
  line-height: 1;
}

.re, .uity {
  font-family: 'Nunito', sans-serif;
}

.q-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9em;
  height: 0.9em;
  margin: 0 0.05em;
  transform: translateY(0.05em); 
  /* The REQUITY Q animation intentionally plays once per page reload and
     remains orange after completion. Single iteration + animation-fill-mode:
     forwards holds the final orange state until the next full page reload. */
  animation: qColorShift 5s 1 cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.q-ring {
  position: absolute;
  width: 0.85em;
  height: 0.85em;
  border: 0.15em solid currentColor;
  border-radius: 50%;
}

.q-tail {
  position: absolute;
  bottom: 0.13em;
  right: -0.08em;
  width: 0.5em;
  height: 0.16em;
  background-color: currentColor;
  transform: rotate(42deg);
  transform-origin: center;
  border-radius: 1em;
}

.splash-wrap {
  position: absolute;
  bottom: -0.75em; 
  left: 50%;
  width: 1.4em; 
  height: 0.8em;
  transform: translateX(-50%);
  pointer-events: none;
  color: var(--requity-orange);
  z-index: 1;
  overflow: visible;
}

.ripple {
  transform-origin: 50% 25px;
}

.ripple-inner {
  animation: splashInner 5s 1 ease-out forwards;
}

.ripple-outer {
  animation: splashOuter 5s 1 ease-out forwards;
}

.ripple-furthest {
  animation: splashFurthest 5s 1 ease-out forwards;
}

@keyframes qColorShift {
  0%, 15% {
    color: var(--requity-blue);
    transform: translateY(0.05em) scale(1);
  }
  22% {
    color: var(--requity-blue);
    transform: translateY(-0.1em) scale(1.05);
  }
  26% {
    color: var(--requity-orange);
    transform: translateY(0.1em) scale(0.95, 1.05);
  }
  32% {
    color: var(--requity-orange);
    transform: translateY(-0.02em) scale(1.02);
  }
  38%, 75% {
    color: var(--requity-orange);
    transform: translateY(0.05em) scale(1);
  }
  /* Final keyframe holds the Q orange (forwards) after the single play. */
  85%, 100% {
    color: var(--requity-orange);
    transform: translateY(0.05em) scale(1);
  }
}

@keyframes splashInner {
  0%, 25% { opacity: 0; transform: scale(0.4) translateY(-10px); }
  28% { opacity: 1; transform: scale(1) translateY(0); }
  45% { opacity: 0; transform: scale(1.2) translateY(5px); }
  100% { opacity: 0; }
}

@keyframes splashOuter {
  0%, 26% { opacity: 0; transform: scale(0.5) translateY(-10px); }
  30% { opacity: 0.8; transform: scale(1) translateY(0); }
  50% { opacity: 0; transform: scale(1.3) translateY(5px); }
  100% { opacity: 0; }
}

@keyframes splashFurthest {
  0%, 27% { opacity: 0; transform: scale(0.6) translateY(-10px); }
  32% { opacity: 0.5; transform: scale(1) translateY(0); }
  55% { opacity: 0; transform: scale(1.4) translateY(5px); }
  100% { opacity: 0; }
}

.header-container .logo {
  font-size: 2.05rem;
}

.footer-logo-wrap .logo {
  font-size: 2.2rem;
  color: var(--white);
}

.footer-logo-wrap .q-container {
  --requity-blue: #ffffff;
}

.footer-logo-wrap {
  display: inline-flex;
  margin-bottom: 4px;
  padding-bottom: 18px;
}

@media (max-width: 768px) {
  .header-container .logo { font-size: 1.7rem; }
  .footer-logo-wrap .logo { font-size: 1.9rem; }
}

/* Full Agent Assessment - new implementation */
.agent-assessment-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.assessment-intro-panel {
    background: linear-gradient(180deg, var(--soft-blue), var(--white));
    border: 1px solid var(--blue-border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 112px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 14px;
}
.assessment-intro-panel h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}
.assessment-match-note {
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--blue-border);
    display: grid;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}
.assessment-match-note strong { color: var(--deep-blue); }
.assessment-match-note span { color: var(--secondary-text); }
.agent-assessment-card,
.agent-result-card {
    background: var(--white);
    border: 1px solid var(--blue-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow-lg);
}
.agent-assessment-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 18px;
}
.agent-assessment-top h3 {
    font-size: 1.6rem;
    margin-top: 8px;
}
.assessment-mini-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 117, 0, 0.10);
    color: var(--accent-orange);
    font-weight: 800;
    font-size: 0.75rem;
}
.agent-progress-track { margin-bottom: 24px; }
.agent-options {
    display: grid;
    gap: 12px;
}
.agent-answer {
    width: 100%;
    border: 1px solid var(--blue-border);
    border-radius: 14px;
    background: var(--white);
    padding: 16px 18px;
    text-align: left;
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--primary-text);
    font: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.agent-answer:hover {
    border-color: var(--primary-blue);
    background: var(--soft-blue);
    transform: translateY(-2px);
}
.agent-answer.selected {
    border-color: var(--primary-blue);
    background: var(--soft-blue);
    box-shadow: 0 0 0 3px rgba(30, 63, 122, 0.08);
}
.agent-answer-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-surface);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid var(--blue-border);
}
.agent-answer.selected .agent-answer-letter {
    background: var(--primary-blue);
    color: var(--white);
}
.agent-assessment-actions {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.agent-assessment-actions .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.agent-result-card {
    grid-column: 2;
}
.agent-result-card h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.result-dimensions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px 0;
}
.result-dimensions div {
    padding: 16px;
    border-radius: 14px;
    background: var(--light-surface);
    border: 1px solid var(--blue-border);
}
.result-dimensions span {
    display: block;
    color: var(--secondary-text);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.result-dimensions strong { color: var(--deep-blue); }
.match-preview-box {
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(255, 117, 0, 0.08);
    border: 1px solid rgba(255, 117, 0, 0.28);
    padding: 18px;
}
.match-preview-box strong { color: var(--deep-blue); }
.match-preview-box p { margin-top: 6px; }
@media (max-width: 992px) {
    .agent-assessment-shell { grid-template-columns: 1fr; }
    .assessment-intro-panel { position: relative; top: auto; }
    .agent-result-card { grid-column: auto; }
}
@media (max-width: 640px) {
    .agent-assessment-card, .agent-result-card, .assessment-intro-panel { padding: 24px; }
    .agent-assessment-top { flex-direction: column; }
    .result-dimensions { grid-template-columns: 1fr; }
}


/* Dedicated agent assessment page */
.assessment-page {
    background: var(--soft-blue);
}
.assessment-page-main {
    min-height: 100vh;
    padding: 150px 0 96px;
    background: var(--soft-blue);
    overflow: hidden;
}
.assessment-page-main .circle-pattern {
    opacity: 0.34;
}
.assessment-page-shell {
    align-items: start;
}
.assessment-intro-panel h1 {
    font-size: 2.55rem;
    margin-bottom: 16px;
}
.agent-contact-card {
    background: var(--white);
    border: 1px solid var(--blue-border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow-lg);
}
.agent-contact-card h2 {
    font-size: 1.55rem;
    margin-top: 8px;
}
.contact-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.contact-field {
    display: grid;
    gap: 8px;
}
.contact-field span {
    color: var(--deep-blue);
    font-weight: 800;
    font-size: 0.85rem;
}
.contact-field input {
    width: 100%;
    border: 1px solid var(--blue-border);
    border-radius: 14px;
    padding: 15px 16px;
    font: inherit;
    color: var(--primary-text);
    background: var(--white);
    transition: var(--transition);
}
.contact-field input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 63, 122, 0.10);
}
.contact-start-btn {
    width: 100%;
    margin-top: 24px;
}
.assessment-footer {
    margin-top: 0;
}
@media (max-width: 640px) {
    .assessment-page-main { padding-top: 120px; }
    .contact-field-grid { grid-template-columns: 1fr; }
    .agent-contact-card { padding: 24px; }
    .assessment-intro-panel h1 { font-size: 2rem; }
}

/* Reviewer matching completion state */
.review-complete-card {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.review-complete-card h3 {
    margin-bottom: 14px;
}
.reviewer-message-box {
    text-align: left;
    margin: 26px 0;
}


/* Discreet cross-audience link */
.agent-audience-link {
    color: rgba(7, 54, 110, 0.66) !important;
    font-size: 0.92rem;
    border: 1px solid rgba(30, 63, 122, 0.14);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.62);
    transition: all 0.25s ease;
}
.agent-audience-link:hover {
    color: var(--primary-blue, #1E3F7A) !important;
    border-color: rgba(255, 117, 0, 0.32);
    background: rgba(255, 255, 255, 0.9);
}
@media (max-width: 768px) {
    .agent-audience-link { display: inline-flex; }
}

/* Mobile fit pass */
* { max-width: 100%; }
html, body { overflow-x: hidden; }
img, svg, canvas, video { max-width: 100%; height: auto; }
@media (max-width: 992px) {
  .container { width: 100%; padding-left: 18px; padding-right: 18px; }
  .hero-grid, .assessment-grid, .demo-grid, .grid-3, .grid-2, .dashboard-grid { grid-template-columns: 1fr !important; }
  .hero-title, h1 { font-size: clamp(2.1rem, 10vw, 3.1rem) !important; line-height: 1.05; }
  h2 { font-size: clamp(1.65rem, 7vw, 2.4rem) !important; }
  .hero-ctas, .cta-row, .button-row { flex-direction: column; align-items: stretch; }
  .btn, button, .btn-primary, .btn-secondary { min-height: 44px; }
  .card, .demo-card, .assessment-ui, .hero-card, .soft-card { width: 100%; }
}
@media (max-width: 640px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero-section { padding-top: 112px !important; }
  .header-container { height: auto; min-height: 76px; gap: 12px; }
  .main-nav { display: flex !important; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .main-nav a:not(.btn) { display: none; }
  .nav-btn, .main-nav .btn { padding: 10px 14px; font-size: .85rem; }
  .logo { font-size: 1.35rem !important; margin-bottom: 0; }
  .steps-wrapper { gap: 22px; }
  .step-item { width: 100% !important; }
  .link-field-group, .qr-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================================
   Agent assessment fit pass: every question + answer fits cleanly on screen.
   - Question text and answer text wrap (no overflow, no horizontal scroll).
   - Answer options stack vertically and grow with their content.
   - Cards never exceed the viewport at any width.
   Additive only: does not change answer ordering or scoring.
   ============================================================================ */
.agent-assessment-card,
.agent-result-card {
  max-width: 100%;
}
.agent-assessment-top h3,
#agent-question-text {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
.agent-options { grid-template-columns: 1fr; }
.agent-answer {
  height: auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 560px) {
  .agent-assessment-top h3,
  #agent-question-text { font-size: 1.3rem; }
  .agent-assessment-actions { flex-direction: column; align-items: stretch; }
  .agent-assessment-actions .btn { width: 100%; }
}
