/* ==========================================================================
   PAGE-SPECIFIC LAYOUTS
   ========================================================================== */

/* ---------- Homepage: introduction ---------- */
.intro-grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); }
.intro-grid > * { min-width: 0; }
@media (min-width: 58rem) { .intro-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.intro-mark {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 20rem;
}
.intro-mark-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.75rem, 3rem + 3vw, 5.5rem);
  line-height: 0.9;
  color: var(--burgundy);
  font-variant-numeric: lining-nums;
}
.intro-mark-label { font-family: var(--font-label); letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }

/* ---------- Year Ahead band (homepage + readings) ---------- */
.ya-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 70% at 92% 100%, rgba(240, 165, 85, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 60% at 0% 0%, rgba(107, 30, 43, 0.45), transparent 70%),
    var(--charcoal);
}
.ya-grid { display: grid; gap: clamp(2.25rem, 2rem + 2vw, 4rem); align-items: center; }
.ya-grid > * { min-width: 0; }
@media (min-width: 60rem) { .ya-grid { grid-template-columns: 1.05fr 0.95fr; } }
.ya-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.ya-notice::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: #F2B65A;
  box-shadow: 0 0 10px 2px rgba(242, 182, 90, 0.55);
  animation: glow 3s ease-in-out infinite;
}
.ya-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  border: 1px solid rgba(217, 188, 122, 0.35);
  border-radius: var(--radius);
  background: rgba(30, 24, 20, 0.35);
}
.ya-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; }
.ya-panel-head h3 { font-size: var(--fs-h4); color: var(--ivory); }
.ya-meta { display: grid; gap: 0.25rem; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.ya-meta strong { color: var(--ivory); font-weight: 600; }
.ya-closed { color: var(--on-dark-muted); max-width: var(--measure); }

/* ---------- Year Ahead page ---------- */
.ya-hero { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.ya-hero h1 { color: var(--ivory); max-width: 14ch; }
.ya-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(217, 188, 122, 0.3);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}
.ya-price .price-value { color: var(--ivory); font-size: 2.1rem; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 40rem) { .month-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .month-grid { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; } }
.month-tile {
  position: relative;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.month-tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.month-num {
  font-family: var(--font-label);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.month-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 1.35rem + 0.8vw, 2.1rem);
  line-height: 1.05;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.month-season { font-size: var(--fs-sm); color: var(--text-muted); }
.month-tile::after {
  content: "";
  height: 1px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
}
.theme-grid li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}
.theme-grid .icon { color: var(--gold); width: 1.4rem; height: 1.4rem; }

/* Sample almanac page */
.almanac {
  position: relative;
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.almanac::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  pointer-events: none;
}
.almanac-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.almanac-head h3 { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.almanac-stamp {
  padding: 0.35rem 0.8rem;
  border: 1px dashed var(--ember);
  border-radius: 2px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.almanac-body { display: grid; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
@media (min-width: 40rem) { .almanac-body { grid-template-columns: 1fr 1fr; } }
.almanac-entry { display: grid; gap: 0.5rem; min-width: 0; }
.almanac-entry .mini-label { margin: 0; }
.faux-line { display: block; height: 0.55rem; border-radius: 99px; background: var(--line-soft); }
.faux-line:nth-child(3) { width: 82%; }
.faux-line:nth-child(4) { width: 64%; }
.almanac-caption { margin-top: 1.75rem; text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Readings page ---------- */
.guide-list { display: grid; border-top: 1px solid var(--line); }
.guide-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
@media (min-width: 48rem) { .guide-list a { grid-template-columns: 1.3fr 1fr auto; } }
.guide-q { font-size: var(--fs-lg); line-height: 1.45; }
.guide-a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--burgundy);
  grid-column: 1;
}
@media (min-width: 48rem) { .guide-a { grid-column: auto; } }
.guide-list .icon { color: var(--gold); grid-row: 1 / span 2; grid-column: 2; transition: transform 0.25s ease; }
@media (min-width: 48rem) { .guide-list .icon { grid-row: auto; grid-column: auto; } }
.guide-list a:hover .guide-a { color: var(--ember-deep); }
.guide-list a:hover .icon { transform: translateX(4px); }

.group-head { display: grid; gap: 0.75rem; margin-bottom: 2rem; max-width: 46rem; }
.group-head h2 { font-size: var(--fs-h2); }
.reading-group + .reading-group { margin-top: clamp(4rem, 3rem + 4vw, 6rem); }

/* ---------- Spiritual work ---------- */
.candle-feature { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
.candle-feature > * { min-width: 0; }
@media (min-width: 56rem) { .candle-feature { grid-template-columns: 0.85fr 1.15fr; } }
.consult-card {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
@media (min-width: 56rem) {
  .consult-card { grid-template-columns: 1.4fr auto; align-items: center; gap: 2rem 3rem; }
  .consult-card .btn-row { justify-self: end; }
}

/* ---------- About ---------- */
.values-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold);
}
.value .icon { color: var(--gold); width: 1.85rem; height: 1.85rem; }
.value h3 { font-size: var(--fs-h4); }
.value p { color: var(--text-muted); }
.portrait-wrap { max-width: 28rem; width: 100%; justify-self: center; }

/* ---------- Booking ---------- */
.book-layout { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: start; }
.book-layout > * { min-width: 0; }
@media (min-width: 64rem) { .book-layout { grid-template-columns: minmax(0, 1fr) 21rem; } }
.booking-form { counter-reset: bstep; display: grid; }
.book-step {
  display: grid;
  gap: 1.35rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.book-step:first-child { border-top: 0; padding-top: 0; }
.book-step:not([hidden]) { counter-increment: bstep; }
.step-legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  color: var(--ink);
}
.step-legend + * { clear: both; }
.step-legend::before {
  content: counter(bstep);
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--burgundy);
}
.summary-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; align-items: start; }
.summary-top h3 { font-size: 1.75rem; }
.summary-card .price { text-align: right; }
.summary-card .card-meta { border-color: var(--line); }
.book-submit { display: grid; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.book-submit .btn { width: 100%; }
@media (min-width: 40rem) { .book-submit .btn { width: auto; justify-self: start; } }
.book-aside { display: grid; gap: 1.25rem; }
@media (min-width: 64rem) { .book-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.aside-card h2 { font-size: 1.5rem; }
.aside-card ol { padding-left: 1.2rem; display: grid; gap: 0.4rem; color: var(--text-muted); }
.aside-card .icon { color: var(--emerald); }
.result {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.result:focus { outline: none; }
.result-icon {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--ivory);
}
.result h2 { font-size: var(--fs-h2); }
.pay-options { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .pay-options { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.pay-options .btn { width: 100%; }
.review-list { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; padding: 1.25rem; background: var(--cream); border-radius: var(--radius); font-size: var(--fs-sm); }
.review-list dt { font-weight: 700; }
.review-list dd { margin: 0; color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (min-width: 58rem) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; } }
.contact-detail { display: grid; gap: 0.35rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.contact-detail:first-of-type { border-top: 1px solid var(--line); }
.contact-detail .mini-label { margin: 0; }
.contact-detail p { overflow-wrap: anywhere; }
.copy-btn {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--burgundy);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--burgundy); }
.social-list--light a, .social-list--light span { border-color: var(--line); color: var(--text); text-decoration: none; }
.social-list--light a:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ---------- Legal / policies ---------- */
.legal-layout { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 4rem); align-items: start; }
.legal-layout > * { min-width: 0; }
@media (min-width: 62rem) { .legal-layout { grid-template-columns: 16rem minmax(0, 1fr); } }
.toc { display: grid; gap: 0.75rem; font-size: var(--fs-sm); }
@media (min-width: 62rem) { .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.toc ol { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
.toc a { display: block; padding-block: 0.55rem; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--burgundy); }
.legal { max-width: 46rem; }
.legal section { padding-block: 2rem; border-bottom: 1px solid var(--line-soft); }
.legal section:first-of-type { padding-top: 0; }
.legal h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 0.9em; }
.legal ul { padding-left: 1.3em; display: grid; gap: 0.35rem; }
.legal-updated { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Cash App payment step ---------- */
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.pay-steps > li { position: relative; padding-left: 3.6rem; min-width: 0; }
.pay-steps .step-num { width: 2.75rem; height: 2.75rem; font-size: 1.35rem; background: var(--paper); }
.pay-steps h3 { font-size: clamp(1.35rem, 1.25rem + 0.4vw, 1.6rem); }
.cashtag, .booking-code {
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 1rem;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
  user-select: all;
}
.booking-code { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.btn-cashapp { background: var(--emerald); color: var(--ivory); }
.btn-cashapp:hover { background: var(--emerald-deep); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--gold-soft); }
p.notice { align-items: flex-start; }

/* ---------- Session lengths, totals & add-ons ---------- */
.option-list { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line-soft); }
.option-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.55rem; border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.option-price { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.choice-price { font-weight: 700; opacity: 0.85; }
.choice-price::before { content: "· "; }
.book-total {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding: 1rem 1.25rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
}
.book-total span { font-family: var(--font-label); font-size: var(--fs-sm); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.book-total strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.rush-box { padding: 1rem 1.25rem; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--paper); }
#pay-note { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); letter-spacing: 0.01em; }
.email-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.email-inline p { overflow-wrap: anywhere; }
.details-text { margin: 0.5rem 0 0; padding: 0.85rem 1rem; background: var(--cream); border-radius: var(--radius); font: inherit; font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
details.hint summary { cursor: pointer; font-weight: 700; color: var(--burgundy); min-height: 2.75rem; display: flex; align-items: center; }
