/* 顶部header start */
.topbar {
    position: sticky;
    top: 0;
    z-index: 11;
    width: 100%;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-inner {
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1d1d1f;
    min-width: 178px;
}

.brand-logo {
    width: 36px;
    height: 36px;
}

.logo {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #111 0%, #444 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
}

.brand .brand-wordmark {
    font-size: 23px;
    font-weight: 900;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
}

.top-nav a,
.top-nav button {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #3f3f46;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.top-nav a:hover,
.top-nav button:hover {
    color: #0071e3;
}

.auth {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    justify-content: flex-end;

}

.btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-login {
    background: transparent;
    color: #1d1d1f;
}

.btn-login:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-register {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
/* 顶部header end */

/* 导航栏 start */
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 88px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-nav-item {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    color: #424245;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.side-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.side-nav-item.active {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .topbar-inner {
        height: auto;
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .brand,
    .auth {
        min-width: auto;
    }

    .top-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .page-shell {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .sidebar {
        position: static;
        overflow-x: auto;
        border-radius: 16px;
    }

    .side-nav {
        flex-direction: row;
        min-width: max-content;
    }

    .side-nav-item {
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .auth {
        width: 100%;
        justify-content: flex-start;
    }

    .btn {
        flex: 1;
    }

    .page-shell {
        padding: 18px 14px;
        gap: 18px;
    }
}
/* 导航栏 end */

/* home start */
.main-content {
    min-width: 0;
}

.page-panel{
    display: none;
    opacity: 0;
    transform: translateY(12px);
}

.page-panel.active{
    display: block;
    animation: fadeUp 0.3s ease forwards;
}

.home-panel {
    min-height: 620px;
    padding: 56px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 102, 204, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fbfbfd 56%, #eef5ff 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.home-hero {
    max-width: 760px;
}

.home-eyebrow {
    margin-bottom: 14px;
    color: #0066cc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 860px;
    font-size: 54px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
}

.home-subtitle {
    max-width: 720px;
    margin-top: 20px;
    color: #6e6e73;
    font-size: 19px;
    line-height: 1.7;
}

.home-actions {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.home-primary-btn,
.home-secondary-btn {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.home-primary-btn {
    background: #0071e3;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.24);
}

.home-primary-btn:hover {
    background: #0077ed;
    transform: translateY(-1px);
}

.home-secondary-btn {
    color: #0066cc;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 102, 204, 0.16);
}

.home-secondary-btn:hover {
    background: rgba(0, 102, 204, 0.08);
}

.home-overview {
    margin-top: 54px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
}

.overview-card {
    min-height: 156px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.07);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.overview-card-large {
    background: rgba(29, 29, 31, 0.92);
    color: #fff;
}

.overview-label {
    display: block;
    color: #86868b;
    font-size: 13px;
    font-weight: 600;
}

.overview-card-large .overview-label {
    color: rgba(255, 255, 255, 0.68);
}

.overview-card strong {
    display: block;
    margin-top: 14px;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}

.overview-card p {
    margin-top: 14px;
    color: #6e6e73;
    font-size: 15px;
    line-height: 1.55;
}

.overview-card-large p {
    color: rgba(255, 255, 255, 0.74);
}

.conversion-section {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.conversion-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.conversion-section h2 {
    color: #111827;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: 0;
}

.audience-grid,
.included-grid {
    display: grid;
    gap: 12px;
}

.audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-grid article {
    min-height: 92px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
}

.included-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.included-grid span {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f0f9ff;
    color: #0f172a;
    display: flex;
    align-items: center;
    font-weight: 750;
    line-height: 1.45;
}

.path-list {
    display: grid;
    gap: 12px;
    list-style: none;
}

.path-list li {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.path-list strong {
    color: #0071e3;
    font-size: 15px;
    line-height: 1.5;
}

.path-list span {
    color: #475569;
    line-height: 1.7;
}

.free-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    background: #111827;
    color: #fff;
}

.free-preview h2 {
    color: #fff;
}

.free-preview p {
    max-width: 650px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.free-preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.free-preview .home-secondary-btn {
    color: #111827;
    background: #fff;
    border-color: #fff;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list article {
    padding: 20px;
    border-radius: 8px;
    background: #f8fafc;
}

.faq-list h3 {
    color: #111827;
    font-size: 18px;
    line-height: 1.4;
}

.faq-list p {
    margin-top: 8px;
    color: #64748b;
    line-height: 1.7;
}

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

@media (max-width: 900px) {
    .home-panel {
        min-height: auto;
        padding: 42px 30px;
        border-radius: 24px;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .home-subtitle {
        font-size: 17px;
    }

    .home-overview {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .overview-card {
        min-height: 132px;
    }

    .audience-grid,
    .included-grid {
        grid-template-columns: 1fr;
    }

    .path-list li,
    .free-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .home-panel {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-actions {
        align-items: stretch;  /* 撑满宽度 */
        flex-direction: column;
    }

    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
    }

    .conversion-section {
        padding: 22px;
    }

    .conversion-section h2 {
        font-size: 28px;
    }
}
/* home end */

/* course start */
.course-panel {
    min-height: 620px;
    padding: 42px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.course-header {
    max-width: 620px;
}

.course-eyebrow {
    margin-bottom: 12px;
    color: #0066cc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-header h1 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
}

.course-header p {
    margin-top: 13px;
    color: #6e6e73;
    font-size: 17px;
    line-height: 1.65;
}

.course-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.course-card {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    background: linear-gradient(135deg, #fbfbfd 0%, #f5f5f7 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.11);
}

.course-cover {
    min-height: 260px;
    background: #e8e8ed;
}

.course-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* 完整显示不变形，可能留白 */
}

.course-info {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.course-tag {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.1);
    color: #0066cc;
    font-size: 13px;
    font-weight: 700;
}

.course-info h2 {
    margin-top: 18px;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 700;
}

.course-info p {
    margin-top: 14px;
    color: #6e6e73;
    font-size: 16px;
    line-height: 1.6;
}

.course-link {
    min-height: 42px;
    margin-top: 24px;
    padding: 0 20px;
    border-radius: 999px;
    background: #0071e3;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.24);
    transition: all 0.2s ease;
}

.course-link:hover {
    background: #0077ed;
    transform: translateY(-1px);
}

.course-price-link {
    margin-top: 14px;
    color: #0066cc;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.course-price-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .course-panel {
        min-height: auto;
        padding: 34px 28px;
        border-radius: 24px;
    }

    .course-header h1 {
        font-size: 38px;
    }

    .course-card {
        grid-template-columns: 1fr;
    }

    .course-cover {
        aspect-ratio: 3 / 2;
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .course-panel {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .course-header h1 {
        font-size: 32px;
    }

    .course-info {
        padding: 24px;
    }

    .course-info h2 {
        font-size: 25px;
    }

    .course-link {
        width: 100%;
    }
}
/* course end */

/* lesson youtube start */
.lesson-youtube-panel {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
}

.lesson-youtube-panel .hero {
    text-align: center;
    padding: 50px 24px 20px;
}

.lesson-youtube-panel .badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #0066cc;
    font-size: 14px;
    margin-bottom: 24px;
}

.lesson-youtube-panel h1 {
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
}

.lesson-youtube-panel .subtitle {
    max-width: 820px;
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.7;
    color: #6e6e73;
}

.lesson-youtube-panel .actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.lesson-youtube-panel .btn {
    height: auto;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    transition: 0.25s;
    border: none;
}

.lesson-youtube-panel .btn-primary {
    background: #0071e3;
    color: white;
}

.lesson-youtube-panel .btn-secondary {
    background: white;
    color: #0071e3;
    border: 1px solid rgba(0,0,0,00.08);
}

.lesson-youtube-panel .btn:hover {
    transform: translateY(-2px);
}

.lesson-youtube-panel .intro-card {
    max-width: 1000px;
    margin: 40px auto;
    padding: 44px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.08);
}

.lesson-youtube-panel .intro-card h2 {
    font-size: 34px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.lesson-youtube-panel .intro-card p {
    font-size: 17px;
    line-height: 1.9;
    color: #5f5f66;
    margin-bottom: 18px;
}

.lesson-youtube-panel .features {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.lesson-youtube-panel .feature {
    background: white;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.lesson-youtube-panel .feature .icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.lesson-youtube-panel .feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.lesson-youtube-panel .feature p {
    color: #6e6e73;
    line-height: 1.7;
    font-size: 15px;
}

.lesson-youtube-panel .course-section {
    max-width: 1000px;
    margin: 70px auto 100px;
    text-align: center;
    scroll-margin-top: 88px; /* 当页面“滚动定位”到这个元素时，顶部自动预留 88px 的距离。 */
}

.lesson-youtube-panel .course-section h2 {
    font-size: 44px;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.lesson-youtube-panel .course-section > p {
    color: #6e6e73;
    font-size: 18px;
    margin-bottom: 32px;
}

.lesson-youtube-panel .course-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.lesson-youtube-panel .course-card {
    display: block;
    background: white;
    border-radius: 24px;
    padding: 28px 18px;
    text-decoration: none;
    color: #1d1d1f;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.lesson-youtube-panel .course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.1);
}

.lesson-youtube-panel .course-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.lesson-youtube-panel .course-card span {
    color: #6e6e73;
    font-size: 14px;
}

.lesson-youtube-panel .footer {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
    font-size: 14px;
}

/* words start */
.words-header {
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.words-eyebrow,
.word-source,
.word-details dt {
    color: #0071e3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.words-header h1 {
    margin-top: 8px;
    font-size: 42px;
    line-height: 1.1;
}

.words-header p {
    max-width: 620px;
    margin-top: 12px;
    color: #6e6e73;
    line-height: 1.7;
}

.words-empty {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    line-height: 1.7;
}

.words-empty[hidden] {
    display: none;
}

.words-list {
    display: grid;
    gap: 16px;
}

.word-card {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.word-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.word-card h2 {
    margin-top: 4px;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.word-remove-btn {
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 8px 12px;
    font-weight: 800;
}

.word-remove-btn:hover {
    background: #fff5f5;
}

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

.word-details div {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
}

.word-details dt {
    margin-bottom: 6px;
}

.word-details dd {
    margin: 0;
    color: #5f6673;
    line-height: 1.65;
}
/* words end */

@media (max-width: 768px) {
    
    .lesson-youtube-panel h1 {
        font-size: 44px;
    }

    .lesson-youtube-panel .subtitle {
        font-size: 18px;
    }

    .lesson-youtube-panel .actions {
        flex-direction: column;
    }

    .lesson-youtube-panel .features,
    .lesson-youtube-panel .course-grid {
        grid-template-columns: 1fr;
    }

    .lesson-youtube-panel .intro-card {
        margin: 24px;
        padding: 28px;
    }

    .words-header {
        padding: 24px;
    }

    .words-header h1 {
        font-size: 34px;
    }

    .word-card-head {
        flex-direction: column;
    }

    .word-remove-btn {
        width: 100%;
    }

    .word-details {
        grid-template-columns: 1fr;
    }
}
/* lesson youtube end */

.home-marketing[hidden],
.home-dashboard[hidden] {
    display: none !important;
}

.home-marketing .conversion-section,
.home-marketing .faq-list article,
.home-marketing .path-list li,
.home-marketing .audience-grid article,
.home-marketing .included-grid span {
    border-radius: 24px;
}

.home-marketing .conversion-section,
.home-marketing .faq-list article,
.home-marketing .path-list li {
    border-color: rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.dashboard-shell {
    display: grid;
    gap: 24px;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-header-copy {
    display: grid;
    gap: 14px;
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(190, 220, 255, 0.96), rgba(238, 245, 255, 0.96));
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 32px rgba(148, 163, 184, 0.18);
}

.dashboard-profile-kicker,
.dashboard-section-kicker {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-header h1,
.dashboard-card h2 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.dashboard-header h1 {
    margin-top: 4px;
    font-size: clamp(40px, 6vw, 56px);
    line-height: 1.04;
}

.dashboard-subtitle {
    max-width: 720px;
    color: #5f6b7c;
    font-size: 17px;
    line-height: 1.8;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 20px;
}

.dashboard-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.4), transparent 34%);
    box-shadow: 0 24px 64px rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.dashboard-progress-card,
.dashboard-task-card,
.dashboard-recent-card,
.dashboard-error-card {
    padding: 28px;
}

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

.dashboard-stat-item {
    min-height: 168px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    display: grid;
    align-content: space-between;
}

.dashboard-stat-item span,
.dashboard-goal-card span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-stat-item strong {
    margin-top: 14px;
    color: #0f172a;
    font-size: 58px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.dashboard-stat-item em {
    color: #6b7280;
    font-style: normal;
    font-size: 16px;
    font-weight: 700;
}

.dashboard-goal-card,
.dashboard-month-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.dashboard-goal-head,
.dashboard-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-goal-head strong,
.dashboard-section-head h2 {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    line-height: 1.2;
}

.dashboard-goal-ratio,
.dashboard-month-count {
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-goal-track {
    height: 12px;
    margin-top: 18px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.86);
    overflow: hidden;
}

.dashboard-goal-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.32);
}

.dashboard-goal-card.is-complete {
    display: grid;
    place-items: center;
    min-height: 122px;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(236, 253, 245, 0.96));
    border-color: rgba(34, 197, 94, 0.18);
}

.dashboard-goal-success {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #16a34a;
}

.dashboard-goal-success strong {
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.dashboard-goal-success-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22);
}

.dashboard-goal-success-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-mini-weekdays,
.dashboard-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-mini-weekdays {
    margin-top: 22px;
}

.dashboard-mini-weekdays span,
.dashboard-calendar-weekdays span {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.dashboard-mini-calendar,
.dashboard-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-mini-calendar {
    margin-top: 14px;
}

.dashboard-mini-day,
.dashboard-calendar-day {
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.dashboard-mini-day {
    aspect-ratio: 1 / 1;
    min-height: 42px;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-calendar-day {
    min-height: 94px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 800;
    cursor: default;
    user-select: none;
}

.dashboard-mini-day.is-outside,
.dashboard-calendar-day.is-outside {
    opacity: 0.38;
}

.dashboard-mini-day.is-checked,
.dashboard-calendar-day.is-checked {
    color: #fff;
    background: linear-gradient(180deg, #9fc2ff 0%, #7dabff 100%);
    border-color: #9fc2ff;
}

.dashboard-mini-day.is-checked {
    box-shadow: 0 10px 24px rgba(125, 171, 255, 0.24);
}

.dashboard-mini-day.is-today-pending {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #93c5fd;
    box-shadow: none;
}

.dashboard-mini-day.is-future {
    color: #c0c7d1;
    background: #fff;
    border-color: #eef2f7;
}

.dashboard-calendar-day.is-default {
    color: #0f172a;
    background: #fff;
    border-color: rgba(226, 232, 240, 0.88);
    box-shadow: none;
}

.dashboard-calendar-day.is-checked {
    box-shadow: 0 18px 40px rgba(125, 171, 255, 0.26);
}

.dashboard-calendar-day.is-today-pending {
    color: #0f172a;
    background: #fff;
    border-color: rgba(54, 122, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(54, 122, 255, 0.22);
}

.dashboard-calendar-day.is-future {
    color: #c3c9d4;
    background: #fff;
    border-color: #edf1f7;
    box-shadow: none;
}

.dashboard-card-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
}

.dashboard-primary-link,
.dashboard-secondary-link,
.dashboard-task-action {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-primary-link {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.dashboard-secondary-link,
.dashboard-task-action {
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

.dashboard-primary-link:hover,
.dashboard-secondary-link:hover,
.dashboard-task-action:hover {
    transform: translateY(-1px);
}

.dashboard-task-list {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.dashboard-task-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.dashboard-task-item.is-complete {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 252, 0.94));
}

.dashboard-task-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(241, 245, 249, 0.95));
    color: #3b82f6;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dashboard-task-item:nth-child(2) .dashboard-task-icon {
    color: #b45309;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
}

.dashboard-task-icon svg,
.dashboard-task-state-icon svg {
    width: 32px;
    height: 32px;
}

.dashboard-task-copy {
    min-width: 0;
}

.dashboard-task-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-task-title-row h3 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
}

.dashboard-task-copy p {
    margin-top: 8px;
    color: #64748b;
    line-height: 1.7;
}

.dashboard-task-pill {
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.96);
    color: #475569;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-task-pill.is-complete {
    background: rgba(219, 234, 254, 0.96);
    color: #1d4ed8;
}

.dashboard-task-tail {
    display: flex;
    justify-content: flex-end;
}

.dashboard-task-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-task-state.is-complete {
    color: #94a3b8;
}

.dashboard-task-state-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
}

.dashboard-recent-list {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-recent-item,
.dashboard-recent-empty {
    min-height: 208px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.dashboard-recent-item {
    color: #0f172a;
    text-decoration: none;
    display: grid;
    align-content: space-between;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-recent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.14);
}

.dashboard-recent-kicker,
.dashboard-recent-time {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-recent-item strong,
.dashboard-recent-empty strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.3;
}

.dashboard-recent-item p,
.dashboard-recent-empty p,
.dashboard-error-card p {
    color: #5f6b7c;
    line-height: 1.75;
}

.dashboard-recent-empty {
    grid-column: 1 / -1;
    min-height: 0;
    display: grid;
    gap: 18px;
}

.dashboard-recent-empty-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-modal-open {
    overflow: hidden;
}

.dashboard-modal-open .page-panel.active {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.dashboard-calendar-modal[hidden] {
    display: none;
}

.dashboard-calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 28px);
}

.dashboard-calendar-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.22), rgba(241, 245, 249, 0.44));
    backdrop-filter: blur(18px) saturate(108%);
    -webkit-backdrop-filter: blur(18px) saturate(108%);
}

.dashboard-calendar-dialog {
    position: relative;
    width: min(550px, calc(100vw - 56px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 30px 30px 25px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.985)),
        #fff;
    box-shadow:
        0 28px 72px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-self: center;
}

.dashboard-calendar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-calendar-topbar h2 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
}

.dashboard-calendar-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #7a8597;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 28px;
    line-height: 1;
}

.dashboard-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.dashboard-calendar-nav p {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.dashboard-calendar-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #ebeff6;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.06);
}

.dashboard-calendar-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.dashboard-calendar-stats-shell {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.dashboard-calendar-stat-card {
    padding: 2px 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: 0;
}

.dashboard-calendar-stat-card + .dashboard-calendar-stat-card {
    border-left: 1px solid rgba(226, 232, 240, 0.92);
    padding-left: 22px;
}

.dashboard-calendar-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.dashboard-calendar-stat-card.is-streak .dashboard-calendar-stat-icon {
    color: #3f83f8;
    background: radial-gradient(circle at 30% 30%, rgba(237, 244, 255, 0.98), rgba(216, 229, 255, 0.9));
}

.dashboard-calendar-stat-card.is-total .dashboard-calendar-stat-icon {
    color: #7c4dff;
    background: radial-gradient(circle at 30% 30%, rgba(245, 239, 255, 0.98), rgba(232, 223, 255, 0.92));
}

.dashboard-calendar-stat-icon svg {
    width: 38px;
    height: 38px;
}

.dashboard-calendar-stat-copy {
    min-width: 0;
    margin: 0 auto;
}

.dashboard-calendar-stat-copy span {
    display: block;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.dashboard-calendar-stat-card.is-streak .dashboard-calendar-stat-copy span {
    color: #367aff;
}

.dashboard-calendar-stat-card.is-total .dashboard-calendar-stat-copy span {
    color: #6d45ff;
}

.dashboard-calendar-stat-copy p {
    margin: 8px 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dashboard-calendar-stat-copy strong {
    color: #367aff;
    font-size: 25px;
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.dashboard-calendar-stat-card.is-total .dashboard-calendar-stat-copy strong {
    color: #6d45ff;
}

.dashboard-calendar-stat-copy em {
    color: #7a8597;
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-calendar-board {
    margin-top: 14px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(231, 236, 244, 0.96);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    flex: 1 1 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-calendar-weekdays,
.dashboard-calendar-grid {
    gap: 12px;
}

.dashboard-calendar-weekdays span {
    color: #758097;
    font-size: 14px;
    font-weight: 850;
}

.dashboard-calendar-grid {
    margin-top: 14px;
}

.dashboard-calendar-day {
    min-height: 52px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 850;
}

.dashboard-calendar-legend {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #7a8597;
}

.dashboard-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-calendar-legend-item em {
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

.dashboard-calendar-legend-dot.is-checked {
    background: linear-gradient(180deg, #6fa3ff 0%, #4f8bff 100%);
}

.dashboard-calendar-legend-dot.is-accent {
    background: linear-gradient(180deg, #d6c9ff 0%, #bca9ff 100%);
}

.dashboard-calendar-legend-dot.is-default {
    background: #e1e5ec;
}

.course-panel,
#words,
#rank {
    min-height: 620px;
    padding: 42px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94)),
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.28), transparent 32%);
    box-shadow: 0 24px 60px rgba(148, 163, 184, 0.14);
}

.course-header,
.words-header {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.course-card,
.word-card {
    border-radius: 28px;
    border-color: rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(148, 163, 184, 0.12);
}

.course-cover {
    background: linear-gradient(135deg, #edf4ff 0%, #f8fafc 100%);
}

.course-info p,
.words-header p,
.word-details dd {
    color: #5f6b7c;
}

.course-link,
.course-price-link {
    font-weight: 700;
}

.words-empty {
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.72);
}

.word-remove-btn {
    border-color: rgba(248, 113, 113, 0.22);
}

#rank {
    align-content: start;
}

.page-panel.active#rank {
    display: grid;
    gap: 18px;
}

#rank h1 {
    margin: 0;
    color: #0f172a;
    font-size: 42px;
    letter-spacing: -0.04em;
}

#rank p {
    max-width: 640px;
    color: #5f6b7c;
    line-height: 1.75;
}

#rank::after {
    content: "学习排行与打卡排行正在准备中，后续会在这里开放。";
    padding: 24px;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    line-height: 1.75;
}

@media (max-width: 1024px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-recent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-progress-card,
    .dashboard-task-card,
    .dashboard-recent-card,
    #words,
    #rank {
        padding: 24px;
    }

    .dashboard-task-item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dashboard-task-tail {
        justify-content: flex-start;
    }

}

@media (max-width: 768px) {
    .dashboard-stat-grid,
    .dashboard-recent-list {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-day {
        min-height: 58px;
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .dashboard-profile {
        align-items: flex-start;
    }

    .dashboard-header h1 {
        font-size: 34px;
    }

    .dashboard-subtitle {
        font-size: 15px;
    }

    .dashboard-stat-item strong {
        font-size: 44px;
    }

    .dashboard-goal-head strong,
    .dashboard-section-head h2,
    .dashboard-task-title-row h3 {
        font-size: 20px;
    }

    .dashboard-calendar-dialog {
        padding: 22px;
    }

    .dashboard-calendar-topbar h2 {
        font-size: 32px;
    }

    .dashboard-calendar-board {
        padding: 16px;
    }

    .dashboard-mini-day {
        min-height: 34px;
        border-radius: 14px;
        font-size: 12px;
    }

    .dashboard-primary-link,
    .dashboard-secondary-link,
    .dashboard-task-action {
        width: 100%;
    }

    .dashboard-recent-empty-actions {
        flex-direction: column;
    }
}

/* refreshed marketing/course surfaces */
body {
    background: radial-gradient(circle at 30% 10%, #eef5ff 0, #f7f8fb 34%, #f4f5f8 100%);
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.topbar {
    height: 64px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: #e8edf5;
}

.topbar-inner {
    width: 100%;
    max-width: none;
    height: 64px;
    margin: 0 auto;
    padding: 0 28px;
}

.brand {
    font-weight: 800;
}

.brand-text {
    font-weight: 800;
}

.logo {
    border-radius: 9px;
    background: #111827;
    box-shadow: none;
}

.auth {
    min-width: 0;
    gap: 12px;
}

.auth-account {
    gap: 12px;
}

.auth-feedback-btn {
    min-height: 0;
    padding: 10px 16px;
    border: 1px solid #e8edf5;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

.auth-avatar-btn {
    width: 38px;
    height: 38px;
    border: 0;
    background: #e8f1ff;
    box-shadow: none;
}

.auth-avatar {
    background: #e8f1ff;
    color: #1d4ed8;
    font-weight: 900;
}

.page-shell {
    max-width: 1180px;
    margin: 30px auto 70px;
    padding: 0 24px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
}

.sidebar {
    top: 90px;
    align-self: start;
    padding: 10px;
    border-color: #e8edf5;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.side-nav {
    gap: 0;
}

.side-nav-item {
    min-height: 0;
    margin: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    color: #475569;
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.side-nav-item.active {
    background: #0f172a;
    color: #fff;
    box-shadow: none;
    transform: none;
}

.home-panel,
#words,
#rank {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-marketing {
    display: grid;
    gap: 22px;
}

.home-hero {
    position: relative;
    min-height: 560px;
    padding: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}

.home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.home-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 23, 0.92) 0%, rgba(8, 13, 23, 0.68) 48%, rgba(8, 13, 23, 0.12) 100%),
        linear-gradient(0deg, rgba(8, 13, 23, 0.48), rgba(8, 13, 23, 0.06));
    z-index: -1;
}

.home-hero-copy {
    position: relative;
    max-width: 640px;
    color: #fff;
}

.home-eyebrow,
.course-eyebrow {
    margin: 0;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero .home-eyebrow {
    color: #bfdbfe;
}

.home-hero h1 {
    max-width: 680px;
    margin-top: 14px;
    color: #fff;
    font-size: clamp(46px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: 0;
}

.home-subtitle {
    max-width: 590px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.home-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-primary-btn,
.home-secondary-btn {
    margin-top: 0;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-primary-btn {
    background: #2563eb;
    color: #fff;
    box-shadow: none;
}

.home-primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.home-secondary-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.home-secondary-btn:hover {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.34);
    color: #1d4ed8;
    text-decoration: none;
}

.home-hero-strip {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-hero-strip div {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.9);
}

.home-hero-strip span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.home-hero-strip strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
}

.home-overview {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.overview-card {
    min-height: 168px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: none;
}

.overview-card-large {
    background: #0f172a;
}

.overview-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.overview-card strong {
    margin-top: 18px;
    color: #0f172a;
    font-size: 28px;
    letter-spacing: 0;
}

.overview-card-large strong {
    color: #fff;
}

.overview-card p {
    color: #64748b;
}

.conversion-section {
    margin-top: 0;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: none;
}

.conversion-section-head {
    gap: 8px;
    margin-bottom: 18px;
}

.conversion-section h2 {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 850;
}

.audience-grid,
.included-grid {
    gap: 10px;
}

.audience-grid article,
.included-grid span,
.path-list li,
.faq-list article {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #f8fafc;
    box-shadow: none;
}

.home-marketing .conversion-section,
.home-marketing .faq-list article,
.home-marketing .path-list li,
.home-marketing .audience-grid article,
.home-marketing .included-grid span {
    border-radius: 8px;
    box-shadow: none;
}

.home-marketing .conversion-section,
.home-marketing .faq-list article,
.home-marketing .path-list li {
    border-color: rgba(15, 23, 42, 0.08);
    background: #fff;
}

.home-marketing .audience-grid article,
.home-marketing .included-grid span {
    background: #f8fafc;
}

.audience-grid article {
    min-height: 88px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 750;
}

.included-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.included-grid span {
    min-height: 48px;
    color: #334155;
    font-size: 14px;
    font-weight: 750;
}

.path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-list li {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 18px;
}

.path-list strong {
    color: #1d4ed8;
    font-weight: 850;
}

.path-list span {
    color: #475569;
}

.free-preview {
    grid-template-columns: minmax(0, 1fr) auto;
    background: #102016;
}

.free-preview .home-eyebrow {
    color: #bbf7d0;
}

.free-preview .home-secondary-btn {
    background: #fff;
    border-color: #fff;
    color: #0f172a;
}

.faq-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list article {
    padding: 20px;
}

.page-panel.active#words,
.page-panel.active#rank {
    display: grid;
    gap: 18px;
}

.words-header {
    padding: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.words-header h1,
#rank h1 {
    color: #0f172a;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: 0;
}

.words-header p,
#rank p {
    max-width: 660px;
    color: #64748b;
}

.word-card,
.words-empty,
#rank::after {
    border-radius: 8px;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .home-hero {
        min-height: 620px;
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero-strip {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: auto;
    }

    .path-list,
    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .page-shell {
        padding: 22px 18px 56px;
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .home-overview,
    .audience-grid,
    .included-grid,
    .path-list,
    .faq-list,
    .free-preview {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 560px;
        padding: 34px;
    }

    .home-hero-strip {
        grid-template-columns: 1fr;
    }

    .conversion-section,
    .words-header {
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .topbar-inner {
        padding: 14px 16px;
    }

    .page-shell {
        padding: 16px 14px 48px;
    }

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

    .home-hero h1 {
        font-size: 40px;
    }

    .home-subtitle {
        font-size: 16px;
    }

    .home-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .home-primary-btn,
    .home-secondary-btn {
        width: 100%;
    }

    .path-list li {
        grid-template-columns: 1fr;
    }
}

/* member homepage redesign */
.home-dashboard {
    color: #0f172a;
}

.dashboard-shell {
    gap: 0;
}

.dashboard-hello {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 22px;
}

.dashboard-hello h1 {
    margin: 4px 0 10px;
    color: #0f172a;
    font-size: 52px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.dashboard-avatar {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #dbeafe;
    color: #1e40af;
    box-shadow: none;
    font-size: 24px;
    font-weight: 900;
}

.dashboard-profile-kicker,
.dashboard-section-kicker {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-subtitle {
    max-width: none;
    color: #64748b;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 650;
}

.dashboard-hero {
    margin-bottom: 24px;
    padding: 30px;
    border: 1px solid #e8edf5;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 62%, #eef6ff 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 24px;
}

.dashboard-continue-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    background: #fff;
}

.dashboard-continue-card::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    right: -90px;
    top: -90px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.03));
    pointer-events: none;
}

.dashboard-continue-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-lesson-num {
    display: block;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
}

.dashboard-continue-card h2 {
    max-width: 480px;
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: 0;
}

.dashboard-step-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.dashboard-step {
    padding: 9px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-step.is-done {
    background: #dcfce7;
    color: #15803d;
}

.dashboard-progress-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.dashboard-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    flex: 1;
    overflow: hidden;
}

.dashboard-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.dashboard-progress-row strong {
    color: #1d4ed8;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-continue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-primary-link,
.dashboard-secondary-link {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 900;
}

.dashboard-primary-link {
    border-color: #111827;
    background: #111827;
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.dashboard-secondary-link {
    border-color: #e8edf5;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.dashboard-today-card {
    padding: 28px;
    border-radius: 24px;
    background: #0f172a !important;
    color: #fff;
}

.dashboard-today-card .dashboard-section-kicker {
    color: #64748b;
    letter-spacing: 0.16em;
}

.dashboard-today-card h2 {
    margin: 6px 0 18px;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.dashboard-plan-list {
    display: grid;
}

.dashboard-plan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-plan-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-plan-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    flex: 0 0 auto;
}

.dashboard-plan-item.is-done .dashboard-plan-check {
    background: #22c55e;
    border-color: #22c55e;
}

.dashboard-plan-item strong {
    display: block;
    color: #fff;
    line-height: 1.4;
}

.dashboard-plan-item p {
    margin-top: 2px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-plan-summary {
    margin-top: 20px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    font-weight: 800;
    line-height: 1.5;
}

.dashboard-results-row,
.dashboard-grid {
    display: grid;
    gap: 24px;
}

.dashboard-results-row {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
    border: 1px solid #e8edf5;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.dashboard-growth-card,
.dashboard-outcomes-card,
.dashboard-month-card,
.dashboard-review-card,
.dashboard-recent-card,
.dashboard-error-card {
    margin-top: 0;
    padding: 28px;
}

.dashboard-growth-card,
.dashboard-outcomes-card {
    padding: 40px;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.dashboard-card h2 {
    margin: 4px 0 22px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.dashboard-growth-card h2,
.dashboard-outcomes-card h2 {
    margin-top: 14px;
    margin-bottom: 28px;
    color: #101010;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 0;
}

.dashboard-growth-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-growth-main {
    min-width: 0;
}

.dashboard-growth-content strong {
    display: block;
    color: #101010;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 830;
    letter-spacing: 0;
    white-space: nowrap;
}

.dashboard-growth-content p {
    margin-top: 10px;
    color: #3d3d3d;
    font-size: 15px;
}

.dashboard-growth-card .dashboard-progress-row {
    display: none !important;
}

.dashboard-growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding: 9px 12px;
    border-radius: 20px;
    background: #f0effe;
    color: #6c63d5;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-level-ring {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.dashboard-level-ring svg.ring-svg {
    transform: rotate(-90deg);
}

.dashboard-level-ring-track {
    fill: none;
}

.dashboard-level-ring > span {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #12122a;
    font-size: 15px;
    font-weight: 900;
}

.dashboard-level-ring > span small {
    display: block;
    margin-top: 2px;
    color: #aaa;
    font-size: 10px;
    font-weight: 600;
}

.ring-progress {
    animation: ringFill 1.2s ease-out forwards;
}

@keyframes ringFill {
    from {
        stroke-dashoffset: 251.2;
    }

    to {
        stroke-dashoffset: var(--ring-end-offset, 251.2);
    }
}

.dashboard-outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-outcome-stat {
    padding: 14px 8px 12px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.dashboard-outcome-stat strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.dashboard-outcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    line-height: 1;
}

.dashboard-outcome-icon svg {
    width: 26px;
    height: 26px;
}

.dashboard-outcome-label {
    color: #888;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-outcome-trend {
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.dashboard-outcome-stat.is-course {
    background: #eff6ff;
}

.dashboard-outcome-stat.is-course strong,
.dashboard-outcome-stat.is-course .dashboard-outcome-icon {
    color: #2563eb;
}

.dashboard-outcome-stat.is-course .dashboard-outcome-trend {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-outcome-stat.is-dictation {
    background: #eff6ff;
}

.dashboard-outcome-stat.is-dictation strong,
.dashboard-outcome-stat.is-dictation .dashboard-outcome-icon {
    color: #2563eb;
}

.dashboard-outcome-stat.is-dictation .dashboard-outcome-trend {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-outcome-stat.is-expression {
    background: #f5f3ff;
}

.dashboard-outcome-stat.is-expression strong,
.dashboard-outcome-stat.is-expression .dashboard-outcome-icon {
    color: #7c3aed;
}

.dashboard-outcome-stat.is-expression .dashboard-outcome-trend {
    background: #ede9fe;
    color: #7c3aed;
}

.dashboard-outcome-stat.is-streak {
    background: #ecfdf5;
}

.dashboard-outcome-stat.is-streak strong,
.dashboard-outcome-stat.is-streak .dashboard-outcome-icon {
    color: #059669;
}

.dashboard-outcome-stat.is-streak .dashboard-outcome-trend {
    background: #d1fae5;
    color: #059669;
}

.dashboard-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-month-card .dashboard-secondary-link {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
}

.dashboard-mini-weekdays,
.dashboard-mini-calendar {
    gap: 9px;
}

.dashboard-mini-weekdays {
    margin-top: 8px;
}

.dashboard-mini-day {
    min-height: 38px;
    border-radius: 14px;
    background: #fff;
    border-color: #e8edf5;
    font-weight: 800;
}

.dashboard-mini-day.is-checked {
    box-shadow: 0 10px 24px rgba(125, 171, 255, 0.24);
}

.dashboard-mini-day.is-today-pending {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #93c5fd;
    box-shadow: none;
}

.dashboard-review-list {
    display: grid;
    gap: 0;
}

.dashboard-review-item {
    width: 100%;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid #e8edf5;
    background: transparent;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    text-decoration: none;
    cursor: default;
    font: inherit;
}

.dashboard-review-item:last-child {
    border-bottom: 0;
}

.dashboard-review-item > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fef3c7;
    color: #92400e;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 auto;
}

.dashboard-review-item:nth-child(2) > span {
    background: #dbeafe;
    color: #1d4ed8;
}

.dashboard-review-item strong {
    display: block;
    color: #0f172a;
    line-height: 1.4;
}

.dashboard-review-item p {
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-recent-card {
    grid-column: 1 / -1;
}

.dashboard-recent-list {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-recent-item,
.dashboard-recent-empty {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border-color: #e8edf5;
    box-shadow: none;
}

.dashboard-recent-item {
    display: block;
    color: #0f172a;
}

.dashboard-recent-item strong,
.dashboard-recent-empty strong {
    display: block;
    margin: 10px 0 18px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
}

.dashboard-recent-kicker,
.dashboard-recent-time {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-recent-action {
    display: inline-block;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .dashboard-hero,
    .dashboard-results-row,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-recent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-outcome-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-hello {
        align-items: flex-start;
    }

    .dashboard-hello h1 {
        font-size: 42px;
    }

    .dashboard-hero,
    .dashboard-continue-card,
    .dashboard-today-card,
    .dashboard-growth-card,
    .dashboard-outcomes-card,
    .dashboard-month-card,
    .dashboard-review-card,
    .dashboard-recent-card {
        padding: 24px;
    }

    .dashboard-continue-card h2 {
        font-size: 31px;
    }

    .dashboard-outcome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-hello h1 {
        font-size: 34px;
    }

    .dashboard-subtitle {
        font-size: 15px;
    }

    .dashboard-hero,
    .dashboard-continue-card,
    .dashboard-today-card,
    .dashboard-growth-card,
    .dashboard-outcomes-card,
    .dashboard-month-card,
    .dashboard-review-card,
    .dashboard-recent-card {
        border-radius: 22px;
        padding: 20px;
    }

    .dashboard-continue-card h2 {
        font-size: 26px;
    }

    .dashboard-continue-actions,
    .dashboard-growth-content {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-level-ring {
        align-self: center;
    }

    .dashboard-growth-card h2,
    .dashboard-outcomes-card h2 {
        margin-bottom: 28px;
        font-size: 30px;
    }

    .dashboard-growth-content p {
        max-width: none;
        font-size: 15px;
    }

    .dashboard-outcome-grid,
    .dashboard-recent-list {
        grid-template-columns: 1fr;
    }

    .dashboard-primary-link,
    .dashboard-secondary-link {
        width: 100%;
    }

    .dashboard-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-calendar-dialog {
        width: min(100%, calc(100vw - 20px));
        min-height: auto;
        max-height: none;
        padding: 18px 16px 22px;
        border-radius: 26px;
        box-shadow:
            0 20px 46px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .dashboard-calendar-topbar h2 {
        font-size: 24px;
    }

    .dashboard-calendar-nav {
        margin-top: 18px;
    }

    .dashboard-calendar-nav p {
        font-size: 18px;
    }

    .dashboard-calendar-arrow {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 22px;
    }

    .dashboard-calendar-day {
        min-height: 58px;
        font-size: 15px;
        border-radius: 16px;
    }

    .dashboard-calendar-stats-shell {
        margin-top: 18px;
        padding: 14px 16px;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .dashboard-calendar-stat-card {
        padding: 4px 0;
        gap: 14px;
    }

    .dashboard-calendar-stat-card + .dashboard-calendar-stat-card {
        border-left: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.92);
        margin-top: 14px;
        padding-left: 0;
        padding-top: 18px;
    }

    .dashboard-calendar-stat-icon {
        width: 66px;
        height: 66px;
    }

    .dashboard-calendar-stat-icon svg {
        width: 34px;
        height: 34px;
    }

    .dashboard-calendar-stat-copy span {
        font-size: 12px;
    }

    .dashboard-calendar-stat-copy strong {
        font-size: 34px;
    }

    .dashboard-calendar-stat-copy em {
        font-size: 15px;
    }

    .dashboard-calendar-board {
        margin-top: 14px;
        padding: 16px 14px 18px;
        border-radius: 18px;
    }

    .dashboard-calendar-weekdays,
    .dashboard-calendar-grid {
        gap: 10px;
    }

    .dashboard-calendar-weekdays span {
        font-size: 13px;
    }

    .dashboard-calendar-grid {
        margin-top: 14px;
    }

    .dashboard-calendar-legend {
        margin-top: 16px;
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-calendar-legend-item em {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .topbar-inner {
        height: 64px;
        padding: 0 28px;
        flex-wrap: nowrap;
    }

    .page-shell {
        margin: 30px auto 70px;
        padding: 0 24px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
    }

    .side-nav {
        flex-direction: row;
        min-width: max-content;
    }

    .dashboard-hero,
    .dashboard-results-row,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-outcome-grid,
    .dashboard-recent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .topbar-inner {
        padding: 0 18px;
    }

    .page-shell {
        margin: 24px auto 56px;
        padding: 0 18px;
    }

    .dashboard-outcome-grid,
    .dashboard-recent-list {
        grid-template-columns: 1fr;
    }
}

/* guest homepage reference */
:root {
    --guest-bg: #f5f7fb;
    --guest-card: rgba(255, 255, 255, 0.78);
    --guest-card-solid: #ffffff;
    --guest-text: #111827;
    --guest-muted: #667085;
    --guest-soft: #eef3ff;
    --guest-line: rgba(17, 24, 39, 0.08);
    --guest-blue: #2563eb;
    --guest-blue-dark: #1d4ed8;
    --guest-navy: #0b1220;
    --guest-shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
    --guest-shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.guest-side-nav {
    display: none;
}

body.is-guest-home {
    min-height: 100vh;
    color: var(--guest-text);
    background: linear-gradient(180deg, #f8fbff 0%, var(--guest-bg) 48%, #f7f8fc 100%);
}

body.is-guest-home .page-shell {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 34px 0 76px;
    display: block;
}

body.is-guest-home .sidebar {
    display: none;
}

body.is-guest-home .app-side-nav {
    display: none;
}

body.is-guest-home .guest-side-nav {
    display: grid;
    gap: 4px;
}

body.is-guest-home .side-link {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: #344054;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease;
}

body.is-guest-home .side-link:hover {
    color: var(--guest-blue);
    background: rgba(37, 99, 235, 0.08);
}

body.is-guest-home .side-link.active {
    color: #fff;
    background: var(--guest-navy);
}

body.is-guest-home .main-content {
    min-width: 0;
}

body.is-guest-home .home-panel {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body.is-guest-home .home-marketing {
    display: block;
}

body.is-guest-home .home-marketing h1,
body.is-guest-home .home-marketing h2,
body.is-guest-home .home-marketing h3,
body.is-guest-home .home-marketing p {
    margin: 0;
    letter-spacing: 0;
}

body.is-guest-home .home-marketing .mobile-nav {
    display: none;
}

body.is-guest-home .home-marketing .hero {
    min-height: calc(100vh - 168px);
    padding: 58px 0 46px;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
    gap: 44px;
    align-items: center;
}

body.is-guest-home .home-marketing .eyebrow {
    color: var(--guest-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.is-guest-home .home-marketing .hero h1 {
    max-width: 620px;
    margin-top: 16px;
    color: var(--guest-text);
    font-size: 64px;
    line-height: 0.98;
    font-weight: 900;
}

body.is-guest-home .home-marketing .hero-subtitle {
    max-width: 560px;
    margin-top: 24px;
    color: var(--guest-muted);
    font-size: 19px;
    line-height: 1.8;
}

body.is-guest-home .home-marketing .hero-actions,
body.is-guest-home .home-marketing .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

body.is-guest-home .home-marketing .hero-actions {
    margin-top: 34px;
}

body.is-guest-home .home-marketing .btn {
    min-height: 48px;
    height: auto;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.is-guest-home .home-marketing .btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #2f72ff, #1f5eea);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.25);
}

body.is-guest-home .home-marketing .btn-primary:hover,
body.is-guest-home .home-marketing .btn-ghost:hover,
body.is-guest-home .home-marketing .btn-light:hover {
    transform: translateY(-2px);
}

body.is-guest-home .home-marketing .btn-ghost,
body.is-guest-home .home-marketing .btn-light {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--guest-line);
}

body.is-guest-home .home-marketing .demo-stage {
    position: relative;
    border-radius: 34px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--guest-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body.is-guest-home .home-marketing .video-window {
    position: relative;
    min-height: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #edf4ff, #ffffff);
}

body.is-guest-home .home-marketing .video-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 12, 23, 0.22), rgba(7, 12, 23, 0.04));
    pointer-events: none;
}

body.is-guest-home .home-marketing .hero-demo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

body.is-guest-home .home-marketing .play-button {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--guest-blue);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    font-size: 19px;
}

body.is-guest-home .home-marketing .section {
    margin-top: 76px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.is-guest-home .home-marketing .section-head {
    margin-bottom: 26px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
}

body.is-guest-home .home-marketing .section h2 {
    margin-top: 8px;
    color: var(--guest-text);
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
}

body.is-guest-home .home-marketing .section-desc {
    max-width: 450px;
    color: var(--guest-muted);
    line-height: 1.75;
    font-size: 16px;
}

body.is-guest-home .home-marketing .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

body.is-guest-home .home-marketing .step-card {
    min-height: 230px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    background: var(--guest-card);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.is-guest-home .home-marketing .num {
    width: 44px;
    height: 44px;
    margin-bottom: 38px;
    border-radius: 15px;
    background: #eef4ff;
    color: var(--guest-blue);
    display: grid;
    place-items: center;
    font-weight: 900;
}

body.is-guest-home .home-marketing .step-card h3,
body.is-guest-home .home-marketing .preview-copy h3,
body.is-guest-home .home-marketing .fit-card h3 {
    margin-bottom: 10px;
    color: var(--guest-text);
    font-size: 21px;
}

body.is-guest-home .home-marketing .step-card p,
body.is-guest-home .home-marketing .preview-copy p,
body.is-guest-home .home-marketing .fit-card p {
    color: var(--guest-muted);
    line-height: 1.7;
    font-size: 15px;
}

body.is-guest-home .home-marketing .preview-stack {
    display: grid;
    gap: 18px;
}

body.is-guest-home .home-marketing .preview-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    min-height: 310px;
}

body.is-guest-home .home-marketing .preview-shot,
body.is-guest-home .home-marketing .preview-copy {
    overflow: hidden;
    border: 1px solid var(--guest-line);
    border-radius: 28px;
    background: var(--guest-card-solid);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
}

body.is-guest-home .home-marketing .preview-shot {
    padding: 18px;
    background: linear-gradient(180deg, #fff, #f4f7fb);
}

body.is-guest-home .home-marketing .preview-shot img {
    width: 100%;
    height: 100%;
    min-height: 274px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
}

body.is-guest-home .home-marketing .preview-copy {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.is-guest-home .home-marketing .learning-path-section .section-title-center {
    margin-bottom: 44px;
}

body.is-guest-home .home-marketing .learning-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding-top: 12px;
}

body.is-guest-home .home-marketing .learning-flow::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 109, 246, 0.12), rgba(20, 184, 166, 0.68), rgba(139, 92, 246, 0.22), rgba(47, 109, 246, 0.12));
    background-size: 220% 100%;
    animation: flowLine 5.5s linear infinite;
}

body.is-guest-home .home-marketing .flow-step {
    position: relative;
    z-index: 1;
    min-height: 176px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.82)),
        radial-gradient(circle at 80% 12%, rgba(47, 109, 246, 0.14), transparent 34%);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-rows: auto auto 1fr;
    overflow: hidden;
    animation: flowFloat 4.8s ease-in-out infinite;
}

body.is-guest-home .home-marketing .flow-step:nth-child(2) {
    animation-delay: -0.6s;
}

body.is-guest-home .home-marketing .flow-step:nth-child(3) {
    animation-delay: -1.2s;
}

body.is-guest-home .home-marketing .flow-step:nth-child(4) {
    animation-delay: -1.8s;
}

body.is-guest-home .home-marketing .flow-step:nth-child(5) {
    animation-delay: -2.4s;
}

body.is-guest-home .home-marketing .flow-step:nth-child(6) {
    animation-delay: -3s;
}

body.is-guest-home .home-marketing .flow-step:nth-child(7) {
    animation-delay: -3.6s;
}

body.is-guest-home .home-marketing .flow-step::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -26px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(47, 109, 246, 0.07);
}

body.is-guest-home .home-marketing .flow-node {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--guest-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

body.is-guest-home .home-marketing .flow-icon {
    width: 52px;
    height: 52px;
    margin: 18px 0 16px;
    border-radius: 18px;
    background: rgba(47, 109, 246, 0.10);
    color: #2f6df6;
    display: grid;
    place-items: center;
}

body.is-guest-home .home-marketing .flow-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.is-guest-home .home-marketing .flow-step strong {
    display: block;
    color: var(--guest-text);
    font-size: 19px;
    line-height: 1.25;
}

body.is-guest-home .home-marketing .flow-step p {
    margin-top: 8px;
    color: var(--guest-muted);
    font-size: 14px;
    line-height: 1.6;
}

@keyframes flowLine {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 220% 0;
    }
}

@keyframes flowFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

body.is-guest-home .home-marketing .fit-grid,
body.is-guest-home .home-marketing .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.is-guest-home .home-marketing .fit-card,
body.is-guest-home .home-marketing .stat {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
}

body.is-guest-home .home-marketing .fit-card {
    min-height: 150px;
}

body.is-guest-home .home-marketing .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.is-guest-home .home-marketing .stat strong {
    display: block;
    margin-bottom: 8px;
    color: var(--guest-text);
    font-size: 38px;
}

body.is-guest-home .home-marketing .stat span {
    color: var(--guest-muted);
    font-size: 14px;
    line-height: 1.6;
}

body.is-guest-home .home-marketing .cta-buttons {
    margin-top: 24px;
}

body.is-guest-home .home-marketing #faq {
    margin-top: 96px;
    padding: 104px 0 96px;
    background: #f2f4f7;
    box-shadow: 0 0 0 100vmax #f2f4f7;
    clip-path: inset(0 -100vmax);
}

body.is-guest-home .home-marketing .faq-title {
    margin-bottom: 54px;
}

body.is-guest-home .home-marketing .faq-list-modern {
    max-width: 860px;
    margin: 0 auto;
}

body.is-guest-home .home-marketing .faq-list-modern details {
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

body.is-guest-home .home-marketing .faq-list-modern details:first-child {
    border-top: 1px solid rgba(15, 23, 42, 0.09);
}

body.is-guest-home .home-marketing .faq-list-modern summary {
    min-height: 76px;
    padding: 0;
    color: var(--guest-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 450;
}

body.is-guest-home .home-marketing .faq-list-modern summary::-webkit-details-marker {
    display: none;
}

body.is-guest-home .home-marketing .faq-list-modern summary b {
    color: #667085;
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
    transition: transform 0.18s ease;
}

body.is-guest-home .home-marketing .faq-list-modern details[open] summary b {
    transform: rotate(90deg);
}

body.is-guest-home .home-marketing .faq-list-modern p {
    max-width: 720px;
    margin: -8px 0 26px;
    color: var(--guest-muted);
    font-size: 16px;
    line-height: 1.8;
}

body.is-guest-home .home-marketing .trial-section {
    margin-top: 92px;
    padding: 78px 0 64px;
    text-align: center;
}

body.is-guest-home .home-marketing .trial-section h2 {
    color: var(--guest-text);
    font-size: 60px;
    line-height: 1.05;
    font-weight: 950;
}

body.is-guest-home .home-marketing .trial-button {
    width: fit-content;
    min-width: 132px;
    margin-top: 50px;
    padding: 0 26px;
    background: #2f6df6;
    color: #fff;
    box-shadow: 0 14px 32px rgba(47, 109, 246, 0.24);
}

body.is-guest-home .home-marketing .hero {
    min-height: 0;
    padding: 54px 0 30px;
    display: block;
    text-align: center;
}

body.is-guest-home .home-marketing .hero-copy {
    max-width: 760px;
    margin: 0 auto;
}

body.is-guest-home .home-marketing .hero-badge {
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 14px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    color: #3657b4;
    background: rgba(239, 246, 255, 0.88);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
    font-size: 13px;
    font-weight: 850;
}

body.is-guest-home .home-marketing .hero .eyebrow {
    margin: 0 auto;
}

body.is-guest-home .home-marketing .hero h1 {
    max-width: 760px;
    margin: 16px auto 0;
    font-size: 58px;
    line-height: 1.02;
}

body.is-guest-home .home-marketing .hero-subtitle {
    max-width: 680px;
    margin: 22px auto 0;
}

body.is-guest-home .home-marketing .hero-actions {
    justify-content: center;
}

body.is-guest-home .home-marketing .hero-demo {
    width: min(100%, 980px);
    margin: 36px auto 0;
    text-align: left;
}

body.is-guest-home .home-marketing .hero-demo .video-window {
    min-height: 0;
}

body.is-guest-home .home-marketing .stats-strip {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 28px auto 34px;
}

body.is-guest-home .home-marketing .stats-strip .stat {
    min-height: 104px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--guest-shadow-soft);
    text-align: center;
}

body.is-guest-home .home-marketing .stat-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 1px;
    display: grid;
    place-items: center;
    color: var(--stat-accent, var(--guest-blue));
}

body.is-guest-home .home-marketing .stat-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.is-guest-home .home-marketing .stat.is-lessons {
    --stat-accent: #8b5cf6;
}

body.is-guest-home .home-marketing .stat.is-sentences {
    --stat-accent: #14b8a6;
}

body.is-guest-home .home-marketing .stat.is-expressions {
    --stat-accent: #f59e0b;
}

body.is-guest-home .home-marketing .stat.is-steps {
    --stat-accent: #ef476f;
}

body.is-guest-home .home-marketing .stats-strip .stat strong {
    display: block;
    color: var(--guest-text);
    font-size: 29px;
    line-height: 1;
}

body.is-guest-home .home-marketing .stats-strip .stat span {
    color: var(--guest-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.is-guest-home .home-marketing .section-title-center {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

body.is-guest-home .home-marketing .section-title-center .eyebrow {
    margin: 0 auto;
}

body.is-guest-home .home-marketing .section-title-center h2 {
    margin-top: 8px;
    color: var(--guest-text);
    font-size: 50px;
    line-height: 1.08;
    font-weight: 1000;
}

body.is-guest-home .home-marketing .practice-section {
    margin-top: 80px;
}

body.is-guest-home .home-marketing .practice-section .section-title-center {
    margin-bottom: 58px;
}

body.is-guest-home .home-marketing .feature-stack {
    display: grid;
    gap: 28px;
}

body.is-guest-home .home-marketing .feature-row {
    min-height: 360px;
    padding: 28px;
    border: 1px solid var(--guest-line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
    box-shadow: var(--guest-shadow-soft);
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 28px;
    align-items: center;
}

body.is-guest-home .home-marketing .feature-row-reverse {
    grid-template-columns: 1.18fr 0.82fr;
}

body.is-guest-home .home-marketing .feature-row-reverse .feature-copy {
    order: 2;
}

body.is-guest-home .home-marketing .feature-copy h3 {
    color: var(--guest-text);
    font-size: 27px;
    line-height: 1.18;
    font-weight: 900;
}

body.is-guest-home .home-marketing .feature-copy p {
    margin-top: 16px;
    color: var(--guest-muted);
    font-size: 16px;
    line-height: 1.85;
}

body.is-guest-home .home-marketing .feature-media {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

body.is-guest-home .home-marketing .feature-media::before {
    content: none;
}

body.is-guest-home .home-marketing .feature-media::after {
    content: none;
}

body.is-guest-home .home-marketing .feature-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    display: block;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96)),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 34%);
    box-shadow:
        0 22px 54px rgba(15, 23, 42, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    filter: saturate(0.94) contrast(0.98);
}

body.is-guest-home .home-marketing .feature-row:nth-child(1) .feature-media img {
    object-position: center;
}

body.is-guest-home .home-marketing .feature-row:nth-child(2) .feature-media img {
    object-position: center;
}

body.is-guest-home .home-marketing .feature-row:nth-child(3) .feature-media img {
    object-position: center;
}

body.is-guest-home .home-marketing .feature-row:nth-child(4) .feature-media img {
    object-position: center;
}

body.is-guest-home .home-marketing .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.is-guest-home .home-marketing .testimonial-card {
    min-height: 244px;
    padding: 26px;
    border: 1px solid var(--guest-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.is-guest-home .home-marketing .testimonial-card p {
    color: #344054;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 750;
}

body.is-guest-home .home-marketing .testimonial-tag {
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.12);
    font-size: 13px;
    font-weight: 850;
}

body.is-guest-home .home-marketing .testimonial-user {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.is-guest-home .home-marketing .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    overflow: hidden;
    background: #f4f7fb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
}

body.is-guest-home .home-marketing .avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.is-guest-home .home-marketing .testimonial-user strong {
    display: block;
    color: var(--guest-text);
    font-size: 16px;
    line-height: 1.2;
}

body.is-guest-home .home-marketing .testimonial-user em {
    display: block;
    margin-top: 4px;
    color: var(--guest-muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.35;
}

body:not(.is-guest-home) .guest-side-nav {
    display: none;
}

body:not(.is-guest-home) .app-side-nav {
    display: flex;
}

@media (max-width: 1060px) {
    body.is-guest-home .page-shell {
        width: min(100% - 36px, 1180px);
        display: block;
        padding: 24px 0 60px;
    }

    body.is-guest-home .sidebar {
        display: none;
    }

    body.is-guest-home .home-marketing .mobile-nav {
        margin-bottom: 16px;
        padding-bottom: 2px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    body.is-guest-home .home-marketing .mobile-nav a {
        flex: 0 0 auto;
        padding: 10px 14px;
        border: 1px solid var(--guest-line);
        border-radius: 999px;
        color: #334155;
        background: rgba(255, 255, 255, 0.86);
        font-size: 13px;
        font-weight: 800;
    }

    body.is-guest-home .home-marketing .mobile-nav a.active {
        color: #fff;
        background: var(--guest-navy);
    }

    body.is-guest-home .home-marketing .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        padding: 34px 0 48px;
    }

    body.is-guest-home .home-marketing .steps,
    body.is-guest-home .home-marketing .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.is-guest-home .home-marketing .preview-row {
        grid-template-columns: 1fr;
    }

    body.is-guest-home .home-marketing .floating-card {
        position: static;
        width: auto;
        margin-top: 14px;
    }
}

@media (max-width: 760px) {
    body.is-guest-home .home-marketing .hero h1 {
        font-size: 44px;
    }

    body.is-guest-home .home-marketing .hero-subtitle {
        font-size: 17px;
    }

    body.is-guest-home .home-marketing .section-head {
        display: block;
    }

    body.is-guest-home .home-marketing .section-desc {
        margin-top: 14px;
    }

    body.is-guest-home .home-marketing .steps,
    body.is-guest-home .home-marketing .fit-grid,
    body.is-guest-home .home-marketing .stats-grid {
        grid-template-columns: 1fr;
    }

    body.is-guest-home .home-marketing .learning-flow {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 20px;
    }

    body.is-guest-home .home-marketing .learning-flow::before {
        left: 20px;
        right: auto;
        top: 18px;
        bottom: 18px;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, rgba(47, 109, 246, 0.12), rgba(20, 184, 166, 0.68), rgba(139, 92, 246, 0.22), rgba(47, 109, 246, 0.12));
        background-size: 100% 220%;
    }

    body.is-guest-home .home-marketing .flow-step {
        min-height: 0;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        padding: 18px;
        animation: none;
    }

    body.is-guest-home .home-marketing .flow-node {
        grid-row: 1 / span 2;
    }

    body.is-guest-home .home-marketing .flow-icon {
        width: 44px;
        height: 44px;
        margin: 0 0 10px;
    }

    body.is-guest-home .home-marketing .faq-title {
        margin-bottom: 34px;
    }

    body.is-guest-home .home-marketing #faq {
        margin-top: 72px;
        padding: 76px 0 72px;
    }

    body.is-guest-home .home-marketing .faq-list-modern summary {
        min-height: 68px;
        font-size: 19px;
    }

    body.is-guest-home .home-marketing .trial-section h2 {
        font-size: 42px;
    }
}

@media (max-width: 520px) {
    body.is-guest-home .page-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 18px;
    }

    body.is-guest-home .home-marketing .hero h1 {
        font-size: 40px;
    }

    body.is-guest-home .home-marketing .hero-actions,
    body.is-guest-home .home-marketing .cta-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.is-guest-home .home-marketing .btn {
        width: 100%;
    }

    body.is-guest-home .home-marketing .demo-stage {
        padding: 10px;
        border-radius: 26px;
    }

    body.is-guest-home .home-marketing .video-window {
        min-height: 0;
        border-radius: 20px;
    }

    body.is-guest-home .home-marketing .section {
        padding: 0;
        border-radius: 0;
    }

    body.is-guest-home .home-marketing .section h2 {
        font-size: 32px;
    }

    body.is-guest-home .home-marketing .faq-list-modern summary {
        font-size: 17px;
    }

    body.is-guest-home .home-marketing .trial-section {
        margin-top: 68px;
        padding: 54px 0 44px;
    }

    body.is-guest-home .home-marketing .trial-section h2 {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-guest-home .home-marketing .learning-flow::before,
    body.is-guest-home .home-marketing .flow-step {
        animation: none;
    }
}

body.is-guest-home .home-marketing .mobile-nav {
    display: none !important;
}

@media (max-width: 1060px) {
    body.is-guest-home .home-marketing .hero {
        padding: 40px 0 28px;
    }

    body.is-guest-home .home-marketing .hero-demo .video-window {
        min-height: 0;
    }

    body.is-guest-home .home-marketing .stats-strip,
    body.is-guest-home .home-marketing .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.is-guest-home .home-marketing .feature-row,
    body.is-guest-home .home-marketing .feature-row-reverse {
        grid-template-columns: 1fr;
    }

    body.is-guest-home .home-marketing .feature-row-reverse .feature-copy {
        order: 0;
    }
}

@media (max-width: 760px) {
    body.is-guest-home .home-marketing .hero h1 {
        font-size: 42px;
    }

    body.is-guest-home .home-marketing .hero-demo .video-window {
        min-height: 0;
    }

    body.is-guest-home .home-marketing .stats-strip,
    body.is-guest-home .home-marketing .testimonial-grid {
        grid-template-columns: 1fr;
    }

    body.is-guest-home .home-marketing .section-title-center h2 {
        font-size: 32px;
    }

    body.is-guest-home .home-marketing .feature-row {
        padding: 22px;
        border-radius: 22px;
    }

    body.is-guest-home .home-marketing .feature-copy h3 {
        font-size: 24px;
    }

    body.is-guest-home .home-marketing .feature-media img {
        height: auto;
        min-height: 0;
    }
}
