/*--------------------------------------------------------------
# Pricing page (templates/precart-page.php)
# Plain CSS, served as-is. Fonts come from the theme
# (@font-face printed by mth-precart.php).
# Phones: picker, then proof. 960px+: proof on the left, picker on the right.
--------------------------------------------------------------*/
:root {
  --navy: #2e3b65;
  --mint: #72d8a2;
  --mint-hover: #8fe1b6;
  --mint-tint: #e4f6ef;
  --cream: #faf6ee;
  --ink: #151515;
  --muted: #5d6478;
  --line: #dfe3ec;
  --selected: #f6f8fd;
  --serif: 'Hedvig Letters Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Satoshi', 'Satoshi-Fallback', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.pricing { display: flex; flex-direction: column; min-height: 100vh; }

/* Picker */
.pricing-pick { width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.pricing-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pricing-logo { display: block; width: 150px; }
.pricing-logo svg { display: block; width: 100%; height: auto; }
.secure { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }

.offer-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--mint-tint); color: var(--navy); border-radius: 10px; padding: 9px 14px; font-size: 15px; font-weight: 500; }
.offer-strip b { font-variant-numeric: tabular-nums; white-space: nowrap; }

h1 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: clamp(32px, 8vw, 42px); line-height: 1.1; margin: 4px 0 0; text-wrap: balance; }
.pricing-sub { color: var(--muted); font-size: 17px; margin-top: -6px; }

.pricing-form { display: flex; flex-direction: column; gap: 22px; }
.plans { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }

.plan { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.plan:hover { border-color: #b8c0d6; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan:has(input:checked) { border-color: var(--navy); background: var(--selected); }
.plan:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.plan-dot { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid #b4bbcc; display: grid; place-items: center; }
.plan:has(input:checked) .plan-dot { border-color: var(--navy); }
.plan:has(input:checked) .plan-dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); }
.plan-name { font-weight: 700; font-size: 19px; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.plan-badge { font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1; border-radius: 999px; padding: 5px 9px; background: var(--mint); color: var(--navy); }
.plan-price { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.2; }
.plan-price b { display: block; font-size: 21px; color: var(--navy); font-variant-numeric: tabular-nums; }
.plan-detail { grid-column: 2 / 4; font-size: 14px; color: var(--muted); }
.plan-detail s { color: #9aa1b3; }

.trial { list-style: none; margin: 0; padding: 0; display: grid; }
.trial li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.trial li:last-child { padding-bottom: 0; }
.trial li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.trial-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--mint-tint); color: var(--navy); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.trial-icon svg { width: 15px; height: 15px; }
.trial p { font-size: 15px; color: var(--muted); padding-top: 4px; }
.trial b { display: block; color: var(--navy); font-size: 16px; }

.cta-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; display: grid; gap: 6px; }
/* Fades the content scrolling under the pinned button */
.cta-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0)); pointer-events: none; }
.cta { appearance: none; border: 0; border-radius: 999px; background: var(--mint); color: var(--navy); font: 700 18px/1.2 var(--sans); padding: 17px 20px; width: 100%; cursor: pointer; transition: background-color .15s ease; }
.cta:hover { background: var(--mint-hover); }
.cta-note { text-align: center; font-size: 13.5px; color: var(--muted); }

.included { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
.included summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 16px; }
.included-body { padding-top: 10px; }
.included-body strong { display: block; color: var(--navy); margin-top: 10px; }
.included-body ul { margin: 4px 0 0; padding-left: 20px; }
.questions { font-size: 14px; color: var(--muted); }

/* Proof */
.pricing-proof { background: var(--navy); color: #fff; padding: 36px 24px 44px; display: flex; flex-direction: column; gap: 14px; }
.pricing-proof > * { width: 100%; max-width: 480px; margin-inline: auto; }
.proof-video { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #1f2850; }
.proof-video img, .proof-video iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.proof-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; background: rgba(255, 255, 255, .92); color: var(--navy); font: 700 15px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.proof-stars { color: #f4c04e; letter-spacing: .1em; font-size: 16px; }
.pricing-proof blockquote { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.3; }
.proof-cite { font-size: 14px; color: #c3c9de; }
.proof-join { font-weight: 700; font-size: 15px; color: var(--mint); }
.proof-press { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .15); }
.proof-press p { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c3c9de; }
.proof-press div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.proof-press img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

@media (min-width: 960px) {
  .pricing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .pricing-proof { order: -1; position: sticky; top: 0; height: 100vh; overflow-y: auto; justify-content: center; padding: 48px 56px; }
  .pricing-pick { padding: 36px 40px 48px; max-width: 560px; }
  /* Still pinned, so the button stays in view on short laptop screens */
  .cta-bar { margin: 0 -40px; padding: 12px 40px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .plan, .cta { transition: none; }
}
