/* ══════════════════════════════════════════════
   Mount Peak Web — article.css
   Long-read article styles. Extends /css/style.css tokens.
══════════════════════════════════════════════ */

/* ── Reading progress bar ────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--glacier-deep), var(--glacier), var(--glacier-light));
  z-index: 1000;
  transition: width 0.15s linear;
  box-shadow: 0 0 12px rgba(106,174,214,0.5);
}

/* ── Back-to-top button ──────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--granite);
  border: 1px solid rgba(106,174,214,0.25);
  color: var(--glacier);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--glacier);
  color: var(--abyss);
  border-color: var(--glacier);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(106,174,214,0.4);
}

/* ── Article hero ────────────────────────────── */
.article-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(67,137,191,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(106,174,214,0.08) 0%, transparent 60%),
    var(--abyss);
}

.article-hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(106,174,214,0.16) 0%, transparent 70%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-hero-inner .overline {
  margin-bottom: 20px;
  display: block;
}

.article-hero-title {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--summit) 0%, var(--glacier-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--glacier) 0%, #96C5E4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-hero-lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--mist);
  line-height: 1.75;
  max-width: 700px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ash);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  color: var(--glacier);
  flex-shrink: 0;
}

/* ── Table of Contents ───────────────────────── */
.article-toc {
  background: var(--obsidian);
  border-bottom: 1px solid rgba(106,174,214,0.08);
}

.article-toc-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
}

.toc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 40px;
}

.toc-list a {
  font-size: 14.5px;
  color: var(--mist);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ridge);
  flex-shrink: 0;
  transition: all 0.25s var(--ease-out);
}

.toc-list a:hover {
  color: var(--glacier-light);
  padding-left: 6px;
}

.toc-list a:hover::before {
  background: var(--glacier);
  box-shadow: 0 0 8px rgba(106,174,214,0.5);
}

@media (max-width: 640px) {
  .toc-list { grid-template-columns: 1fr; }
}

/* ── Article body ────────────────────────────── */
.article-body {
  background: var(--obsidian);
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}

/* ── Article typography ──────────────────────── */
.article-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--summit);
  margin-top: 72px;
  margin-bottom: 24px;
  padding-top: 16px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  position: relative;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--glacier), transparent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
}

.article-content h2:hover::before {
  width: 80px;
}

.article-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 3vw, 23px);
  letter-spacing: -0.02em;
  color: var(--summit);
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content p {
  color: var(--snowfall);
  font-size: 16.5px;
  line-height: 1.78;
  margin-bottom: 20px;
}

.article-content a {
  color: var(--glacier);
  text-decoration: underline;
  text-decoration-color: rgba(106,174,214,0.3);
  text-underline-offset: 3px;
  transition: all 0.2s;
}

.article-content a:hover {
  color: var(--glacier-light);
  text-decoration-color: var(--glacier-light);
}

/* Remove underline from buttons inside article */
.article-content .btn,
.article-cta .btn {
  text-decoration: none;
}

.article-content .btn:hover,
.article-cta .btn:hover {
  text-decoration: none;
}

.article-content strong {
  color: var(--summit);
  font-weight: 600;
}

/* ── Price footnote ──────────────────────────── */
.price-footnote {
  display: block;
  font-size: 12px;
  color: var(--mist);
  margin-top: 12px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Accent callout boxes ────────────────────── */
.callout {
  position: relative;
  padding: 28px 32px;
  margin: 32px 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(106,174,214,0.06), rgba(106,174,214,0.02));
  border: 1px solid rgba(106,174,214,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.callout:hover {
  border-color: rgba(106,174,214,0.4);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 30px rgba(106,174,214,0.08);
}

.callout-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 10px;
  display: block;
}

.callout p {
  color: var(--snowfall);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 0;
}

.callout p + p {
  margin-top: 12px;
}

/* Warning callout */
.callout-warn {
  background: linear-gradient(135deg, rgba(227,160,60,0.06), rgba(227,160,60,0.02));
  border-color: rgba(227,160,60,0.2);
}

.callout-warn:hover {
  border-color: rgba(227,160,60,0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 30px rgba(227,160,60,0.06);
}

.callout-warn .callout-label {
  color: #e3a03c;
}

/* ── Blockquote ──────────────────────────────── */
.article-content blockquote {
  position: relative;
  margin: 36px 0;
  padding: 24px 28px 24px 32px;
  border-left: 3px solid var(--glacier);
  background: rgba(106,174,214,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-color 0.3s, background 0.3s;
}

.article-content blockquote:hover {
  border-left-color: var(--glacier-light);
  background: rgba(106,174,214,0.07);
}

.article-content blockquote p {
  font-size: 15.5px;
  font-style: italic;
  color: var(--snowline);
  margin-bottom: 0;
}

.article-content blockquote p + p {
  margin-top: 10px;
}

.blockquote-src {
  font-size: 13px;
  color: var(--ash);
  font-style: normal;
  margin-top: 12px;
  display: block;
}

/* ── Article lists ───────────────────────────── */
.article-content ul,
.article-content ol {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.article-content li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15.5px;
  color: var(--snowfall);
  line-height: 1.72;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glacier);
  transition: box-shadow 0.3s;
}

.article-content li:hover::before {
  box-shadow: 0 0 8px rgba(106,174,214,0.6);
}

.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li {
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--glacier);
  border-radius: 0;
  background: none;
  width: auto;
  height: auto;
}

/* ── Comparison table ────────────────────────── */
.article-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(106,174,214,0.12);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.article-table thead {
  background: linear-gradient(135deg, var(--granite), var(--slate));
}

.article-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--glacier-light);
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(106,174,214,0.15);
}

