/* =============================================================================
   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);
    }
}

/* --- Path selection grid --------------------------------------------------- */

.regv2-path-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.regv2-path-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--glass-bg-card), var(--glass-bg));
    cursor: pointer;
    text-align: left;
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-smooth);
}

.regv2-path-card:hover {
    border-color: var(--emerald-alpha-40);
    box-shadow: 0 0 0 1px var(--emerald-alpha-8), var(--shadow-md);
    transform: translateY(-2px);
}

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

.regv2-path-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--emerald-alpha-10);
    border: 1px solid var(--emerald-alpha-20);
    color: var(--emerald-400);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.regv2-path-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.regv2-path-card__title {
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
}

.regv2-path-card__desc {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 640px) {
    .regv2-path-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

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

/* --- 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-spinner {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--emerald-alpha-15);
    border-top-color: var(--emerald-400);
    animation: regv2Spin 0.8s linear infinite;
}

/* --- Enrichment mode ------------------------------------------------------- */

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

.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-data {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.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(--emerald-400);
}

.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);
}

.regv2-enrich-data--cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin-bottom: 0;
}

.regv2-enrich-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--overlay-white-3);
    transition: border-color var(--duration-fast) var(--ease-smooth),
                background var(--duration-fast) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-smooth);
}

.regv2-enrich-field:hover {
    border-color: var(--glass-border-hover);
    background: var(--overlay-white-5);
    transform: translateY(-1px);
}

.regv2-enrich-field--confirmed {
    border-color: var(--emerald-alpha-20);
    background: linear-gradient(135deg, var(--emerald-alpha-8), var(--glass-bg));
}

.regv2-enrich-field--wide {
    grid-column: 1 / -1;
}

.regv2-enrich-field__label {
    margin-top: 0;
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.regv2-enrich-field__value {
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    text-align: left;
    word-break: break-word;
}

.regv2-enrich-field__value--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.regv2-enrich-field--confirmed .regv2-enrich-field__value {
    font-weight: var(--font-weight-medium);
}

@media (min-width: 860px) {
    .regv2-enrich-data--cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- 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;
}

/* --- Upload zone ----------------------------------------------------------- */

.regv2-upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: border-color 0.15s var(--ease-smooth), background 0.15s var(--ease-smooth);
    cursor: pointer;
}

.regv2-upload-zone:hover,
.regv2-upload-zone--dragover {
    border-color: var(--emerald-alpha-40);
    background: var(--emerald-alpha-4);
    box-shadow: var(--shadow-md), var(--glow-accent-subtle);
}

.regv2-upload-zone__icon {
    font-size: var(--font-size-2xl);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.regv2-upload-zone__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* --- 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(--emerald-400);
}

.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);
}

.regv2-module-card {
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--glass-bg-card), var(--glass-bg));
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-3);
    transition: border-color 0.15s var(--ease-smooth),
                box-shadow 0.15s var(--ease-smooth),
                transform 0.15s var(--ease-smooth);
}

.regv2-module-card:hover {
    border-color: var(--emerald-alpha-30);
    box-shadow: 0 0 0 1px var(--emerald-alpha-8), var(--shadow-sm);
    transform: translateY(-1px);
}

.regv2-module-card i {
    color: var(--emerald-400);
    width: 18px;
    flex-shrink: 0;
}

.regv2-module-card__body {
    flex: 1;
    min-width: 0;
}

.regv2-module-card__name {
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-tight);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.regv2-module-card__tag {
    margin: 2px 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- 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);
}

/* --- Module rank badge + icon wrap ----------------------------------------- */

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

.regv2-module-card__icon-wrap {
    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);
    flex-shrink: 0;
}

.regv2-module-card__icon-wrap i {
    font-size: var(--font-size-base);
}

/* Category color variants */
.regv2-module-card__icon-wrap--emerald { background: var(--emerald-alpha-10); border-color: var(--emerald-alpha-20); }
.regv2-module-card__icon-wrap--emerald i { color: var(--emerald-400); }

.regv2-module-card__icon-wrap--indigo { background: var(--indigo-alpha-10); border-color: var(--indigo-alpha-20); }
.regv2-module-card__icon-wrap--indigo i { color: var(--indigo-400); }

.regv2-module-card__icon-wrap--purple { background: var(--purple-alpha-10); border-color: var(--purple-alpha-20); }
.regv2-module-card__icon-wrap--purple i { color: var(--purple-400); }

.regv2-module-card__icon-wrap--teal { background: var(--teal-alpha-10); border-color: var(--teal-alpha-20); }
.regv2-module-card__icon-wrap--teal i { color: var(--teal-400); }

.regv2-module-card__icon-wrap--blue { background: var(--blue-alpha-10); border-color: var(--blue-alpha-20); }
.regv2-module-card__icon-wrap--blue i { color: var(--blue-400); }

.regv2-module-card__icon-wrap--gold { background: var(--gold-alpha-10); border-color: var(--gold-alpha-20); }
.regv2-module-card__icon-wrap--gold i { color: var(--gold-400); }

.regv2-module-card__icon-wrap--rose { background: var(--rose-alpha-10); border-color: var(--rose-alpha-20); }
.regv2-module-card__icon-wrap--rose i { color: var(--rose-400); }

.regv2-module-card__icon-wrap--cyan { background: var(--cyan-alpha-10); border-color: var(--cyan-alpha-20); }
.regv2-module-card__icon-wrap--cyan i { color: var(--cyan-400); }

/* --- 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;
}

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

:root[data-theme="light"] .regv2-module-card i,
:root[data-theme="light"] .regv2-trust-card__icon {
    color: var(--emerald-600);
}

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

:root[data-theme="light"] .regv2-module-card__icon-wrap {
    background: var(--emerald-alpha-12);
    border-color: var(--emerald-alpha-25);
}

:root[data-theme="light"] .regv2-module-card__icon-wrap--emerald i { color: var(--emerald-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--indigo i { color: var(--indigo-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--purple i { color: var(--purple-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--teal i { color: var(--teal-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--blue i { color: var(--blue-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--gold i { color: var(--gold-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--rose i { color: var(--rose-600); }
:root[data-theme="light"] .regv2-module-card__icon-wrap--cyan i { color: var(--cyan-600); }

: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-enrich-field {
        flex-direction: column;
        gap: var(--space-1);
    }

    .regv2-enrich-field__value {
        text-align: left;
    }

    .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(--emerald-400);
}

.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);
}

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

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

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

: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(--emerald-600);
}

/* --- 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);
}
