/* =============================================================================
   Register V2 — Step-specific Styles
   ============================================================================= */

/* --- Phase animation (unified 0.3s timing) -------------------------------- */

.regv2-phase {
    animation: regv2PhaseFade 0.3s var(--ease-out-expo);
}

@keyframes regv2PhaseFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SSO buttons (Step A) ------------------------------------------------- */

.regv2-sso {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, var(--emerald-alpha-8), transparent 42%),
        linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
    box-shadow: var(--shadow-soft-card), inset 0 1px 0 var(--overlay-white-6);
}

.regv2-sso__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: center;
}

.regv2-sso-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-3);
    width: auto;
    min-width: min(16rem, 100%);
    min-height: 48px;
    padding: 0 var(--space-4);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.regv2-sso-btn__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
    box-shadow: var(--shadow-inner-soft);
    flex-shrink: 0;
}

.regv2-sso-btn__mark--google {
    color: var(--accent-text-blue);
}

.regv2-sso-btn__mark--microsoft {
    color: var(--accent-text-indigo);
}

.regv2-sso-btn__label {
    line-height: var(--line-height-tight);
}

.regv2-sso-btn__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    font-size: var(--font-size-base);
    line-height: 1;
    color: currentColor;
}

.regv2-sso-btn:hover {
    border-color: var(--glass-border-hover);
    color: var(--color-text-primary);
    background: var(--overlay-white-5);
    box-shadow: 0 0 0 1px var(--emerald-alpha-8), var(--shadow-sm);
}

.regv2-sso-btn:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
}

.regv2-sso-btn:hover .regv2-sso-btn__mark {
    border-color: var(--emerald-alpha-30);
    background: linear-gradient(180deg, var(--overlay-white-6), var(--glass-bg));
}

.regv2-sso-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.regv2-sso-divider::before,
.regv2-sso-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.regv2-sso-divider span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--overlay-white-6);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}.regv2-workspace-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.regv2-workspace-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--overlay-white-6);
}

.regv2-workspace-panel--setup {
    border-color: var(--emerald-alpha-15);
    background:
        radial-gradient(circle at top right, var(--emerald-alpha-8), transparent 38%),
        linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
}

/* --- Details panel (optional enrichment fields) --- */

.regv2-workspace-panel--details {
    border-color: var(--overlay-white-8);
    background:
        radial-gradient(circle at bottom left, var(--emerald-alpha-4), transparent 50%),
        linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
}

.regv2-details-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.regv2-details-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--emerald-alpha-10);
    border: 1px solid var(--emerald-alpha-20);
    color: var(--accent-text-emerald);
    font-size: var(--font-size-base);
    flex-shrink: 0;
}

.regv2-details-header__text {
    flex: 1;
    min-width: 0;
}

.regv2-details-header__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
}

.regv2-details-header__subtitle {
    margin: var(--space-1) 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

.regv2-details-header__badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--color-text-muted);
    font-size: var(--font-size-eyebrow);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.regv2-form__textarea--compact {
    min-height: 72px;
}

.regv2-form__hint--ai {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: 0;
    margin-top: var(--space-1);
    border: none;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
    opacity: 0.95;
}

.regv2-form__hint--ai i {
    color: var(--emerald-500);
    font-size: var(--font-size-xs);
    margin-top: 2px;
    flex-shrink: 0;
}

:root[data-theme="light"] .regv2-details-header__icon {
    background: var(--emerald-alpha-8);
    border-color: var(--emerald-alpha-15);
    color: var(--accent-text-emerald);
}

:root[data-theme="light"] .regv2-details-header__badge {
    background: var(--grey-300);
    border-color: var(--grey-500);
    color: var(--color-text-secondary);
}

:root[data-theme="light"] .regv2-workspace-panel--details {
    border-color: var(--grey-500);
    background:
        radial-gradient(circle at bottom left, var(--emerald-alpha-3), transparent 50%),
        linear-gradient(180deg, var(--grey-300), var(--white));
}

:root[data-theme="light"] .regv2-form__hint--ai {
    color: var(--color-text-muted);
}

:root[data-theme="light"] .regv2-form__hint--ai i {
    color: var(--accent-text-emerald);
}

.regv2-workspace-panel .regv2-form__group {
    gap: var(--space-3);
}

.regv2-step-head--workspace {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-5);
}

.regv2-step-head--workspace .regv2-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.regv2-step-head--workspace .regv2-card__title {
    margin-bottom: var(--space-2);
}

.regv2-step-head--workspace .regv2-card__subtitle {
    margin-bottom: 0;
    max-width: 52ch;
}

.regv2-step-head--identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-5);
}

.regv2-step-head--identity .regv2-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.regv2-step-head--identity .regv2-card__title {
    margin-bottom: var(--space-2);
}

.regv2-step-head--identity .regv2-card__subtitle {
    margin-bottom: 0;
    max-width: 50ch;
}

.regv2-form__row--workspace-meta {
    align-items: start;
}

#stepAOtp .regv2-form {
    gap: var(--space-4);
}

#stepAOtp .regv2-otp__meta {
    margin-bottom: var(--space-1);
}

