/* Order page: the offer, a real project example, and the existing Whop checkout. */
.checkout-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 52rem 38rem at 73% 13%, rgb(35 76 170 / 25%), transparent 70%),
    radial-gradient(ellipse 42rem 34rem at -12% 62%, rgb(28 58 126 / 17%), transparent 70%),
    #101626;
  color: #f3f6ff;
}
.checkout-page a:focus-visible,
.checkout-page button:focus-visible,
.checkout-page input:focus-visible,
.checkout-page textarea:focus-visible {
  outline: 3px solid #77a8ff;
  outline-offset: 3px;
}
.checkout-nav,
.checkout-footer {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.checkout-nav {
  min-height: 5.25rem;
  border-bottom: 1px solid rgb(173 195 255 / 13%);
}
.checkout-nav .brand { color: #f3f6ff; }
.checkout-nav .brand-mark { box-shadow: 0 0 1.5rem rgb(54 112 255 / 40%); }
.checkout-nav nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.checkout-nav nav a {
  color: #aebbd4;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.checkout-nav nav a:hover { color: #fff; }

.checkout-layout {
  width: min(100%, 80rem);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5.5rem) var(--page-gutter) 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr);
  grid-template-areas: "summary payment" "preview payment" "more more";
  column-gap: clamp(2.25rem, 5vw, 5.5rem);
  row-gap: 2.75rem;
  align-items: start;
}
.order-summary { grid-area: summary; min-width: 0; }
.order-eyebrow,
.section-index,
.step-label {
  margin: 0;
  color: #90aeef;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.5;
  text-transform: uppercase;
}
.order-eyebrow { display: flex; align-items: center; gap: .75rem; }
.eyebrow-mark {
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5b94ff;
  box-shadow: 0 0 0 .35rem rgb(73 125 249 / 14%), 0 0 1.25rem #5b94ff;
}
.order-summary h1 {
  max-width: 11.4ch;
  margin: 1.4rem 0 1.5rem;
  color: #f7f9ff;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.3vw, 5.45rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
}
.order-summary h1 span { color: #7caaff; }
.order-intro {
  max-width: 33rem;
  margin: 0;
  color: #bfc9dc;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
}
.order-jump {
  width: fit-content;
  min-height: 2.9rem;
  margin-top: 1.5rem;
  padding: .65rem .9rem;
  border: 1px solid #73a7ff;
  border-radius: .4rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgb(38 105 232 / 18%);
  color: #e5efff;
  font-family: var(--font-display);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.order-jump:hover { background: rgb(38 105 232 / 31%); transform: translateY(-2px); }
.order-jump span:last-child { margin-left: 1rem; font-size: 1rem; }
.order-facts {
  max-width: 36rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding: 1.1rem 0;
  border-block: 1px solid rgb(173 195 255 / 19%);
  display: grid;
  grid-template-columns: .77fr 1.35fr 1fr;
  gap: 1rem;
}
.order-facts div { display: flex; flex-direction: column; gap: .3rem; }
.order-facts strong {
  color: #f7f9ff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}
.order-facts span { color: #9daecb; font-size: .72rem; line-height: 1.35; }
.order-hero-note { margin: .65rem 0 0; color: #8799b8; font-size: .7rem; }

.payment-panel {
  grid-area: payment;
  min-width: 0;
  position: relative;
  scroll-margin-top: 1.5rem;
  align-self: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid #c6d5ef;
  border-radius: .95rem;
  background: #f7faff;
  color: #17223b;
  box-shadow: 0 1.75rem 5rem rgb(2 7 24 / 42%), 0 0 0 .35rem rgb(160 189 255 / 5%);
  overflow: hidden;
}
.payment-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: .28rem;
  background: linear-gradient(90deg, #2472ee, #78a6ff 56%, #c7dbff);
}
.payment-topline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.payment-panel .step-label { color: #2e65c1; }
.payment-tag {
  padding: .32rem .6rem;
  border: 1px solid #d4e1f5;
  border-radius: 100px;
  color: #345a91;
  background: #eaf1ff;
  font-family: var(--font-mono);
  font-size: .62rem;
  white-space: nowrap;
}
.payment-panel h2 {
  margin: 1.55rem 0 .4rem;
  color: #15233d;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -.05em;
  line-height: 1.08;
}
.payment-intro,
.payment-panel #order-intake > p { margin: 0; color: #58667e; font-size: .88rem; line-height: 1.6; }
.order-price {
  margin: 1.3rem 0 1.45rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #dce5f2;
  color: #172a50;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 4.5vw, 4.1rem);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: 1;
}
.order-price span {
  display: inline-block;
  padding-left: .45rem;
  color: #5d6e8a;
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: .36rem;
}
.payment-includes > p {
  margin: 0 0 .6rem;
  color: #314664;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.payment-includes ul { margin: 0; padding: 0; list-style: none; }
.payment-includes li {
  position: relative;
  padding: .33rem 0 .33rem 1.55rem;
  color: #34435b;
  font-size: .84rem;
  line-height: 1.45;
}
.payment-includes li::before {
  content: "✓";
  position: absolute;
  top: .35rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #dceaff;
  color: #1d5fd0;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}
.terms-check {
  margin: 1.35rem 0 .9rem;
  padding: .8rem .85rem;
  border: 1px solid #dbe6f6;
  border-radius: .48rem;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: #edf3fc;
  color: #3e4e68;
  font-size: .77rem;
  line-height: 1.5;
}
.terms-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: .08rem 0 0;
  flex: 0 0 auto;
  accent-color: #236fec;
}
.terms-check a,
.checkout-status a,
.scope-note a,
.checkout-footer a { color: inherit; text-underline-offset: .2em; }
.terms-check a:hover { color: #1450b7; }
.btn {
  width: 100%;
  min-height: 3.4rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: linear-gradient(110deg, #1266ec, #247dff);
  color: #fff;
  box-shadow: 0 .6rem 1.4rem rgb(29 104 236 / 22%);
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}
.btn:hover:not(:disabled) { filter: brightness(1.09); box-shadow: 0 .8rem 1.8rem rgb(29 104 236 / 30%); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: #8293ae; box-shadow: none; cursor: not-allowed; }
.checkout-status {
  min-height: 1.5em;
  margin: .65rem 0 0;
  color: #66778e;
  font-size: .74rem;
  line-height: 1.5;
}
.checkout-status.is-error { color: #ac2f28; }
#whop-checkout { min-width: 0; }
#whop-checkout iframe { width: 100%; min-height: 30rem; border: 0; }
.payment-security {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #dce5f2;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: #69788d;
  font-size: .68rem;
  line-height: 1.55;
}
.security-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #a6c7fb;
  border-radius: 50%;
  color: #1f68d5;
  font-size: .67rem;
  font-weight: 800;
}
#order-intake { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dce5f2; }
#order-intake h2 { margin-top: .75rem; }
#intake-form .field { margin: 1.1rem 0 0; }
#intake-form .field label { margin-bottom: .35rem; }
#intake-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #aebbd0;
  border-radius: .4rem;
  background: #fff;
  color: #17223b;
  font: inherit;
  resize: vertical;
}
.order-detail { color: #627087; font-size: .75rem; line-height: 1.6; }
[hidden] { display: none !important; }

.order-preview {
  grid-area: preview;
  min-width: 0;
  display: block;
  border: 1px solid rgb(164 187 244 / 28%);
  border-radius: .75rem;
  background: #1a2438;
  color: #f3f6ff;
  box-shadow: 0 1.5rem 3rem rgb(1 5 19 / 20%);
  overflow: hidden;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.order-preview:hover { transform: translateY(-3px); border-color: #6c9ffb; box-shadow: 0 1.8rem 3rem rgb(1 5 19 / 34%); }
.preview-bar {
  min-height: 2.5rem;
  padding: .55rem .8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #adbedb;
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1.3;
}
.preview-bar > span:last-child { margin-left: auto; font-size: .9rem; }
.preview-dots { display: flex; gap: .28rem; }
.preview-dots i { width: .36rem; height: .36rem; border-radius: 50%; background: #65799c; }
.preview-dots i:first-child { background: #79a7ff; }
.order-preview img { width: 100%; height: auto; }
.preview-caption {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.preview-caption strong,
.preview-caption small { display: block; }
.preview-caption strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.preview-caption small { margin-top: .15rem; color: #9fb3d7; font-size: .75rem; }
.preview-arrow {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border: 1px solid #6888bd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.order-more {
  grid-area: more;
  min-width: 0;
  margin-top: 2rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgb(173 195 255 / 18%);
}
.section-heading h2,
.order-bottom h2 {
  margin: .8rem 0 0;
  color: #f7f9ff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.03;
}
.section-heading h2 span { color: #8eb3fa; }
.included-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.included-grid article {
  min-width: 0;
  min-height: 12.5rem;
  padding: 1.25rem;
  border: 1px solid rgb(164 187 244 / 18%);
  border-radius: .55rem;
  background: rgb(192 211 255 / 4%);
}
.included-grid article > span {
  color: #83a7f0;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.included-grid h3 {
  margin: 2.2rem 0 .45rem;
  color: #f5f7ff;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.included-grid p { margin: 0; color: #a6b4cb; font-size: .8rem; line-height: 1.55; }
.order-bottom {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid rgb(173 195 255 / 18%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.order-steps { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.order-steps li {
  position: relative;
  min-height: 4.3rem;
  padding: 0 0 1.25rem 3.3rem;
  border-left: 1px solid #425a85;
  counter-increment: steps;
}
.order-steps li:last-child { border-left-color: transparent; }
.order-steps li::before {
  content: "0" counter(steps);
  position: absolute;
  top: 0;
  left: -1px;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  border: 1px solid #5e8fea;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #14203b;
  color: #a8c3ff;
  font-family: var(--font-mono);
  font-size: .62rem;
}
.order-steps strong,
.order-steps span { display: block; }
.order-steps strong { color: #f7f9ff; font-family: var(--font-display); font-size: 1rem; }
.order-steps span { max-width: 30rem; margin-top: .2rem; color: #a6b4cb; font-size: .8rem; line-height: 1.55; }
.scope-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(164 187 244 / 16%);
  border-radius: .55rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  background: rgb(192 211 255 / 4%);
}
.scope-note p { max-width: 48rem; margin: 0; color: #a5b3cd; font-size: .73rem; line-height: 1.6; }
.scope-note p:last-child { flex: 0 0 auto; }
.scope-note a { color: #d3e2ff; font-weight: 600; }

.checkout-footer {
  min-height: 5.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(173 195 255 / 16%);
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #8d9eba;
  font-size: .72rem;
}
.checkout-footer span { margin-right: auto; }
.checkout-footer a:hover { color: #fff; }

@media (max-width: 59rem) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "payment" "preview" "more";
    gap: 2.5rem;
  }
  .order-summary h1 { max-width: 13ch; }
  .payment-panel { width: min(100%, 38rem); }
  .order-preview { width: min(100%, 38rem); }
  .included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-note { display: block; }
  .scope-note p:last-child { margin-top: .75rem; }
}
@media (max-width: 38rem) {
  .checkout-nav { min-height: 4.5rem; }
  .checkout-nav nav a:last-child { display: none; }
  .checkout-nav .brand-name { display: inline; }
  .checkout-nav .brand-long { display: none; }
  .checkout-nav .brand-name { font-size: .78rem; }
  .checkout-layout { padding-top: 2.6rem; padding-bottom: 4rem; gap: 2rem; }
  .order-summary h1 { max-width: 11ch; margin-top: 1.25rem; font-size: clamp(2.75rem, 12.6vw, 4.25rem); }
  .order-intro { font-size: .96rem; }
  .order-facts { gap: .55rem; margin-top: 2rem; }
  .order-facts strong { font-size: 1.4rem; }
  .order-facts span { font-size: .65rem; }
  .payment-panel { padding: 1.35rem; border-radius: .7rem; }
  .payment-panel h2 { font-size: 1.85rem; }
  .order-price { font-size: 3.3rem; }
  .included-grid { gap: .65rem; }
  .included-grid article { min-height: 0; padding: 1rem; }
  .included-grid h3 { margin-top: 1.4rem; font-size: 1rem; }
  .included-grid p { font-size: .73rem; }
  .order-more { margin-top: 0; padding-top: 2.7rem; }
  .order-bottom { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .order-steps { margin-left: 1rem; }
  .checkout-footer span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
