/* casttit.com/upgrade (founder, 10 Nov 2026: "it should feel like buying something useful"): a checkout with steps, a
   live preview of the stream (arena.js), what Creator adds, and an order summary with the Pay button. On top of
   site.css, pages.css, lux.css and signin.css (sign-in states, [hidden], status line). */
.page .wrap:has(.checkout) { max-width: 1180px; }
.page .wrap > .prose:has(.checkout), .checkout { min-width: 0; }

/* steps */
body.lux .prose ol.co-steps { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0;
  align-items: center; }
body.lux .prose .co-steps li { display: flex; align-items: center; gap: 9px; font: 700 14.5px var(--body); color: var(--subtle); }
body.lux .prose .co-steps li + li::before { content: ""; width: 34px; height: 2px; margin: 0 12px 0 4px; border-radius: 1px;
  background: var(--line-2); }
body.lux .prose .co-steps li i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid;
  place-items: center; font: 800 13px var(--body); background: var(--raise); color: var(--subtle); }
body.lux .prose .co-steps li.is-current { color: var(--text); }
body.lux .prose .co-steps li.is-current i { background: var(--signal); color: #14080A; box-shadow: 0 0 0 4px var(--signal-soft); }
body.lux .prose .co-steps li.is-done { color: var(--text); }
body.lux .prose .co-steps li.is-done i { background: rgba(59, 209, 138, .18); color: transparent; position: relative; }
body.lux .prose .co-steps li.is-done i::after { content: ""; position: absolute; inset: 0; background: no-repeat center / 13px
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314683D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
body.lux .prose .co-steps li.is-done + li::before, body.lux .prose .co-steps li.is-done + li.is-current::before { background: rgba(59, 209, 138, .55); }

/* layout: preview and what you get on the left, the order on the right */
.checkout .co-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 22px 32px;
  grid-template-areas: "preview order" "what order"; grid-template-rows: auto 1fr; align-items: start; }
.checkout .co-preview { grid-area: preview; }
.checkout .co-order { grid-area: order; position: sticky; top: 92px; }
.checkout .co-what { grid-area: what; }

/* the live preview */
body.lux .prose .co-preview { position: relative; margin: 0; }
.checkout .co-preview canvas { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #0d1330;
  box-shadow: 0 30px 60px -34px rgba(14, 16, 20, .7), 0 0 0 1px rgba(14, 16, 20, .08); }
.checkout .co-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px;
  margin-top: 12px; }
.checkout .co-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.checkout .co-chips span { padding: 7px 11px; border-radius: 999px; font: 800 12.5px/1 var(--body); letter-spacing: .3px;
  color: #FFFFFF; background: var(--ink); }
.checkout .co-preview[data-plan="creator"] .co-chips span { background: var(--signal); color: #14080A; }
.checkout .co-toggle { position: absolute; right: 14px; top: 14px; display: flex; padding: 4px; border-radius: 999px;
  background: rgba(10, 12, 20, .62); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.checkout .co-toggle button { border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  font: 800 13px/1 var(--body); color: rgba(255, 255, 255, .78); }
.checkout .co-toggle button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); }
.checkout .co-toggle button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
body.lux .prose .co-preview figcaption { margin: 0; font-size: 13px; line-height: 1.4; color: var(--subtle); flex: 1 1 220px;
  text-align: right; }
@media (max-width: 560px) { body.lux .prose .co-preview figcaption { text-align: left; } }

/* what you get */
body.lux .prose .co-what h2 { font-size: 24px; margin: 6px 0 14px; }
body.lux .prose ul.co-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.lux .prose .co-benefits li { display: flex; gap: 13px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--line); }
body.lux .prose .co-benefits .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--signal-soft); flex: none;
  display: grid; place-items: center; }
