:root {
    --study-teal: #0d9488;
    --study-cyan: #06b6d4;
    --study-blue: #0891b2;
    --study-amber: #f59e0b;
    --study-violet: #8b5cf6;
    --study-white: #f8fafc;
}

/* Crisp depth on bright gradients, with a narrow shadow edge instead of a haze. */
.landing-page .hero-copy h1,
.study-body .page-intro h1,
.study-body .section-heading h2,
.learnmate-welcome h1 {
    text-shadow: 0 1px 0 rgba(4, 42, 56, .75), 0 2px 2px rgba(4, 42, 56, .35);
}

.dashboard-info{margin:20px 0 28px}
.dashboard-info>summary{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(4,81,96,.22);color:#fff;font-size:12px;font-weight:800;cursor:pointer;list-style:none}
.dashboard-info>summary::-webkit-details-marker{display:none}
.dashboard-info>summary:focus-visible{outline:3px solid #ffcf79;outline-offset:3px}
.dashboard-info-icon{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#fff;color:#087b83;font-size:12px;font-weight:900}
.dashboard-info .content-grid{margin-top:16px}

.learnmate-welcome .learner-class,
.learnmate-welcome .learner-intro {
    color: #f5fffd;
}

.button-primary,
.learnmate-primary-action {
    text-shadow: none;
}

@keyframes study-rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes study-zoom-in {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes study-sparkle {
    0%, 100% { opacity: .72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

body {
    min-height: 100vh;
}

.landing-page,
.study-body,
.auth-page {
    background-color: var(--study-teal);
    background-image: linear-gradient(135deg, #0d9488 0%, #06b6d4 54%, #0891b2 100%);
    background-attachment: fixed;
}

.brand {
    color: #fff;
}

.brand-light {
    color: rgba(240, 253, 250, .78);
}

.brand-mark {
    width: 38px;
    height: 38px;
    overflow: hidden;
    background: url("./learnmate-logo.png") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 8px 18px rgba(8, 47, 73, .24);
    color: transparent;
    font-size: 0;
}

.button-primary {
    background: linear-gradient(115deg, #14b8a6, #0891b2);
    box-shadow: 0 10px 22px rgba(8, 47, 73, .2);
}

.button-primary:hover {
    background: linear-gradient(115deg, #0f9f98, #077c9d);
    box-shadow: 0 12px 24px rgba(8, 47, 73, .26);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline-color: #fde68a;
}

/* Public landing page: retain the product story, with Learnmate's bright gradient palette. */
.landing-page {
    color: var(--study-white);
}

.landing-page .site-header {
    border-color: rgba(255, 255, 255, .2);
}

.landing-page .site-nav a,
.landing-page .text-link {
    color: rgba(240, 253, 250, .9);
}

.landing-page .site-nav a:hover,
.landing-page .text-link:hover {
    color: #fff;
}

.landing-page .eyebrow {
    color: #c4fff3;
}

.landing-page .eyebrow-dot {
    background: #fcd34d;
    box-shadow: 0 0 0 4px rgba(253, 230, 138, .2);
}

.landing-page .hero-copy h1 {
    color: #fff;
}

.landing-page .hero-copy h1 span,
.landing-page .section-heading h2 span {
    color: #a5f3fc;
}

.landing-page .hero-copy {
    animation: study-rise-in .55s cubic-bezier(.2, .75, .25, 1) both;
}

.landing-page .hero-visual {
    animation: study-zoom-in .6s ease-out both;
}

.landing-page .step-card {
    animation: study-rise-in .45s ease-out both;
}

.landing-page .step-card:nth-child(2) {
    animation-delay: 90ms;
}

.landing-page .step-card:nth-child(3) {
    animation-delay: 180ms;
}

.landing-page .hero-description,
.landing-page .hero-trust,
.landing-page .site-footer {
    color: rgba(240, 253, 250, .86);
}

.landing-page .trust-check {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.landing-page .proof-strip {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(8, 47, 73, .18);
}

.landing-page .how-section .section-heading h2 {
    color: #fff;
}

.landing-page .how-section .section-heading > p:last-child {
    color: rgba(240, 253, 250, .84);
}

.landing-page .closing-banner {
    background: linear-gradient(120deg, rgba(15, 23, 42, .94), rgba(8, 78, 99, .94));
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 25px;
}

.landing-page .site-footer {
    border-color: rgba(255, 255, 255, .2);
}

/* Student space: gradient canvas, floating navigation, rounded learning cards. */
.study-body {
    color: #fff;
}

.study-body .app-frame {
    width: min(1160px, 100% - 40px);
}

.study-body .app-header {
    border-color: transparent;
    background: transparent;
    color: #fff;
    isolation: isolate;
}

.study-body .app-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 calc(50% - 50vw);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    background: rgba(8, 47, 73, .3);
    backdrop-filter: blur(12px);
}

.study-body .app-nav a {
    color: rgba(240, 253, 250, .82);
}

.study-body .app-nav a:hover,
.study-body .app-nav a.is-active {
    color: #fff;
}

.study-body .app-nav a.is-active {
    background: rgba(255, 255, 255, .15);
    border-radius: 14px;
}

.study-body .nav-icon {
    display: inline-grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
}

.study-body .avatar {
    border: 2px solid rgba(255, 255, 255, .72);
    background: rgba(15, 23, 42, .2);
    color: #fff;
}

.study-body .avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}

.study-body .admin-shortcut,
.study-body .logout-link {
    color: #fff;
}

.study-body .app-footer {
    border-color: rgba(255, 255, 255, .2);
    color: rgba(240, 253, 250, .72);
}

.study-body .page-intro h1,
.study-body .section-heading h2 {
    color: #fff;
}

.study-body .page-intro > div > .eyebrow,
.study-body .learnmate-section-heading .eyebrow {
    color: #c4fff3;
}

.learnmate-welcome {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 20px;
    padding: 28px 28px 30px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(9, 91, 104, .26), rgba(5, 78, 112, .12));
    box-shadow: 0 22px 54px rgba(8, 47, 73, .16), inset 0 1px rgba(255, 255, 255, .13);
    text-align: center;
    animation: study-rise-in .5s cubic-bezier(.2, .75, .25, 1) both;
}

.learnmate-welcome::before,
.learnmate-welcome::after {
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
}

.learnmate-welcome::before {
    top: -150px;
    left: -72px;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .035), 0 0 0 60px rgba(255, 255, 255, .025);
}

.learnmate-welcome::after {
    right: -135px;
    bottom: -190px;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .035), 0 0 0 60px rgba(255, 255, 255, .025);
}

.learner-avatar {
    display: grid;
    width: 116px;
    height: 116px;
    place-items: center;
    overflow: hidden;
    margin-bottom: 14px;
    border: 7px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(15, 23, 42, .32);
    box-shadow: 0 12px 28px rgba(8, 47, 73, .25);
    font-size: 54px;
    animation: study-zoom-in .48s cubic-bezier(.18, .8, .25, 1) both;
    animation-delay: 80ms;
}

.learner-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.learner-avatar-wrap{position:relative;display:inline-flex;align-items:center;margin-bottom:8px}
.learner-avatar-wrap .learner-avatar{margin-bottom:0}
.home-how-button{position:absolute;left:calc(100% - 5px);top:5px;display:inline-flex;align-items:center;gap:5px;width:max-content;border:0;background:transparent;color:#fff;font-size:10px;font-weight:700;cursor:pointer;text-shadow:none}
.home-how-icon{display:grid;place-items:center;width:25px;height:25px;border:2px solid #b9f1e7;border-radius:50%;background:#fff;color:#086c76;font-size:15px;font-weight:900;box-shadow:0 5px 14px rgba(3,48,62,.2)}
.home-how-button:focus-visible{outline:3px solid #ffcf79;outline-offset:3px}

.learner-class {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 7px;
    color: rgba(240, 253, 250, .84);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.learner-class span {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    letter-spacing: .04em;
}

.learnmate-welcome h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5.8vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.learner-intro {
    margin: 10px 0 12px;
    color: rgba(240, 253, 250, .86);
    font-size: 15px;
}

.learner-reminder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 750;
}

.learner-reminder span {
    font-size: 19px;
    animation: study-sparkle 1.8s ease-in-out infinite;
}

.learnmate-primary-action {
    display: flex;
    width: min(100%, 610px);
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: linear-gradient(105deg, #14b8a6, #0891b2);
    box-shadow: 0 12px 28px rgba(8, 47, 73, .22);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease;
    animation: study-rise-in .46s ease-out both;
    animation-delay: 140ms;
}

.learnmate-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(8, 47, 73, .28);
}

.learnmate-primary-action:active,
.study-action-card:active,
.button:active {
    transform: translateY(1px) scale(.985);
}

.learnmate-primary-action span:last-child {
    font-size: 23px;
}

.study-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin: 0 0 28px;
}

.study-action-card {
    display: flex;
    min-height: 132px;
    align-items: center;
    gap: 12px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(8, 47, 73, .17);
    color: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
    animation: study-rise-in .42s ease-out both;
}

.study-action-card:nth-child(2) {
    animation-delay: 70ms;
}

.study-action-card:nth-child(3) {
    animation-delay: 140ms;
}

.study-action-card:nth-child(4) {
    animation-delay: 210ms;
}

.study-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(8, 47, 73, .24);
}

.action-term {
    background: linear-gradient(135deg, #3b82f6, #0891b2);
}

.action-notes {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.action-practice {
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
}

.action-friends {
    background: linear-gradient(135deg, #a855f7, #4338ca);
}

.study-action-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 15px;
    background: rgba(255, 255, 255, .16);
    font-size: 22px;
}

.study-action-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.study-action-copy small {
    color: rgba(255, 255, 255, .78);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .1em;
}

.study-action-copy b {
    font-size: 15px;
    line-height: 1.2;
}

.study-action-copy > span {
    color: rgba(255, 255, 255, .86);
    font-size: 10px;
    line-height: 1.35;
}

.study-action-arrow {
    font-size: 20px;
    font-weight: 800;
}

.study-body .metric-card,
.study-body .content-card,
.study-body .notice-card,
.study-body .empty-card,
.study-body .term-group,
.study-body .settings-card,
.study-body .provider-card,
.study-body .review-card {
    border-radius: 19px;
    box-shadow: 0 12px 28px rgba(8, 47, 73, .1);
}

.study-body .metric-card,
.study-body .content-card,
.study-body .empty-card,
.study-body .term-group,
.study-body .settings-card,
.study-body .provider-card,
.study-body .review-card {
    border-color: rgba(255, 255, 255, .72);
}

.study-body .metric-card {
    background: rgba(255, 255, 255, .97);
}

.study-body .content-card,
.study-body .empty-card,
.study-body .term-group,
.study-body .settings-card,
.study-body .provider-card,
.study-body .review-card {
    background: #fff;
    color: #19384a;
}

.study-body .notice-card,
.study-body .metric-card,
.study-body .loading-panel {
    color: #19384a;
}

.study-body .field-note,
.study-body .settings-card p,
.study-body .provider-card p {
    color: #3b5969;
}

.auth-page .auth-card {
    color: #19384a;
}

.auth-page .auth-legal {
    color: #43576a;
    font-size: 11px;
    line-height: 1.65;
}

.auth-page .auth-legal a {
    color: #086e77;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.study-body .compact-heading {
    margin-top: 6px;
}

.study-body .routine-row,
.study-body .lesson-row,
.study-body .term-group-heading {
    border-color: #e3edf0;
}

.study-body .auth-card {
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 25px;
    box-shadow: 0 24px 58px rgba(8, 47, 73, .22);
}

.auth-page .auth-brand {
    margin-bottom: 18px;
}

.auth-page .auth-card .eyebrow {
    color: #0d9488;
}

.site-footer,
.app-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
    .study-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .study-action-card {
        min-height: 114px;
    }
}

@media (max-width: 680px) {
    .landing-page .site-header {
        min-height: 62px;
    }

    .landing-page .header-actions .button {
        box-shadow: 0 5px 14px rgba(8, 47, 73, .2);
    }

    .landing-page .proof-strip {
        background: rgba(255, 255, 255, .96);
    }

    .landing-page .how-section .section-heading h2 {
        font-size: 29px;
    }

    .study-body .app-frame {
        width: min(100% - 16px, 560px);
    }

    .study-body .app-header {
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        min-height: 62px;
        padding: 10px 0 8px;
    }

    .study-body .app-header > .brand {
        flex: 1;
    }

    .study-body .app-account {
        gap: 9px;
    }

    .study-body .app-nav {
        position: fixed;
        z-index: 50;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 12px;
        display: flex;
        width: auto;
        justify-content: space-around;
        gap: 2px;
        padding: 8px 6px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 22px;
        background: rgba(15, 23, 42, .88);
        box-shadow: 0 14px 34px rgba(8, 47, 73, .3);
        backdrop-filter: blur(16px);
    }

    .study-body .app-nav a {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 3px;
        border-radius: 14px;
        color: rgba(255, 255, 255, .76);
        font-size: 9px;
        line-height: 1.1;
    }

    .study-body .app-nav a.is-active {
        background: rgba(20, 184, 166, .3);
        color: #fff;
    }

    .study-body .app-nav .nav-icon {
        font-size: 19px;
    }

    .study-body .app-nav a[href^="/admin"] {
        display: none;
    }

    .study-body .app-main {
        padding: 16px 0 calc(104px + env(safe-area-inset-bottom));
    }

    .study-body .content-card,
    .study-body .settings-card {
        padding: 14px;
    }

    .learnmate-welcome {
        min-height: 335px;
        margin-bottom: 15px;
        padding: 25px 18px 22px;
        border-radius: 25px;
    }

    .learner-avatar {
        width: 104px;
        height: 104px;
        border-width: 6px;
        font-size: 46px;
    }

    .learnmate-welcome h1 {
        font-size: 34px;
    }

    .learner-intro {
        max-width: 280px;
        font-size: 13px;
    }

    .learnmate-primary-action {
        min-height: 58px;
        padding: 13px 17px;
        border-radius: 14px;
        font-size: 16px;
    }

    .study-action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 23px;
    }

    .study-action-card {
        min-height: 84px;
        padding: 13px 15px;
        border-radius: 17px;
    }

    .study-action-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 13px;
    }

    .study-action-copy b {
        font-size: 14px;
    }

    .study-action-copy > span {
        font-size: 9px;
    }

    .study-body .section-heading h2 {
        font-size: 23px;
    }

    .study-body .app-footer {
        padding-bottom: calc(105px + env(safe-area-inset-bottom));
    }

    .auth-page {
        padding: 22px 14px;
    }

    .auth-page .auth-card {
        padding: 23px 20px;
    }
}

.auth-page .google-sign-in {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #d7e0e9;
    border-radius: 11px;
    background: #fff;
    color: #26374b;
    font-size: 12px;
    font-weight: 750;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.auth-page .google-sign-in:hover {
    transform: translateY(-1px);
    background: #fbfdff;
    box-shadow: 0 8px 19px rgba(18, 36, 63, .1);
}

.auth-page .google-sign-in svg {
    width: 19px;
    height: 19px;
    flex: none;
}

.auth-page .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    color: #8995a5;
    font-size: 9px;
    font-weight: 650;
}

.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
    height: 1px;
    flex: 1;
    background: #e7ebef;
    content: "";
}

.auth-page .google-account-chip {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    padding: 9px 11px;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    color: #47576c;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.auth-page .google-account-dot {
    display: grid;
    width: 24px;
    height: 24px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: #f1f6fd;
    color: #4285f4;
    font-size: 12px;
    font-weight: 850;
}

.auth-page .google-privacy-note {
    margin: 15px 0 0;
    color: #8491a2;
    font-size: 9px;
    line-height: 1.6;
    text-align: center;
}

.auth-page .turnstile-block {
    display: grid;
    min-width: 0;
    justify-items: start;
    gap: 7px;
    overflow: hidden;
}

.auth-page .turnstile-unavailable {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #f0d9b4;
    border-radius: 10px;
    background: #fff9ef;
    color: #77521e;
    font-size: 10px;
    line-height: 1.55;
}

.auth-page .button:disabled {
    cursor: not-allowed;
    opacity: .56;
    transform: none;
}

@media (max-width: 360px) {
    .auth-page .turnstile-block .cf-turnstile {
        transform: scale(.82);
        transform-origin: left top;
        margin-bottom: -11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-page .hero-copy,
    .landing-page .hero-visual,
    .landing-page .step-card,
    .learnmate-welcome,
    .learner-avatar,
    .learner-reminder span,
    .learnmate-primary-action,
    .study-action-card {
        animation: none;
    }

    .study-action-card,
    .learnmate-primary-action,
    .auth-page .google-sign-in {
        transition: none;
    }
}

/* Soft depth on actions; text keeps contrast without a hard button edge. */
.button-primary { box-shadow: 0 7px 16px rgba(4, 54, 70, .2), inset 0 1px rgba(255, 255, 255, .15); }
.button-primary:hover { box-shadow: 0 9px 19px rgba(4, 54, 70, .24), inset 0 1px rgba(255, 255, 255, .17); }
.button-primary:active { box-shadow: 0 3px 8px rgba(4, 54, 70, .18), inset 0 1px rgba(255, 255, 255, .13); }
.learnmate-primary-action { box-shadow: 0 9px 20px rgba(3, 45, 61, .22), inset 0 1px rgba(255, 255, 255, .14); }
.learnmate-primary-action:hover { box-shadow: 0 11px 24px rgba(3, 45, 61, .27), inset 0 1px rgba(255, 255, 255, .16); }
.learnmate-primary-action:active { box-shadow: 0 4px 10px rgba(3, 45, 61, .2); }
.study-action-card { box-shadow: 0 8px 18px rgba(4, 42, 73, .17); }
.study-action-card:hover { box-shadow: 0 11px 23px rgba(4, 42, 73, .21); }
.study-action-card:active { box-shadow: 0 4px 10px rgba(4, 42, 73, .16); }
@media (min-width: 901px) {
    .study-body .app-main { padding-top: 16px; }
    .learnmate-welcome { min-height: 242px; margin-bottom: 14px; padding: 16px 24px 18px; }
    .learner-avatar { width: 76px; height: 76px; margin-bottom: 6px; border-width: 5px; }
    .learner-class { margin-bottom: 3px; }
    .learnmate-welcome h1 { font-size: 35px; }
    .learner-intro { margin: 4px 0 3px; font-size: 12px; }
    .learner-reminder { margin-bottom: 8px; font-size: 11px; }
    .learnmate-primary-action { width: min(100%, 420px); min-height: 44px; padding: 8px 15px; font-size: 14px; }
    .study-action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
    .study-action-card { min-height: 104px; padding: 13px; }
}
@media (min-width: 1100px) {
    .study-action-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
