/* ==========================================================================
   FitnessBlackBelt — checkout.css  (Enrollment page)
   Loads AFTER contact.css, which supplies the shared form-control kit.
   Sections: Slim header · Hero + step bar · Plan picker · Order summary
             · Reassurance · Slim footer
   ========================================================================== */

/* ==========================================================================
   1. SLIM HEADER
   ========================================================================== */
.checkout-header {
  background: rgba(11, 9, 7, 0.8);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.checkout-header .header__inner { gap: 1rem; }

.checkout-header__secure {
  display: none;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-header__secure svg { width: 15px; height: 15px; color: var(--ok); }
@media (min-width: 720px) { .checkout-header__secure { display: flex; } }

.checkout-header__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease-out);
}
.checkout-header__back svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease-out); }
.checkout-header__back:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.05);
}
.checkout-header__back:hover svg { transform: translateX(-3px); }
@media (max-width: 520px) { .checkout-header__back span { display: none; } }

/* ==========================================================================
   2. HERO — checkout variant
   Hero component lives in base.css. Checkout runs a slightly tighter title
   and leads with the progress bar instead of an eyebrow pill.
   ========================================================================== */
.hero--checkout { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4rem); }
.hero--checkout .hero__title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero--checkout .hero__visual { width: min(100%, 440px); }

.steps-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: var(--fs-xs);
  color: var(--dim);
}
.steps-bar li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  letter-spacing: .04em;
}
.steps-bar li span {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
}
.steps-bar .is-done { color: var(--muted); }
.steps-bar .is-done span {
  color: var(--ok);
  border-color: rgba(52,211,153,.4);
  background: rgba(52,211,153,.12);
}
.steps-bar .is-current { color: #fff; font-weight: 600; }
.steps-bar .is-current span {
  color: var(--on-brand);
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(217,180,65,0.12);
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.checkout__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}
@media (min-width: 1000px) { .checkout__grid { grid-template-columns: 1.4fr .6fr; } }

.checkout__main { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); min-width: 0; }
.checkout__aside { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .checkout__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* ==========================================================================
   4. SECTION BOXES
   ========================================================================== */
.kobox {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(201,162,39,.1), transparent 60%),
    linear-gradient(168deg, rgba(255,255,255,.042), rgba(255,255,255,.008)), var(--surface);
}
.kobox__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.85rem;
  border-bottom: 1px solid var(--line);
}
.kobox__step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-300);
  padding: .25rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(217,180,65,.12);
  border: 1px solid rgba(217,180,65,.24);
  flex: none;
}
.kobox__head h2 { font-size: var(--fs-lg); letter-spacing: -0.024em; }

.kobox__hint {
  margin-top: 1.35rem;
  font-size: var(--fs-xs);
  color: var(--dim);
  line-height: 1.6;
}
.kobox__hint a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.kobox__hint a:hover { color: var(--brand-200); }

/* ==========================================================================
   5. PLAN PICKER
   ========================================================================== */
.plan-picker { display: grid; gap: .75rem; }

.ppick { cursor: pointer; display: block; }
/* `display: block` above outranks the UA's [hidden] rule, so the hidden
   test option would otherwise still render. Keep this next to it. */
.ppick[hidden] { display: none; }
.ppick input { position: absolute; opacity: 0; pointer-events: none; }

.ppick__box {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.022);
  transition: all var(--dur) var(--ease-out);
}
.ppick:hover .ppick__box { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.05); }

/* Radio mark */
.ppick__mark {
  position: relative;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03);
  transition: all var(--dur) var(--ease-out);
}
.ppick__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform var(--dur) var(--ease-spring);
}

.ppick__body { display: grid; gap: .25rem; min-width: 0; }
.ppick__body strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-soft);
  line-height: 1.3;
}
.ppick__body em { font-style: normal; font-size: var(--fs-xs); color: var(--dim); line-height: 1.5; }

.ppick__flag {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .16rem .5rem;
  border-radius: var(--r-pill);
  color: var(--on-brand);
  background: var(--grad-brand);
}

/* The free tier is a no-cost entry point, not a promoted upsell */
.ppick__flag--free {
  color: var(--text-soft);
  background: rgba(255,255,255,.12);
}

/* The internal test charge should never look like something to buy */
.ppick--test .ppick__box { border-style: dashed; }
.ppick__flag--test {
  color: #0A0806;
  background: #E0574A;
}

.ppick__price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Selected state */
.ppick input:checked + .ppick__box {
  border-color: rgba(217,180,65,.65);
  background:
    radial-gradient(110% 100% at 0% 50%, rgba(201,162,39,.2), transparent 65%),
    rgba(201,162,39,.09);
  box-shadow: 0 0 0 1px rgba(217,180,65,0.23), 0 16px 40px -24px rgba(201,162,39,0.65);
}
.ppick input:checked + .ppick__box .ppick__mark {
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(217,180,65,0.12);
}
.ppick input:checked + .ppick__box .ppick__mark::after { transform: scale(1); }
.ppick input:checked + .ppick__box .ppick__body strong,
.ppick input:checked + .ppick__box .ppick__price { color: #fff; }
.ppick input:checked + .ppick__box .ppick__body em { color: var(--brand-200); }
.ppick input:focus-visible + .ppick__box { outline: 2px solid var(--brand-300); outline-offset: 3px; }

@media (max-width: 560px) {
  .ppick__box { grid-template-columns: 22px 1fr; }
  .ppick__price { grid-column: 2; text-align: left; }
}

/* ==========================================================================
   6. ORDER SUMMARY
   ========================================================================== */
.summary {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(217,180,65,.28);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201,162,39,.2), transparent 62%),
    linear-gradient(170deg, var(--surface-2), var(--bg-2));
  box-shadow: 0 40px 90px -55px rgba(169,132,24,0.65);
}
.summary::before {
  content: '';
  position: absolute;
  inset-inline: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231,203,116,.6), transparent);
}

