/* ========== Site Nav (Rose Rocket) ========== */

/* Instrument Serif is ~75% the width of Georgia, so the unstyled-fallback nav
   buttons used to be 39px wider and the whole link row (and any open dropdown)
   jumped sideways when the webfont landed — which ate clicks made mid-load.
   size-adjust makes the fallback match its metrics, so nothing moves. */
@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Times');
  size-adjust: 75%;
  line-gap-override: 0%;
}

/* roserocket.com is long enough to always show a scrollbar. Forcing the track
   here reserves the same width, so the nav doesn't jump when you navigate over
   to it — and it stays a no-op under overlay scrollbars, where neither page
   reserves anything. */
html {
  overflow-y: scroll;
}

.rr-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  /* A box-shadow hairline instead of a border: roserocket.com's nav has no
     border, and a border would eat 1px of the 72px box and shift the row. */
  box-shadow: 0 1px 0 var(--color-border);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  width: 100%;
}

.site-nav-brand {
  display: flex;
  align-items: center;
  flex: none;
  width: 187px;
}

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

.site-nav-logo img {
  /* Explicit box so the row is laid out before the SVG loads. */
  width: 152.372px;
  height: 28px;
  display: block;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav-link {
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgb(102, 102, 102);
  text-decoration: none;
  letter-spacing: -0.05em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.site-nav-link:hover {
  color: #181818;
}

.site-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-nav-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgb(85, 85, 85);
}

/* ---- Dropdown panel ---- */

.site-nav-dd {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Measured on roserocket.com: opacity 0 -> 1 over ~170ms, ease-out. No
     transform and no blur — the panel does not move as it fades.
     visibility is held until the fade finishes so the panel doesn't vanish
     mid-fade; pointer-events drops immediately, so it stops catching clicks. */
  transition: opacity 170ms ease-out, visibility 0s linear 170ms;
}

/* Hover bridge so the pointer can travel from the trigger into the panel. */
.site-nav-dd::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Keyboard focus opens the panel, but a *mouse* click must not pin it open —
   Chrome focuses the <a> on middle-click, which would leave the panel stuck
   open and overlapping its sibling. site-nav.js sets .is-focus-open only for
   real keyboard focus, and holds it across the blur/focus gap so Tab can reach
   the links inside. Without JS we fall back to plain :focus-within. */
.site-nav-item:hover .site-nav-dd,
.site-nav-item.is-focus-open .site-nav-dd,
.site-nav:not(.js-nav) .site-nav-item:focus-within .site-nav-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 170ms ease-out, visibility 0s linear 0s;
}

/* Never more than one panel at a time: the item under the pointer wins, so a
   lingering focused sibling can't overlay it and eat its clicks. */
.site-nav-links:hover .site-nav-item:not(:hover) .site-nav-dd {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* After a history restore (mouse back/forward), the browser repaints the panel
   in whatever state it was left in, but :hover is dead — so it looks open while
   being pointer-events: none, and the first mouse move silently collapses it,
   eating the click. Hold everything closed until the next real input, when the
   true cursor position is known and :hover resolves correctly. */
.site-nav.is-restoring .site-nav-item .site-nav-dd {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.site-nav-dd--solutions { width: 480px; }
.site-nav-dd--resources { width: 640px; }

.site-nav-dd__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-nav-dd__heading {
  font-family: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  color: rgb(118, 118, 118);
  /* Margin, not padding: RR's heading box is inset 16px, not full-bleed. */
  margin: 0 16px;
}

.site-nav-dd__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.site-nav-dd__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.site-nav-dd__item:hover {
  background: var(--color-bg-light);
  color: #9d8260;
}

.site-nav-dd__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgb(16, 16, 16);
}

.site-nav-dd__item:hover .site-nav-dd__icon {
  color: inherit;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.site-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.site-nav-btn--stroke {
  /* 11px + 1px border = the same 12px inset as the primary button. */
  padding: 8px 11px;
  border: 1px solid #e5e5e5;
  background: transparent;
  color: #000000;
}

.site-nav-btn--stroke:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.site-nav-btn--primary {
  border: 0;
  background: #194b44;
  color: #ffffff;
}

.site-nav-btn--primary:hover {
  background: #04332d;
}

@media (max-width: 1024px) {
  .site-nav-links { display: none; }
  .site-nav-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 16px 24px;
  }

  .site-nav-btn--stroke { display: none; }
}

/* ========== Base Layout ========== */

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  padding-top: 72px;
}

