/* Order form (checkout). Figma frames 55:194 (desktop, 1200w) and 55:528 (mobile, 390w). */
body.page-order { background: var(--order-bg); }

/* Header on this page: 62px tall in both frames. */
.page-order .site-header { padding: 18px 24px 17px; }

/* Mobile gold bar (this page's copy). */
.ord-bar-m .bf-bar__main { letter-spacing: 0.78px; }

/* ---------- Trust strip ---------- */
.ord-trust {
  background: var(--bf-black);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 36px; padding: 13px 24px;
  color: var(--gold);
  font-weight: 700; font-size: 13px; letter-spacing: 0.78px; line-height: normal;
}
.ord-trust__item { display: inline-flex; align-items: center; white-space: nowrap; }
.ord-trust__icon { width: 13px; height: 13px; flex: none; margin-right: 8px; }

/* ---------- Heading ---------- */
.ord-head {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 48px 48px 36px; text-align: center;
}
.ord-head__eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: 1.56px; color: var(--blue);
  white-space: nowrap;
}
.ord-progress { display: flex; gap: 6px; }
.ord-progress__dash {
  width: 32px; height: 6px; border-radius: 3px;
  background: #FFFFFF; border: 1px solid var(--sky);
}
.ord-progress__dash--on { background: var(--blue); border: 0; }
.ord-head__title {
  font-weight: 800; font-size: 46px; line-height: 52px; letter-spacing: -0.92px;
  color: var(--navy); max-width: 540px;
}

/* ---------- Columns ---------- */
.ord-cols {
  display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 512fr);
  gap: 32px; align-items: start;
  padding: 0 var(--pad-d) 56px;
}
@media (max-width: 999.98px) {
  .ord-cols { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; padding-inline: 40px; }
}