.summary__title {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.35rem;
}

.summary__plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.summary__plan-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.summary__plan-head span { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .2rem; }
.summary__plan-price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(120deg, #fff, var(--brand-200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.summary__includes {
  display: grid;
  gap: .55rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.summary__includes li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--muted);
}
.summary__includes li::before {
  content: '';
  position: absolute;
  left: 0; top: .5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
}

.summary__rows { display: grid; gap: .7rem; padding: 1.35rem 0; }
.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.summary__free { color: var(--ok); font-size: var(--fs-xs); letter-spacing: .04em; }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.summary__total span {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
}
.summary__total strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}

.summary__assure { display: grid; gap: .65rem; padding: 1.35rem 0; }
.summary__assure li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: .6rem;
  align-items: start;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--muted);
}
.summary__assure svg { width: 13px; height: 13px; margin-top: .28rem; color: var(--ok); }

.summary__coach {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: .85rem;
  align-items: center;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.summary__coach img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid rgba(240,220,160,.4);
}
.summary__coach strong { display: block; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 650; }
.summary__coach span { display: block; font-size: 10px; letter-spacing: .04em; color: var(--gold); }

/* Value flash when the plan changes (class toggled by checkout.js) */
.summary__plan-price.is-updating,
.summary__total strong.is-updating {
  animation: value-flash 620ms var(--ease-out);
}
@keyframes value-flash {
  0%   { transform: translateY(-8px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ==========================================================================
   7. REASSURANCE
   ========================================================================== */
.reassure__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}
@media (min-width: 780px) { .reassure__grid { grid-template-columns: repeat(3, 1fr); } }

.reassure__card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(168deg, rgba(255,255,255,.042), rgba(255,255,255,.008)), var(--surface);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.reassure__card:hover { border-color: rgba(217,180,65,.3); transform: translateY(-4px); }
.reassure__card svg {
  width: 42px; height: 42px;
  padding: 10px;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  color: var(--brand-300);
  background: rgba(217,180,65,.1);
  border: 1px solid rgba(217,180,65,.2);
}
.reassure__card h3 { font-size: var(--fs-base); font-weight: 650; margin-bottom: .5rem; }
.reassure__card p { font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   8. SLIM FOOTER
   ========================================================================== */
.checkout-footer { padding-top: clamp(2rem, 4vw, 3rem); }
.checkout-footer .footer__disclaimer { border-top: 0; padding-top: 0; }

/* ==========================================================================
   9. THANK-YOU  (post-payment confirmation — thank-you.html)
   ========================================================================== */
.thanks { padding-top: clamp(3rem, 8vw, 6rem); }

.thanks__panel {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(201,162,39,.13), transparent 62%),
    linear-gradient(168deg, rgba(255,255,255,.042), rgba(255,255,255,.008)), var(--surface);
}

.thanks__icon {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  color: var(--on-brand);
  background: var(--grad-brand);
  box-shadow: 0 0 34px rgba(217,180,65,.35);
}
.thanks__icon svg { width: 30px; height: 30px; }

.thanks__title { font-size: var(--fs-3xl); margin: .55rem 0 1rem; }
.thanks__lede { margin-inline: auto; max-width: 54ch; }

/* Order recap — only shown once there is a real order to show */
.thanks__order {
  display: grid;
  gap: .85rem;
  margin: 2rem 0;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  text-align: left;
  border: 1px solid rgba(217,180,65,.22);
  border-radius: var(--r-md);
  background: rgba(217,180,65,.055);
}
.thanks__order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.thanks__order-label { color: var(--dim); font-size: 10px; letter-spacing: .1em; }
.thanks__order-row strong { font-size: var(--fs-sm); color: #FFFFFF; }

.thanks__next-title {
  margin: clamp(2rem, 4vw, 2.75rem) 0 1.35rem;
  font-size: var(--fs-lg);
  text-align: left;
}

.thanks__steps { display: grid; gap: 1.1rem; text-align: left; }
.thanks__steps li { display: flex; gap: 1rem; align-items: flex-start; }
.thanks__step-no {
  flex: none;
  min-width: 34px;
  padding: .3rem 0;
  color: var(--brand-300);
  font-size: 10px;
  letter-spacing: .1em;
}
.thanks__steps strong { display: block; margin-bottom: .25rem; font-weight: 650; color: #FFFFFF; }
.thanks__steps p { font-size: var(--fs-sm); color: var(--muted); }

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 1.5rem;
}
.thanks__actions .btn { flex: 1 1 auto; min-width: 190px; justify-content: center; }

.thanks__help { font-size: var(--fs-sm); color: var(--muted); }

@media (max-width: 520px) {
  .thanks__actions .btn { flex-basis: 100%; }
}
