:root {
    color-scheme: light;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f4f6fb;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(112, 90, 255, 0.18),
            transparent 34rem
        ),
        #f4f6fb;
}

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hero {
    min-height: 570px;
    padding: 32px 48px 56px;
    border-radius: 32px;
    color: white;
    background:
        radial-gradient(
            circle at 86% 14%,
            rgba(116, 210, 255, 0.42),
            transparent 22rem
        ),
        linear-gradient(135deg, #151a3b, #3931a4 65%, #6558e8);
    box-shadow: 0 30px 80px rgba(41, 40, 110, 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.hero-content {
    max-width: 760px;
    padding-top: 100px;
}

.eyebrow {
    margin: 0 0 20px;
    color: #cbc9ff;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(46px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.lead {
    max-width: 600px;
    margin: 30px 0 0;
    color: #e4e3ff;
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.5;
}

.actions {
    display: flex;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border-radius: 14px;
    font-weight: 720;
    text-decoration: none;
}

.primary {
    color: #282260;
    background: white;
}

.secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.status-panel {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: -28px 28px 0;
    padding: 30px 34px;
    border: 1px solid rgba(35, 40, 80, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 50px rgba(39, 44, 90, 0.12);
    backdrop-filter: blur(16px);
}

.status-label {
    margin: 0 0 7px;
    color: #7a8196;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.checks {
    display: flex;
    gap: 34px;
}

.check {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 12px;
}

.check div {
    display: grid;
    gap: 4px;
}

.check span:last-child {
    color: #747c91;
    font-size: 14px;
}

.indicator {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.indicator.ok {
    background: #22b573;
    box-shadow: 0 0 0 6px rgba(34, 181, 115, 0.12);
}

.indicator.error {
    background: #e65353;
    box-shadow: 0 0 0 6px rgba(230, 83, 83, 0.12);
}

@media (max-width: 780px) {
    .page {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
    }

    .hero {
        min-height: 520px;
        padding: 24px;
        border-radius: 24px;
    }

    .hero-content {
        padding-top: 80px;
    }

    .status-panel {
        display: grid;
        margin: -20px 12px 0;
        padding: 24px;
    }

    .checks {
        display: grid;
        gap: 20px;
    }
}

/* MentorAI application screens v3 */

a {
    color: inherit;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(112, 90, 255, 0.22),
            transparent 30rem
        ),
        #f4f6fb;
}

.auth-card {
    width: min(100%, 480px);
    padding: 38px;
    border: 1px solid rgba(35, 40, 80, 0.08);
    border-radius: 28px;
    background: white;
    box-shadow: 0 25px 70px rgba(39, 44, 90, 0.16);
}

.small-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 760;
    text-decoration: none;
}

.dark-mark {
    color: white;
    background: #302a88;
}

.auth-copy {
    margin: 52px 0 30px;
}

.eyebrow.dark {
    color: #6558e8;
}

.auth-title,
.workspace-title {
    margin: 0;
    color: #172033;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.muted {
    color: #747c91;
    line-height: 1.6;
}

.muted.large {
    max-width: 660px;
    font-size: 18px;
}

.form-error {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 13px;
    color: #9f2d39;
    background: #fff0f2;
}

.form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 19px;
    color: #424a5f;
    font-size: 14px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #d9deeb;
    border-radius: 13px;
    color: #172033;
    background: #fbfcff;
    font: inherit;
    font-weight: 500;
    outline: none;
}

.form-field input:focus {
    border-color: #6558e8;
    box-shadow: 0 0 0 4px rgba(101, 88, 232, 0.12);
}

.button.wide {
    width: 100%;
    border: 0;
    cursor: pointer;
    color: white;
    background: #3931a4;
}

.workspace {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 70px;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 75px;
}

.header-links {
    display: flex;
    gap: 24px;
}

.text-link {
    color: #5b6378;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: #3931a4;
}

.workspace-intro {
    margin-bottom: 38px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.profile-card {
    display: grid;
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(35, 40, 80, 0.08);
    border-radius: 25px;
    background: white;
    box-shadow: 0 16px 45px rgba(39, 44, 90, 0.1);
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(39, 44, 90, 0.16);
}

.profile-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 22px;
    color: white;
    font-size: 30px;
    font-weight: 800;
}

.avatar-violet {
    background: linear-gradient(135deg, #3730a3, #7c6df2);
}

.avatar-blue {
    background: linear-gradient(135deg, #1766a8, #4ba8e8);
}

.profile-card h2 {
    margin: 0 0 5px;
    font-size: 27px;
}

.profile-card p {
    margin: 0;
    color: #7a8196;
}

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #e8ebf4;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6558e8, #8a7cf5);
}

.profile-meta {
    display: flex;
    justify-content: space-between;
    color: #7a8196;
    font-size: 14px;
}

.profile-meta strong {
    color: #3931a4;
}

.course-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 45px;
    align-items: end;
    margin-bottom: 34px;
    padding: 44px;
    border-radius: 30px;
    color: white;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(124, 190, 255, 0.35),
            transparent 20rem
        ),
        linear-gradient(135deg, #171b43, #4338b4);
    box-shadow: 0 25px 70px rgba(42, 42, 120, 0.22);
}

.course-title {
    margin: 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.course-description {
    max-width: 700px;
    margin: 24px 0 0;
    color: #dfdeff;
    font-size: 18px;
    line-height: 1.6;
}

.course-progress {
    display: grid;
    gap: 10px;
    padding: 23px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.11);
}

.course-progress > span,
.course-progress small {
    color: #d9d7ff;
}

.course-progress strong {
    font-size: 38px;
}

.light-track {
    background: rgba(255, 255, 255, 0.18);
}

.light-track span {
    background: white;
}

.lesson-list {
    display: grid;
    gap: 15px;
}

.lesson-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 30px;
    gap: 20px;
    align-items: center;
    padding: 24px 27px;
    border: 1px solid rgba(35, 40, 80, 0.08);
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 32px rgba(39, 44, 90, 0.07);
}

.lesson-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: #3931a4;
    background: #eeecff;
    font-weight: 800;
}

