/* ============================================================
   Checkout Flow — companion demo
   6-step e-commerce flow: Save → Account → SSO → Cart → Pay → Done
   Top tabs with a connecting progress line, single center stage,
   continuity threaded through (avatar / cart / order).
   ============================================================ */

.co-section {
    --co-cyan: #2BA89E;
    --co-purple: #B7A4F0;
    --co-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --co-display: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
    --co-ease: cubic-bezier(0.4, 0, 0.2, 1);
    background: #000000;
    color: #FFFFFF;
    padding: 96px 0 112px;
    position: relative;
}

.co-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.co-section__head {
    margin-bottom: 2.5rem;
}

.co-section__label {
    font-family: var(--co-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
    display: block;
}

.co-section__headline {
    font-family: var(--co-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1rem 0;
    max-width: 820px;
    position: relative;
    display: inline-block;
}

.co-section__headline::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
    margin-top: 0.875rem;
}

.co-section__sub {
    font-family: var(--co-display);
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    max-width: 720px;
    margin: 1rem 0 0;
}

/* ============================================================
   Sticky stage — widget latches under header + 20px
   ============================================================ */
.co-stage-wrap {
    position: relative;
}

.co-stage-wrap__inner {
    position: sticky;
    top: calc(var(--header-height, 90px) + 20px);
}

.co-stage-wrap::after {
    content: '';
    display: block;
    height: 50vh;
}

/* ============================================================
   Shell
   ============================================================ */
.co-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    min-width: 0;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(43, 168, 158, 0.35);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    box-shadow:
        0 0 0 1px rgba(43, 168, 158, 0.08),
        0 0 24px rgba(43, 168, 158, 0.18),
        0 0 64px rgba(43, 168, 158, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.4);
}

.co-shell h1, .co-shell h2, .co-shell h3 { color: inherit; }

.co-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--co-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.co-head__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--co-cyan);
    box-shadow: 0 0 12px var(--co-cyan);
}

.co-head__spacer { flex: 1; }

.co-head__stripe {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--co-mono);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.co-head__stripe-mark {
    font-family: var(--co-display);
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #B7AAFF;
    font-size: 12px;
}

/* ============================================================
   Tab strip — top
   ============================================================ */
.co-tabs {
    position: relative;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.co-tabs__row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: relative;
    z-index: 1;
}

.co-tabs__line {
    position: absolute;
    top: 51px;
    left: calc(32px + (100% - 64px) / 12);
    right: calc(32px + (100% - 64px) / 12);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.co-tabs__line-fill {
    position: absolute;
    inset: 0;
    background: var(--co-cyan);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s var(--co-ease);
}

.co-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
    padding: 4px 8px;
    font-family: inherit;
}

.co-tab__num {
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
}

.co-tab--active .co-tab__num,
.co-tab--done .co-tab__num { color: var(--co-cyan); }

.co-tab__dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s var(--co-ease);
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--co-mono);
    font-size: 10px;
}

.co-tab__dot svg {
    width: 12px; height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.co-tab--active .co-tab__dot {
    border-color: var(--co-cyan);
    background: rgba(43, 168, 158, 0.08);
    color: var(--co-cyan);
    box-shadow: 0 0 0 4px rgba(43, 168, 158, 0.08);
}

.co-tab--done .co-tab__dot {
    border-color: var(--co-cyan);
    background: var(--co-cyan);
    color: #000000;
}

.co-tab--done .co-tab__dot svg { stroke: #000000; }

.co-tab__label {
    font-family: var(--co-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.co-tab--active .co-tab__label { color: #FFFFFF; }
.co-tab--done .co-tab__label { color: rgba(255, 255, 255, 0.7); }

.co-tab__progress {
    height: 2px;
    width: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
    margin-top: 2px;
    transition: opacity 0.3s;
}

.co-tab--active .co-tab__progress { opacity: 1; }

.co-tab__progress-fill {
    height: 100%;
    background: var(--co-cyan);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ============================================================
   Stage area
   ============================================================ */
.co-stage {
    height: 520px;
    position: relative;
    overflow: hidden;
}

.co-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--co-ease), visibility 0s linear 0.3s;
}

.co-scene--active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--co-ease), visibility 0s linear 0s;
}

.co-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

/* Persistent continuity strip below stage */
.co-receipt {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--co-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.5px;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
}

.co-receipt::-webkit-scrollbar { height: 4px; }
.co-receipt::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

.co-receipt__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(43, 168, 158, 0.05);
    border: 1px solid rgba(43, 168, 158, 0.25);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    flex-shrink: 0;
}

.co-receipt__chip::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--co-cyan);
}

