/* Guide Page — editorial, fashion-inspired, light */

.guide-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.guide-container--narrow {
  max-width: 580px;
}

/* ============ Hero ============ */

.guide-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--color-border);
}

.guide-hero__banner {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 40px;
}

.guide-hero__banner-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .guide-hero__banner {
    max-height: 260px;
    margin-bottom: 28px;
  }
}

.guide-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.guide-hero__headline {
  font-family: var(--font-titles);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.guide-hero__subhead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 20px;
}

.guide-hero__trust {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.guide-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.guide-hero__anchor {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.guide-hero__anchor:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ============ Sections (shared) ============ */

.guide-sections {
  padding-bottom: 80px;
}

.guide-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--color-border);
}

.guide-section__title {
  font-family: var(--font-titles);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.guide-section__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.guide-section__body p { margin-bottom: 1em; }
.guide-section__body p:last-child { margin-bottom: 0; }
.guide-section__body ul, .guide-section__body ol { padding-left: 1.4em; margin-bottom: 1em; }
.guide-section__body li { margin-bottom: 0.4em; }
.guide-section__body strong { color: var(--color-text); font-weight: 600; }

.guide-section__cta {
  margin-top: 32px;
}

/* ============ Quote block ============ */

.guide-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--color-text);
  border-left: 3px solid var(--color-text);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
}

.guide-quote--featured {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  border-left: none;
  text-align: center;
  padding: 0;
  margin: 40px 0;
  color: var(--color-text-secondary);
}

/* ============ CTA links ============ */

.guide-cta-btn {
  display: inline-block;
}