@media (max-width: 640px) {
    .regv2-sso {
        padding: var(--space-3);
        margin-bottom: var(--space-5);
    }

    .regv2-sso__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .regv2-sso-btn {
        width: 100%;
        min-width: 0;
    }

    .regv2-path-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .regv2-workspace-panel {
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .regv2-step-head--workspace {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .regv2-step-head--workspace .regv2-card__icon {
        width: 44px;
        height: 44px;
    }

    .regv2-step-head--identity {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .regv2-step-head--identity .regv2-card__icon {
        width: 44px;
        height: 44px;
    }
}

:root[data-theme="light"] .regv2-path-card__icon {
    color: var(--accent-text-emerald);
}

:root[data-theme="light"] .regv2-path-card--selected {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 2px var(--emerald-alpha-20), var(--shadow-lg), var(--glow-accent-subtle);
}

/* --- Light mode: SSO section ---------------------------------------------- */

:root[data-theme="light"] .regv2-sso {
    border-color: var(--grey-500);
    background:
        radial-gradient(circle at top right, var(--emerald-alpha-4), transparent 42%),
        linear-gradient(180deg, var(--grey-300), var(--white));
    box-shadow: inset 0 1px 0 var(--white);
}

:root[data-theme="light"] .regv2-sso-btn {
    background: var(--white);
    border-color: var(--grey-600);
    color: var(--color-text-primary);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .regv2-sso-btn:hover {
    border-color: var(--grey-700);
    background: var(--grey-300);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .regv2-sso-btn__mark {
    border-color: var(--grey-500);
    background: linear-gradient(180deg, var(--white), var(--grey-300));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .regv2-sso-divider {
    color: var(--grey-700);
}

:root[data-theme="light"] .regv2-sso-divider::before,
:root[data-theme="light"] .regv2-sso-divider::after {
    background: var(--grey-500);
}

:root[data-theme="light"] .regv2-sso-divider span {
    background: var(--white);
    border-color: var(--grey-500);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* --- Enrichment loading ---------------------------------------------------- */

.regv2-enrich-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    border: 1px dashed var(--glass-border-hover);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
}

.regv2-enrich-loading p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.regv2-card--enrich .regv2-card__title {
    margin-bottom: var(--space-2);
}

.regv2-card--enrich .regv2-card__subtitle {
    margin-bottom: var(--space-6);
}

.regv2-card--enrich .regv2-form {
    gap: var(--space-4);
}

.regv2-card--enrich .regv2-form__actions {
    margin-top: var(--space-1);
}

.regv2-card--enrich .regv2-btn--primary {
    min-width: 148px;
}.regv2-enrich-status {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
}

.regv2-enrich-status__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: 32px;
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.regv2-enrich-status__chip--ok {
    border-color: var(--emerald-alpha-30);
    background: var(--emerald-alpha-10);
    color: var(--accent-text-emerald);
}

.regv2-enrich-section {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.regv2-enrich-section--action {
    margin-bottom: var(--space-4);
}

.regv2-enrich-section__title {
    margin: 0 0 var(--space-1);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

.regv2-enrich-section__subtitle {
    margin: 0 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
}

/* --- Org profile prefill summary ------------------------------------------ */

.regv2-org-prefill {
    margin: 0 0 var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--emerald-alpha-20);
    background: linear-gradient(135deg, var(--emerald-alpha-6), var(--glass-bg));
}

.regv2-org-prefill__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.regv2-org-prefill__title {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.regv2-org-prefill__subtitle {
    margin: var(--space-1) 0 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
}

.regv2-org-prefill .regv2-enrich-data {
    margin-bottom: 0;
}

/* --- (Removed: org confirmed chips + micro-flow — replaced by path cards) */

/* --- Skip ------------------------------------------------------------------ */

.regv2-skip {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

/* --- Form select options --------------------------------------------------- */

.regv2-form__select option {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

/* --- Idea mode fields ------------------------------------------------------ */

#ideaModeFields {
    margin-top: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    animation: regv2PhaseFade 0.3s var(--ease-out-expo);
}

/* --- Step D kickoff -------------------------------------------------------- */

.regv2-kickoff {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--glass-bg), var(--overlay-white-3));
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.regv2-kickoff__title {
    margin: 0;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
}

.regv2-kickoff__subtitle {
    margin: var(--space-2) 0 var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.regv2-kickoff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Tavoite step: one question, big goal cards */
.regv2-tavoite-cards .regv2-tavoite-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.regv2-kickoff--simple .regv2-tavoite-pills .regv2-pill__label {
    min-height: 72px;
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.regv2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}/* --- Trust card ------------------------------------------------------------ */

.regv2-trust-card {
    margin-top: var(--space-4);
    border: 1px solid var(--emerald-alpha-25);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--emerald-alpha-8), var(--glass-bg));
    padding: var(--space-3);
    display: flex;
    gap: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.regv2-trust-card__icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-alpha-15);
    border: 1px solid var(--emerald-alpha-30);
    color: var(--accent-text-emerald);
}

.regv2-trust-card__content {
    min-width: 0;
}

.regv2-trust-card__title {
    margin: 0 0 var(--space-1);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.regv2-trust-card__list {
    margin: 0;
    padding-left: var(--space-4);
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    display: grid;
    gap: 2px;
}

/* --- Module cards ---------------------------------------------------------- */

.regv2-modules-top-title,
.regv2-modules-all-title {
    margin: var(--space-2) 0 var(--space-3);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.01em;
}

.regv2-modules-all-title {
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

.regv2-module-chip {
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--glass-bg-card), var(--glass-bg));
    padding: var(--space-3);
    border-left: 3px solid var(--emerald-alpha-45);
}

.regv2-module-chip__label {
    display: block;
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.regv2-module-chip__value {
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.regv2-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.regv2-modules-grid--top {
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

.regv2-modules-grid--top .regv2-module-card {
    border-color: var(--emerald-alpha-45);
    background: linear-gradient(135deg, var(--emerald-alpha-14), var(--glass-bg));
    padding: var(--space-3);
}

.regv2-modules-grid--top .regv2-module-card__name {
    font-weight: var(--font-weight-medium);
}/* --- Module skeleton loading ----------------------------------------------- */

@keyframes regv2-shimmer {
    from { background-position: -200% 0; }
    to   { background-position: 200% 0; }
}

.regv2-module-skeleton {
    pointer-events: none;
}

.regv2-module-skeleton__rank,
.regv2-module-skeleton__icon,
.regv2-module-skeleton__line {
    display: block;
    border-radius: var(--radius-sm);
    background: linear-gradient(
        90deg,
        var(--glass-bg-card) 25%,
        var(--glass-border) 50%,
        var(--glass-bg-card) 75%
    );
    background-size: 200% 100%;
    animation: regv2-shimmer 1.6s ease-in-out infinite;
}

.regv2-module-skeleton__rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.regv2-module-skeleton__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.regv2-module-skeleton__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.regv2-module-skeleton__line--name {
    width: 55%;
    height: 14px;
}

.regv2-module-skeleton__line--tag {
    width: 35%;
    height: 11px;
}

/* Stagger skeleton shimmer for each card */
.regv2-module-skeleton:nth-child(2) { animation-delay: 0.08s; }
.regv2-module-skeleton:nth-child(3) { animation-delay: 0.16s; }
.regv2-module-skeleton:nth-child(4) { animation-delay: 0.24s; }
.regv2-module-skeleton:nth-child(5) { animation-delay: 0.32s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .regv2-module-skeleton__rank,
    .regv2-module-skeleton__icon,
    .regv2-module-skeleton__line {
        animation: none;
        opacity: 0.4;
    }
}

.regv2-modules-hint {
    margin: var(--space-2) 0 var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.regv2-modules-all-wrap {
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
}

.regv2-modules-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
}

.regv2-modules-toggle[aria-expanded="true"] {
    border-color: var(--emerald-alpha-30);
}

#modulesGridWrap {
    margin-top: var(--space-2);
}/* --- Visually hidden ------------------------------------------------------- */

.regv2-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* --- Seat stepper ---------------------------------------------------------- */

.regv2-seat-stepper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: var(--space-2);
    align-items: center;
}

.regv2-seat-stepper__btn {
    min-height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--overlay-white-8);
    background: var(--overlay-white-3);
    color: var(--color-text-primary);
    cursor: pointer;
    font-size: var(--font-size-lg);
    line-height: 1;
    transition: border-color 0.15s var(--ease-smooth),
                background 0.15s var(--ease-smooth);
}

.regv2-seat-stepper__btn:hover {
    border-color: var(--overlay-white-12);
    background: var(--overlay-white-5);
}

.regv2-seat-stepper__btn:focus-visible {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

.regv2-seat-stepper__input {
    text-align: center;
}

.regv2-trial-seat-hint {
    max-width: 42ch;
    margin-top: var(--space-1);
    line-height: var(--line-height-relaxed);
}

/* --- Light mode color overrides -------------------------------------------- */

:root[data-theme="light"] .regv2-module-card i,
:root[data-theme="light"] .regv2-trust-card__icon {
    color: var(--accent-text-emerald);
}:root[data-theme="light"] .regv2-spinner {
    border-color: var(--emerald-alpha-25);
    border-top-color: var(--emerald-600);
}

/* --- Responsive (mobile) --------------------------------------------------- */

@media (max-width: 640px) {    .regv2-modules-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   Step D — Kickoff Visual Upgrade
   ============================================================================= */

/* --- Kickoff section cards ------------------------------------------------- */

.regv2-kickoff-section {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.regv2-kickoff-section:focus-within {
    border-color: var(--emerald-alpha-40);
    box-shadow: 0 0 0 1px var(--emerald-alpha-8), var(--shadow-sm);
}

/* Reset fieldset defaults when used as section */
fieldset.regv2-kickoff-section {
    margin: 0;
    min-inline-size: 0;
}

.regv2-kickoff-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.regv2-kickoff-section__header .regv2-form__label {
    margin-bottom: 0;
}

.regv2-kickoff-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: var(--brand-blue-700);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
    line-height: 1;
}

/* --- Stagger entrance animation -------------------------------------------- */

.regv2-kickoff-section--stagger {
    opacity: 0;
    transform: translateY(10px);
}

.regv2-kickoff-section--visible {
    animation: regv2KickoffReveal 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.regv2-kickoff-section--visible[data-stagger="0"] { animation-delay: 120ms; }
.regv2-kickoff-section--visible[data-stagger="1"] { animation-delay: 220ms; }
.regv2-kickoff-section--visible[data-stagger="2"] { animation-delay: 320ms; }

@keyframes regv2KickoffReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .regv2-kickoff-section--stagger {
        opacity: 1;
        transform: none;
    }
    .regv2-kickoff-section--visible {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* --- Character counter ----------------------------------------------------- */

.regv2-kickoff-textarea-wrap {
    position: relative;
}

.regv2-kickoff-textarea-wrap .regv2-form__textarea {
    resize: none;
    padding-bottom: var(--space-6);
}

.regv2-kickoff-counter {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.regv2-kickoff-counter--warn {
    color: var(--gold-500);
}

.regv2-kickoff-counter--full {
    color: var(--red-500);
}

/* --- Rich pills (icon + text) ---------------------------------------------- */

.regv2-pill__label--rich {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.regv2-pill__label--rich i {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.regv2-pill--rich:hover .regv2-pill__label--rich i {
    color: var(--accent-text-emerald);
}

.regv2-pill--rich input:checked + .regv2-pill__label--rich i,
.regv2-pill--rich.regv2-pill--selected .regv2-pill__label--rich i {
    color: var(--brand-blue-700);
}

.regv2-pill--rich:hover .regv2-pill__label {
    box-shadow: 0 2px 8px var(--emerald-alpha-8);
}

.regv2-kickoff-other-wrap {
    margin-top: calc(-1 * var(--space-1));
    margin-bottom: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
}

/* --- Light theme overrides ------------------------------------------------- */

:root[data-theme="light"] .regv2-kickoff-section__number {
    color: var(--white);
}

:root[data-theme="light"] .regv2-kickoff-counter--warn {
    color: var(--accent-text-gold);
}

:root[data-theme="light"] .regv2-kickoff-counter--full {
    color: var(--red-600);
}

:root[data-theme="light"] .regv2-pill--rich:hover .regv2-pill__label--rich i {
    color: var(--accent-text-emerald);
}

/* --- Mobile ---------------------------------------------------------------- */

@media (max-width: 640px) {
    .regv2-kickoff-section {
        padding: var(--space-3);
    }

    .regv2-kickoff-section__header {
        margin-bottom: var(--space-2);
    }
}

/* =============================================================================
   Step E — Modules Stagger Animation
   ============================================================================= */

.regv2-modules-stagger {
    opacity: 0;
    transform: translateY(10px);
}

.regv2-modules-stagger--visible {
    animation: regv2KickoffReveal 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.regv2-modules-stagger--visible[data-stagger="0"] { animation-delay: 120ms; }
.regv2-modules-stagger--visible[data-stagger="1"] { animation-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
    .regv2-modules-stagger {
        opacity: 1;
        transform: none;
    }
    .regv2-modules-stagger--visible {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Section cards inside Step E need spacing */
#stepE .regv2-kickoff-section {
    margin-bottom: var(--space-4);
}

#stepE .regv2-kickoff-section:last-of-type {
    margin-bottom: var(--space-3);
}
@keyframes regv2CheckBadgeIn {
    from { transform: translateY(-50%) scale(0); opacity: 0; }
    to   { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* --- Phase 4b: Industry Select --------------------------------------------- */

/* Industry select inside section card — refined */
#industrySection .regv2-form__select {
    min-height: 44px;
}

.regv2-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: var(--space-2);
}

.regv2-industry-card {
    cursor: pointer;
}

.regv2-industry-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.regv2-industry-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2);
    border: 1px solid var(--overlay-white-8);
    border-radius: var(--radius-lg);
    background: var(--overlay-white-3);
    text-align: center;
    min-height: 72px;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.regv2-industry-card:hover .regv2-industry-card__inner {
    border-color: var(--emerald-alpha-20);
    background: var(--overlay-white-5);
}

.regv2-industry-card input:checked + .regv2-industry-card__inner {
    background: linear-gradient(135deg, var(--emerald-alpha-10), var(--emerald-alpha-4));
    border-color: var(--emerald-alpha-35);
    box-shadow: 0 0 0 1px var(--emerald-alpha-12);
}

.regv2-industry-card input:focus-visible + .regv2-industry-card__inner {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

.regv2-industry-card__inner i {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
}

.regv2-industry-card input:checked + .regv2-industry-card__inner i {
    color: var(--accent-text-emerald);
}

.regv2-industry-card__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: var(--line-height-tight);
}.regv2-stage-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.regv2-stage-node input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.regv2-stage-node__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--overlay-white-8);
    background:
        radial-gradient(circle at top, var(--overlay-white-4), transparent 70%),
        var(--color-bg-primary, var(--brand-blue-500));
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: inset 0 1px 0 var(--overlay-white-6);
}

.regv2-stage-node:hover .regv2-stage-node__dot {
    border-color: var(--emerald-alpha-30);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-6), transparent 60%),
        var(--color-bg-primary, var(--brand-blue-500));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--emerald-alpha-6), inset 0 1px 0 var(--overlay-white-8);
}

.regv2-stage-node--active .regv2-stage-node__dot,
.regv2-stage-node input:checked ~ .regv2-stage-node__dot {
    border-color: var(--emerald-alpha-45);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-15), transparent 60%),
        linear-gradient(135deg, var(--emerald-alpha-12), var(--emerald-alpha-4)),
        var(--color-bg-primary, var(--brand-blue-500));
    color: var(--accent-text-emerald);
    box-shadow: 0 0 0 2px var(--emerald-alpha-15), 0 4px 16px var(--emerald-alpha-8);
}

.regv2-stage-node--past .regv2-stage-node__dot {
    border-color: var(--emerald-alpha-25);
    color: var(--emerald-alpha-50);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-4), transparent 60%),
        var(--color-bg-primary, var(--brand-blue-500));
}

.regv2-stage-node input:focus-visible ~ .regv2-stage-node__dot {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

.regv2-stage-node__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-align: center;
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
}

.regv2-stage-node--active .regv2-stage-node__label {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.regv2-stage-founded {
    margin-top: var(--space-3);
    max-width: 160px;
}

.regv2-stage-founded .regv2-form__input {
    min-height: 38px;
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-3);
}.regv2-goal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    border: 1px solid var(--overlay-white-8);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top, var(--overlay-white-4), transparent 70%),
        var(--overlay-white-3);
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    text-align: center;
    min-height: 88px;
    line-height: var(--line-height-tight);
    box-shadow: inset 0 1px 0 var(--overlay-white-6);
}

.regv2-goal-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: var(--overlay-white-5);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.regv2-goal-card:hover {
    border-color: var(--emerald-alpha-30);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-6), transparent 60%),
        var(--overlay-white-5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--emerald-alpha-6), inset 0 1px 0 var(--overlay-white-8);
}

