/* ================================================
   VIDEO PATHWAY ENGINE v2 — Blue Tie Productions
   Brand: Deep navy, gold accent, premium dark mode
   Be Bold. Be Seen.
   ================================================ */

/* --- Design Tokens --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Blue Tie Brand Colors */
  --color-bg:           #0d1117;
  --color-surface:      #131825;
  --color-surface-2:    #1a1f3a;
  --color-surface-3:    #212745;
  --color-border:       rgba(200, 162, 67, 0.15);
  --color-border-strong: rgba(200, 162, 67, 0.3);
  --color-divider:      rgba(255, 255, 255, 0.06);

  /* TEXT COLORS — v2: bright white for readability */
  --color-text:         #f0f0f0;
  --color-text-muted:   #e0e0e0;
  --color-text-faint:   #a0a8b8;

  --color-gold:         #c8a243;
  --color-gold-light:   #dfc06a;
  --color-gold-dim:     #a88832;
  --color-navy:         #1a1f3a;
  --color-navy-deep:    #0d1117;
  --color-teal:         #2ba5b8;
  --color-teal-dim:     #1e7a8a;
  --color-red:          #d93b3b;

  /* Accent semantic */
  --color-primary:      var(--color-gold);
  --color-primary-hover: var(--color-gold-light);
  --color-accent:       var(--color-teal);
  --color-accent-hover: #36c4da;

  /* Badge colors */
  --color-attention:    #c8a243;
  --color-conversion:   #2ba5b8;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 30px rgba(200, 162, 67, 0.15);
  --shadow-teal: 0 0 30px rgba(43, 165, 184, 0.15);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 900px;
  --content-wide: 1100px;
}


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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(200, 162, 67, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; }

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* --- Background Noise Texture --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}


/* --- Screen System --- */
#app {
  position: relative;
  min-height: 100dvh;
}

.screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.screen--results {
  align-items: flex-start;
}

.screen__inner {
  width: 100%;
  max-width: var(--content-default);
  padding: var(--space-8) var(--space-6);
  position: relative;
  z-index: 2;
}

.screen__inner--results {
  max-width: var(--content-wide);
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}


/* --- Welcome Screen --- */
.welcome__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.logo-img {
  width: auto;
  height: 140px;
  max-width: 280px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(200, 162, 67, 0.2));
  animation: logoPulse 4s ease-in-out infinite;
  mix-blend-mode: lighten;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(200, 162, 67, 0.2)); }
  50% { filter: drop-shadow(0 0 35px rgba(200, 162, 67, 0.35)); }
}

.welcome__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.welcome__headline em {
  font-style: italic;
  color: var(--color-gold);
}

.welcome__sub {
  font-size: var(--text-lg);
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.screen--welcome .screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.welcome__footer-text {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-8);
}

.welcome__footer-text strong {
  color: var(--color-text-muted);
}

/* Ambient glow */
.ambient-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200, 162, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-interactive);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dim));
  color: #0d1117;
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(200, 162, 67, 0.3);
}

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

.btn--large {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  padding: var(--space-3) var(--space-6);
}

.btn--outline:hover {
  color: var(--color-text);
  border-color: var(--color-gold);
  background: rgba(200, 162, 67, 0.05);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-6);
}

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

.btn--secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-interactive);
}

.btn--secondary-outline:hover {
  color: var(--color-text);
  border-color: var(--color-gold);
  background: rgba(200, 162, 67, 0.05);
}


/* --- Progress Bar --- */
.progress-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  width: 100%;
  max-width: 400px;
}

.progress-bar__track {
  flex: 1;
  height: 4px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dim), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 0.5s var(--ease-out);
}

.progress-bar__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  white-space: nowrap;
}


/* --- Question Screens --- */
.screen--question .screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question__overline {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.question__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-10);
  max-width: 700px;
}


/* --- Option Cards --- */
.options {
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 700px;
}

.options--two {
  grid-template-columns: 1fr 1fr;
}

.options--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.options--grid {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 800px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.option-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.option-card:hover::before {
  opacity: 1;
}

.option-card:active {
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: var(--color-gold);
  background: rgba(200, 162, 67, 0.08);
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-gold);
}

.option-card.selected::before {
  opacity: 1;
}

.option-card--compact {
  padding: var(--space-5) var(--space-4);
}

