:root {
    --beatd-plum: #7f43a9;
    --beatd-plum-dark: #612f86;
    --beatd-lilac: #ceb0e2;
    --beatd-mist: #f6eefb;
    --beatd-ink: #1f1730;
    --beatd-soft-white: rgba(255, 255, 255, 0.86);
    --beatd-border: rgba(255, 255, 255, 0.16);
    --beatd-shadow: 0 24px 70px rgba(49, 18, 75, 0.28);
    --beatd-radius: 28px;
}

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #8a4bb8 0%, #7d42a7 48%, #72399b 100%);
}

body.page-light {
    color: var(--beatd-plum-dark);
    background: #ffffff;
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
}

.site-header {
    position: relative;
    z-index: 2;
    padding: 1.5rem 0 0;
}

.site-header .navbar {
    background: transparent;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-mark {
    width: 3.8rem;
    height: 3.8rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.15rem;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.brand-copy span {
    font-size: 0.76rem;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.45rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-logout-form {
    margin: 0;
}

.header-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--beatd-border);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.75rem;
    padding: 0.85rem 1.65rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.84);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.header-login:hover,
.header-login:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(28, 8, 46, 0.18);
}

body.page-light .brand-mark {
    color: var(--beatd-plum-dark);
    border-color: rgba(98, 47, 134, 0.9);
    box-shadow: inset 0 0 0 1px rgba(98, 47, 134, 0.08);
}

body.page-light .brand-copy strong,
body.page-light .header-chip,
body.page-light .header-login,
body.page-light .brand-lockup {
    color: var(--beatd-plum-dark);
}

body.page-light .brand-copy span {
    color: rgba(98, 47, 134, 0.76);
}

body.page-light .header-chip {
    background: rgba(127, 67, 169, 0.06);
    border-color: rgba(127, 67, 169, 0.16);
}

body.page-light .header-login {
    border-color: rgba(98, 47, 134, 0.9);
}

body.page-light .header-login:hover,
body.page-light .header-login:focus-visible {
    background: rgba(127, 67, 169, 0.08);
}

.hero-section {
    position: relative;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    min-height: calc(100vh - 8rem);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 46rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--beatd-border);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 10px 22px rgba(44, 14, 69, 0.24);
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.hero-lead {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.7;
    color: var(--beatd-soft-white);
    max-width: 40rem;
    margin-bottom: 2rem;
}

.criteria-card {
    max-width: 38rem;
    padding: 1.6rem 1.7rem;
    border-radius: var(--beatd-radius);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--beatd-shadow);
    backdrop-filter: blur(16px);
}

.criteria-card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.criteria-card p,
.criteria-card li {
    color: var(--beatd-soft-white);
    font-size: 1.02rem;
    line-height: 1.8;
}