.regv2-goal-card:hover i {
    background: var(--emerald-alpha-10);
    color: var(--accent-text-emerald);
}

.regv2-goal-card--selected {
    border-color: var(--emerald-500);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-15), transparent 60%),
        linear-gradient(135deg, var(--emerald-alpha-15), var(--emerald-alpha-6));
    box-shadow: 0 0 0 2px var(--emerald-alpha-20), 0 4px 20px var(--emerald-alpha-12);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    transform: translateY(-1px);
}

.regv2-goal-card--selected i {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: var(--brand-blue-700);
    box-shadow: 0 0 16px var(--emerald-alpha-25);
}

.regv2-goal-card:focus-visible {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

:root[data-theme="light"] .regv2-goal-card {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .regv2-goal-card--selected {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 2px var(--emerald-alpha-15), 0 4px 16px var(--emerald-alpha-8);
}

:root[data-theme="light"] .regv2-goal-card--selected i {
    color: var(--white);
}

/* Goal textarea spacing */
#goalSection .regv2-form__textarea {
    margin-top: var(--space-4);
}

/* --- Trio pills (3-col) ----------------------------------------------------- */

/* Trio pills — equal width columns, centered content */
.regv2-pills--trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.regv2-pills--trio .regv2-pill__label {
    width: 100%;
    justify-content: center;
}

/* --- Business model pills (responsive) -------------------------------------- */

.regv2-pills--bm {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.regv2-pills--bm .regv2-pill__label {
    width: 100%;
    justify-content: center;
}/* --- AI Badge --------------------------------------------------------------- */

.regv2-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    background: var(--emerald-alpha-10);
    color: var(--accent-text-emerald);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    vertical-align: middle;
    margin-left: var(--space-2);
}

/* --- Enrichment Summary (compact inline chips for known data) --------------- */

.regv2-enrichment-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--emerald-alpha-15);
    background: linear-gradient(135deg, var(--emerald-alpha-4), transparent);
}

