/* === SHARED BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary.btn-large {
  font-size: 16px;
  padding: 16px 36px;
}

.btn-nav {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-nav:hover {
  opacity: 0.85;
}

/* === NAV (shared across landing + app) === */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-display);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--fg);
}

/* Hero CTA spacing */
.hero-cta {
  margin-top: 40px;
}

.closing-cta {
  margin-top: 40px;
}

/* === APP NAV (guides/admin pages) === */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
}

.app-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.app-nav .logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--fg);
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.app-nav-link:hover,
.app-nav-link.active {
  color: var(--fg);
}

/* === HUB HERO === */
.hub-hero {
  padding: 100px 40px 80px;
  background: linear-gradient(170deg, #0a0a0a 0%, #0d0d0a 40%, #111108 100%);
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,255,60,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hub-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hub-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 16px 0 20px;
}

.hub-hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* === HUB SECTIONS === */
.hub-section {
  padding: 80px 40px;
}

.hub-section--dark {
  background: var(--bg-elevated);
}

.hub-section-header {
  max-width: 1200px;
  margin: 0 auto 48px;
}

.hub-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

/* === GUIDE GRID === */
.guide-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-grid--featured {
  grid-template-columns: repeat(3, 1fr);
}

.guide-grid--small {
  grid-template-columns: repeat(3, 1fr);
}

/* === GUIDE CARD === */
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.guide-card--featured {
  border-color: rgba(201,255,60,0.25);
}

.guide-card-emoji {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.guide-card-pillar {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.guide-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--fg);
}

.guide-card-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.guide-card-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
}

.guide-card-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing 0.2s ease;
}

.guide-card:hover .guide-card-cta {
  letter-spacing: 0.5px;
}

/* === PILLAR TABS === */
.pillar-tabs {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-tab {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pillar-tab:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.pillar-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

/* === GUIDE DETAIL PAGE === */
.guide-header {
  padding: 80px 40px 60px;
  background: linear-gradient(170deg, #0a0a0a 0%, #0d0d0a 60%, #111108 100%);
  border-bottom: 1px solid var(--border);
}

.guide-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.guide-header-meta {
  margin-bottom: 20px;
}

.guide-pillar-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 40px;
  text-transform: uppercase;
}

.guide-header-emoji {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}

.guide-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.guide-tagline {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 32px;
}

.guide-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.guide-price-tag {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
}

/* === GUIDE CONTENT === */
.guide-content {
  padding: 60px 40px;
}

.guide-content-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.guide-sections-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--fg);
}

.guide-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-section {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 28px;
  margin-top: -1px;
  transition: background 0.2s;
}

.guide-section:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.guide-section:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.guide-section:only-child {
  border-radius: var(--radius);
}

.guide-section--open {
  background: var(--bg-card);
}

.guide-section--locked {
  background: rgba(22,22,22,0.5);
  opacity: 0.75;
}

.guide-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.guide-section--locked .guide-section-title {
  color: var(--fg-muted);
}

.lock-icon {
  font-size: 14px;
}

.preview-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 40px;
  white-space: nowrap;
}

.guide-section-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-section-body p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.8;
}

.guide-section-locked-msg {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* === PURCHASE CTA === */
.guide-cta-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(201,255,60,0.25);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}

.guide-cta-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.guide-cta-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-cta-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 20px;
}

.guide-cta-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.guide-cta-note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 12px;
}

/* === RELATED GUIDES === */
.related-guides {
  padding: 60px 40px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.related-guides-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.related-heading {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* === 404 PAGE === */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.error-page-inner {
  text-align: center;
}

.error-emoji {
  font-size: 64px;
  margin-bottom: 24px;
}

.error-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .guide-grid,
  .guide-grid--featured,
  .guide-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .app-nav {
    padding: 14px 20px;
  }

  .hub-hero {
    padding: 72px 20px 60px;
  }

  .hub-section {
    padding: 56px 20px;
  }

  .guide-grid,
  .guide-grid--featured,
  .guide-grid--small {
    grid-template-columns: 1fr;
  }

  .guide-header {
    padding: 60px 20px 40px;
  }

  .guide-content {
    padding: 40px 20px;
  }

  .related-guides {
    padding: 40px 20px;
  }

  .guide-price-row {
    flex-wrap: wrap;
    gap: 14px;
  }

  .guide-cta-box {
    padding: 28px 20px;
  }
}