.criteria-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.primary-cta,
.secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.85rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-cta {
    background: linear-gradient(135deg, #d4b5e6 0%, #c09adc 100%);
    color: #fff;
    box-shadow: 0 20px 35px rgba(84, 33, 117, 0.28);
}

.secondary-cta {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.primary-cta--light {
    background: linear-gradient(135deg, #cba6de 0%, #b78fd0 100%);
    color: #fff;
    min-width: 19rem;
}

.primary-cta:hover,
.primary-cta:focus-visible,
.secondary-cta:hover,
.secondary-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(41, 12, 62, 0.24);
}

.hero-visual {
    position: relative;
    min-height: 38rem;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 10% auto auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    filter: blur(10px);
}

.visual-panel {
    position: absolute;
    inset: 0;
    border-radius: 2.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.visual-badge {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(115, 50, 154, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.people-illustration {
    position: absolute;
    inset: auto 1.75rem 0 1.75rem;
    height: 84%;
}

.person {
    position: absolute;
    bottom: 0;
    border-radius: 2rem 2rem 0.75rem 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
    box-shadow: 0 26px 48px rgba(50, 18, 77, 0.22);
}

.person::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -4.8rem;
    transform: translateX(-50%);
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #f8dfc1 0%, #e7be8d 100%);
    box-shadow: inset 0 -0.5rem 0 rgba(0, 0, 0, 0.05);
}

.person::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5.6rem;
    transform: translateX(-50%);
    width: 7.4rem;
    height: 3.8rem;
    border-radius: 3.8rem 3.8rem 1.8rem 1.8rem;
    background: #d9d9db;
}

.person-left {
    left: 7%;
    width: 38%;
    height: 52%;
    background: linear-gradient(180deg, #f1bf45 0%, #e8a93b 100%);
}

.person-right {
    right: 4%;
    width: 42%;
    height: 63%;
    background: linear-gradient(180deg, #676271 0%, #494552 100%);
}

.person-right::after {
    background: #f2f2f4;
}

.smartwatch {
    position: absolute;
    left: 28%;
    top: 42%;
    width: 3.4rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(42, 27, 22, 0.92);
    box-shadow: 0 0 0 0.28rem rgba(196, 154, 49, 0.35);
    transform: rotate(-18deg);
}

.water-bottle {
    position: absolute;
    right: 8%;
    bottom: 14%;
    width: 2.9rem;
    height: 6.6rem;
    border-radius: 1.2rem 1.2rem 0.8rem 0.8rem;
    background: linear-gradient(180deg, rgba(222, 118, 255, 0.88), rgba(145, 31, 205, 0.88));
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.water-bottle::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.25rem;
    height: 1rem;
    border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
    background: rgba(120, 30, 180, 0.95);
}

.section-strip {
    padding: 0 0 4rem;
}

.section-strip .info-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--beatd-ink);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 20px 48px rgba(54, 18, 85, 0.16);
    height: 100%;
}

.section-strip .info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.section-strip .info-card p {
    margin: 0;
    color: rgba(31, 23, 48, 0.72);
    line-height: 1.7;
}

.info-page {
    padding: 2rem 0 4rem;
}

.info-page__hero {
    text-align: center;
    padding: 1.5rem 0 2.25rem;
}

.info-page__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--beatd-plum-dark);
}

.info-page__title {
    margin: 0;
    color: var(--beatd-plum-dark);
    font-size: clamp(3rem, 5.8vw, 5rem);
    line-height: 0.94;
    font-weight: 800;
}

.info-page__content {
    max-width: 105rem;
    margin: 0 auto;
    padding: 0 4rem;
    color: #65359a;
}

.info-page__content p,
.info-page__content li {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.55;
    margin-bottom: 2rem;
}

.info-page__list-block ul {
    margin: 0.25rem 0 2rem 1.8rem;
    padding: 0;
}

.info-page__label {
    font-weight: 700;
    color: var(--beatd-plum-dark);
    margin-bottom: 0.75rem;
}

.info-page__decision {
    margin-top: 1rem;
}

.info-page__link {
    color: var(--beatd-plum-dark);
    font-weight: 700;
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.14em;
}

.info-page__actions {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.onboard-page {
    padding: 3rem 0 5rem;
}

.onboard-card {
    max-width: 54rem;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(127, 67, 169, 0.06), rgba(127, 67, 169, 0.02));
    border: 1px solid rgba(127, 67, 169, 0.14);
    box-shadow: 0 18px 48px rgba(74, 30, 110, 0.08);
}

.onboard-title {
    color: var(--beatd-plum-dark);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.04;
    font-weight: 800;
    margin: 0 0 1.4rem;
    text-align: center;
}

.onboard-copy {
    color: #65359a;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.75;
    margin-bottom: 1.2rem;
    text-align: center;
}

.onboard-actions {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.login-page {
    padding: 3rem 0 5rem;
}

.login-card {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(127, 67, 169, 0.06), rgba(127, 67, 169, 0.02));
    border: 1px solid rgba(127, 67, 169, 0.14);
    box-shadow: 0 18px 48px rgba(74, 30, 110, 0.08);
}

.login-title {
    color: var(--beatd-plum-dark);
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 1rem;
    text-align: center;
}

.login-copy {
    color: #65359a;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field {
    display: grid;
    gap: 0.45rem;
}

.login-input {
    min-height: 3.6rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(127, 67, 169, 0.22);
    color: var(--beatd-plum-dark);
    padding: 0.85rem 1rem;
}

.login-input:focus {
    border-color: rgba(127, 67, 169, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(127, 67, 169, 0.12);
}

.login-submit {
    width: 100%;
    border: none;
}

.login-success {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(127, 67, 169, 0.08);
    color: var(--beatd-plum-dark);
    text-align: center;
    font-weight: 600;
}

.login-actions {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.participant-page {
    padding: 2rem 0 5rem;
}

.participant-panel {
    max-width: 108rem;
    margin: 0 auto;
    padding: 1rem 2rem 0;
}

.participant-title {
    color: var(--beatd-plum-dark);
    text-align: center;
    font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: 1.04;
    font-weight: 800;
    margin: 1.5rem 0 3rem;
}

.participant-copy,
.participant-section p {
    color: #65359a;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.participant-section {
    margin-top: 3.25rem;
}

.participant-section h2 {
    color: var(--beatd-plum-dark);
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.validation-summary-errors,
.field-validation-error {
    color: #ffe2e2;
}

@media (max-width: 991.98px) {
    .site-header {
        padding-top: 1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy,
    .criteria-card {
        max-width: none;
    }

    .hero-visual {
        min-height: 30rem;
    }

    .info-page__content {
        padding: 0 1rem;
    }

    .onboard-card {
        padding: 2rem;
    }

    .participant-panel {
        padding: 0 1rem;
    }
}

@media (max-width: 767.98px) {
    .header-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }

    .brand-lockup {
        width: 100%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-lead {
        font-size: 1.08rem;
        line-height: 1.8;
    }

    .criteria-card {
        padding: 1.25rem;
    }

    .hero-visual {
        min-height: 24rem;
    }

    .visual-panel {
        border-radius: 2rem;
    }

    .person::before {
        width: 5.4rem;
        height: 5.4rem;
        top: -3.8rem;
    }

    .person::after {
        width: 5.9rem;
        height: 2.8rem;
        top: -4.4rem;
    }

    .info-page {
        padding-top: 1rem;
    }

    .info-page__hero {
        padding-bottom: 1.5rem;
    }

    .info-page__content p,
    .info-page__content li {
        font-size: 1.06rem;
        line-height: 1.75;
        margin-bottom: 1.4rem;
    }

    .primary-cta--light {
        min-width: 15rem;
        width: 100%;
    }

    .onboard-page {
        padding-top: 1.5rem;
    }

    .onboard-card {
        padding: 1.5rem;
        border-radius: 1.4rem;
    }

    .login-page,
    .participant-page {
        padding-top: 1.5rem;
    }

    .login-card {
        padding: 1.5rem;
        border-radius: 1.4rem;
    }

    .participant-title {
        margin-top: 0.5rem;
        margin-bottom: 1.8rem;
    }
}