.regv2-enrichment-summary__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--accent-text-emerald);
}

.regv2-enrichment-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

:root[data-theme="light"] .regv2-enrichment-summary {
    border-color: var(--emerald-alpha-12);
    background: linear-gradient(135deg, var(--emerald-alpha-3), transparent);
}

/* --- Detected Region -------------------------------------------------------- */

.regv2-detected-region {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--overlay-white-3);
    border: 1px solid var(--overlay-white-8);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.regv2-detected-region i {
    color: var(--accent-text-emerald);
}

/* --- Enrichment result cards ------------------------------------------------ */

/* --- Enrichment Profile Card (compact result view) -------------------------- */

.regv2-profile-card {
    border: 1px solid var(--emerald-alpha-20);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at top right, var(--emerald-alpha-6), transparent 50%),
        linear-gradient(180deg, var(--glass-bg-card), var(--glass-bg));
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    animation: regv2PhaseFade 0.4s var(--ease-out-expo);
}

.regv2-profile-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.regv2-profile-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--emerald-alpha-10);
    border: 1px solid var(--emerald-alpha-20);
    color: var(--accent-text-emerald);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.regv2-profile-card__identity {
    flex: 1;
    min-width: 0;
}

.regv2-profile-card__name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
    line-height: var(--line-height-tight);
}

