/**
 * Pricing — page-specific section styles.
 *
 * Depends on smudgechild-phero (css/phero.css) for the base
 * .phero/.phero__frame/.phero__img/.phero__scrim rules the hero reuses.
 * This file adds only what Pricing's hero changes on top of that base.
 */

/* ═══════════ SECTION 1 — HERO ═══════════ */

/* frame height: the shared phero.css size, same as What we test (Lumart, 12 Nov) */
.phero__img { object-position: 70% 30%; }

.phero__scrim {
	background:
		linear-gradient(90deg, rgba(8, 14, 8, 0.62) 0%, rgba(8, 14, 8, 0.30) 42%, rgba(8, 14, 8, 0) 72%),
		linear-gradient(180deg, rgba(8, 14, 8, 0.34) 0%, rgba(8, 14, 8, 0) 30%, rgba(8, 14, 8, 0) 70%, rgba(8, 14, 8, 0.28) 100%);
}

.phero__headline {
	position: absolute;
	z-index: 3;
	left: clamp(26px, 5vw, 78px);
	right: clamp(26px, 5vw, 78px);
	top: 50%;
	transform: translateY(-50%);
	max-width: min(740px, 64%);
	font-family: var(--sans);
	font-weight: 500;
	font-size: clamp(33px, 4.3vw, 62px);
	line-height: 1.04;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0;
	text-wrap: balance;
	text-shadow: 0 2px 34px rgba(0, 0, 0, 0.4);
}

.phero__headline .amt { color: var(--accent); }

/*
 * Phones: headline sits at the bottom of the banner, 60% wide. The desktop
 * rule above centres it with top:50% + translateY(-50%); both are undone
 * here, or the headline stays in the middle.
 */
@media (max-width: 760px) {
	.phero__headline {
		max-width: none;
		right: auto;
		width: 60vw;
		font-size: clamp(30px, 8vw, 44px);
		top: auto;
		bottom: clamp(28px, 6vh, 52px);
		transform: none;
	}
	.phero__scrim {
		background: linear-gradient(180deg, rgba(8,14,8,0.5) 0%, rgba(8,14,8,0.2) 36%, rgba(8,14,8,0.3) 70%, rgba(8,14,8,0.6) 100%);
	}
}

/* ═══════════ SECTION 3 — AFFORD NOT TO ═══════════ */

/*
 * Connector colour override — dark-green photo context.
 * Base .conn-a/.conn-b rules come from custom.css; this file is enqueued
 * after smudgechild-custom, so these overrides win on source order.
 * Colours + .conn-b's positioning only: .conn-b is overlaid directly on
 * .afford's photo here (position: absolute, no background of its own) — see
 * smudgechild_pricing_afford_connector() in pricing.php. Keep the shared
 * markup and aria-hidden attrs.
 */
.conn-a {
	background: var(--bg);
}
.conn-a__line {
	background: linear-gradient(180deg, rgba(18, 31, 17, 0) 0%, rgba(18, 31, 17, 0.5) 55%, #121f11 100%);
}
.conn-b {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	width: 22px;
	height: clamp(120px, 17vh, 180px);
	background: none;
	pointer-events: none;
}
.conn-b__node {
	background: none;
	border-color: rgba(255, 255, 255, 0.85);
}
.conn-b__line {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0) 100%);
}
.conn-b__node span {
	background: #fff;
}

/*
 * Afford Not To — glass cards over a full-bleed green photo.
 * .afford__bg is a static theme image (css/ → images/), not an ACF field.
 */