.option-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.option-card__icon--sm {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-3);
}

.option-card__icon svg {
  width: 100%;
  height: 100%;
}

.option-card__temp {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.option-card__temp--cold {
  color: #6eb1e0;
  background: rgba(110, 177, 224, 0.1);
}

.option-card__temp--aware {
  color: var(--color-gold);
  background: rgba(200, 162, 67, 0.1);
}

.option-card__temp--warm {
  color: #e07040;
  background: rgba(224, 112, 64, 0.1);
}

.option-card__temp svg {
  width: 100%;
  height: 100%;
}

.option-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.option-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* --- Results Screen --- */
.results__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.results__overline {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.results__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.pathway-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pathway-badge--attention {
  background: rgba(200, 162, 67, 0.12);
  color: var(--color-gold-light);
  border: 1px solid rgba(200, 162, 67, 0.3);
}

.pathway-badge--conversion {
  background: rgba(43, 165, 184, 0.12);
  color: var(--color-teal);
  border: 1px solid rgba(43, 165, 184, 0.3);
}

.pathway-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  animation: dotPulse 2s ease-in-out infinite;
}

.pathway-badge--attention .pathway-badge__dot { background: var(--color-gold); }
.pathway-badge--conversion .pathway-badge__dot { background: var(--color-teal); }

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}


/* --- Recommendation Card (Primary) --- */
.rec-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.rec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.rec-card--attention::before {
  background: linear-gradient(90deg, var(--color-gold-dim), var(--color-gold), var(--color-gold-dim));
}

.rec-card--conversion::before {
  background: linear-gradient(90deg, var(--color-teal-dim), var(--color-teal), var(--color-teal-dim));
}

.rec-card--primary {
  border-color: var(--color-border-strong);
}

.rec-card__badge {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.rec-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.rec-card--attention .rec-card__name { color: var(--color-gold-light); }
.rec-card--conversion .rec-card__name { color: var(--color-teal); }

/* Reasoning list */
.rec-card__reasoning {
  margin-bottom: var(--space-8);
}

.rec-card__reasoning h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.reasoning-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.reasoning-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.reasoning-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

.rec-card--attention .reasoning-list li::before { background: var(--color-gold); }
.rec-card--conversion .reasoning-list li::before { background: var(--color-teal); }


/* Beat Structure */
.beat-structure {
  margin-bottom: var(--space-6);
}

.beat-structure h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.beats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: stretch;
}

.beat {
  flex: 1;
  min-width: 100px;
  padding: var(--space-4);
  text-align: center;
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}

.beat:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.beat:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.beat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.rec-card--attention .beat__number {
  background: rgba(200, 162, 67, 0.15);
  color: var(--color-gold);
}

.rec-card--conversion .beat__number {
  background: rgba(43, 165, 184, 0.15);
  color: var(--color-teal);
}

.beat__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--color-text);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.beat__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Hook approach label */
.hook-approach {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid;
}

.rec-card--attention .hook-approach {
  border-left-color: var(--color-gold);
}

.rec-card--conversion .hook-approach {
  border-left-color: var(--color-teal);
}

.hook-approach strong {
  color: var(--color-text);
}


/* --- Secondary Recommendations --- */
.secondary-recs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.rec-card--secondary {
  padding: var(--space-6);
}

.rec-card--secondary .rec-card__name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}


/* --- Deployment Section --- */
.deployment-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.deployment-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

.deploy-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.deploy-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-teal);
  margin-top: 2px;
}

.deploy-item__icon svg {
  width: 100%;
  height: 100%;
}

.deploy-item__text h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.deploy-item__text p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* --- Investment Section --- */
.investment-section {
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.investment-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.investment-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.investment-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.investment-pkg {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.investment-pkg--primary {
  background: rgba(200, 162, 67, 0.06);
  border-color: var(--color-border-strong);
}

.investment-pkg--alt {
  background: var(--color-surface-2);
}

.investment-pkg__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.investment-pkg--primary .investment-pkg__label {
  color: var(--color-gold);
}

.investment-pkg--alt .investment-pkg__label {
  color: var(--color-text-faint);
}

.investment-pkg__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.investment-pkg--alt .investment-pkg__name {
  color: var(--color-text);
}

.investment-pkg__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.investment__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}


/* --- Watch Before You Book Section --- */
.watch-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.watch-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.watch-section > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.watch-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.watch-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-interactive);
}