.regv2-profile-card__subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin: var(--space-1) 0 0;
}

.regv2-profile-card__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--emerald-alpha-15);
    color: var(--accent-text-emerald);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

/* Inline metadata chips */
.regv2-profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.regv2-profile-card__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--overlay-white-5);
    border: 1px solid var(--overlay-white-8);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.regv2-profile-card__chip i {
    color: var(--accent-text-emerald);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

/* Description */
.regv2-profile-card__desc {
    padding-top: var(--space-3);
    border-top: 1px solid var(--overlay-white-8);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.regv2-profile-card__desc-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
    flex: 1;
}

/* Light theme */
:root[data-theme="light"] .regv2-profile-card {
    border-color: var(--emerald-alpha-15);
    background:
        radial-gradient(ellipse at top right, var(--emerald-alpha-4), transparent 50%),
        linear-gradient(180deg, var(--color-bg-primary), var(--color-bg-secondary));
}

:root[data-theme="light"] .regv2-profile-card__chip {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
}

/* --- Enrichment Loader (progressive skeleton) ------------------------------- */

.regv2-enrich-loader {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.regv2-enrich-loader__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.regv2-enrich-loader__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--emerald-alpha-10);
    color: var(--accent-text-emerald);
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.regv2-enrich-loader__spinner {
    animation: regv2EnrichSpin 3s linear infinite;
}

@keyframes regv2EnrichSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.regv2-enrich-loader__title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.regv2-enrich-loader__org {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: var(--space-1) 0 0;
}

/* Progress bar */
.regv2-enrich-loader__progress {
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--overlay-white-8);
    overflow: hidden;
}