/* ========== Intro Screen — Split Pane ========== */

.page-wrapper {
  display: flex;
  height: calc(100vh - 72px);
  overflow: hidden;
}

.left-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 64px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.left-pane::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(98, 155, 146, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Rose Rocket Logo */
.logo { margin-bottom: 48px; display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: #1a1a1a;
}
.logo-wordmark .logo-tms,
.logo-wordmark .logo-dot,
.logo-wordmark .logo-ai {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.logo-wordmark .logo-tms,
.logo-wordmark .logo-ai {
  letter-spacing: -1px;
}
.logo-wordmark .logo-ai .logo-i {
  display: inline-block;
  position: relative;
}
.logo-wordmark .logo-ai .logo-i .robot-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 14px;
}

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-badge-bg);
  border: 1px solid var(--color-badge-border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-badge-text);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.quiz-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Per-word entrance, matching the roserocket.com/pricing hero: each word
   starts at opacity 0.001, blur(10px), translateY(10px) and resolves on a
   long-tailed ease-out, staggered 50ms apart. Values measured off the live
   page — 25% at +87ms, 50% at +173ms, 95% at +723ms. */
@keyframes rr-word-in {
  from {
    opacity: 0.001;
    filter: blur(10px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.left-heading .word {
  display: inline-block;
  opacity: 0.001;
  filter: blur(10px);
  transform: translateY(10px);
  animation: rr-word-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.left-heading .word:nth-child(1) { animation-delay: 0ms; }
.left-heading .word:nth-child(2) { animation-delay: 50ms; }
.left-heading .word:nth-child(3) { animation-delay: 100ms; }
.left-heading .word:nth-child(4) { animation-delay: 150ms; }
.left-heading .word:nth-child(5) { animation-delay: 200ms; }
.left-heading .word:nth-child(6) { animation-delay: 250ms; }
.left-heading .word:nth-child(7) { animation-delay: 300ms; }
.left-heading .word:nth-child(8) { animation-delay: 350ms; }

/* Set by the inline guard in <head> when this page-view already played the
   entrance — see the comment there. */
.no-intro-anim .left-heading .word {
  animation: none;
  opacity: 1;
  filter: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .left-heading .word {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.left-heading {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.1;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 20px;
  max-width: 520px;
  letter-spacing: -1px;
}

.left-subheading {
  font-size: 18px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 32px;
  max-width: 460px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: -0.2px;
}
.cta-button:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-button svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.cta-button:hover svg { transform: translateX(3px); }

.time-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}
.time-hint svg { width: 16px; height: 16px; color: var(--color-teal); flex-shrink: 0; }

/* Right Pane — Value Prop */
.right-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #d6eef8 0%, #e3f2fa 15%, #eaf5fb 30%, #f0f7fc 45%, #f5f9fd 60%, #fafcfe 80%, #ffffff 100%);
}

.right-pane::before {
  content: '';
  position: absolute;
  top: 40px; right: -60px;
  width: 360px; height: 120px;
  background: rgba(255,255,255,0.7);
  border-radius: 100px;
  filter: blur(30px);
  pointer-events: none;
}
.right-pane::after {
  content: '';
  position: absolute;
  top: 120px; left: -40px;
  width: 280px; height: 90px;
  background: rgba(255,255,255,0.5);
  border-radius: 100px;
  filter: blur(25px);
  pointer-events: none;
}

.cloud-accent {
  position: absolute;
  top: 200px; right: 80px;
  width: 200px; height: 70px;
  background: rgba(255,255,255,0.4);
  border-radius: 100px;
  filter: blur(20px);
  pointer-events: none;
}
.cloud-accent-2 {
  position: absolute;
  bottom: 100px; left: 40px;
  width: 260px; height: 80px;
  background: rgba(255,255,255,0.35);
  border-radius: 100px;
  filter: blur(22px);
  pointer-events: none;
}

.right-content { position: relative; z-index: 1; }

.right-headline {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 24px;
  max-width: 520px;
}
.right-headline .price-highlight {
  /* No 500 here: the display face has only 400, so a heavier weight is faked.
     The teal carries the emphasis on its own. */
  color: var(--color-teal);
}

/* Checkmark list */
.feature-list { list-style: none; margin-bottom: 32px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}
.feature-list li:last-child { margin-bottom: 0; }

.check-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.check-icon svg { width: 14px; height: 14px; color: #fff; }

/* Trust / Logo section */
.trust-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 24px;
}
.trust-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
  align-items: center;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}
.logo-item:hover { opacity: 1; filter: grayscale(0%); }
.logo-item img { max-height: 36px; max-width: 100%; object-fit: contain; }
.logo-item--lg { height: 56px; }
.logo-item--lg img { max-height: 52px; }
.logo-item--xl { height: 72px; }
.logo-item--xl img { max-height: 68px; }

/* ========== Quiz Flow Container ========== */

.quiz-container {
  width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}

/* ========== Screens ========== */

.screen {
  display: none;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  padding: var(--space-xl) 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.screen.slide-out-left {
  opacity: 0;
  transform: translateX(-30px);
}

.screen.slide-out-right {
  opacity: 0;
  transform: translateX(30px);
}

/* ========== Progress Bar ========== */

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-md);
  flex-shrink: 0;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  padding: var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-fast);
}

.btn-back:hover {
  color: var(--color-text);
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

.progress-count {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-progress-bg);
  border-radius: 2px;
  margin-bottom: var(--space-2xl);
  overflow: hidden;
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  background: var(--color-teal);
  border-radius: 2px;
  transition: width var(--transition-slow);
}

/* ========== Question Screen — Split Pane ========== */

.question-screen {
  flex-direction: row;
  padding: 0;
  min-height: calc(100vh - 72px);
}

.question-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 56px;
  max-width: 55%;
  overflow-y: auto;
}