.lesson-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.lesson-heading h2 {
    margin: 0;
    font-size: 20px;
}

.lesson-copy p {
    margin: 8px 0 12px;
    color: #747c91;
    line-height: 1.5;
}

.lesson-status {
    flex: 0 0 auto;
    color: #777f94;
    font-size: 13px;
    font-weight: 700;
}

.lesson-meta {
    display: flex;
    gap: 20px;
    color: #8a91a3;
    font-size: 13px;
}

.lesson-arrow {
    color: #777f94;
    font-size: 24px;
}

@media (max-width: 760px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .workspace-header {
        margin-bottom: 45px;
    }

    .course-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .lesson-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .lesson-arrow {
        display: none;
    }

    .lesson-heading {
        display: grid;
        gap: 7px;
    }

    .header-links {
        gap: 12px;
    }
}

/* MentorAI lesson screen v1 */

.lesson-card {
    color: inherit;
    text-decoration: none;
}

.lesson-card:not(.lesson-disabled) {
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.lesson-card:not(.lesson-disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(39, 44, 90, 0.12);
}

.lesson-disabled {
    cursor: default;
    opacity: 0.63;
}

.lesson-page {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 80px;
}

.lesson-header {
    margin-bottom: 42px;
}

.lesson-intro {
    padding: 48px;
    border-radius: 30px;
    color: white;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(102, 184, 255, 0.38),
            transparent 23rem
        ),
        linear-gradient(135deg, #171b43, #4338b4);
    box-shadow: 0 25px 70px rgba(42, 42, 120, 0.22);
}

.lesson-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.lesson-lead {
    max-width: 760px;
    margin: 24px 0 0;
    color: #e2e1ff;
    font-size: 19px;
    line-height: 1.65;
}

.lesson-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.lesson-tools button {
    border: 0;
    cursor: pointer;
}

.lesson-tools button:disabled {
    cursor: default;
    opacity: 0.55;
}

.lesson-primary {
    color: #292365;
    background: white;
}

.lesson-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.1);
}

.lesson-duration {
    margin-left: 8px;
    color: #d8d6ff;
    font-size: 14px;
}

.speech-status {
    min-height: 22px;
    margin: 15px 0 0;
    color: #cbc9ff;
    font-size: 14px;
}