.regv2-enrich-loader__progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400));
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skeleton cards */
.regv2-enrich-loader__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.regv2-enrich-loader__card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--overlay-white-8);
    background: var(--overlay-white-3);
    opacity: 0.4;
    transform: translateY(4px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.regv2-enrich-loader__card.is-active {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--emerald-alpha-20);
    background: var(--overlay-white-5);
}

.regv2-enrich-loader__card.is-found {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--emerald-alpha-35);
    background: linear-gradient(135deg, var(--emerald-alpha-8), var(--overlay-white-3));
}

.regv2-enrich-loader__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--overlay-white-5);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
    transition: all 0.4s var(--ease-smooth);
}

.regv2-enrich-loader__card.is-active .regv2-enrich-loader__card-icon {
    background: var(--emerald-alpha-10);
    color: var(--accent-text-emerald);
}

.regv2-enrich-loader__card.is-found .regv2-enrich-loader__card-icon {
    background: var(--emerald-alpha-15);
    color: var(--accent-text-emerald);
}

.regv2-enrich-loader__card-content {
    flex: 1;
    min-width: 0;
}

.regv2-enrich-loader__card-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.regv2-enrich-loader__card.is-found .regv2-enrich-loader__card-label {
    color: var(--color-text-secondary);
}

/* Skeleton shimmer bar inside cards */
.regv2-enrich-loader__card-skeleton {
    height: 14px;
    width: 60%;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg,
        var(--overlay-white-5) 25%,
        var(--overlay-white-12) 50%,
        var(--overlay-white-5) 75%);
    background-size: 200% 100%;
    animation: regv2-shimmer 1.6s ease-in-out infinite;
}

.regv2-enrich-loader__card-skeleton--wide {
    width: 85%;
}

.regv2-enrich-loader__card.is-active .regv2-enrich-loader__card-skeleton {
    background: linear-gradient(90deg,
        var(--emerald-alpha-4) 25%,
        var(--emerald-alpha-20) 50%,
        var(--emerald-alpha-4) 75%);
    background-size: 200% 100%;
    animation: regv2-shimmer 1.4s ease-in-out infinite;
}

/* Found state — show value text, hide skeleton */
.regv2-enrich-loader__card.is-found .regv2-enrich-loader__card-skeleton {
    display: none;
}

.regv2-enrich-loader__card-value {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    display: none;
}

.regv2-enrich-loader__card.is-found .regv2-enrich-loader__card-value {
    display: block;
}

/* Found checkmark */
.regv2-enrich-loader__card-check {
    color: var(--accent-text-emerald);
    font-size: var(--font-size-sm);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.regv2-enrich-loader__card.is-found .regv2-enrich-loader__card-check {
    opacity: 1;
    transform: scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .regv2-enrich-loader__spinner { animation: none; }
    .regv2-enrich-loader__card-skeleton { animation: none; }
    .regv2-enrich-loader__card { transition-duration: 0.01ms; }
    .regv2-enrich-loader__progress-fill { transition-duration: 0.01ms; }
}

/* --- Section Cards: subtle glass containers for visual rhythm ---------------- */

.regv2-section-card {
    padding: var(--space-6);
    border: 1px solid var(--overlay-white-8);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at top right, var(--overlay-white-4), transparent 60%),
        linear-gradient(180deg, var(--overlay-white-3), transparent);
    box-shadow: inset 0 1px 0 var(--overlay-white-6);
    transition: border-color var(--duration-normal) var(--ease-smooth),
                box-shadow var(--duration-normal) var(--ease-smooth);
}

.regv2-section-card:hover {
    border-color: var(--overlay-white-10);
}

.regv2-section-card__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-4);
    font-weight: var(--font-weight-semibold);
}

.regv2-section-card__label i {
    font-size: var(--font-size-xs);
    opacity: 0.7;
}