.guide-cta-link {
  display: inline-block;
  font-size: 0.925rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.guide-cta-link:hover {
  opacity: 0.6;
}

/* ============ Mid-page CTA block ============ */

.guide-section--mid-cta {
  background: var(--color-card);
  padding: 72px 0;
}

.guide-mid-cta__headline {
  font-family: var(--font-titles);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.guide-mid-cta__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.guide-mid-cta__body ul { padding-left: 1.4em; }
.guide-mid-cta__body li { margin-bottom: 0.5em; }

/* ============ Contextual CTA ============ */

.guide-section--contextual-cta {
  padding: 48px 0;
}

.guide-contextual-cta__copy {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-contextual-cta__copy p { margin-bottom: 0.5em; }

/* ============ Checklist ============ */

.guide-section--checklist {
  padding: 72px 0;
}

.guide-checklist-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.guide-checklist__title {
  font-family: var(--font-titles);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 28px;
  line-height: 1.2;
}

.guide-checklist__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.guide-checklist__item:last-child {
  border-bottom: none;
}

.guide-checklist__check {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ============ Close section ============ */

.guide-section--close {
  padding: 80px 0 40px;
  border-bottom: none;
  text-align: center;
}

.guide-close__title {
  font-family: var(--font-titles);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.guide-close__cta {
  margin-top: 40px;
}

.guide-close__subtext {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ============ Sticky mobile CTA ============ */

.guide-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 14px var(--spacing-lg);
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.guide-sticky-cta__link {
  display: block;
  text-align: center;
  background: var(--color-text);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .guide-sticky-cta {
    display: block;
  }

  .guide-hero {
    padding: 48px 0 56px;
  }

  .guide-section {
    padding: 48px 0;
  }

  .guide-checklist-card {
    padding: 32px 24px;
  }

  .guide-section--close {
    padding: 60px 0 100px; /* extra bottom padding for sticky bar */
  }
}

/* Auth gate */
/* Auth gate wrapper — holds blurred preview + gate card */
.guide-gate-wrapper {
  position: relative;
}

/* Blurred preview of locked content */
.guide-gate-preview {
  max-height: 300px;
  overflow: hidden;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 10%, transparent 90%);
}

/* Gate card container — overlaps preview via negative margin */
.guide-auth-gate {
  position: relative;
  margin-top: -80px;
  padding-bottom: 64px;
  z-index: 1;
}

.guide-auth-gate__fade {
  height: 80px;
  margin-bottom: -1px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.guide-auth-gate__card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  animation: guide-gate-appear 0.5s ease 0.8s both;
}

@keyframes guide-gate-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-auth-gate__heading {
  font-family: var(--font-titles);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.guide-auth-gate__sub {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.guide-auth-gate__btn {
  width: 100%;
  margin-bottom: 16px;
}

.guide-auth-gate__signin {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================================
   Landing (.kx) dark theme — ENG-478
   Re-skins the guide page in the landing identity: black canvas,
   bold Inter display type, blue accent. Re-points the design tokens
   guide.css consumes (scoped to .guide-page) so the existing rules
   cascade dark, then overrides typography + CTAs.
   ============================================================ */

body:has(.guide-page) .header,
body:has(.guide-page) .footer { display: none !important; }
body:has(.guide-page) .main-content { padding: 0 !important; margin: 0 !important; }

.guide-page {
  --color-bg: #000000;
  --color-card: #0a0a0c;
  --color-border: #1c1c1c;
  --color-text: #ffffff;
  --color-text-secondary: #b5b5b5;
  --color-text-muted: #8a8a8a;
  --guide-blue: #2f6bff;
  background: #000000;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

/* top bar */
.guide-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c1c1c;
}
.guide-topbar__back { justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: #8a8a8a; font-size: 0.85rem; transition: color .15s ease; }
.guide-topbar__back:hover { color: #fff; }
.guide-topbar__word { justify-self: center; font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; color: #fff; }
.guide-topbar__signin { justify-self: end; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: #8a8a8a; transition: color .15s ease; }
.guide-topbar__signin:hover { color: #fff; }

/* hero — landing display type */
.guide-page .guide-hero { padding-top: clamp(116px, 15vh, 160px); border-bottom-color: #1c1c1c; }
.guide-page .guide-hero__eyebrow { letter-spacing: 0.34em; color: #8a8a8a; }
.guide-page .guide-hero__headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(2.4rem, 7vw, 4.5rem); color: #fff;
}
.guide-page .guide-hero__anchor { color: #b5b5b5; border-bottom-color: #2a2a2a; }
.guide-page .guide-hero__anchor:hover { color: #fff; border-color: #fff; }

/* section headings — bold Inter */
.guide-page .guide-section__title,
.guide-page .guide-mid-cta__headline,
.guide-page .guide-checklist__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700; letter-spacing: -0.015em; color: #fff;
}
.guide-page .guide-close__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; color: #fff;
}

/* quote accent */
.guide-page .guide-quote { border-left-color: var(--guide-blue); color: #fff; }

/* primary CTAs -> landing blue pill (beats .btn.btn-primary via specificity) */
.guide-page .btn.btn-primary {
  background: var(--guide-blue); color: #fff; border: none; border-radius: 999px;
  padding: 15px 32px; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; font-weight: 700; transition: filter .15s ease;
}
.guide-page .btn.btn-primary:hover { filter: brightness(1.12); }
.guide-page .guide-cta-link { color: #fff; border-bottom-color: var(--guide-blue); }
.guide-page .guide-cta-link:hover { opacity: 1; color: var(--guide-blue); }

/* mid CTA + checklist accents */
.guide-page .guide-section--mid-cta { background: #0a0a0c; }
.guide-page .guide-checklist__check { color: var(--guide-blue); }

/* sticky mobile CTA */
.guide-page .guide-sticky-cta { background: #0a0a0c; border-top-color: #1c1c1c; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5); }
.guide-page .guide-sticky-cta__link { background: var(--guide-blue); color: #fff; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.1em; }

/* dark footer */
.guide-footer { border-top: 1px solid #1c1c1c; padding: clamp(36px, 6vw, 56px) 24px; text-align: center; }
.guide-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.guide-footer__links a { text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.95rem; color: #d6d6d6; text-decoration: none; transition: color .15s ease; }
.guide-footer__links a:hover { color: var(--guide-blue); }
.guide-footer__copy { margin-top: 22px; color: #4a4a4a; font-size: 0.76rem; letter-spacing: 0.04em; }