.co-receipt__chip-key { color: rgba(255, 255, 255, 0.4); }
.co-receipt__chip-val { color: rgba(255, 255, 255, 0.9); font-weight: 500; }

.co-receipt__sep {
    width: 16px; height: 1px;
    background: rgba(43, 168, 158, 0.2);
    margin: 0 4px;
    flex-shrink: 0;
}

.co-receipt__empty {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* ============================================================
   SCENE 1 — Save to Project
   ============================================================ */
.co-s1 {
    display: grid;
    grid-template-columns: 320px 320px;
    gap: 32px;
    align-items: center;
}

.co-product {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.co-product__img {
    aspect-ratio: 1 / 1;
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
}

.co-product__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.co-product__save {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.co-product__save svg { width: 16px; height: 16px; stroke: #FFFFFF; }
.co-product__save--saved { background: var(--co-cyan); border-color: var(--co-cyan); }
.co-product__save--saved svg { stroke: #000000; fill: #000000; }

.co-product__body { padding: 14px 16px; }
.co-product__title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    margin-bottom: 4px;
}
.co-product__sub {
    font-family: var(--co-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}
.co-product__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.co-product__price {
    font-family: var(--co-display);
    font-weight: 300;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.co-toast {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(43, 168, 158, 0.05);
    border: 1px solid rgba(43, 168, 158, 0.3);
    position: relative;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s 0.2s, transform 0.4s 0.2s;
}

.co-toast--show { opacity: 1; transform: translateX(0); }

.co-toast__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--co-cyan);
}

.co-toast__head-check {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--co-cyan);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.co-toast__title {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.1px;
}

.co-toast__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* ============================================================
   SCENE 2 — Create Account modal
   ============================================================ */
.co-s2 {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.co-modal {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #0F1218;
    overflow: hidden;
}

.co-modal__head { padding: 22px 24px 6px; }

.co-modal__title {
    font-family: var(--co-display);
    font-weight: 300;
    font-size: 22px;
    letter-spacing: -0.5px;
    margin: 0 0 4px;
}

.co-modal__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.co-modal__body {
    padding: 18px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.co-input {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
}

.co-input__label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--co-mono);
}

.co-input__value { color: rgba(255, 255, 255, 0.5); }

.co-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    font-family: var(--co-mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
}

.co-divider::before,
.co-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.co-btn {
    border-radius: 8px;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: -0.1px;
    transition: all 0.2s;
}

.co-btn--google {
    background: #FFFFFF;
    color: #1F1F1F;
    border-color: #FFFFFF;
    position: relative;
}

.co-btn--google.co-btn--pulse {
    animation: co-pulse 1.6s ease-out 1;
}

@keyframes co-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

/* ============================================================
   SCENE 3 — Google account picker
   ============================================================ */
.co-s3 {
    width: 380px;
    position: relative;
}

.co-google {
    background: #FFFFFF;
    color: #1F1F1F;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Google Sans', 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid #DADCE0;
}

.co-google__head {
    padding: 18px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.co-google__brand {
    font-size: 11px;
    color: #5F6368;
}

.co-google__close {
    color: #5F6368;
    font-size: 14px;
}

.co-google__title {
    padding: 18px 24px 6px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: #202124;
}

.co-google__sub {
    padding: 0 24px 14px;
    font-size: 13px;
    color: #5F6368;
    line-height: 1.4;
}

.co-google__sub strong { color: #1A73E8; font-weight: 500; }

.co-google__list { padding: 0 0 8px; }

.co-google__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.co-google__item--hover { background: #F1F3F4; }
.co-google__item--selected { background: #E8F0FE; }

.co-google__item--selected::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #1A73E8;
}

.co-google__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34A853, #1A73E8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 13px;
}

.co-google__name {
    font-size: 13px;
    color: #202124;
}

.co-google__email {
    font-size: 11px;
    color: #5F6368;
}

.co-google__add {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #5F6368;
    font-size: 13px;
    border-top: 1px solid #E8EAED;
}

.co-google__add-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #5F6368;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5F6368;
    font-size: 18px;
    font-weight: 300;
}

.co-google__foot {
    padding: 12px 24px 18px;
    font-size: 10px;
    color: #5F6368;
    line-height: 1.4;
}

.co-cursor {
    position: absolute;
    width: 14px; height: 14px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    left: 30%;
    top: 320px;
    transition: opacity 0.3s, transform 0.7s var(--co-ease), left 0.7s var(--co-ease), top 0.7s var(--co-ease);
}

.co-cursor svg { width: 100%; height: 100%; }
.co-cursor--show { opacity: 1; left: 60%; top: 195px; }
.co-cursor--clicked { transform: scale(0.85); }

/* ============================================================
   SCENE 4 — Checkout with auto-fill
   ============================================================ */
.co-s4 {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

.co-checkout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px;
}

.co-section-label {
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.co-field {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}

.co-field__lbl {
    font-family: var(--co-mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.co-field__val {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    min-height: 18px;
}

.co-field--filling {
    border-color: rgba(43, 168, 158, 0.4);
    background: rgba(43, 168, 158, 0.04);
}

.co-field--filled { border-color: rgba(43, 168, 158, 0.25); }

.co-field__cursor {
    display: inline-block;
    width: 2px; height: 13px;
    background: var(--co-cyan);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: co-blink 0.6s infinite;
}

@keyframes co-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.co-autofill {
    position: absolute;
    top: 8px; right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--co-mono);
    font-size: 9px;
    letter-spacing: 0.5px;
    color: var(--co-cyan);
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(43, 168, 158, 0.3);
    background: rgba(43, 168, 158, 0.06);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s, transform 0.3s;
}

.co-autofill--show { opacity: 1; transform: scale(1); }

.co-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.co-summary {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.co-summary__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.co-summary__thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    background: #1a1a1a;
    overflow: hidden;
    flex-shrink: 0;
}

.co-summary__thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-summary__name { font-size: 12px; font-weight: 500; }

.co-summary__sub {
    font-family: var(--co-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.co-summary__price {
    margin-left: auto;
    font-family: var(--co-display);
    font-size: 14px;
    font-weight: 500;
}

.co-summary__line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.co-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    margin-top: 4px;
}

.co-summary__total-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    font-family: var(--co-mono);
}

.co-summary__total-val {
    font-family: var(--co-display);
    font-weight: 300;
    font-size: 24px;
    letter-spacing: -0.6px;
}

/* ============================================================
   SCENE 5 — Apple Pay sheet
   ============================================================ */
.co-s5 {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.co-ap {
    background: #1C1C1E;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.co-ap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.co-ap__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.co-ap__brand svg { width: 14px; height: 14px; fill: white; }

.co-ap__close {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

.co-ap__row {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: -0.1px;
}

.co-ap__row:last-of-type { border-bottom: none; }

.co-ap__row-lbl {
    color: rgba(255, 255, 255, 0.55);
    width: 80px;
    flex-shrink: 0;
}

.co-ap__row-val {
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.co-ap__card-mark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #FF6B6B, #FFA94D);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.co-ap__total {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.co-ap__total-lbl { color: rgba(255, 255, 255, 0.55); }

.co-ap__cta {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.co-ap__cta-button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #FFFFFF;
    color: #000000;
    font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
}

.co-ap__cta-button svg { width: 14px; height: 14px; }

.co-ap__faceid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.co-ap__faceid-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1.6px solid var(--co-cyan);
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s, transform 0.3s;
}

.co-ap__faceid-icon::before,
.co-ap__faceid-icon::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--co-cyan);
    top: 12px;
}

.co-ap__faceid-icon::before { left: 8px; }
.co-ap__faceid-icon::after { right: 8px; }

.co-ap__faceid-line {
    position: absolute;
    bottom: 9px;
    left: 9px; right: 9px;
    height: 6px;
    border: 1.6px solid var(--co-cyan);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.co-ap__faceid--show .co-ap__faceid-icon {
    opacity: 1;
    transform: scale(1);
    animation: co-faceid 1.8s ease-in-out 0.3s;
}

@keyframes co-faceid {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43, 168, 158, 0); }
    50% { box-shadow: 0 0 0 8px rgba(43, 168, 158, 0.18); }
}

.co-ap__faceid-text {
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.55);
}

.co-ap__faceid--success .co-ap__faceid-text { color: var(--co-cyan); }

/* ============================================================
   SCENE 6 — Confirmation (email + agent webhook)
   ============================================================ */
.co-s6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 820px;
}

.co-email {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}

.co-email__head {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.co-email__head-dot { width: 6px; height: 6px; background: #10B981; border-radius: 50%; }

.co-email__head-time {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
}

.co-email__body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-email__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.co-email__meta strong { color: rgba(255, 255, 255, 0.85); font-weight: 500; }

.co-email__divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 4px 0; }

.co-email__subj {
    font-family: var(--co-display);
    font-weight: 300;
    font-size: 22px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.co-email__copy {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.co-email__order {
    display: flex;
    justify-content: space-between;
    font-family: var(--co-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    padding: 8px 0;
}

.co-email__order strong { color: var(--co-cyan); }

.co-email__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--co-mono);
    font-size: 10px;
    color: var(--co-cyan);
    letter-spacing: 1px;
    margin-top: 4px;
}

.co-webhook {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.co-webhook__head {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.co-webhook__pulse {
    width: 6px; height: 6px;
    background: var(--co-cyan);
    border-radius: 50%;
    animation: co-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes co-pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.co-webhook__body { padding: 14px 18px; flex: 1; }

.co-webhook__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: var(--co-mono);
    font-size: 11px;
    background: rgba(43, 168, 158, 0.04);
    border: 1px solid rgba(43, 168, 158, 0.2);
    margin-bottom: 10px;
}

.co-webhook__status { color: var(--co-cyan); }
.co-webhook__method { color: var(--co-purple); font-weight: 500; }
.co-webhook__url {
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-webhook__json {
    font-family: var(--co-mono);
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    overflow: hidden;
}

.co-webhook__json-row {
    white-space: pre;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.co-webhook__json-row.is-show { opacity: 1; }
.co-c-key { color: var(--co-cyan); }
.co-c-str { color: rgba(255, 255, 255, 0.9); }
.co-c-num { color: var(--co-purple); }

/* ============================================================
   Hold / replay indicator
   ============================================================ */
.co-hold {
    position: absolute;
    bottom: 80px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--co-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
}

.co-hold.is-show { opacity: 1; transform: translateY(0); }

.co-hold__ring {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.co-hold__ring svg {
    position: absolute;
    inset: -1.5px;
    transform: rotate(-90deg);
}

.co-hold__ring circle {
    fill: none;
    stroke: var(--co-cyan);
    stroke-width: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
    .co-section { padding: 64px 0 80px; }
    .co-section__container { padding: 0 1.5rem; }
    .co-s1, .co-s4, .co-s6 { grid-template-columns: 1fr; }
    .co-stage { height: auto; min-height: 540px; }
    .co-tab__label { display: none; }
    .co-stage-wrap__inner { position: relative; top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .co-field__cursor,
    .co-webhook__pulse { animation: none; }
}