.question-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
}

.question-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.question-text {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-normal);
  line-height: 1.3;
  margin-bottom: var(--space-2xl);
  color: var(--color-text);
}

.answer-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Two-column grid (e.g. the final 6-option question) — keeps all options
   plus the Continue button above the fold instead of one tall column. */
.answer-cards--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.answer-cards--2col .answer-card {
  height: 100%;
}

.answer-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: left;
  width: 100%;
  color: var(--color-text);
}

.answer-card:hover {
  border-color: var(--color-teal);
  background: var(--color-bg-card-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.answer-card.selected {
  border-color: var(--color-teal);
  background: var(--color-badge-bg);
}

.answer-content {
  flex: 1;
}

.answer-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

/* Only space the label off a description when one is actually rendered —
   otherwise the stray bottom margin pushes a lone label above center. */
.answer-label:not(:last-child) {
  margin-bottom: var(--space-xs);
}

.answer-description {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ========== Multi-Select (QF1) ========== */

.answer-card--multi {
  padding-left: var(--space-md);
}

.multi-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.multi-check svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.answer-card--multi.selected .multi-check {
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.answer-card--multi.selected .multi-check svg {
  opacity: 1;
}

.multi-select-hint {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.btn-continue {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-coral);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  padding: var(--space-md) var(--space-2xl);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  margin-top: var(--space-lg);
  transition: all 0.3s ease;
  min-height: 48px;
}

.btn-continue.visible {
  display: inline-flex;
}

.btn-continue:hover {
  background: var(--color-coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-continue svg {
  width: 18px;
  height: 18px;
}

/* ========== Lead Capture Screen ========== */

.lead-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg);
}

.lead-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
}

.lead-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-normal);
  line-height: 1.2;
  color: var(--color-text);
}

.lead-subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  max-width: 400px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 400px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

.form-field input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: var(--space-md);
  color: var(--color-text);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-teal);
}

