/* =============================================================
   MarGen AI Visibility Scorecard — Stylesheet
   Brand: dark bg (#252525), gold accent (#f5c91c), Oswald font
   ============================================================= */

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: #fefefe;
  background-color: #252525;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #f5c91c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fefefe;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }


/* ----- HEADER ----- */
.site-header {
  background: #252525;
  border-bottom: 1px solid #333;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fefefe;
  letter-spacing: 0.05em;
}

.logo-accent {
  color: #f5c91c;
}


/* ----- VIEW MANAGEMENT ----- */
.view {
  display: none;
  min-height: calc(100vh - 60px);
}

.view.active {
  display: block;
}


/* ----- BUTTONS ----- */
.btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border: 2px dotted #f5c91c;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-primary {
  background: #f5c91c;
  color: #252525;
  border-color: #f5c91c;
}

.btn-primary:hover:not(:disabled) {
  background: #fefefe;
  color: #252525;
  border-color: #fefefe;
}

.btn-secondary {
  background: transparent;
  color: #f5c91c;
  border-color: #555;
}

.btn-secondary:hover:not(:disabled) {
  background: #333;
  border-color: #f5c91c;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}


/* ----- HOMEPAGE ----- */
.home-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.home-hero {
  text-align: center;
  padding: 80px 0 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f5c91c;
  margin-bottom: 20px;
}

.home-headline {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fefefe;
}

.home-subheadline {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: #bbb;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 36px;
  text-transform: none;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 18px 44px;
}

.trust-line {
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 300;
  color: #666;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Shared homepage section spacing */
.home-section {
  padding: 72px 0;
  border-top: 1px solid #333;
}

.home-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #f5c91c;
}

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.problem-card {
  background: #1a1a1a;
  border: 2px solid #333;
  padding: 32px 24px;
  transition: border-color 0.2s ease;
}

.problem-card:hover {
  border-color: #f5c91c;
}

.problem-icon {
  margin-bottom: 16px;
}

.problem-card h3 {
  color: #fefefe;
  margin-bottom: 12px;
}

.problem-card p {
  font-weight: 300;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.55;
  text-transform: none;
}

/* Audience section */
.home-audience-sub {
  text-align: center;
  font-weight: 300;
  font-size: 1.05rem;
  color: #bbb;
  max-width: 640px;
  margin: -20px auto 36px;
  text-transform: none;
  line-height: 1.5;
}

.audience-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.audience-list li {
  padding: 14px 0;
  font-weight: 400;
  font-size: 1rem;
  color: #ddd;
  border-bottom: 1px solid #333;
  text-transform: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.audience-list li:last-child {
  border-bottom: none;
}

.check {
  color: #f5c91c;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Reveals list */
.reveals-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  counter-reset: none;
}

.reveals-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  font-weight: 400;
  font-size: 1rem;
  color: #ddd;
  border-bottom: 1px solid #333;
  text-transform: none;
  line-height: 1.45;
}

.reveals-list li:last-child {
  border-bottom: none;
}

.reveals-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #f5c91c;
  color: #252525;
  font-weight: 700;
  font-size: 1rem;
}

/* Final CTA block */
.home-final-cta {
  background: #1a1a1a;
  text-align: center;
}

.home-final-cta-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.home-final-sub {
  font-weight: 300;
  font-size: 1.05rem;
  color: #bbb;
  max-width: 620px;
  margin: -20px auto 36px;
  text-transform: none;
  line-height: 1.55;
}


/* ----- SCORECARD ----- */
.scorecard-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Progress bar */
.progress-bar-wrapper {
  margin-bottom: 40px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: #f5c91c;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 300;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Question step */
.question-step {
  display: none;
  animation: fadeSlideIn 0.35s ease forwards;
}

.question-step.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

/* Answer cards */
.answers-grid {
  display: grid;
  gap: 12px;
}

.answer-card {
  background: #1a1a1a;
  border: 2px solid #333;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.4;
  text-align: left;
  user-select: none;
}

.answer-card:hover {
  border-color: #f5c91c;
  color: #fefefe;
  background: #2a2a2a;
}

.answer-card.selected {
  border-color: #f5c91c;
  background: #f5c91c;
  color: #252525;
  font-weight: 600;
}

/* Navigation */
.scorecard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
}


