/* Self-serve checkout. Homepage type and buttons (Manrope 800, .hl brand blue, .er-cta from hero.css);
   the preview phone uses the PITCH app's cockpit colors so the buyer sees the product they are buying. */
:root { --ink: #17324A; --ink-2: #4A5D70; --line: #DCE4EC; --brand: #146FA3; --brand-light: #6FC7EE; --navy: #0b1420;
        --app-bg: #090D14; --app-panel: #121A25; --app-line: #1E2A38; --app-accent: #54B6EC; --app-text: #EAF1F8; --app-mid: #AEB8C4;
        --ease: cubic-bezier(.2,.7,.2,1); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Nunito Sans", Manrope, system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.hl { color: var(--brand); }
.co { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh; }

/* ---------- Form side ---------- */
.co-main { padding: 28px clamp(20px, 5vw, 72px) 56px; max-width: 760px; width: 100%; justify-self: end; }
.co-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 5vh, 52px); }
.co-logo img { height: 34px; width: auto; display: block; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; font: 700 13px Manrope, sans-serif; color: var(--ink-2); }
.co-secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.co-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 clamp(28px, 4vh, 40px); }
.co-steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font: 700 12px Manrope, sans-serif; color: #93A3B3; }
.co-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.co-steps li b { display: none; }
.co-steps li.on, .co-steps li.done { color: var(--ink); }
.co-steps li.on::before { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.co-steps li.done::before { background: var(--brand); }

.co-step { display: none; }
.co-step [tabindex="-1"]:focus { outline: none; } /* headings take focus on step change for screen readers */
.co-step.on { display: block; animation: co-in .6s var(--ease); }
.co-step.on.back { animation-name: co-in-back; }
@keyframes co-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes co-in-back { from { opacity: 0; transform: translateX(-24px); } }
.co-eyebrow { font: 800 12px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.co h1, .co h2, .co-handoff h2 { font: 800 clamp(30px, 3.6vw, 46px)/1.02 Manrope, sans-serif; letter-spacing: -.03em; margin: 0 0 14px; }
.co-lede { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }

.co-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.co-plan { position: relative; cursor: pointer; }
.co-plan input { position: absolute; opacity: 0; }
.co-plan-body { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 18px; border: 1.5px solid var(--line);
                transition: border-color .2s, box-shadow .2s, transform .2s; }
.co-plan:hover .co-plan-body { border-color: #A9C4DA; }
.co-plan input:checked + .co-plan-body { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20,111,163,.12), 0 18px 40px -24px rgba(20,111,163,.6); transform: translateY(-2px); }
.co-plan input:focus-visible + .co-plan-body { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.co-plan-name { font: 800 15px Manrope, sans-serif; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-plan-name em { font-style: normal; font-size: 11px; color: #0d6b3f; background: #E3F6EC; padding: 3px 8px; border-radius: 999px; }
.co-plan-amt { font: 800 38px/1 Manrope, sans-serif; letter-spacing: -.03em; }
.co-plan-note { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.co-plan-amt { display: inline-block; transform-origin: left center; }
.co-plan-amt.bump { animation: co-bump .5s cubic-bezier(.2,.7,.2,1); }
@keyframes co-bump { 30% { transform: scale(1.12); color: var(--brand); } }
.co-plan-math { font: 700 13.5px Manrope, sans-serif; color: var(--brand); }
.co-plan-seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); cursor: default; }
.co-plan-seats b { color: var(--ink); font: 800 14px Manrope, sans-serif; display: block; }
.co-plan .co-stepper { background: #F3F6F9; box-shadow: none; }
.co-plan .co-stepper button { background: #fff; }
.co-stepper { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 1px 0 var(--line); flex: none; }
.co-stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #EEF2F6; font: 800 18px Manrope, sans-serif; color: var(--ink); cursor: pointer; }
.co-stepper button:hover { background: #E3F1FA; }
.co-stepper output { min-width: 28px; text-align: center; font: 800 17px Manrope, sans-serif; }
.co-annual-note, .co-team-note { font-size: 14px; color: var(--ink-2); margin: 0; }
.ph-empty { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--app-mid); }

.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 20px; }
.co-field { display: flex; flex-direction: column; gap: 6px; font: 700 13px Manrope, sans-serif; color: var(--ink-2); }
.co-wide { grid-column: 1 / -1; }
.co-field input { font: 600 16px "Nunito Sans", sans-serif; color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
                             background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; }
.co-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20,111,163,.12); }
.co-field input[aria-invalid="true"] { border-color: #D0435B; box-shadow: 0 0 0 4px rgba(208,67,91,.1); }


.co-receipt { border: 1.5px solid var(--line); border-radius: 18px; padding: 6px 20px; margin-bottom: 22px; }
.co-receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.co-receipt div span:first-child { color: var(--ink-2); }
.co-receipt div span:last-child { font-weight: 700; text-align: right; }
.co-receipt .co-sum { border-bottom: 0; font: 800 20px Manrope, sans-serif; }
.co-receipt .co-sum span:first-child { color: var(--ink); }
.co-next, .co-flow { list-style: none; counter-reset: n; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.co-next { grid-template-columns: repeat(3, 1fr); }
.co-next li, .co-flow li { counter-increment: n; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.co-next li::before, .co-flow li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
                                          font: 800 13px Manrope, sans-serif; color: #fff; background: var(--brand); }
.co-next b, .co-flow b { font: 800 15px Manrope, sans-serif; color: var(--ink); }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.co-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); }
.co-check a { color: var(--brand); font-weight: 700; }

.co-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.co-back { border: 0; background: none; font: 800 15px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; padding: 10px 4px; }
.co-back:hover { color: var(--ink); }
.co-back[hidden] { display: block; visibility: hidden; }
.co-nav-r { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); }
.co-skip { border: 0; background: none; font: 800 15px Manrope, sans-serif; color: var(--ink-2); cursor: pointer; padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; }
.co-skip:hover { color: var(--ink); }
.co .er-cta, .co-handoff .er-cta { height: 54px; padding: 0 28px; font-size: 16px; gap: 10px; border: 0; cursor: pointer; }
.co-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.co-go:hover svg { transform: translateX(3px); }
.co-error { min-height: 1.4em; margin: 12px 0 0; color: #B3263E; font-weight: 700; font-size: 14px; }

/* ---------- Live preview side ---------- */
.co-side { position: relative; overflow: hidden; color: #fff;
           background: radial-gradient(90% 60% at 80% 0%, rgba(42,159,216,.32), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(20,111,163,.35), transparent 60%), var(--navy); }
.co-side::before { content: ""; position: absolute; inset: 0; opacity: .14;
                   background: url("img/floor-sm.jpg") center / cover; filter: grayscale(1) blur(2px); mix-blend-mode: luminosity; }
.co-side-in { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 24px; }
.co-side-label { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 12px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-light); }
.co-side-label i { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 10px #3DD68C; animation: co-blink 2s infinite; }
@keyframes co-blink { 50% { opacity: .3; } }
.co-phone { position: relative; height: min(610px, 100vh - 150px); aspect-ratio: 300 / 610; /* fits short laptop screens */ border-radius: 46px; padding: 12px; background: #1c2836;
            box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -20px rgba(0,0,0,.7), inset 0 0 0 2px #2a3a4c;
            transform: perspective(1200px) rotateY(-8deg) rotateX(2deg); transition: transform .8s var(--ease); }
.co-phone:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.ph-notch { position: absolute; z-index: 2; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #05080d; }
.ph { height: 100%; border-radius: 36px; overflow: hidden; background: var(--app-bg); color: var(--app-text); font-family: Manrope, sans-serif;
      padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.ph-bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; padding: 2px 10px 8px; }
.ph-dots { display: flex; gap: 3px; align-items: center; } .ph-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--app-text); }
.ph-head { display: flex; align-items: center; gap: 10px; }
.ph-mono { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 14px;
           background: linear-gradient(135deg, #2A9FD8, #146FA3); flex: none; }
.ph-head b { display: block; font-size: 15px; } .ph-head div span { display: block; font-size: 11.5px; color: var(--app-mid); }
.ph-show { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(84,182,236,.2), rgba(84,182,236,.04)); border: 1px solid rgba(84,182,236,.3); }
.ph-k { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--app-accent); }
.ph-show b { display: block; font-size: 17px; margin: 4px 0 2px; line-height: 1.15; }
.ph-when { font-size: 12px; color: var(--app-mid); }
.ph-scan { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 14px; background: var(--app-accent);
           color: #06121d; font: 800 15px Manrope, sans-serif; box-shadow: 0 8px 24px -8px rgba(84,182,236,.8); }
.ph-scan svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ph-card { padding: 12px 14px; border-radius: 16px; background: var(--app-panel); border: 1px solid var(--app-line); }
.ph-row { display: flex; justify-content: space-between; align-items: center; }
.ph-row b { font-size: 15px; }
.ph-plan { font-size: 11px; font-weight: 800; color: #F4B53C; }
.ph-team { display: flex; margin-top: 10px; min-height: 32px; }
.ph-team span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-right: -6px;
                border: 2px solid var(--app-panel); background: #2E4257; animation: co-pop .4s var(--ease); }
.ph-team span:first-child { background: linear-gradient(135deg, #2A9FD8, #146FA3); }
@keyframes co-pop { from { transform: scale(.4); opacity: 0; } }
.flash { animation: co-flash .9s ease; }
@keyframes co-flash { 0% { box-shadow: 0 0 0 0 rgba(84,182,236,.9); } 100% { box-shadow: 0 0 0 14px rgba(84,182,236,0); } }
.co-total { display: flex; align-items: baseline; gap: 8px; font-family: Manrope, sans-serif; }
.co-total span { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-light); }
.co-total b { font-size: 34px; letter-spacing: -.03em; }
.co-total small { color: #B8C7D6; font-weight: 700; }

/* ---------- Hand-off to Stripe (end of the demo) ---------- */
.co-handoff { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(5,12,22,.72);
              backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: co-fade .4s ease; }
.co-handoff[hidden] { display: none; }
@keyframes co-fade { from { opacity: 0; } }
.co-handoff-card { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; color: var(--ink); border-radius: 26px;
                   padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); animation: co-in .6s var(--ease); }
.co-flow { grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 28px; }
.co-handoff-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; }
  .co-main { justify-self: stretch; max-width: none; padding-bottom: 32px; }
  .co-side-in { min-height: 0; position: static; padding: 36px 20px 48px; }
  .co-phone { transform: none; }
}
@media (max-width: 560px) {
  .co-plans, .co-grid, .co-next, .co-flow { grid-template-columns: 1fr; }
  .co-phone { height: 550px; }
  .co .er-cta { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-step.on, .ph-team span, .flash, .co-plan-amt.bump, .co-handoff, .co-handoff-card { animation: none; }
  .co-side-label i { animation: none; }
  .co-phone { transform: none; transition: none; }
}
.co-handoff .er-cta-2 { box-shadow: inset 0 0 0 1.5px var(--line); } /* white button on a white card needs an edge */