.form-field input::placeholder {
  color: #aaa;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-coral);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  padding: var(--space-md) var(--space-2xl);
  border-radius: 100px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 52px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.lead-fine-print {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.form-error {
  color: #dc3545;
  font-size: var(--fs-sm);
  display: none;
}

.form-error.visible {
  display: block;
}

/* ========== Animations ========== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Opacity-only fade — no vertical travel, so content doesn't read as a
   skeleton loader reflowing into place. */
.animate-in {
  animation: fadeIn 550ms ease-out both;
}

/* Order is driven by role, not DOM position, so the question text always
   leads — then the multi-select hint, then the answer cards cascade in.
   (nth-child alone can't do this: the h2 and the cards live in different
   parents, which let the cards animate before the question.) */
.question-text.animate-in     { animation-delay: 0ms; }
.multi-select-hint.animate-in { animation-delay: 90ms; }
.answer-cards .animate-in:nth-child(1) { animation-delay: 180ms; }
.answer-cards .animate-in:nth-child(2) { animation-delay: 260ms; }
.answer-cards .animate-in:nth-child(3) { animation-delay: 340ms; }
.answer-cards .animate-in:nth-child(4) { animation-delay: 420ms; }
.answer-cards .animate-in:nth-child(5) { animation-delay: 500ms; }
.answer-cards .animate-in:nth-child(6) { animation-delay: 580ms; }

/* ========== Desktop scale-up ========== */

@media (min-width: 768px) {
  .btn-primary {
    font-size: var(--fs-lg);
    padding: var(--space-md) var(--space-3xl);
    min-height: 56px;
  }

  .question-text {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-2xl);
  }

  .answer-card {
    padding: var(--space-lg) var(--space-xl);
  }

  .answer-label {
    font-size: var(--fs-lg);
  }

  .answer-description {
    font-size: var(--fs-base);
  }

  .answer-cards {
    gap: var(--space-lg);
  }

  .progress-count {
    font-size: var(--fs-base);
  }

  .btn-back {
    font-size: var(--fs-base);
  }

  .progress-bar {
    height: 6px;
  }

  .lead-screen {
    gap: var(--space-md);
  }

  .lead-title {
    font-size: var(--fs-3xl);
  }

  .lead-subtitle {
    font-size: var(--fs-base);
    max-width: 480px;
  }

  .lead-form {
    max-width: 480px;
    gap: var(--space-md);
  }

  .form-field input {
    padding: 0.875rem var(--space-md);
    font-size: var(--fs-base);
  }

  .form-field label {
    font-size: var(--fs-sm);
  }

  .lead-icon {
    width: 52px;
    height: 52px;
    font-size: var(--fs-2xl);
  }
}

/* ========== Desktop question — fit to viewport height ========== */

@media (min-width: 1025px) {
  .question-screen {
    height: calc(100vh - 72px);
  }
  .question-right {
    height: calc(100vh - 72px);
    min-height: unset;
  }
  .question-left {
    height: calc(100vh - 72px);
    padding: clamp(1.5rem, 4vh, 3rem) clamp(2rem, 4vw, 3.5rem);
  }
  .progress-header {
    margin-bottom: clamp(0.75rem, 2vh, 3rem);
  }
  .progress-bar {
    margin-bottom: clamp(1rem, 3vh, 3rem);
  }
  .question-text {
    font-size: clamp(1.5rem, 3.5vh, 2.5rem);
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
  }
  .answer-cards {
    gap: clamp(0.4rem, 0.9vh, 1rem);
  }
  .answer-card {
    padding: clamp(0.5rem, 1.1vh, 1rem) clamp(1rem, 2vw, 1.75rem);
  }
  /* Single-column options get slightly more row height than the 2-col grid,
     which already looks balanced. */
  .answer-cards:not(.answer-cards--2col) .answer-card {
    padding-top: clamp(0.7rem, 1.5vh, 1.25rem);
    padding-bottom: clamp(0.7rem, 1.5vh, 1.25rem);
  }
}

/* ========== Responsive — Tablet ========== */

@media (max-width: 1024px) {
  /* Intro */
  .page-wrapper { flex-direction: column; height: auto; min-height: calc(100vh - 72px); overflow: visible; }
  .left-pane { padding: 36px 32px; }
  /* Per-word entrance, matching the roserocket.com/pricing hero: each word
   starts at opacity 0.001, blur(10px), translateY(10px) and resolves on a
   long-tailed ease-out, staggered 50ms apart. Values measured off the live
   page — 25% at +87ms, 50% at +173ms, 95% at +723ms. */
@keyframes rr-word-in {
  from {
    opacity: 0.001;
    filter: blur(10px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.left-heading .word {
  display: inline-block;
  opacity: 0.001;
  filter: blur(10px);
  transform: translateY(10px);
  animation: rr-word-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.left-heading .word:nth-child(1) { animation-delay: 0ms; }
.left-heading .word:nth-child(2) { animation-delay: 50ms; }
.left-heading .word:nth-child(3) { animation-delay: 100ms; }
.left-heading .word:nth-child(4) { animation-delay: 150ms; }
.left-heading .word:nth-child(5) { animation-delay: 200ms; }
.left-heading .word:nth-child(6) { animation-delay: 250ms; }
.left-heading .word:nth-child(7) { animation-delay: 300ms; }
.left-heading .word:nth-child(8) { animation-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .left-heading .word {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.left-heading { font-size: 40px; }
  .right-pane { padding: 36px 32px; }
  .right-headline { font-size: 22px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }

  /* Questions — stack, hide hero */
  .question-screen { flex-direction: column; }
  .question-left {
    max-width: 100%;
    padding: 32px 32px;
  }
  .question-right { display: none; }
}

@media (max-width: 640px) {
  .left-pane { padding: 36px 24px; }
  /* Per-word entrance, matching the roserocket.com/pricing hero: each word
   starts at opacity 0.001, blur(10px), translateY(10px) and resolves on a
   long-tailed ease-out, staggered 50ms apart. Values measured off the live
   page — 25% at +87ms, 50% at +173ms, 95% at +723ms. */
@keyframes rr-word-in {
  from {
    opacity: 0.001;
    filter: blur(10px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.left-heading .word {
  display: inline-block;
  opacity: 0.001;
  filter: blur(10px);
  transform: translateY(10px);
  animation: rr-word-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.left-heading .word:nth-child(1) { animation-delay: 0ms; }
.left-heading .word:nth-child(2) { animation-delay: 50ms; }
.left-heading .word:nth-child(3) { animation-delay: 100ms; }
.left-heading .word:nth-child(4) { animation-delay: 150ms; }
.left-heading .word:nth-child(5) { animation-delay: 200ms; }
.left-heading .word:nth-child(6) { animation-delay: 250ms; }
.left-heading .word:nth-child(7) { animation-delay: 300ms; }
.left-heading .word:nth-child(8) { animation-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .left-heading .word {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.left-heading { font-size: 32px; }
  .right-pane { padding: 36px 24px; }
  .right-headline { font-size: 20px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }

  .question-left { padding: 24px; }

  /* Two-column option grid is too cramped on phones — stack it. */
  .answer-cards--2col { grid-template-columns: 1fr; }

  /* ...unless the labels are short (e.g. QA2's numeric ranges), where stacking
     10 options makes a ~700px list. Staying 2-up halves that. */
  .answer-cards--2col.answer-cards--compact { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Mobile compact ========== */

@media (max-width: 480px) {
  .question-text {
    font-size: var(--fs-xl);
  }

  .lead-title {
    font-size: var(--fs-2xl);
  }

  .answer-card {
    padding: var(--space-md);
  }

  .question-left { padding: 20px 16px; }
}
