/* /checkout styles, ported 2026-10-16 from prototypes/landing/v7/checkout.css. */
/* v7 checkout (one plan; plan-picker and Advocate rules below are unused leftovers from v6). Tokens from ../v4/kit/kit.css, base, buttons and header from v7.css. */

.co-page { background: radial-gradient(60% 40% at 80% 0%, rgba(1,255,134,0.05), transparent 70%), var(--bg); min-height: 100vh; }
html { scroll-behavior: auto; }
.co-page .head-in { max-width: 1120px; }
.co-secure { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--font-ui); color: var(--text-muted); }
.co-secure svg, .co-stripe svg { width: 14px; height: 14px; flex: none; }

.co { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gutter) 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.co-main { min-width: 0; max-width: 600px; }
.co-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-muted); text-decoration: none; margin-bottom: 18px; }
.co-back svg { width: 15px; height: 15px; }
.co-back:hover { color: var(--text); }
.co-main > h1 { font-size: clamp(36px, 4.6vw, 52px); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 32px; }

/* Steps */
.co-step { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
.co-step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font: 500 21px/1.2 var(--font); color: var(--text); }
.co-step legend span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 600 13px/1 var(--font-ui); color: var(--text-muted); }

/* Plan picker */
.co-plans { display: grid; gap: 12px; }
.co-plan { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.co-plan:hover { border-color: var(--line-2); }
.co-plan input { position: absolute; opacity: 0; pointer-events: none; }
.co-plan__dot { width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.co-plan__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--text); transform: scale(0); transition: transform .15s ease; }
.co-plan__t b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 18px/1.25 var(--font); color: var(--text); }
.co-plan__t > span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--text-muted); }
.co-plan__p { text-align: right; white-space: nowrap; }
.co-plan__p b { display: block; font: 500 22px/1.1 var(--font); color: var(--text); letter-spacing: -0.01em; }
.co-plan__p small { font-size: 12.5px; color: var(--text-muted); }
.co-chip { font: 600 11px/1 var(--font-ui); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(1,255,134,0.3); padding: 5px 8px; border-radius: 999px; }
.co-plan.is-on { border-color: rgba(255,255,255,0.55); box-shadow: 0 0 0 1px rgba(255,255,255,0.55); }
.co-plan.is-on .co-plan__dot { border-color: var(--text); }
.co-plan.is-on .co-plan__dot::after { transform: scale(1); }
.co-plan--adv.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px -24px rgba(1,255,134,0.45); background: linear-gradient(180deg, rgba(1,255,134,0.08) 0%, var(--panel) 60%); }
.co-plan--adv.is-on .co-plan__dot { border-color: var(--accent); }
.co-plan--adv.is-on .co-plan__dot::after { background: var(--accent); }
.co-plan input:focus-visible ~ .co-plan__dot { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Email */
.co-label, .pe-l { display: block; font: 500 13px/1.2 var(--font-ui); color: var(--text-muted); margin-bottom: 8px; }
.co-input { width: 100%; font: 400 16px/1.2 var(--font-ui); color: var(--text); background: #1a1a1a; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 14px 14px; transition: border-color .15s, box-shadow .15s; }
.co-input::placeholder { color: var(--text-faint); }
.co-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.co-hint { margin-top: 8px; font-size: 13.5px; color: var(--text-faint); }

/* Payment Element stand-in */
/* The Stripe Payment Element mounts in .co-pe (production). The .pe-* rules below styled the prototype's stand-in. */
.co-pe { min-height: 210px; }
.co-pe__status { margin: 0; padding: 16px 14px; border: 1px dashed rgba(255,255,255,0.14); border-radius: 10px; color: var(--text-muted); font-size: 14.5px; line-height: 1.45; }
.co-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pe { display: grid; gap: 16px; }
.pe-express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pe-wallet { height: 48px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,0.18); color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px; font: 600 18px/1 var(--font-ui); letter-spacing: -0.01em; }
.pe-wallet svg { width: 18px; height: 18px; margin-top: -3px; }
.pe-wallet--g { background: #fff; color: #3c4043; border-color: #fff; font-weight: 500; }
.pe-wallet--g b { font-weight: 700; color: #4285f4; margin-right: 2px; }
.pe-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-faint); }
.pe-or::before, .pe-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pe-f--wide { grid-column: 1 / -1; }
.pe-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 14px; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; font-size: 16px; color: var(--text-faint); }
.pe-brands { display: flex; gap: 4px; font-style: normal; }
.pe-brands em { font: 700 9px/1 var(--font-ui); font-style: normal; letter-spacing: .02em; color: var(--text-muted); border: 1px solid var(--line-2); border-radius: 3px; padding: 4px 4px; }