.lesson-content {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.content-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 22px;
    padding: 30px;
    border: 1px solid rgba(35, 40, 80, 0.08);
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 36px rgba(39, 44, 90, 0.07);
}

.content-index {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    color: #3931a4;
    background: #eeecff;
    font-weight: 800;
}

.content-card h2 {
    margin: 4px 0 16px;
    font-size: 25px;
}

.content-card p {
    margin: 0 0 13px;
    color: #596176;
    font-size: 17px;
    line-height: 1.65;
}

.lesson-tip {
    display: grid;
    gap: 5px;
    margin-top: 19px;
    padding: 16px 18px;
    border-left: 4px solid #6558e8;
    border-radius: 0 13px 13px 0;
    color: #454d63;
    background: #f3f1ff;
}

.lesson-tip strong {
    color: #3931a4;
}

.practice-card {
    margin-top: 28px;
    padding: 34px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(39, 44, 90, 0.11);
}

.practice-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.practice-heading h2 {
    margin: 0;
    font-size: 30px;
}

.practice-heading p:last-child {
    max-width: 680px;
    color: #747c91;
    line-height: 1.6;
}

.practice-badge {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 99px;
    color: #3931a4;
    background: #eeecff;
    font-size: 13px;
    font-weight: 750;
}

.task-list {
    display: grid;
    gap: 11px;
    margin: 27px 0;
}

.task-step {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 15px 17px;
    border: 1px solid #e2e6ef;
    border-radius: 14px;
    color: #424a5f;
    cursor: pointer;
}

.task-step:hover {
    background: #fafaff;
}

.task-step input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.task-checkmark {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #c5cada;
    border-radius: 7px;
}

.task-step input:checked + .task-checkmark {
    border-color: #6558e8;
    background: #6558e8;
}

.task-step input:checked + .task-checkmark::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: 900;
}

.task-step:has(input:checked) {
    border-color: #cbc5ff;
    background: #f5f3ff;
}

.success-note {
    display: grid;
    gap: 5px;
    margin-bottom: 24px;
    padding: 17px 19px;
    border-radius: 14px;
    color: #35644d;
    background: #edf9f2;
}

.lesson-complete {
    min-width: 190px;
    border: 0;
    color: white;
    background: #3931a4;
    cursor: pointer;
}

.lesson-complete:disabled {
    cursor: default;
    opacity: 0.4;
}

.task-hint {
    margin: 11px 0 0;
    color: #858c9e;
    font-size: 13px;
}

@media (max-width: 700px) {
    .lesson-page {
        width: min(100% - 24px, 980px);
        padding-top: 14px;
    }

    .lesson-intro {
        padding: 28px 23px;
    }

    .content-card {
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .practice-card {
        padding: 24px;
    }

    .practice-heading {
        display: grid;
    }

    .practice-badge {
        justify-self: start;
    }
}

/* MentorAI voice laboratory v1 */

.voice-lab-page {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 80px;
}

.voice-lab-intro {
    margin-bottom: 38px;
}

.voice-sample-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.voice-sample-card {
    display: grid;
    align-content: start;
    gap: 24px;
    min-width: 0;
    padding: 27px;
    border: 1px solid rgba(35, 40, 80, 0.08);
    border-radius: 24px;
    background: white;
    box-shadow: 0 15px 42px rgba(39, 44, 90, 0.1);
}

.voice-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: white;
    background:
        linear-gradient(
            135deg,
            #3730a3,
            #7c6df2
        );
    font-size: 20px;
    font-weight: 800;
}

.voice-sample-card h2 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 27px;
}

.voice-technical {
    margin: 0;
    color: #858c9e;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

.voice-player {
    width: 100%;
    margin-top: auto;
}

.voice-lab-note {
    display: grid;
    gap: 6px;
    margin-top: 26px;
    padding: 20px 22px;
    border-left: 4px solid #6558e8;
    border-radius: 0 15px 15px 0;
    color: #51596e;
    background: #f1efff;
}

.voice-lab-note strong {
    color: #3931a4;
}

@media (max-width: 800px) {
    .voice-sample-grid {
        grid-template-columns: 1fr;
    }
}