/* ----- LEAD CAPTURE GATE ----- */
.gate-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 40px 24px;
}

.gate-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.gate-headline {
  margin-bottom: 16px;
  color: #f5c91c;
}

.gate-subheadline {
  font-size: 1.05rem;
  font-weight: 300;
  color: #bbb;
  margin-bottom: 36px;
  line-height: 1.5;
  text-transform: none;
}

.gate-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fefefe;
  background: #1a1a1a;
  border: 2px solid #333;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder {
  color: #555;
}

.form-group input:focus {
  border-color: #f5c91c;
}

.form-group input.error {
  border-color: #e74c3c;
}

.gate-disclaimer {
  margin-top: 20px;
  font-size: 0.8rem;
  font-weight: 300;
  color: #666;
  text-transform: none;
}


/* ----- RESULTS PAGE ----- */
.results-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.results-section {
  margin-top: 64px;
}

.results-section h2 {
  margin-bottom: 20px;
  color: #f5c91c;
}

/* Score reveal */
.results-hero {
  text-align: center;
  padding: 40px 0 20px;
}

.results-greeting {
  font-size: 1.1rem;
  font-weight: 300;
  color: #888;
  margin-bottom: 24px;
  text-transform: none;
}

.score-reveal {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 24px;
}

.score-number {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: #f5c91c;
}

.score-denominator {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 300;
  color: #555;
  margin-left: 8px;
}

/* Tier badge */
.tier-badge {
  display: inline-block;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.tier-badge.tier-critical {
  background: #c0392b;
  color: #fefefe;
}

.tier-badge.tier-falling-behind {
  background: #e67e22;
  color: #252525;
}

.tier-badge.tier-at-risk {
  background: #d4a017;
  color: #252525;
}

.tier-summary {
  font-size: 1.05rem;
  font-weight: 300;
  color: #bbb;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
  text-transform: none;
}

/* Insight bullets */
.insights-list {
  list-style: none;
  padding: 0;
}

.insights-list li {
  position: relative;
  padding: 16px 20px 16px 48px;
  margin-bottom: 12px;
  background: #1a1a1a;
  border-left: 3px solid #f5c91c;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
  text-transform: none;
}

.insights-list li::before {
  content: '⚡';
  position: absolute;
  left: 16px;
  top: 16px;
}

/* VSL video */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #111;
  margin-top: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 3-step process */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.step-card {
  background: #1a1a1a;
  border: 2px solid #333;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: #f5c91c;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f5c91c;
  color: #252525;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 10px;
  color: #fefefe;
}

.step-card p {
  font-weight: 300;
  font-size: 0.95rem;
  color: #aaa;
  text-transform: none;
  line-height: 1.5;
}

/* Booking section */
.booking-subheadline {
  font-weight: 300;
  font-size: 1.05rem;
  color: #bbb;
  margin-bottom: 28px;
  text-transform: none;
}

.hubspot-embed-wrapper {
  background: #1a1a1a;
  border: 2px dotted #333;
  padding: 40px 20px;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hubspot-embed-wrapper .meetings-iframe-container {
  width: 100%;
  min-height: 660px;
}

.hubspot-embed-wrapper iframe {
  width: 100% !important;
  min-height: 660px !important;
}

.hubspot-placeholder {
  text-align: center;
  color: #555;
  font-weight: 300;
  font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 40px 0;
  font-weight: 300;
  color: #888;
  text-transform: none;
}


/* ----- RESPONSIVE ----- */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  /* Homepage */
  .home-hero {
    padding: 48px 0 56px;
  }

  .home-section {
    padding: 48px 0;
  }

  .home-inner {
    padding: 0 16px;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 16px 28px;
    width: 100%;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  /* Scorecard */
  .scorecard-container,
  .results-container {
    padding: 24px 16px 60px;
  }

  .scorecard-nav {
    flex-direction: column-reverse;
  }

  .scorecard-nav .btn {
    width: 100%;
    text-align: center;
  }

  .answer-card {
    padding: 16px;
    font-size: 0.95rem;
  }

  .gate-container {
    padding: 24px 16px;
    align-items: flex-start;
    padding-top: 60px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .results-hero {
    padding-top: 20px;
  }
}