.regv2-section-card--grouped {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.regv2-section-card--grouped .regv2-form__group {
    padding: 0;
    border: none;
    background: none;
}

/* Per-section aurora accent tints for visual rhythm */
#sizeSection {
    background:
        radial-gradient(ellipse at top right, var(--emerald-alpha-4), transparent 55%),
        linear-gradient(180deg, var(--overlay-white-3), transparent);
}

#industrySection {
    background:
        radial-gradient(ellipse at top right, var(--blue-alpha-4), transparent 55%),
        linear-gradient(180deg, var(--overlay-white-3), transparent);
}

#stageSection {
    background:
        radial-gradient(ellipse at top right, var(--gold-alpha-4), transparent 55%),
        linear-gradient(180deg, var(--overlay-white-3), transparent);
}

#goalSection {
    background:
        radial-gradient(ellipse at top right, var(--purple-alpha-4), transparent 55%),
        linear-gradient(180deg, var(--overlay-white-3), transparent);
}

#dnaSection {
    background:
        radial-gradient(ellipse at top right, var(--cyan-alpha-4), transparent 55%),
        linear-gradient(180deg, var(--overlay-white-3), transparent);
}

:root[data-theme="light"] .regv2-section-card {
    border-color: var(--color-border);
    background: linear-gradient(180deg, var(--color-bg-primary), transparent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] #sizeSection {
    background:
        radial-gradient(ellipse at top right, var(--emerald-alpha-3), transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary), transparent);
}

:root[data-theme="light"] #industrySection {
    background:
        radial-gradient(ellipse at top right, var(--blue-alpha-3), transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary), transparent);
}

:root[data-theme="light"] #stageSection {
    background:
        radial-gradient(ellipse at top right, var(--gold-alpha-3), transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary), transparent);
}

:root[data-theme="light"] #goalSection {
    background:
        radial-gradient(ellipse at top right, var(--purple-alpha-3), transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary), transparent);
}

:root[data-theme="light"] #dnaSection {
    background:
        radial-gradient(ellipse at top right, var(--cyan-alpha-3), transparent 55%),
        linear-gradient(180deg, var(--color-bg-primary), transparent);
}

/* --- Combobox (searchable dropdown) ---------------------------------------- */

.regv2-combobox {
    position: relative;
}

.regv2-combobox__trigger {
    position: relative;
    display: flex;
    align-items: center;
}

.regv2-combobox__input {
    width: 100%;
    min-height: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--overlay-white-8);
    background: var(--overlay-white-3);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4);
    box-sizing: border-box;
    transition: border-color 0.15s var(--ease-smooth),
                box-shadow 0.15s var(--ease-smooth),
                background 0.15s var(--ease-smooth);
}

.regv2-combobox__input::placeholder {
    color: var(--color-text-muted);
}

.regv2-combobox__input:hover {
    border-color: var(--overlay-white-12);
    background: var(--overlay-white-4);
}

.regv2-combobox__input:focus {
    border-color: var(--emerald-alpha-40);
    box-shadow: 0 0 0 4px var(--emerald-alpha-10);
    background: var(--overlay-white-6);
    outline: none;
}

.regv2-combobox__chevron {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    pointer-events: none;
    transition: transform 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
}

.regv2-combobox--open .regv2-combobox__chevron {
    transform: translateY(-50%) rotate(180deg);
    color: var(--accent-text-emerald);
}

.regv2-combobox__listbox {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-1));
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: var(--space-1);
    list-style: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-lg), inset 0 1px 0 var(--overlay-white-8);
    z-index: 50;
    animation: regv2ComboOpen 0.15s var(--ease-out-expo);
}

.regv2-combobox--open .regv2-combobox__listbox {
    display: block;
}

@keyframes regv2ComboOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.regv2-combobox__option {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background 0.1s var(--ease-smooth), color 0.1s var(--ease-smooth);
}

.regv2-combobox__option:hover,
.regv2-combobox__option--focused {
    background: var(--overlay-white-6);
    color: var(--color-text-primary);
}

.regv2-combobox__option[aria-selected="true"] {
    background: var(--emerald-alpha-8);
    color: var(--accent-text-emerald);
    font-weight: var(--font-weight-medium);
}

.regv2-combobox__option--hidden {
    display: none;
}

.regv2-combobox__empty {
    padding: var(--space-3) var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* Light mode */
:root[data-theme="light"] .regv2-combobox__input {
    background: var(--white);
    border-color: var(--grey-600);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .regv2-combobox__input:hover {
    border-color: var(--grey-700);
}

:root[data-theme="light"] .regv2-combobox__input:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px var(--emerald-alpha-12);
    background: var(--white);
}

:root[data-theme="light"] .regv2-combobox__listbox {
    background: var(--white);
    border-color: var(--grey-500);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .regv2-combobox__option:hover,
:root[data-theme="light"] .regv2-combobox__option--focused {
    background: var(--grey-300);
}

:root[data-theme="light"] .regv2-combobox__option[aria-selected="true"] {
    background: var(--emerald-alpha-6);
    color: var(--emerald-700);
}

@media (prefers-reduced-motion: reduce) {
    .regv2-combobox__listbox {
        animation: none;
    }
}

/* --- Select Box Grid (replaces round pills for DNA section) --------------- */

.regv2-select-grid {
    display: grid;
    gap: var(--space-3);
}

.regv2-select-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.regv2-select-grid--2-2 {
    grid-template-columns: repeat(2, 1fr);
}

.regv2-select-box {
    cursor: pointer;
}

.regv2-select-box input[type="radio"],
.regv2-select-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.regv2-select-box__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    border: 1px solid var(--overlay-white-8);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top, var(--overlay-white-4), transparent 70%),
        var(--overlay-white-3);
    text-align: center;
    min-height: 84px;
    transition: all var(--duration-normal) var(--ease-smooth);
    box-shadow: inset 0 1px 0 var(--overlay-white-6);
}

