/* ── Book cover mock ───────────────────────────────────────────────────────── */
.book-cover-mock { background: #2e095e; border-radius: var(--radius); padding: 52px 36px; text-align: center; position: relative; box-shadow: 12px 12px 0 #39d0db; }
.mock-title  { font-family: var(--script); font-size: 36px; font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.mock-sub    { font-size: 13px; color: rgba(255,255,255,0.8); }
.mock-author { font-family: var(--script); font-size: 20px; color: #39d0db; position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; }

/* ── Home quote ────────────────────────────────────────────────────────────── */
.home-quote { font-family: var(--sans); font-size: 17px; font-weight: 300; color: var(--text-light); border-left: 4px solid var(--peach); padding-left: 20px; margin: 24px 0 32px; line-height: 1.75; }

/* ── Tier cards (home) ─────────────────────────────────────────────────────── */
.tier-card-home { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.card-title-tier { font-family: var(--script); font-size: 42px; color: var(--purple); margin-bottom: 6px; }
.tier-meta  { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 14px; }
.tier-desc  { font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--purple); }

/* Per-tier colour lives here rather than inline on the markup, so the hover
 * state below can actually override it (inline styles beat stylesheets). */
.tier-card-sovereign { background: #2e095e; }
.tier-card-sovereign .tag { background: rgba(255,255,255,0.15); color: var(--peach); }
.tier-card-sovereign .card-title-tier { color: var(--white); }
.tier-card-sovereign .tier-meta { color: var(--peach); }
.tier-card-sovereign .tier-desc { color: rgba(255,255,255,0.82); }
.tier-card-premier { border: 2px solid var(--sage); }
.tier-card-elite   { border: 2px solid var(--lilac); }
.tier-card-elite .card-title-tier { color: var(--lilac); }
.tier-cta { margin-top: 24px; display: inline-block; font-size: 14px; padding: 11px 24px; }

/* ── Quote block ───────────────────────────────────────────────────────────── */
.quote-block { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.quote-mark  { font-family: var(--sans); font-weight: 700; font-size: 80px; color: #39d0db; line-height: 0.7; margin-bottom: 12px; display: block; }
.quote-text  { font-family: var(--sans); font-size: 16px; font-weight: 300; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.quote-author { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); }

/* ── Podcast preview card ──────────────────────────────────────────────────── */
.podcast-preview-card { background: var(--white); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); display: flex; gap: 20px; align-items: flex-start; margin-bottom: 14px; transition: box-shadow 0.2s; }
.podcast-preview-card:hover { box-shadow: var(--shadow); }
.ep-number   { font-family: var(--script); font-size: 44px; font-weight: 700; color: #39d0db; line-height: 1; flex-shrink: 0; width: 52px; }
.ep-title    { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ep-desc     { font-size: 15px; color: var(--text-light); font-weight: 300; line-height: 1.55; }
.ep-play     { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 20px; border-radius: var(--radius-pill); border: 2px solid var(--sage); background: none; color: var(--sage); font-family: var(--sans); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.ep-play:hover { background: var(--sage); color: var(--white); }
.ep-play-icon { font-size: 10px; line-height: 1; }

/* ── About page ────────────────────────────────────────────────────────────── */
.about-photo-mock { background: linear-gradient(145deg, var(--sage-light), var(--peach-light)); border-radius: var(--radius); max-width: 220px; aspect-ratio: 3/4; display: flex; align-items: flex-end; justify-content: center; padding: 16px; border: 2px solid var(--border); margin: 0 auto 32px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.value-card  { background: var(--white); border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm); }
.value-icon  { display: flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--sage-light); color: var(--purple); margin-bottom: 14px; }
.value-icon .cjm-icon { width: 22px; height: 22px; }
.value-title { font-family: var(--script); font-size: 24px; color: #2e095e; margin-bottom: 6px; }
.value-text  { font-size: 16px; color: var(--purple); font-weight: 300; line-height: 1.6; }

/* ── Methodology steps ─────────────────────────────────────────────────────── */
.method-step { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); text-align: center; }
.step-num    { font-family: var(--sans); font-size: 24px; font-weight: 800; color: #39d0db; line-height: 1; margin-bottom: 10px; }
.step-title  { font-size: 15px; font-weight: 700; color: var(--purple); margin-bottom: 8px; }
.step-desc   { font-size: 13px; color: var(--purple); font-weight: 300; line-height: 1.6; }

/* ── Book detail grid ──────────────────────────────────────────────────────── */
.book-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.book-detail-item { background: var(--bg); border-radius: var(--radius-sm); padding: 16px 20px; }
/* These are bare <div>s, so the sitewide font layer in main.css — which only
 * covers body/p/li/td/th/label — never reached them and plugin CSS on the live
 * install won the cascade, rendering them in a monospace face. Declared
 * explicitly here so nothing can override them (client item 7). */
.detail-label { font-family: var(--sans) !important; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin-bottom: 4px; }
.detail-value { font-family: var(--sans) !important; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text); overflow-wrap: break-word; }

/* ── Chapter preview ───────────────────────────────────────────────────────── */
.preview-label { display: inline-flex; align-items: center; gap: 8px; background: var(--peach-light); border-radius: var(--radius-pill); padding: 7px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--peach-dark); margin-bottom: 32px; }
.preview-text  { font-family: var(--sans); font-size: 17px; line-height: 1.85; color: var(--purple); font-weight: 300; user-select: none; -webkit-user-select: none; }
.preview-text p { margin-bottom: 20px; }
.preview-fade  { height: 100px; background: linear-gradient(transparent, var(--white)); margin-top: -100px; position: relative; pointer-events: none; }
.preview-gate  { text-align: center; padding: 32px 0 0; background: var(--white); }

/* ── Purchase page ─────────────────────────────────────────────────────────── */
.product-sticky { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.product-price  { font-family: var(--script); font-size: 64px; font-weight: 700; color: var(--sage); line-height: 1; }
.product-price sup { font-size: 28px; vertical-align: top; margin-top: 14px; display: inline-block; }
.include-list   { list-style: none; margin: 24px 0; }
.include-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--text); margin-bottom: 12px; font-weight: 300; }
.include-list li::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }
.secure-note    { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-light); margin-top: 18px; font-weight: 600; }

/* ── Consultation pricing table ───────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow-sm); border: 2px solid transparent; display: flex; flex-direction: column; }
.pricing-card.pricing-featured { border-color: var(--sage); box-shadow: var(--shadow); transform: scale(1.03); }
.pricing-card.pricing-featured:hover { transform: scale(1.03) translateY(-6px); }
.pricing-name { font-family: var(--script); font-size: 32px; color: #2e095e; margin-bottom: 4px; }
.pricing-meta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 14px; }
.pricing-desc { font-size: 16px; color: var(--purple); font-weight: 300; line-height: 1.6; margin-bottom: 20px; text-align: left; }
.pricing-features { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: var(--text); margin-bottom: 9px; font-weight: 300; line-height: 1.5; }
.pricing-features li::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }
.pricing-cta { text-align: center; margin-top: auto; }

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.stars      { margin-bottom: 14px; font-size: 18px; }
.test-quote { font-family: var(--sans); font-weight: 300; font-size: 16px; color: var(--text); line-height: 1.8; margin-bottom: 20px; }
.test-meta  { border-top: 2px dashed var(--border); padding-top: 16px; }
.test-name  { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--text); }
.test-detail { font-family: var(--sans); font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── Consultation tab switcher (mobile only) ───────────────────────────────── */
.pricing-tabs { display: none; gap: 8px; max-width: 480px; margin: 0 auto 28px; }
.pricing-tab {
  flex: 1; padding: 12px 6px; border-radius: var(--radius-pill); border: 2px solid var(--sage);
  background: var(--white); color: var(--purple); font-family: var(--sans); font-weight: 700;
  font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.pricing-tab:hover { border-color: var(--peach-dark); color: var(--peach-dark); }
.pricing-tab.is-active { background: var(--sage); color: var(--white); border-color: var(--sage); }
@media (max-width: 768px) {
  .pricing-tabs { display: flex; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { display: none; }
  .pricing-card.is-active { display: flex; }
  .pricing-card.pricing-featured.is-active { transform: none; }
}

/* ── Card hover treatment (home tiers + consultations pricing) ──────────────
 * Shared so both pages behave identically: the card lifts, a teal-to-purple
 * wash sweeps across the top edge, and the dark Sovereign card flips to white.
 * Gated behind (hover: hover) — on a touch screen there is no cursor to leave,
 * so an ungated :hover latches on after a tap and stays stuck. */
.tier-card-home,
.pricing-card { position: relative; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, background 0.3s, border-color 0.25s; }

.tier-card-home::before,
.pricing-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--sage), #2e095e);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.tier-card-home .tag,
.tier-card-home .card-title-tier,
.tier-card-home .tier-meta,
.tier-card-home .tier-desc,
.tier-card-home .btn { transition: background 0.3s, color 0.3s; }

@media (hover: hover) {
  .tier-card-home:hover::before,
  .pricing-card:hover::before { transform: scaleX(1); }

  .tier-card-home:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .pricing-card:hover   { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(57,208,219,0.35); }

  /* Sovereign is the only dark card, so it is the only one with a fill to flip. */
  .tier-card-sovereign:hover { background: var(--white); }
  .tier-card-sovereign:hover .card-title-tier { color: #2e095e; }
  .tier-card-sovereign:hover .tier-meta { color: var(--text-light); }
  .tier-card-sovereign:hover .tier-desc { color: var(--purple); }
  .tier-card-sovereign:hover .tag { background: var(--purple); color: var(--white); }
  .tier-card-sovereign:hover .btn-white { background: var(--sage); color: var(--white); }
}

/* ── Contact page ──────────────────────────────────────────────────────────── */
.contact-method { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-icon   { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-light); color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--purple); margin-bottom: 4px; }
.contact-value  { font-size: 15px; font-weight: 600; color: var(--purple); }
.social-row  { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.social-btn  { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--purple); transition: all 0.2s; background: var(--white); text-decoration: none; }
.social-btn:hover { border-color: var(--sage); background: var(--sage-light); }
.social-btn .cjm-icon { width: 20px; height: 20px; }
/* No lilac fill: a plain white card with a teal marker reads as a note
 * without tinting the whole block (client item 8). */
.privacy-banner { background: var(--white); border-radius: var(--radius-sm); padding: 18px 22px; margin-top: 28px; border: 1px solid var(--border); border-left: 3px solid var(--sage); box-shadow: var(--shadow-sm); }
.privacy-banner p { font-size: 13px; color: var(--purple); line-height: 1.6; }

/* ── WooCommerce product images ────────────────────────────────────────────
 * WooCommerce's own stylesheet pins cart thumbnails to a fixed width and lets
 * the height follow the (previously square-cropped) file, which decapitated
 * the book cover. Contain the image and let the height follow the real
 * portrait shape. Pairs with the uncrop filters in cjm-woo-images.php. */
.woocommerce img.attachment-woocommerce_thumbnail,
.woocommerce-cart table.cart td.product-thumbnail img,
.woocommerce-checkout table.shop_table img,
.woocommerce-order-received table.shop_table img,
.widget_shopping_cart_content img {
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
}
.woocommerce-cart table.cart td.product-thumbnail img { width: 64px; }

/* ── WooCommerce account / login ───────────────────────────────────────────
 * .form-row is the site's own two-column grid (see main.css), but WooCommerce
 * reuses the same class name on its account/login rows — reset it here so a
 * login field's label and input don't get split into separate grid columns. */
body.woocommerce-account .woocommerce { max-width: 440px; margin: 0 auto; }
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
body.woocommerce-account .woocommerce .form-row { display: block; margin-bottom: 18px; }
body.woocommerce-account .woocommerce .form-row label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--purple); margin-bottom: 8px; }
body.woocommerce-account .woocommerce .form-row .input-text { width: 100%; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; font-size: 15px; color: var(--purple); outline: none; transition: border-color 0.2s; }
body.woocommerce-account .woocommerce .form-row .input-text:focus { border-color: var(--peach); }
body.woocommerce-account .woocommerce .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin-bottom: 18px; }
body.woocommerce-account .woocommerce .woocommerce-Button,
body.woocommerce-account .woocommerce button.button { display: inline-block; width: 100%; padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: all 0.25s; font-family: var(--sans); background: var(--sage); color: var(--white); }
body.woocommerce-account .woocommerce .woocommerce-Button:hover,
body.woocommerce-account .woocommerce button.button:hover { background: var(--sage-dark); }
body.woocommerce-account .woocommerce .woocommerce-LostPassword { display: block; margin-top: 14px; font-size: 14px; }
body.woocommerce-account .woocommerce .woocommerce-LostPassword a { color: var(--sage); }

/* ── Responsive overrides ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tier-full, .book-detail-grid, .values-grid { grid-template-columns: 1fr; }
}