.article-table td {
  padding: 14px 20px;
  color: var(--snowfall);
  border-bottom: 1px solid rgba(106,174,214,0.06);
  vertical-align: top;
}

.article-table tbody tr {
  transition: background 0.2s;
}

.article-table tbody tr:hover {
  background: rgba(106,174,214,0.04);
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

/* Highlight row */
.article-table tr.row-highlight {
  background: rgba(106,174,214,0.06);
}

.article-table tr.row-highlight td {
  color: var(--summit);
  font-weight: 500;
}

/* ── Pricing tier cards ──────────────────────── */
.tier-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

.tier-card {
  background: linear-gradient(135deg, var(--granite) 0%, rgba(28,35,51,0.9) 100%);
  border: 1px solid rgba(106,174,214,0.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.03);
  cursor: default;
}

.tier-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(106,174,214,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tier-card:hover {
  border-color: rgba(106,174,214,0.3);
  transform: translateY(-4px);
  box-shadow:
    0 20px 48px rgba(0,0,0,0.3),
    0 0 0 1px rgba(106,174,214,0.2),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.tier-card:hover::after { opacity: 1; }

.tier-card > * { position: relative; z-index: 1; }

.tier-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tier-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--summit);
}

.tier-card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--glacier);
}

.tier-card-sub {
  font-size: 14px;
  color: var(--ash);
  margin-bottom: 16px;
}

.tier-card-sub a {
  color: var(--mist);
}

.tier-card-sub a:hover {
  color: var(--glacier-light);
}

.tier-card p {
  font-size: 15px;
  color: var(--mist);
  line-height: 1.72;
  margin-bottom: 0;
}

/* Featured tier */
.tier-card-featured {
  border-color: var(--glacier);
  background: linear-gradient(135deg, var(--slate) 0%, rgba(37,46,66,0.95) 100%);
  box-shadow: 0 0 0 1px rgba(106,174,214,0.3), 0 20px 60px rgba(0,0,0,0.4);
}

.tier-featured-badge {
  position: absolute;
  top: 0;
  right: 32px;
  background: linear-gradient(135deg, var(--glacier), var(--glacier-vibrant));
  color: var(--abyss);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 2;
}

/* ── Question checklist cards ────────────────── */
.checklist-cards {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.checklist-card {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--granite);
  border: 1px solid var(--ridge);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s var(--ease-out);
}

.checklist-card:hover {
  border-color: rgba(106,174,214,0.3);
  background: rgba(28,35,51,0.95);
  transform: translateX(4px);
}

.checklist-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(106,174,214,0.1);
  border: 1px solid rgba(106,174,214,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--glacier);
  transition: all 0.3s var(--ease-out);
}

.checklist-card:hover .checklist-num {
  background: var(--glacier);
  color: var(--abyss);
  border-color: var(--glacier);
}

.checklist-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--summit);
  margin-bottom: 6px;
}

.checklist-card p {
  font-size: 14.5px;
  color: var(--mist);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Article CTA band ────────────────────────── */
.article-cta {
  margin: 56px 0;
  padding: 44px 40px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(67,137,191,0.12) 0%, transparent 70%),
    linear-gradient(135deg, var(--granite), var(--slate));
  border: 1px solid rgba(106,174,214,0.15);
}

.article-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 30px);
  letter-spacing: -0.03em;
  color: var(--summit);
  margin-bottom: 12px;
  margin-top: 0;
}

.article-cta p {
  color: var(--mist);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 28px;
}

.article-cta .btn {
  margin: 0 6px;
}

/* ── Section divider ─────────────────────────── */
.article-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106,174,214,0.2), transparent);
  margin: 56px 0;
}

/* ── Reveal animation (extend existing) ──────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .article-hero {
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 56px;
  }

  .article-content {
    padding: 48px 24px 72px;
  }

  .article-content h2 {
    margin-top: 56px;
    font-size: clamp(24px, 5vw, 32px);
  }

  .tier-card {
    padding: 24px;
  }

  .tier-card-header {
    flex-direction: column;
    gap: 4px;
  }

  .article-cta {
    padding: 32px 24px;
  }

  .checklist-card {
    padding: 16px 18px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .article-cta .btn {
    width: 100%;
    justify-content: center;
    margin: 4px 0;
  }
}

/* ── Short answer (top of article) ───────────── */
.callout-answer {
  margin-top: 0;
  border-left: 3px solid var(--glacier);
  background: linear-gradient(135deg, rgba(106,174,214,0.10), rgba(106,174,214,0.03));
}

.callout-answer p { font-size: 16px; }

/* ── Sources list & back link ────────────────── */
.article-sources li { font-size: 15px; }

.article-back {
  text-align: center;
  margin-top: -16px;
}

/* Keep the back-to-top button above the mobile call bar */
@media (max-width: 768px) {
  body.cta-bar-visible .back-to-top { bottom: 92px; }
}