body.lux .prose .co-benefits .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--signal); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
body.lux .prose .co-benefits b { display: block; font: 700 16px/1.3 var(--display); color: var(--text); margin-bottom: 3px; }
body.lux .prose .co-benefits span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* the order card */
.checkout .co-card { padding: 26px; border-radius: 24px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(14, 16, 20, .03), 0 30px 60px -38px rgba(14, 16, 20, .45); }
.checkout .co-card p { margin: 0; }          /* low on purpose: the rules below set each paragraph's space */
body.lux .prose .co-test { margin: 0 0 16px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: #8A2A0E;
  background: #FFF1EB; border: 1px solid #FFC9B5; }
body.lux .prose .co-eyebrow { font: 800 12px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--signal); }
body.lux .prose h2.co-plan { font: 800 22px/1.25 var(--display); margin: 10px 0 0; color: var(--text); }
body.lux .prose .co-price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
body.lux .prose .co-price b { font: 800 52px/1 var(--display); letter-spacing: -.045em; color: var(--text); }
body.lux .prose .co-price s { font: 700 22px var(--display); color: var(--subtle); }
body.lux .prose .co-price span { font-weight: 600; }
body.lux .prose .co-month { margin-top: 4px; font-size: 14.5px; color: var(--subtle); }
body.lux .prose dl.co-lines { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.checkout .co-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.checkout .co-lines dt, .checkout .co-lines dd { margin: 0; }
.checkout .co-lines dd { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.checkout .co-lines .co-total { padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--line-2); font-weight: 800;
  color: var(--text); font-size: 16.5px; }
.checkout .co-lines .co-total dd { font-weight: 800; }
body.lux .prose .co-renew { margin-top: 10px; font-size: 14px; color: var(--subtle); }
.checkout .co-btn { width: 100%; height: 56px; justify-content: center; margin-top: 18px; font-size: 17px; border-radius: 14px; }
body.lux .prose .checkout a.co-btn { text-decoration: none; }
body.lux .prose .checkout a.btn-primary.co-btn, body.lux .prose .checkout a.btn-primary.co-btn:hover { color: #14080A; }
body.lux .prose .checkout a.btn-quiet.co-btn { color: var(--text); }
.checkout .btn-primary.co-btn { box-shadow: 0 16px 30px -16px rgba(255, 91, 46, .9); }
.checkout .co-btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
body.lux .prose .co-why { margin-top: 10px; font-size: 13.5px; color: var(--subtle); text-align: center; }
body.lux .prose .co-wait { margin-top: 18px; color: var(--subtle); }
body.lux .prose .co-soon { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--raise); color: var(--muted);
  font-size: 15px; line-height: 1.5; }
body.lux .prose .co-soon b { color: var(--text); }
body.lux .prose .co-beta { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: var(--signal-soft);
  font-size: 13.5px; color: var(--muted); }
body.lux .prose .co-beta b { color: var(--text); }
body.lux .prose ul.co-assure { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 9px; }
body.lux .prose .co-assure li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.checkout .co-assure svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #14683D; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round; }
body.lux .prose .co-legal { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--subtle); text-align: center; }

/* after paying, or already on Creator */
.checkout .co-done { text-align: center; padding: 6px 0 2px; }
.checkout .co-tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(59, 209, 138, .16); box-shadow: 0 0 0 8px rgba(59, 209, 138, .07); }
.checkout .co-tick svg { width: 30px; height: 30px; fill: none; stroke: #14683D; stroke-width: 3; stroke-linecap: round;
  stroke-linejoin: round; }
body.lux .prose .co-done h2 { font: 800 26px/1.2 var(--display); margin: 0; color: var(--text); }
body.lux .prose .co-done p { margin-top: 8px; color: var(--muted); }
body.lux .prose ol.co-next { counter-reset: next; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px;
  text-align: left; }
body.lux .prose .co-next li { counter-increment: next; position: relative; padding: 12px 12px 12px 48px; border-radius: 14px;
  background: var(--paper); font-size: 14.5px; color: var(--text); }
body.lux .prose .co-next li::before { content: counter(next); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--body); background: var(--signal); color: #14080A; }
.checkout .status { text-align: center; }

@media (max-width: 940px) {
  .checkout .co-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "preview" "order" "what"; }
  .checkout .co-order { position: static; }
}
@media (max-width: 560px) {
  body.lux .prose ul.co-benefits { grid-template-columns: 1fr; }
  .checkout .co-card { padding: 22px 18px; }
  body.lux .prose .co-price b { font-size: 46px; }
  body.lux .prose ol.co-steps { gap: 8px 16px; }
  body.lux .prose .co-steps li + li::before { display: none; }
  body.lux .prose .co-steps li { font-size: 13.5px; }
  .checkout .co-long { display: none; }
  .checkout .co-toggle button { padding: 6px 11px; }
}
body.lux .prose .co-card p.status { margin-top: 12px; }