.watch-link:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-3);
  transform: translateX(4px);
}

.watch-link__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 0, 0.1);
  border-radius: var(--radius-md);
  color: #ff4444;
}

.watch-link__icon svg {
  width: 20px;
  height: 20px;
}

.watch-link__text {
  flex: 1;
}

.watch-link__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 2px;
}

.watch-link__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.watch-link__arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

.watch-link__arrow svg {
  width: 100%;
  height: 100%;
}


/* --- CTA Section --- */
.results__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(200, 162, 67, 0.06), rgba(43, 165, 184, 0.04));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  max-width: 650px;
  width: 100%;
}

.cta-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.cta-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}


/* --- Section headings in results --- */
.results-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}


/* --- Footer --- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: var(--space-3);
  z-index: 5;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  pointer-events: none;
}

.site-footer a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  pointer-events: auto;
  transition: color var(--transition-interactive);
}

.site-footer a:hover {
  color: var(--color-text-muted);
}


/* --- Entrance Animations for Questions --- */
.screen.active .question__overline,
.screen.active .question__title,
.screen.active .options {
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

.screen.active .question__overline { animation-delay: 0.05s; }
.screen.active .question__title { animation-delay: 0.12s; }
.screen.active .options { animation-delay: 0.22s; }

.screen.active .question__overline,
.screen.active .question__title,
.screen.active .options {
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --- Results Entrance Animations --- */
.screen--results.active .results__header,
.screen--results.active .rec-card,
.screen--results.active .secondary-recs,
.screen--results.active .deployment-section,
.screen--results.active .investment-section,
.screen--results.active .watch-section,
.screen--results.active .results__cta-section {
  animation: fadeUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.screen--results.active .results__header { animation-delay: 0.1s; }
.screen--results.active .rec-card--primary { animation-delay: 0.2s; }
.screen--results.active .results-section-title:first-of-type { animation-delay: 0.3s; }
.screen--results.active .secondary-recs { animation-delay: 0.35s; }
.screen--results.active .deployment-section { animation-delay: 0.45s; }
.screen--results.active .investment-section { animation-delay: 0.55s; }
.screen--results.active .watch-section { animation-delay: 0.65s; }
.screen--results.active .results__cta-section { animation-delay: 0.75s; }


/* --- Welcome entrance --- */
.screen--welcome.active .welcome__logo,
.screen--welcome.active .welcome__headline,
.screen--welcome.active .welcome__sub,
.screen--welcome.active .btn--primary,
.screen--welcome.active .welcome__footer-text {
  animation: fadeUp 0.7s var(--ease-out) forwards;
  opacity: 0;
}

.screen--welcome.active .welcome__logo { animation-delay: 0.1s; }
.screen--welcome.active .welcome__headline { animation-delay: 0.25s; }
.screen--welcome.active .welcome__sub { animation-delay: 0.4s; }
.screen--welcome.active .btn--primary { animation-delay: 0.55s; }
.screen--welcome.active .welcome__footer-text { animation-delay: 0.7s; }


/* --- Responsive --- */
@media (max-width: 768px) {
  .options--two,
  .options--three {
    grid-template-columns: 1fr;
  }

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

  .option-card {
    padding: var(--space-6) var(--space-4);
  }

  .option-card--compact {
    padding: var(--space-4) var(--space-3);
  }

  .screen__inner {
    padding: var(--space-6) var(--space-4);
  }

  .screen__inner--results {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }

  .rec-card {
    padding: var(--space-6);
  }

  .beats {
    flex-direction: column;
  }

  .beat:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .beat:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .secondary-recs {
    grid-template-columns: 1fr;
  }

  .investment-packages {
    grid-template-columns: 1fr;
  }

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

  .question__title {
    font-size: var(--text-xl);
  }

  .welcome__headline {
    font-size: var(--text-2xl);
  }

  .results__title {
    font-size: var(--text-2xl);
  }

  .logo-img {
    height: 100px;
    max-width: 200px;
  }
}

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

  .cta-card {
    padding: var(--space-6) var(--space-4);
  }

  .cta-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--large {
    justify-content: center;
  }
}


/* --- Scrollbar styling --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-faint);
}
