/* ============================================
   BESTNOTES GUIDE — Dark Hero + How It Works
   Mirrors hero-main.css patterns, scoped to
   bestnotes-guide__ namespace
   ============================================ */

/* ---- Hero Section ---- */
.bestnotes-guide__hero {
  position: relative;
  min-height: 200vh;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0 var(--spacing-xl);
  padding-top: calc(var(--navbar-height) + var(--spacing-3xl));
  color: #FFFFFF;
  overflow: hidden;
}

/* --- Background image layer --- */
.bestnotes-guide__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0F172A;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for text readability */
.bestnotes-guide__hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.3) 0%,
    rgba(15, 23, 42, 0.5) 60%,
    rgba(15, 23, 42, 0.8) 100%
  );
}

/* Noise grain */
.bestnotes-guide__hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.18;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' type='fractalNoise' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Diagonal-line pattern overlay */
.bestnotes-guide__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 28px
    );
}

/* --- Content wrapper (above bg) --- */
.bestnotes-guide__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--spacing-3xl);
}

/* --- Headline --- */
.bestnotes-guide__hero-headline {
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-xl);
  max-width: 900px;
  color: #FFFFFF;
}

/* --- Divider --- */
.bestnotes-guide__hero-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: var(--spacing-xl);
}

/* --- Body: label left, copy right --- */
.bestnotes-guide__hero-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  align-items: start;
  margin-bottom: var(--spacing-3xl);
}

.bestnotes-guide__hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4px;
}

.bestnotes-guide__hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.bestnotes-guide__hero-desc {
  font-size: 1.375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

/* --- CTA buttons --- */
.bestnotes-guide__hero-actions {
  display: flex;
  gap: var(--spacing-md);
}

.bestnotes-guide__hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-family-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.bestnotes-guide__hero-btn--primary {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #FFFFFF;
}

.bestnotes-guide__hero-btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.bestnotes-guide__hero-btn--secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.bestnotes-guide__hero-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Walkthrough video (overlaps hero bottom) --- */
.bestnotes-guide__hero-video {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: -100px auto 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
  background: #F9FAFB;
  transform: scale(var(--bn-hero-video-scale, 0.85));
  transform-origin: center top;
  will-change: transform;
}

.bestnotes-guide__hero-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- How It Works Section ---- */
.bestnotes-guide__how-it-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
  padding: var(--spacing-2xl) 0;
  margin-bottom: var(--spacing-2xl);
}

.bestnotes-guide__steps-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  border: 1px solid var(--color-border);
}

.bestnotes-guide__steps-card h2 {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

.bestnotes-guide__steps-card > p {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
}

.bestnotes-guide__steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bestnotes-guide__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.bestnotes-guide__step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: var(--color-text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.375rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bestnotes-guide__step h4 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
}

.bestnotes-guide__step p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Benefits column */
.bestnotes-guide__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.bestnotes-guide__benefit-card {
  padding: var(--spacing-2xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-left: 4px solid #3B82F6;
}

.bestnotes-guide__benefit-card h3 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.bestnotes-guide__benefit-card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---- Responsive (768px) ---- */
@media (max-width: 768px) {
  .bestnotes-guide__hero {
    padding: 0 var(--spacing-md);
    min-height: 100vh;
    padding-top: calc(56px + var(--spacing-2xl));
  }

  .bestnotes-guide__hero-headline {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: var(--spacing-lg);
  }

  .bestnotes-guide__hero-body {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
  }

  .bestnotes-guide__hero-label {
    font-size: 0.75rem;
  }

  .bestnotes-guide__hero-desc {
    font-size: 1rem;
  }

  .bestnotes-guide__hero-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .bestnotes-guide__hero-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .bestnotes-guide__hero-video {
    border-radius: 12px 12px 0 0;
    margin-top: -40px;
  }

  .bestnotes-guide__hero-divider {
    margin-bottom: var(--spacing-lg);
  }

  .bestnotes-guide__how-it-works {
    grid-template-columns: 1fr;
  }

  .bestnotes-guide__steps-card {
    padding: var(--spacing-lg);
  }

  .bestnotes-guide__steps-card > p {
    font-size: 1rem;
  }

  .bestnotes-guide__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .bestnotes-guide__step h4 {
    font-size: 1.125rem;
  }

  .bestnotes-guide__step p {
    font-size: 0.9375rem;
  }

  .bestnotes-guide__benefit-card {
    padding: var(--spacing-lg);
  }

  .bestnotes-guide__benefit-card h3 {
    font-size: 1.25rem;
  }

  .bestnotes-guide__benefit-card p {
    font-size: 0.9375rem;
  }
}

/* ---- Tablet (769px-1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .bestnotes-guide__hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .bestnotes-guide__hero-body {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
  }

  .bestnotes-guide__hero-video {
    margin-top: -60px;
  }

  .bestnotes-guide__how-it-works {
    gap: var(--spacing-xl);
  }

  .bestnotes-guide__steps-card {
    padding: var(--spacing-xl);
  }

  .bestnotes-guide__benefit-card {
    padding: var(--spacing-xl);
  }
}