/* Submit */
.co-error { margin: -8px 0 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(245,196,81,0.4); background: rgba(245,196,81,0.08); color: var(--gold); font-size: 14.5px; line-height: 1.45; }
.co-submit { margin-top: 4px; }
.co-submit[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.co-terms { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.co-terms b { color: var(--text); font-weight: 600; }
.co-terms a { color: var(--text-secondary); }
.co-stripe { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); }

/* Summary */
.co-sum { position: sticky; top: calc(var(--stick-top) + 24px); }
.co-sum__card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%); padding: clamp(22px, 2.4vw, 28px); box-shadow: var(--shadow); }
html[data-plan="advocate"] .co-sum__card { border-color: rgba(1,255,134,0.4); background: linear-gradient(180deg, rgba(1,255,134,0.08) 0%, var(--panel) 45%, var(--bg-2) 100%); box-shadow: var(--shadow), 0 24px 60px -30px rgba(1,255,134,0.35); }
.co-sum__k { font: 600 12px/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.co-sum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.co-sum__name { font: 500 20px/1.2 var(--font); color: var(--text); }
.co-sum__price { font: 500 30px/1 var(--font); color: var(--text); letter-spacing: -0.02em; white-space: nowrap; }
.co-sum__price small { font: 400 13px var(--font-ui); letter-spacing: 0; color: var(--text-muted); margin-left: 3px; }
.co-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.co-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--text-secondary); }
.co-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.co-list li b { color: var(--text); font-weight: 600; }


.co-guar { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(1,255,134,0.3); background: rgba(1,255,134,0.06); font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.co-guar b { color: var(--accent); font-weight: 600; }
.co-up { display: block; width: 100%; margin-top: 14px; padding: 14px 16px; text-align: left; border-radius: 12px; border: 1px dashed rgba(1,255,134,0.4); background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 14px; line-height: 1.45; transition: background-color .15s, border-color .15s; }
.co-up:hover { background: rgba(1,255,134,0.06); border-color: var(--accent); }
.co-up b { display: block; color: var(--text); font-weight: 600; }
.co-up > span { color: var(--accent); }

.co-total { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.co-total div { display: flex; justify-content: space-between; gap: 16px; }
.co-total dt, .co-total dd { margin: 0; }
.co-total dt { color: var(--text); font-weight: 600; }
.co-total dd { font: 500 20px/1.2 var(--font); color: var(--text); }
.co-total__then dt, .co-total__then dd { font: 400 14px/1.4 var(--font-ui); color: var(--text-muted); }

/* Paid */
.co-done { padding-top: 8px; outline: none; }
.co-done__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 22px; box-shadow: 0 0 0 8px rgba(1,255,134,0.12); }
.co-done__mark svg { width: 28px; height: 28px; }
.co-done h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 400; letter-spacing: -0.025em; line-height: 1; }
.co-done__sub { margin-top: 14px; font-size: 18px; color: var(--text-secondary); }
.co-done__sub b { color: var(--text); font-weight: 600; }
.co-done .btn-big { margin-top: 32px; }
.co-done__auto { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.co-done__fine { margin-top: 22px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* Phone summary bar: hidden on desktop */
.co-sumbar { display: none; }

@media (max-width: 900px) {
  .co { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .co-main { max-width: none; padding-top: 24px; }
  .co-sumbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter); background: var(--bg-2); border: 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 15px; }
  .co-sumbar__l { display: flex; align-items: center; gap: 8px; color: var(--accent); }
  .co-sumbar__l svg { width: 12px; height: 12px; transition: transform .2s ease; }
  .co-sumbar[aria-expanded="true"] .co-sumbar__l svg { transform: rotate(180deg); }
  .co-sumbar__p { color: var(--text-muted); }
  .co-sumbar__p b { font: 500 18px/1 var(--font); color: var(--text); }
  .co-sum { position: static; order: -1; display: none; margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter) 4px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .co-sum.is-open { display: block; }
  .co-sum__card { border: 0; background: none !important; box-shadow: none !important; padding: 0 0 12px; }
  .co-sum__k { display: none; }
  .co-sumbar { order: -2; }
  .co-main { order: 0; }
  html.co-paid .co-sumbar, html.co-paid .co-sum { display: none; }
}
@media (max-width: 520px) {
  .co-plan { grid-template-columns: 22px minmax(0, 1fr); padding: 16px; }
  .co-plan__p { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 2px; }
  .co-plan__p b { display: inline; font-size: 20px; }
  .co-step legend { font-size: 19px; }
  .co-submit { font-size: 16px; padding-inline: 16px; white-space: normal; }
}

/* v7: the founding (one-time) line in the summary */
.co-founding { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245,196,81,0.3); background: rgba(245,196,81,0.06); font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.co-founding b { color: var(--gold); font-weight: 600; }
