/* ═══════════════════════════════════════════════════════
   READING CTA: contextual block on Life Path pages and at
   the calculator result. In-flow only, never fixed or
   overlaid, so nothing can cover content on small screens.
   Self-contained tokens: this sheet also loads on
   calculator pages, where the Life Path palette is absent.
═══════════════════════════════════════════════════════ */

.reading-cta {
  --rc-card: rgba(20, 18, 58, 0.72);
  --rc-card-2: rgba(28, 24, 78, 0.5);
  --rc-border: rgba(139, 127, 217, 0.28);
  --rc-text-1: #FFFFFF;
  --rc-text-2: #D8D5F0;
  --rc-text-3: #A8A5C8;
  --rc-text-4: #7A7798;
  --rc-gold: #FFD93D;
  --rc-gold-2: #F9C846;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 22px;
  background:
    linear-gradient(135deg, var(--rc-card) 0%, var(--rc-card-2) 100%);
  border: 1px solid var(--rc-border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  font-family: var(--font-secondary, 'Inter', sans-serif);
}

.reading-cta-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rc-gold);
  margin-bottom: 12px;
}

.reading-cta-heading {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rc-text-1);
  margin: 0 0 12px;
  text-wrap: balance;
}

.reading-cta-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rc-text-3);
  margin: 0 0 16px;
  max-width: 62ch;
  text-wrap: pretty;
}

.reading-cta-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reading-cta-facts li {
  font-size: 12.5px;
  color: var(--rc-text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rc-border);
  border-radius: 999px;
  padding: 6px 12px;
}

.reading-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.reading-cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rc-gold) 0%, var(--rc-gold-2) 100%);
  color: #1A1608;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 217, 61, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
  text-align: center;
}

.reading-cta-button:hover,
.reading-cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 217, 61, 0.32);
  color: #1A1608;
}

.reading-cta-note {
  font-size: 13px;
  color: var(--rc-text-4);
  margin: 0;
}

/* Calculator-result variant: sits under the result, hidden until a
   result exists. `hidden` must win over the flex display above. */
.reading-cta[hidden],
.reading-cta-calc-wrap[hidden] {
  display: none;
}

.reading-cta-calc-wrap {
  display: block;
  padding: 8px 0 48px;
}

@media (min-width: 768px) {
  .reading-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 34px;
  }

  .reading-cta-text {
    flex: 1 1 auto;
  }

  .reading-cta-action {
    flex: 0 0 auto;
    align-items: stretch;
  }

  .reading-cta-note {
    text-align: center;
  }
}

/* Homepage and pricing placements sit inside their own page sections,
   so they only need their own vertical rhythm. */
.reading-cta-home,
.reading-cta-pricing {
  margin: 0 auto;
}

.reading-cta-pricing {
  margin-top: 32px;
  margin-bottom: 8px;
}

/* Site-wide offer above the footer. Its own shell, because it renders from
   BaseLayout on pages whose stylesheets know nothing about each other, so it
   cannot borrow a container class from any of them. */
.reading-offer-wrap {
  padding: 56px 0;
  background: rgba(10, 8, 32, 0.35);
  border-top: 1px solid rgba(139, 127, 217, 0.14);
}

.reading-offer-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 720px) {
  .reading-offer-wrap {
    padding: 72px 0;
  }

  .reading-offer-shell {
    padding: 0 28px;
  }
}