/* ---------- Order form card (left) ---------- */
.ord-form {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 22px;
  filter: drop-shadow(0 10px 15px rgba(20, 31, 51, 0.06));
  display: flex; flex-direction: column; gap: 24px;
  padding: 32px 30px;
  min-width: 0;
}
.ord-form__title { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.ord-form__eyebrow { font-size: 12px; letter-spacing: 1.2px; color: var(--blue); }
.ord-form__h { font-weight: 700; font-size: 22px; color: var(--navy); }
.ord-divider { height: 1px; background: var(--border); }

/* Whop's embedded checkout mounts here. */
.ord-whop { min-height: 360px; width: 100%; }

.ord-due {
  display: flex; align-items: center; gap: 8px;
  background: var(--bf-black); border-radius: 12px;
  padding: 16px 18px;
}
.ord-due__label { flex: 1 1 0; min-width: 0; font-weight: 600; font-size: 15px; color: #FFFFFF; }
.ord-due__amount { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ord-due__was { font-weight: 700; font-size: 14px; color: var(--strike); }
.ord-due__now { font-weight: 900; font-size: 20px; color: var(--gold); }

#ord-pay { height: 60px; }
.ord-pay__label { white-space: pre; }
.ord-badge { display: flex; justify-content: center; }

.ord-terms { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; }
.ord-terms__text { font-weight: 400; line-height: 18px; color: #6B7894; }
.ord-terms__powered { font-weight: 600; color: #8A96AE; white-space: pre; }

/* ---------- Plan + stack card (right) ---------- */
.ord-plan {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(20, 31, 51, 0.06);
  overflow: hidden; min-width: 0;
}
.ord-plan__head {
  background: var(--bf-black);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 28px; text-align: center;
}
.ord-plan__eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 1.44px; color: var(--gold); white-space: nowrap; }
.ord-plan__title { font-weight: 800; font-size: 27px; line-height: 32px; color: #FFFFFF; }
.ord-plan__sub { font-weight: 500; font-size: 15px; color: #E6EEFB; }
.ord-plan__body { display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.ord-plan__label { font-weight: 700; font-size: 12px; letter-spacing: 1.2px; color: var(--blue); }

.ord-item { display: flex; align-items: flex-start; gap: 12px; }
.ord-item__check { width: 22px; height: 22px; flex: none; }
.ord-item__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ord-item__title { font-weight: 700; font-size: 16px; color: var(--navy); text-wrap: wrap; }
.ord-item__desc { font-weight: 400; font-size: 14px; line-height: 21px; color: var(--slate); }

/* Protocol library box */
.ord-lib {
  background: #F3F7FE; border: 1px solid #B9CCEE; border-radius: 16px; overflow: hidden;
}
.ord-lib__head {
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 20px; text-align: center;
}
.ord-lib__eyebrow { font-weight: 700; font-size: 11px; letter-spacing: 1.32px; color: var(--light-blue); white-space: pre; }
.ord-lib__title { font-weight: 800; font-size: 21px; color: #FFFFFF; }
.ord-lib__sub { font-weight: 400; font-size: 13px; color: #C9D6EE; }
.ord-lib__list { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.ord-proto { display: flex; align-items: flex-start; gap: 10px; }
.ord-proto__star { flex: none; font-weight: 700; font-size: 15px; color: var(--blue); }
.ord-proto__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ord-proto__name { font-weight: 700; font-size: 15px; color: var(--navy); }
.ord-proto__desc { font-weight: 400; font-size: 13px; line-height: 19px; color: var(--slate); }
.ord-proto__tag { flex: none; font-weight: 700; font-size: 11px; letter-spacing: 0.66px; color: var(--pill-text); white-space: nowrap; }

/* Value box */
.ord-value {
  background: var(--bf-black); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 20px; text-align: center;
}
.ord-value__tag {
  background: var(--gold); border-radius: 999px; padding: 5px 12px;
  font-weight: 900; font-size: 11px; letter-spacing: 1.1px; color: var(--bf-black); white-space: nowrap;
}
.ord-value__reg { font-weight: 500; font-size: 13px; color: #9AA0AE; white-space: nowrap; }
.ord-value__price { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ord-value__was { font-weight: 700; font-size: 22px; color: var(--strike); }
.ord-value__now { font-weight: 900; font-size: 48px; color: var(--gold); }
.ord-value__per { font-weight: 600; font-size: 15px; color: #FFFFFF; }
.ord-value__save {
  background: var(--red); border-radius: 6px; padding: 5px 10px;
  font-weight: 900; font-size: 12px; letter-spacing: 0.48px; color: #FFFFFF; white-space: nowrap;
}
.ord-value__day { font-weight: 500; font-size: 13px; color: var(--gray-on-black); }

/* ---------- Guarantee ---------- */
.ord-guar {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 8px var(--pad-d) 56px; text-align: center;
}
.ord-guar__seal { width: 150px; height: 150px; object-fit: contain; }
.ord-guar__title { font-weight: 800; font-size: 24px; color: var(--navy); }
.ord-guar__text { max-width: 800px; font-weight: 400; font-size: 16px; line-height: 25px; color: var(--slate); }
.ord-guar__text a { color: inherit; }

/* ---------- Reviews ---------- */
.ord-reviews {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  padding: 24px var(--pad-d) 72px;
}
.ord-reviews__title { font-weight: 800; font-size: 34px; letter-spacing: -0.34px; color: var(--navy); text-align: center; }
.ord-reviews__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  width: 100%; max-width: 1098px;
}
.ord-review {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 18px;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px; min-width: 0;
}
.ord-review__by { display: flex; align-items: center; gap: 12px; }
.ord-review__avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; }
.ord-review__name { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ord-review__who { font-weight: 800; font-size: 15px; color: var(--navy); }
.ord-review__stars { font-weight: 700; font-size: 14px; letter-spacing: 1px; color: var(--star); white-space: nowrap; }
.ord-review__win { font-weight: 900; font-size: 18px; line-height: 1.2; color: var(--blue); text-wrap: wrap; }
.ord-review__part { display: flex; flex-direction: column; gap: 4px; }
.ord-review__lbl { font-weight: 800; font-size: 11px; letter-spacing: 1.5px; color: var(--blue); }
.ord-review__before { font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--slate); }
.ord-review__after { font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--navy); }
.ord-review__tenure { font-weight: 600; font-size: 12px; color: var(--slate); }
@media (min-width: 768px) and (max-width: 1099.98px) {
  .ord-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Footer ---------- */
.ord-foot {
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px max(40px, calc((100% - 960px) / 2)); text-align: center;
  font-size: 12px;
}
.ord-foot__logo { display: inline-flex; align-items: center; gap: 8px; }
.ord-foot__logo img { width: 26px; height: 26px; flex: none; }
.ord-foot__word { font-weight: 800; font-size: 14px; letter-spacing: 2.5px; color: #FFFFFF; white-space: nowrap; }
.ord-foot__disc { font-weight: 400; line-height: 18px; color: var(--light-blue); }
.ord-foot__help { font-weight: 400; color: #C9D6EE; white-space: pre-wrap; }
.ord-foot__help a { color: inherit; }
.ord-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16.6px; color: #C9D6EE; }
.ord-foot__grp { display: contents; }
.ord-foot__links a { text-decoration: underline; text-underline-position: from-font; white-space: nowrap; }

/* ================= Mobile frame (below 768px) ================= */
@media (max-width: 767.98px) {
  .page-order .site-header { padding: 18px 16px 17px; }

  .ord-trust { gap: 6px 14px; padding: 10px 12px; font-size: 10px; letter-spacing: 0.3px; }
  .ord-trust__icon { width: 10px; height: 10px; margin-right: 6px; }

  .ord-head { padding: 28px 20px 22px; }
  .ord-head__eyebrow { font-size: 11px; letter-spacing: 1.32px; }
  .ord-head__title { font-size: 30px; line-height: 35px; letter-spacing: -0.6px; max-width: 330px; }

  .ord-cols { gap: 20px; padding: 0 14px 36px; max-width: none; }

  .ord-form { gap: 20px; padding: 24px 18px; }
  .ord-due__was { font-size: 13px; }
  .ord-due__now { font-size: 18px; }

  .ord-plan__head { padding: 24px 18px; }
  .ord-plan__title { font-size: 22px; line-height: 27px; }
  .ord-plan__sub { font-size: 13px; }
  .ord-plan__body { padding: 22px 18px; }
  .ord-lib__title { font-size: 18px; }
  .ord-lib__list { padding: 18px 14px; }
  .ord-proto__tag { font-size: 9px; letter-spacing: 0.54px; }
  .ord-value__now { font-size: 42px; }

  .ord-guar { padding: 8px 22px 40px; }
  .ord-guar__seal { width: 130px; height: 130px; }
  .ord-guar__title { font-size: 21px; }
  .ord-guar__text { font-size: 15px; line-height: 23px; }

  .ord-reviews { gap: 20px; padding: 24px 14px 44px; }
  .ord-reviews__title { font-size: 24px; letter-spacing: -0.24px; }
  .ord-reviews__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .ord-foot { padding: 36px 22px; font-size: 11px; }
  .ord-foot__links { flex-direction: column; align-items: center; line-height: 20px; }
  .ord-foot__grp { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 7px; }
}

/* Figma breaks body copy greedily; match it (base sets text-wrap: pretty on p). */
.ord-main p, .ord-foot p { text-wrap: wrap; }
.ord-trust__item { line-height: 12px; }
@media (min-width: 380px) and (max-width: 767.98px) { .ord-guar__title { white-space: nowrap; } }
@media (min-width: 768px) { .ord-trust__item { line-height: normal; } }
.ord-plan__title { text-wrap: wrap; }
.ord-proto__star { width: 14px; }
.ord-proto__name { line-height: 18px; }
.ord-proto__tag { width: 66px; }
@media (max-width: 767.98px) { .ord-proto__tag { width: 54px; } }

/* Narrow phones (360-379px): keep one-line rows from the 390 frame on one line. */
@media (max-width: 379.98px) {
  #ord-pay { padding-inline: 8px; }
  .ord-badge { margin-inline: -12px; }
  .ord-plan__head { padding-inline: 12px; }
  .ord-value { padding-inline: 10px; }
  .ord-value__price { gap: 6px; }
  .ord-value__price > * { flex: none; }
}