.regv2-select-box__inner i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: var(--overlay-white-5);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.regv2-select-box__inner span {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-medium);
}

.regv2-select-box:hover .regv2-select-box__inner {
    border-color: var(--emerald-alpha-30);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-6), transparent 60%),
        var(--overlay-white-5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--emerald-alpha-6), inset 0 1px 0 var(--overlay-white-8);
}

.regv2-select-box:hover .regv2-select-box__inner i {
    background: var(--emerald-alpha-10);
    color: var(--accent-text-emerald);
}

.regv2-select-box input:checked + .regv2-select-box__inner {
    border-color: var(--emerald-alpha-45);
    background:
        radial-gradient(circle at top, var(--emerald-alpha-15), transparent 60%),
        linear-gradient(135deg, var(--emerald-alpha-12), var(--emerald-alpha-4));
    box-shadow: 0 0 0 2px var(--emerald-alpha-15), 0 4px 16px var(--emerald-alpha-8);
}

.regv2-select-box input:checked + .regv2-select-box__inner i {
    background: var(--emerald-alpha-15);
    color: var(--accent-text-emerald);
    box-shadow: 0 0 12px var(--emerald-alpha-15);
}

.regv2-select-box input:checked + .regv2-select-box__inner span {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.regv2-select-box input:focus-visible + .regv2-select-box__inner {
    outline: 2px solid var(--emerald-400);
    outline-offset: 2px;
}

:root[data-theme="light"] .regv2-select-box__inner {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- Scroll reveal for Phase 4 sections ---------------------------------- */

.regv2-section-card--reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.regv2-section-card--reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.regv2-section-card--reveal:nth-child(2) { transition-delay: 80ms; }
.regv2-section-card--reveal:nth-child(3) { transition-delay: 160ms; }
.regv2-section-card--reveal:nth-child(4) { transition-delay: 240ms; }
.regv2-section-card--reveal:nth-child(5) { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
    .regv2-section-card--reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .regv2-select-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Phase 3: Enrichment results — button sizing ---------------------------- */

#stepBEnrich .regv2-form__actions {
    margin-top: var(--space-4);
}

#stepBEnrich .regv2-btn--primary {
    padding: var(--space-2) var(--space-6);
    font-size: var(--font-size-sm);
    min-height: 42px;
}

#stepBEnrich .regv2-btn--ghost {
    font-size: var(--font-size-sm);
    min-height: 42px;
}

/* --- Phase 4 visual refinements: spacing, labels, pill weight --------------- */

#stepBProfile .regv2-form {
    gap: var(--space-8);
}

/* DNA section (target market + business model) — internal spacing */
#dnaSection {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Section labels — clear hierarchy, consistent spacing inside cards */
#stepBProfile .regv2-form__label,
#stepBProfile legend.regv2-form__label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    display: block;
}

/* Pills inside Phase 4 — more spacious, balanced sizing */
#stepBProfile .regv2-pill__label {
    min-height: 40px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    justify-content: center;
}

/* Checked pill — softer glow, icon color matches text */
#stepBProfile .regv2-pill input:checked + .regv2-pill__label {
    box-shadow: 0 0 0 2px var(--emerald-alpha-25);
    transform: none;
}

/* Icon in checked pill must match the dark text */
#stepBProfile .regv2-pill input:checked + .regv2-pill__label i,
.regv2-pill input:checked + .regv2-pill__label--rich i {
    color: var(--brand-blue-700);
}

.regv2-enrichment-summary {
    padding: var(--space-2) var(--space-3);
}.regv2-confirm-card__setting .regv2-form__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.regv2-confirm-card__setting .regv2-form__label i {
    color: var(--accent-text-emerald);
    font-size: var(--font-size-xs);
}
:root[data-theme="light"] .regv2-confirm-card__setting .regv2-form__label i {
    color: var(--accent-text-emerald);
}/* --- Responsive: Mobile ----------------------------------------------------- */

@media (max-width: 640px) {    .regv2-pills--trio {
        grid-template-columns: 1fr;
    }

    .regv2-pills--bm {
        grid-template-columns: repeat(2, 1fr);
    }    .regv2-stage-node {
        flex: 0 0 calc(50% - var(--space-1));
    }
}:root[data-theme="light"] .regv2-size-card__inner,
:root[data-theme="light"] .regv2-industry-card__inner,
:root[data-theme="light"] .regv2-goal-card,
:root[data-theme="light"] .regv2-stage-node__dot {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .regv2-size-card__icon,
:root[data-theme="light"] .regv2-select-box__inner i,
:root[data-theme="light"] .regv2-goal-card i {
    background: var(--color-bg-secondary);
}:root[data-theme="light"] .regv2-detected-region {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
}