.afford { position: relative; isolation: isolate; overflow: hidden; }
.afford__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: url("../images/pricing-afford-bg.jpg") center / cover no-repeat;
}
.afford__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 20, 8, 0.5) 0%, rgba(8, 20, 8, 0.64) 68%, rgba(8, 22, 11, 0.92) 86%, #08160b 97%); }
.afford__inner { position: relative; z-index: 2; width: min(1180px, 92vw); margin: 0 auto; padding: clamp(150px, 22vh, 230px) 0 clamp(28px, 4vh, 60px); }
.afford__title { text-align: center; font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -0.02em; color: #fff; white-space: nowrap; width: max-content; max-width: 92vw; margin: 0 auto clamp(44px, 6vh, 72px); }
.afford__title em { font-style: normal; color: var(--accent); }
.afford__statement { margin: clamp(72px, 11vh, 140px) auto 0; width: min(780px, 92%); text-align: center; font-family: var(--sans); font-weight: 300; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.28; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.afford__statement em { font-style: normal; color: var(--accent); }
.afford__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.acard { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-radius: 22px; background: rgba(255, 255, 255, 0.09); border: 0; backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 36px 70px -44px rgba(0, 0, 0, 0.55); }
.acard__h { font-family: var(--sans); font-weight: 600; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; color: #fff; margin: 0 0 24px; text-wrap: pretty; }
.acard__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin: 0 0 14px; }

/*
 * .acard__list is a wrapper div around the "stats" WYSIWYG field's own
 * <ul>/<li> output. Targeted with descendant selectors since the editor's
 * markup can't carry our classes; covers both <b> and <strong> since the
 * Bold button's output tag isn't guaranteed.
 */
.acard__list { margin: 0 0 auto; } /* pushes .acard__note to the bottom: this wrapper is .acard's flex item, so the auto margin sits here, not on the ul */
.acard__list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.acard__list li { position: relative; padding-left: 20px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.acard__list li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.acard__list li b,
.acard__list li strong { color: #fff; font-weight: 600; }

.acard__note { margin-top: 30px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); }
.acard__note-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 7px; }
.acard__note p { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: #fff; font-weight: 500; text-wrap: pretty; }
@media (max-width: 860px) { .afford__grid { grid-template-columns: 1fr; } }

/* ═══════════ SECTION 4 — THE REAL COST (ROLLUP) ═══════════ */

/*
 * .rollup__sticky's background texture is a static theme image
 * (css/ → images/).
 */
.rollup { position: relative; background: #08160b; }
.rollup__track { height: 620vh; }
.rollup__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-bottom: clamp(14px, 2vh, 32px); background: linear-gradient(180deg, #08160b 0%, #08160b 15%, rgba(8, 22, 11, 0.72) 30%, rgba(8, 22, 11, 0.5) 52%, rgba(8, 22, 11, 0.55) 78%, #08160b 100%); }
.rollup__inner { width: min(1080px, 90vw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.rollup__head { font-family: var(--sans); font-weight: 500; font-size: clamp(27px, 3.5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 0; text-wrap: balance; }
.rollup__total { display: flex; align-items: flex-start; justify-content: center; color: #fff; font-family: var(--sans); line-height: 0.9; margin: clamp(24px, 4.6vh, 48px) 0 clamp(40px, 6vh, 66px); }
.rollup__cur { font-size: clamp(28px, 3.2vw, 50px); font-weight: 400; margin-top: clamp(8px, 1vw, 16px); color: rgba(255, 255, 255, 0.62); }
.rollup__num { font-size: clamp(58px, 8.6vw, 118px); font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rollup__bar { position: relative; width: min(860px, 84vw); height: 6px; }
.rollup__bar-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
.rollup__bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--accent); }
.rollup__thumb { position: absolute; top: 50%; left: 0; z-index: 4; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); }
.rollup__marks { position: absolute; left: 0; right: 0; top: 24px; height: 0; }
.rollup__mark { position: absolute; top: 0; transform: translateX(-50%); }
.rollup__mark::before { content: ""; position: absolute; left: 50%; top: -15px; width: 1px; height: 11px; background: rgba(255, 255, 255, 0.22); }
.rollup__mark-price { display: block; font-family: var(--mono); font-size: clamp(11px, 1vw, 13px); font-weight: 500; color: rgba(255, 255, 255, 0.6); white-space: nowrap; transition: color 0.3s ease, transform 0.3s ease; transform-origin: top center; }
.rollup__mark.is-on .rollup__mark-price { color: var(--accent); font-weight: 600; transform: scale(1.08); }
.rollup__msg { position: relative; width: min(640px, 90vw); margin: clamp(46px, 8vh, 80px) auto 0; min-height: 168px; }
.rollup__note, .rollup__payoff { position: absolute; left: 0; right: 0; top: 0; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.rollup__note.is-on, .rollup__payoff.is-on { opacity: 1; transform: none; }
.rollup__note-value { font-family: var(--mono); font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); letter-spacing: 0.04em; color: var(--accent); margin: 0 0 13px; }
.rollup__note-title { font-family: var(--sans); font-weight: 600; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.01em; color: #fff; margin: 0 0 13px; text-wrap: balance; }
.rollup__note-desc { font-family: var(--sans); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.55; color: rgba(255, 255, 255, 0.72); margin: 0; text-wrap: pretty; }

/*
 * .rollup__payoff is a wrapper div around the rollup_payoff WYSIWYG
 * field's <p> output. Positioning/opacity/transform (shared with
 * .rollup__note above) apply to this div, which carries the id/class the
 * JS toggles .is-on on; the text styling sits on the inner <p>.
 */
.rollup__payoff p { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2vw, 27px); line-height: 1.35; letter-spacing: -0.01em; color: #fff; text-wrap: balance; margin: 0; }
.rollup__payoff b,
.rollup__payoff strong { color: var(--accent); font-weight: 600; }

@media (max-width: 640px) {
	.rollup__msg { min-height: 204px; }
	.rollup__mark-price { font-size: 10px; }
}
/* Roll-back to the membership price (rollup_member_price; see pricing-sections.js). */
.rollup__total .rollup__num, .rollup__total .rollup__cur { transition: color 0.4s ease; }
.rollup__total.is-ours .rollup__num, .rollup__total.is-ours .rollup__cur { color: var(--accent); }
.rollup__ours {
  margin: calc(-1 * clamp(28px, 4.4vh, 50px)) 0 clamp(26px, 4vh, 44px); text-align: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.rollup__ours.is-on { opacity: 1; transform: none; }
.rollup__ours s { color: rgba(255, 255, 255, 0.45); margin: 0 6px; }
.rollup__ours b { display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; }

/* Lumart, 12 Nov (Pricing):
   1. Connector the same length as Home's (custom.css, experts → comparison);
      the space above the cards shrinks with it.
   2. "Invest in your health today…" in the section-heading style.
   3. "The real question…" bigger and closer to the cards; no light hairline
      where this section meets the slider below (.afford's own background
      was the cream page colour, showing at the photo's edge).
   4. Slider section ("Piece it together…"): more even spacing on phones. */
.conn-a { height: clamp(40px, 6vh, 64px); }
.conn-b { height: clamp(64px, 9vh, 100px); }
.afford { background: #08160b; }
.afford__inner { padding-top: clamp(104px, 15vh, 150px); }
.afford__title { font-weight: 500; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.08; white-space: normal; width: auto; max-width: 22ch; text-wrap: balance; }
.afford__statement { margin-top: clamp(40px, 6vh, 72px); font-size: clamp(24px, 2.8vw, 38px); width: min(900px, 92%); }
.rollup { margin-top: -1px; }
@media (max-width: 860px) {
  .afford__title { font-size: 32px; line-height: 1.12; max-width: none; }
  .afford__statement { font-size: 25px; margin-top: 40px; }
}
@media (max-width: 640px) {
  .rollup__total { margin: 44px 0 64px; }
  .rollup__mark-price { font-size: 10.5px; }
  .rollup__msg { margin-top: 76px; }
}

/* Lumart, 12 Nov: the market total is struck through when the payoff line
   comes in (no roll-back to the member price, no pill under it). */
.rollup__ours { display: none; }
.rollup__total { position: relative; }
.rollup__total::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: clamp(3px, 0.4vw, 5px);
  border-radius: 999px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.rollup__total.is-struck::after { transform: scaleX(1); }
.rollup__total .rollup__num, .rollup__total .rollup__cur { transition: color 0.4s ease; }
.rollup__total.is-struck .rollup__num, .rollup__total.is-struck .rollup__cur { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 640px) {
  .rollup__note-desc { font-size: 16px; color: #fff; }
  .rollup__note-title { font-size: 22px; }
}

/* Afford heading (Lumart, 12 Nov): "Don't pay a higher price" never splits, and the
   one set break is after "price". Line 1 wraps on its own where the width needs it. */
.afford__title { max-width: 26ch; text-wrap: wrap; }
.afford__keep { white-space: nowrap; }
@media (max-width: 640px) {
  .afford__title { font-size: min(32px, 7.6vw); max-width: none; }
}

/* Phones (Lumart, 12 Nov): less empty space between the membership card and the connector line. */
@media (max-width: 860px) {
  .value:has(+ .conn-a) .value__inner { padding-bottom: 48px; }
}

/* Lumart, 12 Nov (phones): "With OUTLIV, all of it is included…" bigger. */
@media (max-width: 760px) {
  .rollup__payoff p { font-size: 27px; line-height: 1.25; }
}
