:root {
    --bg: #090611;
    --bg-soft: #100b1c;
    --panel: rgba(255,255,255,.055);
    --panel-strong: rgba(255,255,255,.085);
    --border: rgba(255,255,255,.11);

    --text: #ffffff;
    --muted: #aaa6ba;

    --purple: #8257ff;
    --purple-light: #a683ff;
    --blue: #5688ff;
    --pink: #e653c7;
    --cyan: #42d9e8;

    --radius: 26px;
    --radius-small: 18px;

    --shadow: 0 30px 80px rgba(0,0,0,.32);

    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(105,65,220,.12), transparent 28%),
        linear-gradient(180deg, #090611 0%, #0c0815 55%, #090611 100%);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}


/* HEADER */

.site-header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(9,6,17,.80);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: 245px;
    height: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 650;
    transition: .2s ease;
}

.desktop-nav a:hover {
    color: white;
}

.desktop-nav .nav-cta {
    color: white;
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--purple), #6637e8);
    box-shadow: 0 12px 35px rgba(130,87,255,.25);
}


/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 96px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-glow-one {
    width: 480px;
    height: 480px;
    background: rgba(119,71,255,.19);
    top: -160px;
    right: -100px;
}

.hero-glow-two {
    width: 360px;
    height: 360px;
    background: rgba(223,65,202,.12);
    bottom: -150px;
    left: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .73rem;
    font-weight: 850;
    color: #c5b5ff;
}

.hero-pill {
    text-transform: none;
    letter-spacing: 0;
    font-size: .82rem;
    border: 1px solid rgba(177,147,255,.2);
    background: rgba(126,81,255,.09);
    border-radius: 999px;
    padding: 8px 14px;
}

.hero h1 {
    margin: 25px 0 20px;
    max-width: 790px;
    font-size: clamp(3.1rem, 7vw, 6.6rem);
    line-height: .94;
    letter-spacing: -.065em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #a88cff 45%, #6d42ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 690px;
    color: #beb9ca;
    font-size: clamp(1.05rem, 1.7vw, 1.27rem);
    line-height: 1.72;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 999px;
    padding: 13px 24px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 800;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, #8b60ff, #6533e6);
    box-shadow: 0 16px 42px rgba(121,74,242,.3);
}

.button-secondary {
    color: white;
    border-color: var(--border);
    background: rgba(255,255,255,.04);
}

.button-light {
    color: #251348;
    background: white;
}

.hero-note {
    margin-top: 20px;
    color: #9f99ae;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .93rem;
}

.hero-note span {
    color: #6ee7b7;
}


/* HERO ORBIT */

.hero-visual {
    min-height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-orbit {
    position: relative;
    width: min(470px, 100%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(159,125,255,.17);
}

.orbit-ring-one {
    inset: 5%;
}

.orbit-ring-two {
    inset: 19%;
    border-color: rgba(255,255,255,.11);
}

.ai-core {
    width: 190px;
    aspect-ratio: 1;
    border-radius: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.2), transparent 30%),
        linear-gradient(145deg, #733fff, #3d1e8f);
    box-shadow:
        0 0 90px rgba(110,62,255,.35),
        inset 0 1px 0 rgba(255,255,255,.18);
    transform: rotate(-6deg);
}

.ai-core strong {
    font-size: 4.6rem;
    line-height: .9;
    letter-spacing: -.08em;
}

.core-small {
    font-size: .55rem;
    letter-spacing: .18em;
    color: #d9d0ff;
    margin: 10px 0;
}

.orbit-card {
    position: absolute;
    width: 170px;
    padding: 15px 17px;
    border-radius: 18px;
    background: rgba(19,13,34,.9);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 18px 50px rgba(0,0,0,.26);
    backdrop-filter: blur(16px);
}

.orbit-card span {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 4px;
}

.orbit-card strong,
.orbit-card small {
    display: block;
}

.orbit-card strong {
    font-size: .95rem;
}

.orbit-card small {
    color: var(--muted);
}

.orbit-card-one {
    top: 2%;
    left: 7%;
}

.orbit-card-two {
    right: -3%;
    top: 42%;
}

.orbit-card-three {
    bottom: 3%;
    left: 9%;
}


/* STATS */

.stats-strip {
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.018);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.stats-grid > div {
    min-height: 125px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,.07);
}

.stats-grid > div:last-child {
    border-right: 0;
}

.stats-grid strong {
    font-size: 2rem;
    line-height: 1;
}

.stats-grid span {
    color: var(--muted);
    margin-top: 10px;
    font-size: .85rem;
}


/* SECTIONS */

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading-center {
    text-align: center;
    margin-inline: auto;
}

.section-heading h2 {
    margin: 12px 0 18px;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}


/* FEATURES */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 17px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 275px;
    padding: 27px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
}

.feature-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    filter: blur(20px);
    opacity: .18;
}

.feature-purple::after { background: var(--purple); }
.feature-blue::after   { background: var(--blue); }
.feature-pink::after   { background: var(--pink); }
.feature-cyan::after   { background: var(--cyan); }

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 50px 0 8px;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
}


/* LESSONS */

.lessons-section {
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), transparent),
        radial-gradient(circle at 50% 10%, rgba(116,69,255,.08), transparent 35%);
}

.lesson-list {
    display: grid;
    gap: 13px;
    max-width: 980px;
    margin: 0 auto;
}

.lesson-card {
    min-height: 150px;
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    transition: .22s ease;
}

.lesson-card:hover {
    transform: translateY(-2px);
    border-color: rgba(152,113,255,.32);
    background: rgba(255,255,255,.05);
}

.lesson-number {
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: -.07em;
    color: #796ba0;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8f899d;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.free-badge {
    color: #bbf7d0;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.18);
    border-radius: 999px;
    padding: 3px 8px;
}

.locked-badge {
    color: #d5c9ff;
    background: rgba(139,92,246,.11);
    border: 1px solid rgba(139,92,246,.18);
    border-radius: 999px;
    padding: 3px 8px;
}

.lesson-content h3 {
    margin: 7px 0 5px;
    font-size: 1.34rem;
}

.lesson-content p {
    margin: 0;
    color: var(--muted);
}

.lesson-arrow {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: white;
    color: #24123f;
    font-size: 1.35rem;
    font-weight: 900;
}

.lesson-lock {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.coming-label {
    color: #8e879a;
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .09em;
}

.lesson-coming:not(.lesson-locked) {
    opacity: .68;
}


/* JOURNEY */

.journey-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.journey-card {
    min-height: 230px;
    border-radius: var(--radius);
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.journey-step {
    color: #a78bfa;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.journey-card h3 {
    font-size: 1.55rem;
    margin: 48px 0 7px;
}

.journey-card p {
    color: var(--muted);
    margin: 0;
}

.journey-arrow {
    color: #615a6e;
    font-size: 1.4rem;
}


/* CTA */

.cta-section {
    padding: 30px 0 110px;
}

.cta-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    padding: 75px 35px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.17), transparent 20%),
        linear-gradient(135deg, #7f4cff 0%, #5925c8 55%, #3e198b 100%);
    box-shadow: 0 30px 90px rgba(77,36,162,.3);
}

.cta-card .eyebrow {
    color: #e3d9ff;
}

.cta-card h2 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.055em;
    margin: 17px 0;
}

.cta-card p {
    color: #ded2ff;
}


/* FOOTER */

.site-footer {
    padding: 46px 0 120px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: #07050c;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 35px;
    align-items: center;
}

.footer-tagline {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .83rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 19px;
}

.footer-links a,
.text-button {
    font: inherit;
    font-size: .82rem;
    color: #aaa4b5;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.footer-links a:hover,
.text-button:hover {
    color: white;
}

.footer-copy {
    color: #777181;
    font-size: .8rem;
}


/* MODALS */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4,2,8,.82);
    backdrop-filter: blur(10px);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    width: min(760px,100%);
    max-height: min(820px, calc(100vh - 40px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 27px;
    border: 1px solid rgba(255,255,255,.13);
    background: #110c1c;
    box-shadow: var(--shadow);
}

.modal-header {
    padding: 25px 27px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-header h2 {
    margin: 4px 0 0;
    font-size: 2rem;
}

.modal-close {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: white;
    font-size: 1.7rem;
    cursor: pointer;
}

.modal-body {
    overflow: auto;
    padding: 25px 27px 35px;
    color: #beb8c8;
}

.modal-body h3 {
    margin-top: 27px;
    color: white;
}

.modal-body a {
    color: #b89dff;
}


/* MOBILE BOTTOM NAV */

.mobile-bottom-nav {
    display: none;
}


/* SIMPLE / LESSON */

.simple-page,
.lesson-shell {
    min-height: 70vh;
    padding: 80px 0 120px;
}

.simple-page h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: -.05em;
    line-height: 1;
}

.simple-page p {
    color: var(--muted);
    max-width: 660px;
    font-size: 1.1rem;
}

.lesson-layout {
    max-width: 920px;
}

.lesson-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--muted);
}

.lesson-progress-top a {
    text-decoration: none;
}

.lesson-placeholder {
    border-radius: 30px;
    padding: clamp(28px, 6vw, 65px);
    background: var(--panel);
    border: 1px solid var(--border);
}

.lesson-placeholder h1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.06em;
}

.lesson-intro {
    font-size: 1.2rem;
    color: var(--muted);
}

.lesson-dev-note,
.locked-panel {
    margin-top: 45px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
}

.locked-big {
    font-size: 2rem;
}


/* MOBILE */

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .header-inner {
        min-height: 76px;
    }

    .brand-logo {
        width: 205px;
    }

    .hero {
        padding-top: 56px;
    }

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

    .hero h1 {
        font-size: clamp(3.2rem, 14vw, 5.5rem);
    }

    .hero-visual {
        min-height: 430px;
    }

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

    .stats-grid > div {
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

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

    .journey-grid {
        grid-template-columns: 1fr 1fr;
    }

    .journey-arrow {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 200;

        min-height: 68px;
        padding: 7px 8px;

        display: grid;
        grid-template-columns: repeat(5,1fr);
        align-items: center;

        border-radius: 23px;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(14,9,25,.93);
        box-shadow: 0 20px 55px rgba(0,0,0,.45);
        backdrop-filter: blur(22px);
    }

    .bottom-nav-item {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        text-decoration: none;
        color: #aaa4b8;
        font-size: .62rem;
        font-weight: 700;
    }

    .bottom-icon {
        font-size: 1.2rem;
        line-height: 1.1;
    }

    .bottom-nav-primary {
        width: 54px;
        height: 54px;
        justify-self: center;
        border-radius: 18px;
        background: linear-gradient(145deg, #8d60ff, #6030da);
        color: white;
        transform: translateY(-14px);
        box-shadow: 0 13px 32px rgba(111,60,234,.4);
    }

    .bottom-nav-primary span:last-child {
        font-size: .56rem;
    }

    body {
        padding-bottom: 85px;
    }

    .site-footer {
        padding-bottom: 60px;
    }
}

@media (max-width: 640px) {

    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .header-inner {
        justify-content: center;
    }

    .brand-logo {
        width: min(230px,80vw);
    }

    .hero {
        padding: 45px 0 68px;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
        margin-top: 10px;
    }

    .ai-orbit {
        width: 360px;
        max-width: 100%;
    }

    .ai-core {
        width: 145px;
        border-radius: 36px;
    }

    .ai-core strong {
        font-size: 3.5rem;
    }

    .orbit-card {
        width: 145px;
        padding: 12px 13px;
    }

    .orbit-card-one {
        top: 0;
        left: 0;
    }

    .orbit-card-two {
        right: 0;
    }

    .orbit-card-three {
        left: 0;
    }

    .stats-grid > div {
        padding: 20px 10px;
        min-height: 105px;
    }

    .stats-grid strong {
        font-size: 1.6rem;
    }

    .stats-grid span {
        font-size: .72rem;
        text-align: center;
    }

    .section {
        padding: 78px 0;
    }

    .feature-grid,
    .journey-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 220px;
    }

    .feature-card h3 {
        margin-top: 35px;
    }

    .lesson-card {
        grid-template-columns: 50px 1fr;
        gap: 14px;
        padding: 20px;
    }

    .lesson-number {
        align-self: start;
        font-size: 1.45rem;
    }

    .lesson-action {
        grid-column: 2;
    }

    .lesson-arrow {
        width: 42px;
        height: 42px;
    }

    .cta-card {
        border-radius: 28px;
        padding: 52px 22px;
    }

    .modal-backdrop {
        padding: 10px;
    }

    .modal-card {
        max-height: calc(100vh - 20px);
        border-radius: 22px;
    }
}


/* ============================================================
   LEARNINGAI BRIGHT THEME OVERRIDE
   ============================================================ */

:root {
    --bg: #fffaf4;
    --bg-soft: #fff4e8;

    --panel: #ffffff;
    --panel-strong: #ffffff;

    --border: #e8ddf8;

    --text: #271a3b;
    --muted: #70667c;

    --purple: #7c3aed;
    --purple-light: #a855f7;

    --blue: #4f7df3;
    --pink: #ec4899;
    --cyan: #21bfc6;

    --yellow: #ffca58;
    --orange: #ff8e55;
    --green: #56c596;

    --shadow:
        0 24px 60px rgba(92, 52, 132, .12);
}


body {
    background:
        radial-gradient(
            circle at 5% 5%,
            rgba(255, 202, 88, .24),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 7%,
            rgba(168, 85, 247, .13),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #fffdf9 0%,
            #fffaf4 46%,
            #fff8ef 100%
        );

    color: var(--text);
}


/* HEADER */

.site-header {
    background:
        rgba(255,255,255,.94);

    border-bottom:
        1px solid rgba(91,62,120,.10);

    box-shadow:
        0 6px 28px rgba(65,42,89,.045);

    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 94px;
}

.brand-logo {
    width: 250px;
    height: auto;
    display: block;

    /*
      The supplied logo itself uses a dark background.
      This gives it room to breathe inside the bright UI.
    */
    border-radius: 9px;
}

.desktop-nav a {
    color: #62556f;
}

.desktop-nav a:hover {
    color: var(--purple);
}

.desktop-nav .nav-cta {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #9258ff,
            #7137e8
        );

    box-shadow:
        0 12px 30px rgba(124,58,237,.22);
}


/* HERO */

.hero {
    padding: 75px 0 84px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.75),
            rgba(255,247,235,.72)
        );

    border-bottom:
        1px solid #efe5f6;
}

.hero-sun {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(45px);
}

.hero-sun-one {
    width: 330px;
    height: 330px;

    top: -150px;
    left: -100px;

    background:
        rgba(255,203,91,.27);
}

.hero-sun-two {
    width: 370px;
    height: 370px;

    top: -80px;
    right: -110px;

    background:
        rgba(172,111,255,.16);
}

.hero-grid {
    grid-template-columns:
        minmax(0, .92fr)
        minmax(0, 1.08fr);

    gap: 56px;
}

.hero-pill {
    color: #6c37cb;

    border:
        1px solid #d9c7fb;

    background:
        #f3ebff;
}

.hero h1 {
    color: #28173d;

    max-width: 680px;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            #7235dc 0%,
            #ad4fcc 46%,
            #ef6d85 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-lead {
    color: #655a70;
}

.hero-note {
    color: #6f6578;
}

.hero-note span {
    color: #23996e;
}


/* BUTTONS */

.button-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8851f5,
            #7334d9
        );

    box-shadow:
        0 16px 35px rgba(119,58,218,.22);
}

.button-secondary {
    color: #5a376e;

    border-color: #ded1ea;

    background: #ffffff;

    box-shadow:
        0 10px 28px rgba(64,45,83,.06);
}

.button-secondary:hover {
    background: #fbf7ff;
}


/* HERO PHOTO */

.hero-visual {
    min-height: 510px;
}

.hero-photo-wrap {
    position: relative;

    width: 100%;
    max-width: 720px;

    padding: 10px;

    border-radius: 36px;

    background:
        linear-gradient(
            135deg,
            #fff3c8,
            #f0dcff
        );

    box-shadow:
        0 28px 70px rgba(76,46,108,.15);
}

.hero-photo {
    display: block;

    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: 28px;
}

.hero-photo-badge {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px 16px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.94);

    color: #322044;

    border:
        1px solid rgba(78,47,105,.1);

    box-shadow:
        0 15px 35px rgba(72,45,97,.14);

    backdrop-filter: blur(14px);
}

.hero-photo-badge > span {
    font-size: 1.35rem;
}

.hero-photo-badge strong,
.hero-photo-badge small {
    display: block;
}

.hero-photo-badge strong {
    font-size: .86rem;
}

.hero-photo-badge small {
    margin-top: 2px;

    color: #75697e;

    font-size: .7rem;
}

.hero-photo-badge-one {
    left: -22px;
    bottom: 56px;
}

.hero-photo-badge-two {
    right: -18px;
    top: 50px;
}


/* STATS */

.stats-strip {
    background: #ffffff;

    border-top:
        1px solid #eee3f4;

    border-bottom:
        1px solid #eee3f4;
}

.stats-grid > div {
    border-right:
        1px solid #eee7f3;
}

.stats-grid > div:nth-child(1) strong {
    color: #7c3aed;
}

.stats-grid > div:nth-child(2) strong {
    color: #ed6d77;
}

.stats-grid > div:nth-child(3) strong {
    color: #16a085;
}

.stats-grid > div:nth-child(4) strong {
    color: #e59425;
}

.stats-grid span {
    color: #756c7d;
}


/* GENERIC SECTIONS */

.section-heading h2 {
    color: #2d1c40;
}

.section-heading p {
    color: #756a80;
}

.eyebrow {
    color: #7c3aed;
}


/* FEATURE CARDS */

.feature-card {
    background: #ffffff;

    border:
        1px solid #ece2f3;

    box-shadow:
        0 18px 40px rgba(75,46,100,.06);
}

.feature-card:nth-child(1) {
    background:
        linear-gradient(
            145deg,
            #fff7d7,
            #ffffff
        );
}

.feature-card:nth-child(2) {
    background:
        linear-gradient(
            145deg,
            #e9f5ff,
            #ffffff
        );
}

.feature-card:nth-child(3) {
    background:
        linear-gradient(
            145deg,
            #fff0f7,
            #ffffff
        );
}

.feature-card:nth-child(4) {
    background:
        linear-gradient(
            145deg,
            #e9fbf8,
            #ffffff
        );
}

.feature-icon {
    background: #ffffff;

    box-shadow:
        0 8px 20px rgba(67,42,90,.08);
}

.feature-card h3 {
    color: #332243;
}

.feature-card p {
    color: #74697d;
}


/* LESSON SECTION */

.lessons-section {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(132,81,246,.08),
            transparent 33%
        ),
        linear-gradient(
            180deg,
            #f9f5ff 0%,
            #fffaf4 100%
        );
}

.lesson-card {
    background: #ffffff;

    border:
        1px solid #e5d9ed;

    box-shadow:
        0 12px 32px rgba(71,43,95,.055);
}

.lesson-card:hover {
    border-color: #c9aef0;

    background: #fffdfd;

    box-shadow:
        0 18px 40px rgba(76,42,106,.09);
}

.lesson-number {
    color: #9b78cf;
}

.lesson-content h3 {
    color: #2c1c3b;
}

.lesson-content p {
    color: #74697d;
}

.lesson-meta {
    color: #81778a;
}

.free-badge {
    color: #16845f;

    background: #e7f8ef;

    border-color: #b9ead3;
}

.locked-badge {
    color: #7040be;

    background: #f0e7ff;

    border-color: #dac7f8;
}

.lesson-arrow {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8552ef,
            #6d35ce
        );

    box-shadow:
        0 10px 24px rgba(120,62,219,.2);
}


/* HOW IT WORKS */

.journey-card {
    background: #ffffff;

    border:
        1px solid #eadff0;

    box-shadow:
        0 14px 34px rgba(68,42,92,.055);
}

.journey-card:nth-of-type(1) {
    background:
        linear-gradient(
            145deg,
            #fff9df,
            #fff
        );
}

.journey-card:nth-of-type(3) {
    background:
        linear-gradient(
            145deg,
            #edf5ff,
            #fff
        );
}

.journey-card:nth-of-type(5) {
    background:
        linear-gradient(
            145deg,
            #fff0f7,
            #fff
        );
}

.journey-card:nth-of-type(7) {
    background:
        linear-gradient(
            145deg,
            #ecfaf4,
            #fff
        );
}

.journey-step {
    color: #8852e6;
}

.journey-card h3 {
    color: #30203f;
}

.journey-card p {
    color: #74697c;
}

.journey-arrow {
    color: #b39bc7;
}


/* CTA */

.cta-section {
    background: #fffaf4;
}

.cta-card {
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(255,255,255,.26),
            transparent 23%
        ),
        linear-gradient(
            120deg,
            #8950ef 0%,
            #b557d0 48%,
            #f17884 100%
        );

    box-shadow:
        0 28px 70px rgba(141,72,169,.22);
}

.button-light {
    color: #6d34b8;

    background: #ffffff;
}


/* FOOTER */

.site-footer {
    background: #ffffff;

    color: #4b3d58;

    border-top:
        1px solid #eee5f3;
}

.footer-tagline,
.footer-copy {
    color: #83798c;
}

.footer-links a,
.text-button {
    color: #75687f;
}

.footer-links a:hover,
.text-button:hover {
    color: #7134cc;
}


/* MODALS */

.modal-backdrop {
    background:
        rgba(45,29,57,.48);
}

.modal-card {
    background: #ffffff;

    color: #382a43;

    border:
        1px solid #eadff1;
}

.modal-header {
    border-bottom:
        1px solid #eee5f3;
}

.modal-header h2 {
    color: #31203f;
}

.modal-close {
    color: #4c365d;

    background: #f8f3fb;

    border:
        1px solid #e6d9ee;
}

.modal-body {
    color: #6f6379;
}

.modal-body h3 {
    color: #352541;
}


/* LESSON / ACCOUNT BASE */

.simple-page,
.lesson-shell {
    background:
        linear-gradient(
            180deg,
            #fffaf4,
            #fff
        );
}

.simple-page h1,
.lesson-placeholder h1 {
    color: #2c1a3d;
}

.simple-page p,
.lesson-intro {
    color: #716677;
}

.lesson-placeholder,
.lesson-dev-note,
.locked-panel {
    background: #ffffff;

    border:
        1px solid #e9deef;

    box-shadow:
        0 16px 40px rgba(67,39,91,.06);
}

.lesson-progress-top {
    color: #776b81;
}


/* MOBILE NAV */

@media (max-width: 900px) {

    .mobile-bottom-nav {
        background:
            rgba(255,255,255,.96);

        border:
            1px solid #e3d7ea;

        box-shadow:
            0 18px 45px rgba(71,45,92,.16);
    }

    .bottom-nav-item {
        color: #75687e;
    }

    .bottom-nav-primary {
        color: #ffffff;

        background:
            linear-gradient(
                145deg,
                #9259f4,
                #7135db
            );

        box-shadow:
            0 13px 30px rgba(112,58,211,.25);
    }

}


@media (max-width: 640px) {

    .header-inner {
        justify-content: center;
    }

    .brand-logo {
        width: min(245px, 82vw);
    }

    .hero {
        padding-top: 42px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero h1 {
        color: #2b193d;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-photo-wrap {
        border-radius: 28px;
        padding: 7px;
    }

    .hero-photo {
        height: 360px;
        border-radius: 22px;
    }

    .hero-photo-badge {
        position: static;
        margin-top: 9px;
    }

    .hero-photo-badge-one {
        margin-right: 34px;
    }

    .hero-photo-badge-two {
        margin-left: 34px;
    }

}


/* ============================================================
   TYPOGRAPHY POLISH
   ============================================================ */

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    letter-spacing: 0;
}


/* HERO HEADLINE */

.hero h1 {
    font-size: clamp(3rem, 6.2vw, 6rem);

    line-height: 1.02;

    letter-spacing: -0.035em;

    font-weight: 800;
}


/* SECTION HEADLINES */

.section-heading h2 {
    font-size: clamp(2.25rem, 4.7vw, 4.2rem);

    line-height: 1.08;

    letter-spacing: -0.025em;

    font-weight: 780;
}


/* CTA HEADLINE */

.cta-card h2 {
    font-size: clamp(2.2rem, 4.6vw, 4.15rem);

    line-height: 1.08;

    letter-spacing: -0.025em;

    font-weight: 780;
}


/* LESSON PAGE HEADINGS */

.lesson-placeholder h1,
.simple-page h1 {
    line-height: 1.06;

    letter-spacing: -0.03em;

    font-weight: 780;
}


/* CARD HEADINGS */

.feature-card h3,
.lesson-content h3,
.journey-card h3 {
    line-height: 1.25;

    letter-spacing: -0.012em;

    font-weight: 750;
}


/* BODY COPY */

.hero-lead,
.section-heading p,
.feature-card p,
.lesson-content p,
.journey-card p,
.simple-page p,
.lesson-intro,
.modal-body {
    line-height: 1.7;

    letter-spacing: 0;
}


/* EYEBROWS */

.eyebrow {
    letter-spacing: .12em;
}


/* ============================================================
   FOOTER POLISH
   ============================================================ */

.site-footer {
    padding: 48px 0 120px;
}

.footer-inner {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 40px;

    align-items: start;
}

.footer-brand strong {
    font-size: 1rem;
}

.footer-legal {
    min-width: 220px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 7px;
}

.footer-links {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 16px;
}

.footer-copy {
    margin-top: 7px;

    color: #83798c;

    font-size: .8rem;
}

.footer-dookun-link {
    color: #6f3ac8;

    font-size: .8rem;

    font-weight: 700;

    text-decoration: none;
}

.footer-dookun-link:hover {
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 900px) {

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .footer-legal {
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }

}


@media (max-width: 640px) {

    .hero h1 {
        font-size: clamp(3rem, 13vw, 4.7rem);

        line-height: 1.04;

        letter-spacing: -0.028em;
    }

    .section-heading h2 {
        font-size: clamp(2.15rem, 10vw, 3.45rem);

        line-height: 1.09;

        letter-spacing: -0.02em;
    }

    .cta-card h2 {
        font-size: clamp(2.1rem, 10vw, 3.25rem);

        line-height: 1.09;
    }

    .feature-card h3,
    .lesson-content h3,
    .journey-card h3 {
        line-height: 1.28;
    }

}


/* ============================================================
   LEARNINGAI — DATABASE LESSON RENDERER
   ============================================================ */

.lesson-page {
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(255, 211, 99, .22),
            transparent 24%
        ),
        radial-gradient(
            circle at 100% 8%,
            rgba(150, 88, 244, .12),
            transparent 25%
        ),
        #fffaf4;
}


.lesson-layout {
    width: min(calc(100% - 40px), 900px);
    margin-inline: auto;
}


/* HERO */

.lesson-hero {
    padding: 42px 0 54px;
}


.lesson-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;

    color: #756a80;

    font-size: .84rem;
}


.lesson-progress-top a {
    color: #6d3cb6;

    font-weight: 700;

    text-decoration: none;
}


.lesson-progress-track {
    height: 7px;

    margin-bottom: 25px;

    overflow: hidden;

    border-radius: 999px;

    background: #eadff1;
}


.lesson-progress-fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #8552ef,
            #e75fa6,
            #f2a957
        );
}


.lesson-hero-card {
    position: relative;

    overflow: hidden;

    padding: clamp(30px, 6vw, 60px);

    border: 1px solid #eadff0;

    border-radius: 34px;

    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(255,201,89,.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(147,86,243,.10),
            transparent 30%
        ),
        #ffffff;

    box-shadow:
        0 24px 60px rgba(72,44,94,.08);
}


.lesson-hero-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;

    margin-bottom: 28px;
}


.lesson-status-pill {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 6px 11px;

    border-radius: 999px;

    color: #137b59;

    background: #e6f8ef;

    border: 1px solid #bde9d4;

    font-size: .7rem;

    font-weight: 850;

    letter-spacing: .08em;
}


.lesson-time {
    color: #796e82;

    font-size: .8rem;

    font-weight: 700;
}


.lesson-kicker {
    margin-bottom: 9px;

    color: #7c3aed;

    font-size: .76rem;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .13em;
}


.lesson-hero-card h1 {
    max-width: 780px;

    margin: 0;

    color: #2c193c;

    font-size: clamp(2.7rem, 7vw, 5.5rem);

    font-weight: 790;

    letter-spacing: -.035em;

    line-height: 1.04;
}


.lesson-hero-subtitle {
    margin: 18px 0 0;

    color: #563d68;

    font-size: clamp(1.15rem, 2vw, 1.35rem);

    font-weight: 650;
}


.lesson-hero-description {
    max-width: 730px;

    margin: 13px 0 0;

    color: #75697e;

    font-size: 1.02rem;

    line-height: 1.75;
}


.lesson-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;

    margin-top: 28px;
}


/* CONTENT */

.lesson-content-area {
    padding: 20px 0 110px;
}


.learning-module {
    position: relative;

    display: grid;

    grid-template-columns: auto 1fr;

    gap: 20px;

    margin-bottom: 22px;

    padding: clamp(26px, 5vw, 46px);

    border: 1px solid #eadff0;

    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 13px 35px rgba(70,42,91,.045);
}


.module-text {
    display: block;

    border-color: #eee5f2;

    box-shadow: none;
}


.module-side-icon {
    width: 50px;
    height: 50px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    border-radius: 16px;

    background: #f6efff;

    font-size: 1.45rem;
}


.module-label {
    display: inline-block;

    margin-bottom: 5px;

    color: #8050cd;

    font-size: .72rem;

    font-weight: 850;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.module-title {
    margin: 4px 0 20px;

    color: #30203f;

    font-size: clamp(1.65rem, 3.5vw, 2.4rem);

    font-weight: 770;

    letter-spacing: -.025em;

    line-height: 1.15;
}


.module-copy {
    color: #5f5568;

    font-size: 1.02rem;

    line-height: 1.8;
}


.module-copy p {
    margin: 0 0 19px;
}


.module-copy p:last-child {
    margin-bottom: 0;
}


.module-copy h2,
.module-copy h3,
.module-copy h4 {
    color: #362344;

    line-height: 1.23;
}


.module-copy h2 {
    margin: 30px 0 12px;

    font-size: 1.65rem;
}


.module-copy h3 {
    margin: 28px 0 10px;

    font-size: 1.35rem;
}


.module-copy h4 {
    margin: 23px 0 8px;

    font-size: 1.13rem;
}


.module-copy strong {
    color: #392247;

    font-weight: 780;
}


.module-copy ul,
.module-copy ol {
    margin: 12px 0 22px;

    padding-left: 25px;
}


.module-copy li {
    margin-bottom: 8px;
}


/* MODULE PERSONALITIES */

.module-intro {
    background:
        linear-gradient(
            145deg,
            #fff9df,
            #ffffff 48%
        );
}


.module-key_point {
    background:
        linear-gradient(
            145deg,
            #f4edff,
            #ffffff 52%
        );

    border-color: #dfcdf7;
}


.module-key_point .module-side-icon {
    background: #e8dcff;
}


.module-analogy {
    background:
        linear-gradient(
            145deg,
            #edf6ff,
            #ffffff 52%
        );

    border-color: #d7e8f8;
}


.module-analogy .module-side-icon {
    background: #dceeff;
}


.module-experiment {
    background:
        linear-gradient(
            145deg,
            #eafaf3,
            #ffffff 52%
        );

    border-color: #d1eee0;
}


.module-experiment .module-side-icon {
    background: #d8f5e7;
}


.module-ai_trap {
    background:
        linear-gradient(
            145deg,
            #fff1f3,
            #ffffff 52%
        );

    border-color: #f3d7dd;
}


.module-ai_trap .module-side-icon {
    background: #ffe1e6;
}


.module-vocabulary {
    background:
        linear-gradient(
            145deg,
            #fff4e5,
            #ffffff 52%
        );

    border-color: #f1dfc7;
}


.module-vocabulary .module-side-icon {
    background: #ffead0;
}


.module-recap {
    background:
        linear-gradient(
            135deg,
            #7350dd,
            #a64bd3
        );

    border: 0;

    box-shadow:
        0 22px 55px rgba(104,58,178,.18);
}


.module-recap .module-side-icon {
    background: rgba(255,255,255,.14);
}


.module-recap .module-label,
.module-recap .module-title,
.module-recap .module-copy,
.module-recap .module-copy strong,
.module-recap .module-copy h2,
.module-recap .module-copy h3,
.module-recap .module-copy h4 {
    color: #ffffff;
}


.module-recap .module-copy {
    color: #f1eaff;
}


.module-next_lesson {
    background:
        linear-gradient(
            145deg,
            #fff7d7,
            #f8efff
        );

    border-color: #e9d5eb;
}


/* QUIZ PREVIEW */

.lesson-quiz-preview {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: 22px;

    margin-top: 42px;

    padding: clamp(28px, 5vw, 44px);

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #f0e8ff,
            #ffffff
        );

    border: 1px solid #ddcaf5;
}


.quiz-preview-icon {
    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 24px rgba(85,48,115,.10);

    font-size: 1.55rem;
}


.quiz-preview-copy h2 {
    margin: 5px 0 8px;

    color: #332043;

    font-size: clamp(1.7rem, 4vw, 2.5rem);

    line-height: 1.15;
}


.quiz-preview-copy p {
    max-width: 620px;

    color: #74687d;

    line-height: 1.7;
}


.quiz-coming-pill,
.summary-not-ready {
    display: inline-flex;

    margin-top: 9px;

    padding: 8px 13px;

    border-radius: 999px;

    color: #6c3eaa;

    background: #ffffff;

    border: 1px solid #dac6ef;

    font-size: .78rem;

    font-weight: 750;
}


/* PDF SUMMARY */

.lesson-summary-panel {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: 22px;

    margin-top: 20px;

    padding: clamp(28px, 5vw, 44px);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #fff7de,
            #ffffff
        );

    border: 1px solid #efdfbd;
}


.summary-icon {
    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    color: #8f5b11;

    background: #fff0c4;

    font-size: 1.6rem;

    font-weight: 900;
}


.lesson-summary-panel h2 {
    margin: 5px 0 8px;

    color: #35273d;

    font-size: clamp(1.7rem, 4vw, 2.4rem);
}


.lesson-summary-panel p {
    max-width: 650px;

    color: #746a78;

    line-height: 1.7;
}


/* BOTTOM LESSON NAV */

.lesson-bottom-nav {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    margin-top: 45px;
}


.lesson-nav-link,
.lesson-nav-coming {
    min-height: 125px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 22px;

    border-radius: 22px;

    background: #ffffff;

    border: 1px solid #e8ddea;

    text-decoration: none;
}


.lesson-nav-link:hover {
    border-color: #cdb3ea;

    box-shadow:
        0 14px 32px rgba(72,45,94,.07);
}


.lesson-nav-next {
    text-align: right;

    align-items: flex-end;
}


.lesson-nav-link small,
.lesson-nav-coming small {
    margin-bottom: 7px;

    color: #887a91;

    font-size: .72rem;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.lesson-nav-link strong,
.lesson-nav-coming strong {
    color: #352344;

    line-height: 1.3;
}


.lesson-nav-coming {
    color: #7b7083;
}


.lesson-nav-coming span {
    margin-top: 9px;

    color: #9a6d38;

    font-size: .72rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .07em;
}


/* EMPTY / ERROR */

.lesson-empty-card,
.lesson-error-card,
.lesson-coming-card {
    padding: clamp(30px, 6vw, 60px);

    border-radius: 30px;

    background: #ffffff;

    border: 1px solid #e8deed;

    box-shadow:
        0 18px 45px rgba(70,42,91,.055);
}


.lesson-coming-card h1,
.lesson-error-card h1 {
    color: #2d1b3c;

    font-size: clamp(2.4rem, 6vw, 4.6rem);

    line-height: 1.06;

    letter-spacing: -.035em;
}


.lesson-coming-card p,
.lesson-error-card p {
    max-width: 650px;

    color: #74697d;

    line-height: 1.7;
}


/* MOBILE */

@media (max-width: 640px) {

    .lesson-layout {
        width: min(calc(100% - 28px), 900px);
    }


    .lesson-hero {
        padding-top: 28px;
    }


    .lesson-hero-card {
        border-radius: 25px;

        padding: 28px 22px;
    }


    .lesson-hero-card h1 {
        font-size: clamp(2.6rem, 12vw, 4rem);

        line-height: 1.05;
    }


    .lesson-hero-actions {
        display: grid;
    }


    .learning-module {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 24px 21px;

        border-radius: 23px;
    }


    .module-side-icon {
        width: 46px;
        height: 46px;
    }


    .module-title {
        margin-top: 3px;

        font-size: 1.65rem;
    }


    .module-copy {
        font-size: .98rem;

        line-height: 1.76;
    }


    .lesson-quiz-preview,
    .lesson-summary-panel {
        grid-template-columns: 1fr;

        padding: 25px 21px;

        border-radius: 23px;
    }


    .lesson-bottom-nav {
        grid-template-columns: 1fr;
    }


    .lesson-nav-next {
        text-align: left;

        align-items: flex-start;
    }

}


/* ============================================================
   LEARNINGAI BOOK READER
   ============================================================ */

.lesson-book-page {
    background:
        linear-gradient(
            180deg,
            #fffaf2 0%,
            #fffdf9 45%,
            #fff8ee 100%
        );
}

.reader-width {
    width: min(calc(100% - 40px), 960px);
    margin-inline: auto;
}


/* ------------------------------------------------------------
   HIDE NORMAL MOBILE APP NAV WHILE READING
   ------------------------------------------------------------ */

.lesson-book-page .mobile-bottom-nav {
    display: none !important;
}


/* ------------------------------------------------------------
   READER HEADER
   ------------------------------------------------------------ */

.reader-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(255,255,255,.96);

    border-bottom:
        1px solid #eadff0;

    backdrop-filter: blur(18px);
}

.reader-header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.reader-header-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 15px;
}

.reader-back-lessons {
    flex: 0 0 auto;

    color: #7542c6;

    font-size: .8rem;
    font-weight: 750;

    text-decoration: none;
}

.reader-divider {
    width: 1px;
    height: 28px;

    background: #e5dbe9;
}

.reader-lesson-name {
    min-width: 0;
}

.reader-lesson-name small,
.reader-lesson-name strong {
    display: block;
}

.reader-lesson-name small {
    margin-bottom: 1px;

    color: #8a7d91;

    font-size: .65rem;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.reader-lesson-name strong {
    max-width: 430px;

    overflow: hidden;

    color: #352242;

    font-size: .86rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.reader-header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.reader-icon-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 12px;

    border-radius: 999px;

    color: #5d496b;

    background: #faf7fc;

    border: 1px solid #e7dcec;

    font: inherit;

    font-size: .75rem;
    font-weight: 750;

    text-decoration: none;

    cursor: pointer;
}

.reader-icon-button:hover {
    color: #7139c5;

    background: #f5effb;
}

.reader-progress-track {
    height: 5px;

    background: #f0e7f4;
}

.reader-progress-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #8750ee,
            #e65f9f,
            #f2ad53
        );

    transition: width .25s ease;
}


/* ------------------------------------------------------------
   TOC COVER
   ------------------------------------------------------------ */

.reader-toc {
    padding: 55px 0 110px;
}

.toc-cover {
    position: relative;

    overflow: hidden;

    padding:
        clamp(35px, 7vw, 72px);

    border-radius: 34px;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255,201,91,.25),
            transparent 25%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(137,81,239,.12),
            transparent 28%
        ),
        #ffffff;

    border:
        1px solid #e8dced;

    box-shadow:
        0 24px 60px rgba(80,47,104,.08);
}

.toc-cover-meta {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 27px;
}

.lesson-free-pill {
    display: inline-flex;

    padding: 6px 11px;

    border-radius: 999px;

    color: #167856;

    background: #e5f8ee;

    border: 1px solid #b9e8d1;

    font-size: .68rem;

    font-weight: 850;

    letter-spacing: .07em;
}

.toc-time {
    color: #817488;

    font-size: .78rem;

    font-weight: 700;
}

.toc-cover h1 {
    max-width: 800px;

    margin:
        12px 0 18px;

    color: #301b40;

    font-size:
        clamp(3rem, 8vw, 6.1rem);

    font-weight: 780;

    letter-spacing: -.035em;

    line-height: 1.02;
}

.toc-subtitle {
    margin:
        0 0 12px;

    color: #594067;

    font-size:
        clamp(1.2rem, 2.4vw, 1.5rem);

    font-weight: 650;
}

.toc-description {
    max-width: 720px;

    margin:
        0 0 30px;

    color: #756a7c;

    font-size: 1rem;

    line-height: 1.75;
}

.toc-start-button {
    width: auto;
}


/* ------------------------------------------------------------
   TABLE OF CONTENTS
   ------------------------------------------------------------ */

.toc-section {
    margin-top: 38px;

    padding:
        clamp(26px, 5vw, 48px);

    border-radius: 30px;

    background: #ffffff;

    border:
        1px solid #eadff0;
}

.toc-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 27px;
}

.toc-heading h2 {
    margin:
        5px 0 0;

    color: #342142;

    font-size:
        clamp(2rem, 5vw, 3.2rem);

    line-height: 1.08;

    letter-spacing: -.025em;
}

.toc-search-button {
    flex: 0 0 auto;

    min-height: 45px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 9px 15px;

    border-radius: 999px;

    color: #663c92;

    background: #f8f3fc;

    border: 1px solid #e4d7ec;

    font: inherit;

    font-size: .78rem;
    font-weight: 750;

    cursor: pointer;
}

.toc-list {
    display: grid;

    gap: 8px;
}

.toc-item {
    display: grid;

    grid-template-columns:
        46px
        45px
        minmax(0,1fr)
        auto;

    align-items: center;

    gap: 14px;

    min-height: 78px;

    padding:
        13px 16px;

    border-radius: 18px;

    color: inherit;

    background: #fffdfb;

    border:
        1px solid #eee5f2;

    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.toc-item:hover {
    transform:
        translateX(4px);

    background: #fbf8ff;

    border-color: #cdb6e7;
}

.toc-number {
    color: #9879bb;

    font-size: .75rem;

    font-weight: 850;

    letter-spacing: .06em;
}

.toc-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #f5effa;

    font-size: 1.18rem;
}

.toc-item-copy {
    min-width: 0;
}

.toc-item-copy small,
.toc-item-copy strong {
    display: block;
}

.toc-item-copy small {
    margin-bottom: 2px;

    color: #897b91;

    font-size: .64rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .07em;
}

.toc-item-copy strong {
    color: #382748;

    font-size: .95rem;

    line-height: 1.3;
}

.toc-arrow {
    color: #7950aa;

    font-size: 1.2rem;
}

.toc-reference-card {
    display: grid;

    grid-template-columns:
        auto
        1fr;

    gap: 20px;

    margin-top: 25px;

    padding:
        28px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #fff6dc,
            #ffffff
        );

    border: 1px solid #eddcbc;
}

.toc-reference-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: #905d16;

    background: #ffeabc;

    font-size: 1.5rem;

    font-weight: 900;
}

.toc-reference-card h3 {
    margin:
        3px 0 7px;

    color: #3b2a43;

    font-size: 1.4rem;
}

.toc-reference-card p {
    margin: 0;

    color: #776b7a;

    line-height: 1.65;
}


/* ------------------------------------------------------------
   BOOK PAGE
   ------------------------------------------------------------ */

.reader-page {
    min-height: 75vh;

    padding:
        42px 0 125px;
}

.reader-page-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;

    color: #83768c;

    font-size: .72rem;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .07em;
}

.reader-paper {
    min-height: 610px;

    padding:
        clamp(30px, 7vw, 70px)
        clamp(25px, 8vw, 86px);

    border-radius: 33px;

    background: #ffffff;

    border:
        1px solid #eadff0;

    box-shadow:
        0 24px 70px rgba(74,43,95,.075);
}

.reader-paper-intro {
    background:
        linear-gradient(
            145deg,
            #fff9df,
            #ffffff 52%
        );
}

.reader-paper-key_point {
    background:
        linear-gradient(
            145deg,
            #f4edff,
            #ffffff 52%
        );
}

.reader-paper-analogy {
    background:
        linear-gradient(
            145deg,
            #edf6ff,
            #ffffff 52%
        );
}

.reader-paper-experiment {
    background:
        linear-gradient(
            145deg,
            #eafaf3,
            #ffffff 52%
        );
}

.reader-paper-ai_trap {
    background:
        linear-gradient(
            145deg,
            #fff1f3,
            #ffffff 52%
        );
}

.reader-paper-vocabulary {
    background:
        linear-gradient(
            145deg,
            #fff4e5,
            #ffffff 52%
        );
}

.reader-paper-recap {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7651db,
            #a94dcf
        );

    border: 0;
}

.reader-paper-next_lesson {
    background:
        linear-gradient(
            145deg,
            #fff6d8,
            #f7efff
        );
}

.reader-paper-heading {
    display: grid;

    grid-template-columns:
        auto
        1fr;

    gap: 19px;

    align-items: start;

    margin-bottom: 35px;
}

.reader-page-icon {
    width: 53px;
    height: 53px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background: rgba(255,255,255,.76);

    border: 1px solid rgba(83,53,102,.09);

    box-shadow:
        0 8px 20px rgba(62,39,78,.07);

    font-size: 1.45rem;
}

.reader-paper h1 {
    max-width: 730px;

    margin:
        4px 0 0;

    color: #332043;

    font-size:
        clamp(2.4rem, 6vw, 4.3rem);

    font-weight: 770;

    line-height: 1.08;

    letter-spacing: -.028em;
}

.reader-prose {
    max-width: 730px;

    margin-inline: auto;

    color: #52485b;

    font-size:
        clamp(1rem, 1.4vw, 1.08rem);

    line-height: 1.86;
}

.reader-prose p {
    margin:
        0 0 1.45em;
}

.reader-prose p:last-child {
    margin-bottom: 0;
}

.reader-prose strong {
    color: #33213f;

    font-weight: 760;
}

.reader-prose h2,
.reader-prose h3,
.reader-prose h4 {
    color: #352143;

    line-height: 1.2;
}

.reader-prose h2 {
    margin:
        1.7em 0 .55em;

    font-size: 1.8rem;
}

.reader-prose h3 {
    margin:
        1.55em 0 .5em;

    font-size: 1.45rem;
}

.reader-prose h4 {
    margin:
        1.4em 0 .45em;

    font-size: 1.2rem;
}

.reader-prose ul,
.reader-prose ol {
    margin:
        1em 0 1.6em;

    padding-left: 1.5em;
}

.reader-prose li {
    margin-bottom: .65em;
}


/* Recap white text */

.reader-paper-recap .eyebrow,
.reader-paper-recap h1,
.reader-paper-recap .reader-prose,
.reader-paper-recap .reader-prose strong,
.reader-paper-recap .reader-prose h2,
.reader-paper-recap .reader-prose h3,
.reader-paper-recap .reader-prose h4 {
    color: #ffffff;
}


/* ------------------------------------------------------------
   COMPLETION
   ------------------------------------------------------------ */

.reader-finish-card {
    display: grid;

    grid-template-columns:
        auto 1fr;

    gap: 22px;

    margin-top: 24px;

    padding:
        clamp(25px, 5vw, 42px);

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #eaf9f2,
            #ffffff
        );

    border:
        1px solid #d0eddd;
}

.reader-finish-icon {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    background: #d9f5e6;

    font-size: 1.5rem;
}

.reader-finish-card h2 {
    margin:
        4px 0 8px;

    color: #332242;

    font-size:
        clamp(1.75rem, 4vw, 2.5rem);

    line-height: 1.15;
}

.reader-finish-card p {
    color: #716677;
}

.reader-coming-label {
    display: inline-flex;

    margin-top: 8px;

    padding:
        7px 12px;

    border-radius: 999px;

    color: #765195;

    background: rgba(255,255,255,.8);

    border:
        1px solid #e3d6e9;

    font-size: .72rem;

    font-weight: 800;
}


/* ------------------------------------------------------------
   PAGE NAVIGATION
   ------------------------------------------------------------ */

.reader-page-nav {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto
        minmax(0,1fr);

    align-items: stretch;

    gap: 12px;

    margin-top: 25px;
}

.reader-nav-slot {
    min-width: 0;
}

.reader-nav-button {
    width: 100%;
    min-height: 84px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        14px 17px;

    border-radius: 20px;

    color: inherit;

    background: #ffffff;

    border:
        1px solid #e7dce9;

    text-decoration: none;
}

.reader-nav-button:hover {
    border-color: #c8abe2;

    box-shadow:
        0 11px 25px rgba(72,44,92,.07);
}

.reader-nav-button > span {
    color: #7845bb;

    font-size: 1.2rem;

    font-weight: 900;
}

.reader-nav-button div {
    min-width: 0;
}

.reader-nav-button small,
.reader-nav-button strong {
    display: block;
}

.reader-nav-button small {
    margin-bottom: 2px;

    color: #918397;

    font-size: .65rem;

    text-transform: uppercase;

    letter-spacing: .07em;
}

.reader-nav-button strong {
    overflow: hidden;

    color: #3e2c49;

    font-size: .82rem;

    line-height: 1.3;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.reader-nav-next {
    justify-content: flex-end;

    text-align: right;
}

.reader-contents-button {
    min-width: 112px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 2px;

    padding: 10px 14px;

    border-radius: 20px;

    color: #7041a8;

    background: #f6f0fb;

    border: 1px solid #e2d5ea;

    font-size: .7rem;

    font-weight: 750;

    text-decoration: none;
}

.reader-contents-button span {
    font-size: 1.15rem;
}


/* ------------------------------------------------------------
   SEARCH
   ------------------------------------------------------------ */

.lesson-search-open {
    overflow: hidden;
}

.lesson-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 700;

    display: none;

    align-items: flex-start;
    justify-content: center;

    padding:
        75px 20px 20px;

    background:
        rgba(50,32,62,.45);

    backdrop-filter: blur(10px);
}

.lesson-search-overlay.is-open {
    display: flex;
}

.lesson-search-panel {
    width: min(720px, 100%);

    max-height:
        calc(100vh - 95px);

    overflow: auto;

    padding:
        27px;

    border-radius: 27px;

    background: #ffffff;

    border:
        1px solid #e7dbea;

    box-shadow:
        0 30px 80px rgba(50,29,67,.22);
}

.lesson-search-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.lesson-search-header h2 {
    margin:
        5px 0 0;

    color: #342142;

    font-size:
        clamp(1.75rem, 4vw, 2.5rem);

    line-height: 1.12;
}

.lesson-search-close {
    width: 43px;
    height: 43px;

    flex: 0 0 auto;

    border-radius: 50%;

    color: #584263;

    background: #f7f2f9;

    border: 1px solid #e5d9e9;

    font-size: 1.6rem;

    cursor: pointer;
}

.lesson-search-input-wrap {
    display: grid;

    grid-template-columns:
        auto 1fr;

    align-items: center;

    gap: 10px;

    padding:
        0 16px;

    border-radius: 17px;

    background: #fbf8fd;

    border:
        1px solid #dfd1e7;
}

.lesson-search-icon {
    color: #7b52a7;

    font-size: 1.25rem;
}

.lesson-search-input-wrap input {
    width: 100%;
    min-height: 54px;

    padding: 0;

    color: #392747;

    background: transparent;

    border: 0;

    outline: 0;

    font: inherit;

    font-size: .95rem;
}

.lesson-search-status {
    margin:
        13px 2px;

    color: #8a7c90;

    font-size: .75rem;
}

.lesson-search-results {
    display: grid;

    gap: 8px;
}

.lesson-search-result {
    display: block;

    padding:
        15px 17px;

    border-radius: 16px;

    color: inherit;

    background: #fffdfb;

    border:
        1px solid #ece3ef;

    text-decoration: none;
}

.lesson-search-result:hover {
    background: #f9f5fc;

    border-color: #cab1df;
}

.search-result-page {
    display: inline-block;

    margin-bottom: 3px;

    color: #8351ba;

    font-size: .65rem;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .07em;
}

.lesson-search-result strong {
    display: block;

    color: #3b2947;

    font-size: .92rem;
}

.lesson-search-result small {
    display: block;

    margin-top: 2px;

    color: #9a8aa0;

    font-size: .67rem;
}

.lesson-search-result p {
    margin:
        7px 0 0;

    color: #74697b;

    font-size: .76rem;

    line-height: 1.55;
}


/* ------------------------------------------------------------
   ERROR
   ------------------------------------------------------------ */

.lesson-reader-error {
    min-height: 70vh;

    padding:
        65px 0 110px;
}

.reader-topline {
    margin-bottom: 20px;
}

.reader-topline a {
    color: #7744c4;

    font-weight: 750;

    text-decoration: none;
}

.reader-message-card {
    padding:
        clamp(30px, 6vw, 60px);

    border-radius: 30px;

    background: #ffffff;

    border:
        1px solid #e8ddea;
}

.reader-message-card h1 {
    margin:
        10px 0 15px;

    color: #342142;

    font-size:
        clamp(2.4rem, 6vw, 4.5rem);

    line-height: 1.05;

    letter-spacing: -.03em;
}

.reader-message-card p {
    color: #74697c;

    line-height: 1.7;
}


/* ------------------------------------------------------------
   MOBILE READER NAV
   ------------------------------------------------------------ */

.reader-mobile-nav {
    display: none;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .reader-width {
        width:
            min(calc(100% - 26px), 960px);
    }

    .reader-header-inner {
        min-height: 66px;
    }

    .reader-divider,
    .reader-lesson-name strong {
        display: none;
    }

    .reader-lesson-name small {
        margin: 0;

        font-size: .66rem;
    }

    .reader-button-label {
        display: none;
    }

    .reader-icon-button {
        width: 40px;
        height: 40px;

        padding: 0;
    }

    .reader-toc {
        padding:
            26px 0 105px;
    }

    .toc-cover {
        padding:
            30px 23px;

        border-radius: 25px;
    }

    .toc-cover h1 {
        font-size:
            clamp(2.8rem, 13vw, 4.6rem);

        line-height: 1.04;
    }

    .toc-start-button {
        width: 100%;
    }

    .toc-section {
        margin-top: 18px;

        padding:
            25px 18px;

        border-radius: 24px;
    }

    .toc-heading {
        display: block;
    }

    .toc-search-button {
        width: 100%;

        justify-content: center;

        margin-top: 17px;
    }

    .toc-item {
        grid-template-columns:
            34px
            minmax(0,1fr)
            auto;

        gap: 10px;

        min-height: 70px;

        padding:
            12px 11px;
    }

    .toc-icon {
        display: none;
    }

    .toc-number {
        font-size: .68rem;
    }

    .toc-arrow {
        font-size: 1rem;
    }

    .toc-reference-card {
        grid-template-columns: 1fr;

        padding: 23px;

        border-radius: 22px;
    }

    .reader-page {
        padding:
            22px 0 105px;
    }

    .reader-page-counter {
        font-size: .65rem;
    }

    .reader-paper {
        min-height: auto;

        padding:
            29px 21px 36px;

        border-radius: 24px;
    }

    .reader-paper-heading {
        grid-template-columns: 1fr;

        gap: 13px;

        margin-bottom: 27px;
    }

    .reader-page-icon {
        width: 46px;
        height: 46px;
    }

    .reader-paper h1 {
        font-size:
            clamp(2.25rem, 10vw, 3.35rem);

        line-height: 1.08;
    }

    .reader-prose {
        font-size: 1rem;

        line-height: 1.8;
    }

    .reader-finish-card {
        grid-template-columns: 1fr;

        border-radius: 22px;
    }

    /*
     * Desktop nav hidden on mobile.
     * Reader gets fixed book navigation.
     */

    .reader-page-nav {
        display: none;
    }

    .reader-mobile-nav {
        position: fixed;

        left: 12px;
        right: 12px;

        bottom:
            calc(10px + env(safe-area-inset-bottom));

        z-index: 300;

        min-height: 68px;

        display: grid;

        grid-template-columns:
            1fr
            1fr
            1fr;

        align-items: center;

        padding: 7px;

        border-radius: 22px;

        background:
            rgba(255,255,255,.96);

        border:
            1px solid #e1d5e7;

        box-shadow:
            0 18px 45px rgba(69,41,88,.16);

        backdrop-filter: blur(18px);
    }

    .reader-mobile-nav a {
        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 1px;

        min-height: 52px;

        border-radius: 16px;

        color: #695575;

        text-decoration: none;
    }

    .reader-mobile-nav a span {
        font-size: 1.15rem;
    }

    .reader-mobile-nav a small {
        font-size: .62rem;

        font-weight: 750;
    }

    .reader-mobile-contents {
        color: #ffffff !important;

        background:
            linear-gradient(
                145deg,
                #8952eb,
                #7236d1
            );

        box-shadow:
            0 10px 25px rgba(112,55,204,.21);
    }

    .lesson-search-overlay {
        padding:
            10px;

        align-items: stretch;
    }

    .lesson-search-panel {
        max-height: none;

        height:
            calc(100vh - 20px);

        padding:
            22px 17px;

        border-radius: 23px;
    }

    .lesson-search-header h2 {
        font-size: 1.7rem;
    }

}


/* ------------------------------------------------------------
   DESKTOP KEYBOARD HINT
   ------------------------------------------------------------ */

@media (min-width: 761px) {

    .reader-paper::after {
        content:
            "Use ← and → to turn pages";

        display: block;

        margin-top: 45px;

        padding-top: 18px;

        color: #a397a8;

        border-top:
            1px solid rgba(92,68,105,.08);

        font-size: .65rem;

        text-align: center;

        letter-spacing: .05em;
    }

    .reader-paper-recap::after {
        color: rgba(255,255,255,.67);

        border-top-color:
            rgba(255,255,255,.13);
    }

}


/* ============================================================
   LEARNINGAI — TEXT TO SPEECH
   ============================================================ */

.reader-page-counter {
    align-items: center;
}


.reader-page-position {
    display: flex;
    align-items: center;

    gap: 13px;
}


.reader-tts {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 5px;

    border-radius: 999px;

    background: #ffffff;

    border:
        1px solid #dfd3e6;

    box-shadow:
        0 7px 20px rgba(71,44,88,.055);

    text-transform: none;

    letter-spacing: 0;
}


.reader-tts[hidden] {
    display: none !important;
}


.reader-tts-main {
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding:
        7px 12px;

    border-radius: 999px;

    color: #6d3bb4;

    background:
        #f5effb;

    border: 0;

    font: inherit;

    font-size: .72rem;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}


.reader-tts-main:hover {
    background:
        #eee3f8;
}


.reader-tts-main.is-speaking {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8750ed,
            #a64bd4
        );

    box-shadow:
        0 7px 18px rgba(119,64,204,.18);
}


.reader-tts-main-icon {
    min-width: 12px;

    display: inline-flex;
    justify-content: center;

    line-height: 1;
}


.reader-tts-speed {
    height: 36px;

    padding:
        0 25px 0 9px;

    border-radius: 999px;

    color: #66586e;

    background:
        #ffffff;

    border:
        1px solid #e4d9e9;

    outline: none;

    font: inherit;

    font-size: .7rem;

    font-weight: 750;

    cursor: pointer;
}


.reader-tts-speed:focus {
    border-color:
        #a982d0;

    box-shadow:
        0 0 0 3px rgba(126,77,189,.10);
}


.reader-tts-stop {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    padding: 0;

    border-radius: 50%;

    color: #765d7b;

    background:
        #ffffff;

    border:
        1px solid #e4d9e9;

    font-size: .64rem;

    cursor: pointer;
}


.reader-tts-stop:hover:not(:disabled) {
    color: #b23b58;

    background:
        #fff1f4;

    border-color:
        #f0ccd5;
}


.reader-tts-stop:disabled {
    opacity: .35;

    cursor: default;
}


/* ------------------------------------------------------------
   MOBILE TTS
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .reader-page-counter {
        align-items: flex-start;

        gap: 12px;
    }


    .reader-page-position {
        min-width: 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 1px;
    }


    .reader-tts {
        flex: 0 0 auto;

        padding: 4px;
    }


    .reader-tts-main {
        min-height: 34px;

        padding:
            6px 10px;

        font-size: .68rem;
    }


    .reader-tts-speed {
        width: 60px;
        height: 34px;

        padding:
            0 20px 0 7px;

        font-size: .66rem;
    }


    .reader-tts-stop {
        width: 34px;
        height: 34px;
    }

}


/* Very narrow devices */

@media (max-width: 430px) {

    .reader-page-counter {
        display: grid;

        grid-template-columns:
            1fr;

        gap: 10px;
    }


    .reader-tts {
        width: fit-content;
    }

}


/* ============================================================
   LEARNINGAI — TTS READ-ALONG
   Designed for comfortable reading across age groups
   ============================================================ */

.tts-word {
    border-radius: .28em;

    transition:
        background-color .12s ease,
        color .12s ease,
        box-shadow .12s ease;
}


.tts-word.is-tts-speaking {
    position: relative;

    color: #29183a;

    background: #ffe985;

    box-shadow:
        0 0 0 .12em #ffe985;

    text-decoration: none;
}


/*
 * Strong text remains readable while highlighted.
 */

strong .tts-word.is-tts-speaking {
    color: #241331;
}


/*
 * Recap pages use white text on purple.
 * Yellow highlight keeps strong contrast.
 */

.reader-paper-recap
.tts-word.is-tts-speaking {
    color: #281435;

    background: #fff08f;

    box-shadow:
        0 0 0 .12em #fff08f;
}


/* ============================================================
   READING COMFORT
   ============================================================ */

.reader-prose {
    /*
     * Slightly larger than before.
     * Better for older eyes without making the page feel huge.
     */
    font-size:
        clamp(1.05rem, 1.55vw, 1.14rem);

    line-height: 1.9;

    letter-spacing: .002em;
}


.reader-prose p {
    margin-bottom: 1.55em;
}


.reader-prose li {
    margin-bottom: .75em;
}


/*
 * Keep readable line length.
 */

.reader-prose {
    max-width: 700px;
}


/*
 * Headings need a little more breathing room.
 */

.reader-paper h1 {
    line-height: 1.1;

    letter-spacing: -.022em;
}


/* ============================================================
   OPTIONAL ACCESSIBILITY MOTION REDUCTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .tts-word,
    .tts-word.is-tts-speaking {
        transition: none;
    }

}


/* ============================================================
   MOBILE READ-ALONG
   ============================================================ */

@media (max-width: 760px) {

    .reader-prose {
        font-size: 1.06rem;

        line-height: 1.88;
    }


    .tts-word.is-tts-speaking {
        box-shadow:
            0 0 0 .1em #ffe985;
    }

}


/* ============================================================
   LEARNINGAI — LESSON ACCESS GATE
   ============================================================ */

.lesson-lock-screen {
    min-height: 72vh;

    display: flex;
    align-items: center;

    padding:
        55px 0 110px;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 214, 102, .18),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 5%,
            rgba(139, 82, 238, .11),
            transparent 28%
        ),
        #fffaf4;
}


.lesson-lock-card {
    max-width: 680px;

    margin-inline: auto;

    padding:
        clamp(34px, 7vw, 65px);

    border-radius: 32px;

    background: #ffffff;

    border:
        1px solid #e8ddea;

    box-shadow:
        0 25px 65px rgba(70, 42, 91, .09);

    text-align: center;
}


.lesson-lock-icon {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin:
        0 auto 22px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #f3ebff,
            #fff5d9
        );

    font-size: 1.9rem;
}


.lesson-lock-card h1 {
    margin:
        8px 0 15px;

    color: #30203d;

    font-size:
        clamp(2.5rem, 7vw, 4.8rem);

    font-weight: 780;

    line-height: 1.05;

    letter-spacing: -.03em;
}


.lesson-lock-intro {
    max-width: 520px;

    margin:
        0 auto 25px;

    color: #706475;

    font-size: 1.05rem;

    line-height: 1.7;
}


.lesson-lock-required {
    max-width: 500px;

    margin:
        0 auto 27px;

    padding:
        18px 20px;

    border-radius: 18px;

    background: #faf6fc;

    border:
        1px solid #e9deed;

    text-align: left;
}


.lesson-lock-required small,
.lesson-lock-required strong {
    display: block;
}


.lesson-lock-required small {
    margin-bottom: 4px;

    color: #8b7c91;

    font-size: .67rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.lesson-lock-required strong {
    color: #422e4c;

    font-size: .94rem;

    line-height: 1.4;
}


.lesson-lock-all {
    display: block;

    width: fit-content;

    margin:
        18px auto 0;

    color: #7650a1;

    font-size: .8rem;

    font-weight: 700;

    text-decoration: none;
}


.lesson-lock-all:hover {
    text-decoration: underline;
}


@media (max-width: 640px) {

    .lesson-lock-screen {
        padding:
            30px 0 95px;
    }


    .lesson-lock-card {
        padding:
            35px 22px;

        border-radius: 25px;
    }


    .lesson-lock-card h1 {
        font-size:
            clamp(2.4rem, 11vw, 3.7rem);
    }

}


/* ============================================================
   LEARNINGAI — OPTIONAL ACCOUNT + PROGRESS
   ============================================================ */

.account-shell {
    min-height: 72vh;

    padding:
        55px 20px 110px;

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(255,207,88,.19),
            transparent 26%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(139,79,236,.11),
            transparent 27%
        ),
        #fffaf4;
}


.account-container {
    width: min(620px, 100%);

    margin-inline: auto;
}


.account-card {
    padding:
        clamp(31px, 7vw, 58px);

    border-radius: 32px;

    background: #ffffff;

    border: 1px solid #e8ddea;

    box-shadow:
        0 25px 65px rgba(71,42,92,.08);
}


.account-card h1 {
    margin:
        8px 0 15px;

    color: #31203e;

    font-size:
        clamp(2.6rem, 7vw, 4.8rem);

    font-weight: 780;

    line-height: 1.05;

    letter-spacing: -.03em;
}


.account-lead {
    margin-bottom: 25px;

    color: #716576;

    font-size: 1.04rem;

    line-height: 1.7;
}


.account-benefits {
    display: grid;

    gap: 9px;

    margin:
        0 0 28px;

    padding:
        20px;

    border-radius: 18px;

    color: #594865;

    background: #faf6fc;

    border: 1px solid #e9deed;

    font-size: .9rem;

    font-weight: 650;
}


.account-form {
    display: grid;

    gap: 17px;
}


.account-form label {
    display: grid;

    gap: 7px;
}


.account-form label > span {
    color: #4c3a56;

    font-size: .78rem;

    font-weight: 800;
}


.account-form input {
    width: 100%;
    min-height: 52px;

    padding:
        11px 14px;

    border-radius: 14px;

    color: #382843;

    background: #fffdfb;

    border: 1px solid #dacfe0;

    outline: none;

    font: inherit;
}


.account-form input:focus {
    border-color: #9d72ce;

    box-shadow:
        0 0 0 4px rgba(126,77,190,.09);
}


.account-form small {
    color: #8d8191;

    font-size: .7rem;
}


.account-submit {
    margin-top: 5px;
}


.account-error {
    margin-bottom: 20px;

    padding:
        13px 15px;

    border-radius: 13px;

    color: #8b3146;

    background: #fff0f3;

    border: 1px solid #f0ccd5;

    font-size: .82rem;
}


.account-success {
    margin-bottom: 20px;

    padding:
        14px 17px;

    border-radius: 14px;

    color: #176747;

    background: #eaf8f1;

    border: 1px solid #caebdb;

    font-weight: 700;
}


.account-secondary,
.account-no-pressure {
    margin-top: 19px;

    color: #796c7d;

    font-size: .8rem;

    text-align: center;
}


.account-secondary a,
.account-no-pressure a {
    color: #7040aa;

    font-weight: 750;
}


.account-no-pressure {
    margin-top: 12px;
}


.account-choice-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;
}


/* ------------------------------------------------------------
   SAVE PROGRESS CTA INSIDE LESSON
   ------------------------------------------------------------ */

.save-progress-card {
    display: grid;

    grid-template-columns:
        auto 1fr;

    gap: 20px;

    margin-top: 25px;

    padding:
        27px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #f0e9ff,
            #ffffff
        );

    border: 1px solid #ddcff0;
}


.save-progress-icon {
    width: 53px;
    height: 53px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    color: #7443b5;

    background: #ffffff;

    box-shadow:
        0 8px 22px rgba(91,55,120,.08);

    font-size: 1.45rem;
}


.save-progress-card h3 {
    margin:
        4px 0 7px;

    color: #382448;

    font-size: 1.45rem;
}


.save-progress-card p {
    max-width: 590px;

    margin:
        0 0 15px;

    color: #766a7b;

    line-height: 1.65;
}


.save-progress-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 13px;
}


.save-progress-login {
    color: #7147a0;

    font-size: .78rem;

    font-weight: 750;
}


.completion-save-progress {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-top: 18px;

    padding:
        25px 28px;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #f3edff,
            #fff9e8
        );

    border: 1px solid #e0d2ee;
}


.completion-save-progress h3 {
    margin:
        4px 0 7px;

    color: #392848;

    font-size: 1.35rem;
}


.completion-save-progress p {
    max-width: 550px;

    margin: 0;

    color: #766b7c;

    line-height: 1.6;
}


.completion-save-actions {
    flex: 0 0 auto;

    display: grid;

    gap: 7px;

    text-align: center;
}


.save-progress-not-now {
    padding: 7px;

    color: #887a8c;

    background: transparent;

    border: 0;

    font: inherit;

    font-size: .72rem;

    cursor: pointer;
}


/* ------------------------------------------------------------
   ACCOUNT DASHBOARD
   ------------------------------------------------------------ */

.account-dashboard-shell {
    min-height: 75vh;

    padding:
        50px 0 110px;

    background: #fffaf4;
}


.account-dashboard-width {
    width:
        min(calc(100% - 40px), 900px);

    margin-inline: auto;
}


.account-dashboard-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.account-dashboard-header h1 {
    margin:
        5px 0 3px;

    color: #31203f;

    font-size:
        clamp(2.6rem, 7vw, 4.8rem);

    line-height: 1.05;

    letter-spacing: -.03em;
}


.account-dashboard-header p {
    margin: 0;

    color: #766a7c;
}


.account-logout {
    color: #775189;

    font-size: .78rem;

    font-weight: 750;
}


.continue-learning-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 25px;

    padding:
        clamp(25px, 5vw, 38px);

    border-radius: 27px;

    background:
        linear-gradient(
            140deg,
            #eee6ff,
            #fff9df
        );

    border: 1px solid #ddceee;
}


.continue-learning-card h2 {
    margin:
        4px 0 7px;

    color: #352244;

    font-size:
        clamp(1.65rem, 4vw, 2.5rem);

    line-height: 1.15;
}


.continue-learning-card p {
    margin: 0;

    color: #746779;
}


.progress-list-section {
    padding:
        clamp(24px, 5vw, 40px);

    border-radius: 27px;

    background: #ffffff;

    border: 1px solid #e8ddea;
}


.progress-list-heading {
    margin-bottom: 21px;
}


.progress-list-heading h2 {
    margin:
        4px 0 0;

    color: #342141;

    font-size:
        clamp(1.9rem, 4vw, 2.8rem);
}


.account-lesson-list {
    display: grid;

    gap: 8px;
}


.account-lesson-row {
    display: grid;

    grid-template-columns:
        47px
        minmax(0,1fr)
        auto;

    align-items: center;

    gap: 13px;

    min-height: 76px;

    padding:
        12px 15px;

    border-radius: 17px;

    color: inherit;

    background: #fffdfb;

    border: 1px solid #eee5f1;

    text-decoration: none;
}


.account-lesson-row:hover {
    background: #faf6fd;

    border-color: #ceb6e3;
}


.account-lesson-number {
    color: #8a63ad;

    font-size: .73rem;

    font-weight: 850;
}


.account-lesson-copy strong,
.account-lesson-copy small {
    display: block;
}


.account-lesson-copy strong {
    color: #3c2948;

    line-height: 1.3;
}


.account-lesson-copy small {
    margin-top: 3px;

    color: #918395;

    font-size: .68rem;
}


.account-lesson-copy .status-complete {
    color: #21815d;
}


.account-lesson-copy .status-progress {
    color: #8050b2;
}


.account-lesson-arrow {
    color: #7948aa;

    font-size: 1.15rem;
}


@media (max-width: 640px) {

    .account-shell {
        padding:
            30px 14px 95px;
    }


    .account-card {
        padding:
            32px 21px;

        border-radius: 25px;
    }


    .account-choice-buttons {
        display: grid;
    }


    .save-progress-card {
        grid-template-columns: 1fr;

        padding: 23px;
    }


    .completion-save-progress {
        display: grid;

        padding: 23px;
    }


    .completion-save-actions {
        width: 100%;
    }


    .account-dashboard-width {
        width:
            min(calc(100% - 26px), 900px);
    }


    .account-dashboard-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .continue-learning-card {
        display: grid;
    }


    .continue-learning-card .button {
        width: 100%;
    }

}


/* ============================================================
   LEARNINGAI — FINAL MOBILE / PWA AUTHORITY LAYER
   Keep this at the END of app.css
   ============================================================ */

@media (max-width: 760px) {

    /*
     * --------------------------------------------------------
     * GLOBAL MOBILE SAFETY
     * --------------------------------------------------------
     */

    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;

        padding-bottom:
            calc(
                105px +
                env(safe-area-inset-bottom)
            );
    }

    .shell {
        width:
            min(
                calc(100% - 32px),
                1200px
            );

        margin-inline: auto;
    }


    /*
     * --------------------------------------------------------
     * MOBILE HEADER
     * --------------------------------------------------------
     */

    .site-header {
        min-height: auto;
    }

    .site-header .header-inner,
    .site-header .shell {
        min-height: 72px;
    }

    .site-logo img,
    .header-logo img,
    .brand-logo img {
        display: block;

        width: auto !important;
        height: auto !important;

        max-width: 205px !important;
        max-height: 60px !important;

        object-fit: contain;
    }


    /*
     * If desktop navigation is still visible anywhere,
     * keep it off the phone.
     */

    .desktop-nav,
    .header-nav,
    .site-nav {
        display: none;
    }


    /*
     * --------------------------------------------------------
     * HERO
     * --------------------------------------------------------
     */

    .hero {
        min-height: auto !important;

        padding:
            34px 0
            44px !important;

        overflow: hidden;
    }

    .hero-grid {
        width: 100%;

        display: flex !important;
        flex-direction: column !important;

        grid-template-columns: none !important;

        align-items: stretch !important;

        gap: 32px !important;
    }

    .hero-copy {
        width: 100%;

        max-width: none !important;

        display: block;
    }

    .hero-pill {
        width: fit-content;
        max-width: 100%;

        margin-bottom: 24px;

        padding:
            9px 14px !important;

        border-radius: 999px;

        font-size:
            clamp(.78rem, 3.6vw, .94rem) !important;

        line-height: 1.35 !important;
    }

    .hero h1 {
        width: 100%;

        max-width: 100% !important;

        margin:
            0 0 20px !important;

        font-size:
            clamp(
                3rem,
                15vw,
                4.8rem
            ) !important;

        line-height:
            .98 !important;

        letter-spacing:
            -.045em !important;

        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .hero h1 span {
        display: block;

        margin-top: 2px;
    }

    .hero-lead {
        width: 100%;

        max-width: 34rem !important;

        margin:
            0 0 25px !important;

        font-size:
            1.06rem !important;

        line-height:
            1.7 !important;
    }


    /*
     * --------------------------------------------------------
     * HERO BUTTONS
     * --------------------------------------------------------
     */

    .hero-actions {
        width: 100%;

        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 11px !important;

        margin:
            0 0 20px !important;
    }

    .hero-actions .button {
        width: 100% !important;

        min-height: 54px;

        display: flex !important;

        align-items: center;
        justify-content: center;

        gap: 8px;

        padding:
            13px 18px !important;

        border-radius:
            17px !important;

        font-size:
            .96rem !important;

        text-align: center;
    }


    /*
     * --------------------------------------------------------
     * HERO NOTE
     * --------------------------------------------------------
     */

    .hero-note {
        max-width: 100% !important;

        display: flex !important;

        align-items: flex-start;

        gap: 8px;

        margin:
            0 !important;

        padding:
            0 !important;

        font-size:
            .88rem !important;

        line-height:
            1.55 !important;
    }

    .hero-note span {
        flex: 0 0 auto;
    }


    /*
     * --------------------------------------------------------
     * HERO IMAGE
     * --------------------------------------------------------
     */

    .hero-visual {
        width: 100% !important;

        max-width: none !important;

        display: block !important;

        margin:
            0 !important;

        padding:
            0 !important;
    }

    .hero-photo-wrap {
        position: relative;

        width: 100% !important;

        max-width: 100% !important;

        min-height: 0 !important;

        margin:
            0 !important;

        padding:
            0 !important;

        overflow: visible !important;

        border-radius:
            25px !important;
    }

    .hero-photo {
        display: block;

        width: 100% !important;
        height: auto !important;

        max-height: none !important;

        aspect-ratio:
            4 / 3;

        object-fit:
            cover !important;

        object-position:
            center !important;

        border-radius:
            24px !important;
    }


    /*
     * --------------------------------------------------------
     * HERO INFO BADGES
     *
     * No more floating over the image.
     * They become clean cards underneath.
     * --------------------------------------------------------
     */

    .hero-photo-badge {
        position: relative !important;

        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        width: 100% !important;
        max-width: none !important;

        display: grid !important;

        grid-template-columns:
            auto 1fr;

        align-items: center;

        gap: 12px !important;

        margin:
            10px 0 0 !important;

        padding:
            14px 15px !important;

        border-radius:
            17px !important;

        transform:
            none !important;

        box-shadow:
            0 9px 25px
            rgba(57,38,73,.07) !important;
    }

    .hero-photo-badge-one {
        margin-top:
            14px !important;
    }

    .hero-photo-badge-two {
        margin-top:
            9px !important;
    }

    .hero-photo-badge > span {
        font-size:
            1.15rem !important;
    }

    .hero-photo-badge strong {
        display: block;

        font-size:
            .91rem !important;

        line-height:
            1.3 !important;
    }

    .hero-photo-badge small {
        display: block;

        margin-top:
            2px;

        font-size:
            .78rem !important;

        line-height:
            1.4 !important;
    }


    /*
     * --------------------------------------------------------
     * BACKGROUND BLOBS
     *
     * Keep them subtle on mobile.
     * --------------------------------------------------------
     */

    .hero-sun {
        opacity:
            .35 !important;

        transform:
            scale(.72) !important;
    }

    .hero-sun-one {
        left:
            -120px !important;

        top:
            80px !important;
    }

    .hero-sun-two {
        right:
            -140px !important;

        bottom:
            40px !important;
    }


    /*
     * --------------------------------------------------------
     * STATS
     * --------------------------------------------------------
     */

    .stats-strip {
        overflow: hidden;
    }

    .stats-grid {
        display: grid !important;

        grid-template-columns:
            repeat(2, 1fr) !important;

        gap:
            0 !important;
    }

    .stats-grid > div {
        min-width: 0;

        padding:
            22px 10px !important;

        text-align: center;
    }

    .stats-grid strong {
        font-size:
            2rem !important;
    }

    .stats-grid span {
        font-size:
            .73rem !important;

        line-height:
            1.3 !important;
    }


    /*
     * --------------------------------------------------------
     * GENERAL MOBILE SECTIONS
     * --------------------------------------------------------
     */

    .section {
        padding:
            54px 0 !important;
    }

    .section-heading {
        margin-bottom:
            28px !important;
    }

    .section-heading h2 {
        font-size:
            clamp(
                2.15rem,
                10vw,
                3.35rem
            ) !important;

        line-height:
            1.07 !important;

        letter-spacing:
            -.03em !important;
    }

    .section-heading p {
        font-size:
            .98rem !important;

        line-height:
            1.65 !important;
    }

    .feature-grid,
    .journey-grid {
        grid-template-columns:
            1fr !important;
    }


    /*
     * --------------------------------------------------------
     * LESSON CARDS
     * --------------------------------------------------------
     */

    .lesson-card {
        min-height: 0 !important;

        grid-template-columns:
            48px
            minmax(0,1fr)
            42px !important;

        gap:
            12px !important;

        padding:
            19px 15px !important;

        border-radius:
            22px !important;
    }

    .lesson-number {
        font-size:
            1.7rem !important;
    }

    .lesson-content h3 {
        font-size:
            1.08rem !important;

        line-height:
            1.3 !important;
    }

    .lesson-content p {
        margin-top:
            5px !important;

        font-size:
            .82rem !important;

        line-height:
            1.5 !important;
    }

    .lesson-meta {
        flex-wrap: wrap;

        gap:
            6px !important;
    }

    .lesson-arrow {
        width:
            40px !important;

        height:
            40px !important;
    }


    /*
     * --------------------------------------------------------
     * BOTTOM NAV
     * --------------------------------------------------------
     */

    .mobile-bottom-nav {
        position: fixed !important;

        left:
            12px !important;

        right:
            12px !important;

        bottom:
            calc(
                10px +
                env(safe-area-inset-bottom)
            ) !important;

        z-index:
            500 !important;

        width:
            auto !important;

        min-height:
            68px !important;

        display: grid !important;

        grid-template-columns:
            repeat(5, 1fr) !important;

        align-items:
            center;

        gap:
            2px !important;

        padding:
            6px 7px !important;

        border-radius:
            22px !important;

        background:
            rgba(255,255,255,.97) !important;

        border:
            1px solid
            #e2d5e8 !important;

        box-shadow:
            0 16px 40px
            rgba(58,36,74,.16) !important;

        backdrop-filter:
            blur(18px);
    }

    .bottom-nav-item {
        min-width:
            0 !important;

        min-height:
            54px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        flex-direction:
            column !important;

        gap:
            2px !important;

        padding:
            5px 2px !important;

        border-radius:
            15px !important;

        font-size:
            .63rem !important;

        line-height:
            1.1 !important;
    }

    .bottom-nav-item > span:first-child {
        font-size:
            1.1rem !important;
    }

    .bottom-nav-primary {
        width:
            auto !important;

        height:
            auto !important;

        min-width:
            0 !important;

        min-height:
            54px !important;

        margin:
            0 !important;

        transform:
            none !important;

        border-radius:
            16px !important;

        background:
            linear-gradient(
                145deg,
                #884dec,
                #7135d1
            ) !important;

        box-shadow:
            0 8px 20px
            rgba(111,52,204,.20) !important;
    }

    .bottom-nav-primary span:last-child {
        display:
            block !important;
    }


    /*
     * --------------------------------------------------------
     * FOOTER / PAGE END
     * --------------------------------------------------------
     */

    .site-footer {
        padding-bottom:
            calc(
                110px +
                env(safe-area-inset-bottom)
            ) !important;
    }

}


/* ============================================================
   EXTRA SMALL PHONES
   ============================================================ */

@media (max-width: 390px) {

    .shell {
        width:
            min(
                calc(100% - 26px),
                1200px
            );
    }

    .hero {
        padding-top:
            28px !important;
    }

    .hero h1 {
        font-size:
            clamp(
                2.7rem,
                14.2vw,
                4rem
            ) !important;
    }

    .hero-lead {
        font-size:
            1rem !important;
    }

    .hero-photo {
        aspect-ratio:
            1 / 1 !important;
    }

    .bottom-nav-item {
        font-size:
            .59rem !important;
    }

}


/* ============================================================
   LEARNINGAI — TTS HIGHLIGHT REMOVED
   ============================================================ */

.tts-word,
.tts-word.is-tts-speaking,
.reader-paper-recap .tts-word.is-tts-speaking,
strong .tts-word.is-tts-speaking {
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transition: none !important;
}



/* ============================================================
   LEARNINGAI — TOC-FIRST LESSON EXPERIENCE
   ============================================================ */

.toc-cover {
    display: none !important;
}


.toc-lesson-intro {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 24px;

    padding:
        25px 28px;

    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            #fff9e7,
            #f8f0ff
        );

    border:
        1px solid #e6daeb;
}


.toc-lesson-intro-meta {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 10px;

    order: 2;
}


.toc-lesson-intro h1 {
    margin:
        5px 0 5px;

    color: #30203e;

    font-size:
        clamp(2rem, 5vw, 3.35rem);

    line-height: 1.08;

    letter-spacing: -.025em;
}


.toc-lesson-intro p {
    margin: 0;

    color: #746779;

    font-size: 1rem;
}


.toc-section {
    margin-top: 0 !important;
}


.toc-item-locked {
    opacity: .55;

    cursor: not-allowed;

    background: #f8f6f9;
}


.toc-item-locked:hover {
    transform: none !important;

    border-color: #eee5f2 !important;

    background: #f8f6f9 !important;
}


.toc-item-completed {
    background:
        linear-gradient(
            90deg,
            #f4fbf7,
            #ffffff
        );
}


.toc-item-completed .toc-number {
    color: #24825f;
}


.toc-item-current {
    border-color: #b995dd;

    background:
        linear-gradient(
            90deg,
            #f7f0ff,
            #ffffff
        );

    box-shadow:
        0 8px 22px rgba(100,58,144,.06);
}


/* ============================================================
   MOBILE TOC
   ============================================================ */

@media (max-width: 760px) {

    .reader-toc {
        padding-top: 20px;
    }


    .toc-lesson-intro {
        display: grid;

        gap: 13px;

        padding:
            20px 18px;

        border-radius: 20px;
    }


    .toc-lesson-intro-meta {
        order: 0;
    }


    .toc-lesson-intro h1 {
        font-size:
            clamp(
                1.9rem,
                8vw,
                2.65rem
            );

        line-height: 1.1;
    }


    .toc-lesson-intro p {
        font-size: .9rem;

        line-height: 1.5;
    }

}


/* ============================================================
   LEARNINGAI — FINAL DESKTOP HEADER NAVIGATION
   ============================================================ */

@media (min-width: 901px) {

    .site-header {
        background: rgba(255,255,255,.97);
        border-bottom: 1px solid #eee5f2;
    }


    .site-header .header-inner {
        min-height: 74px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 35px;
    }


    .site-nav {
        display: flex !important;

        align-items: center;

        gap: 30px;

        margin-left: auto;
    }


    .site-nav a {
        position: relative;

        display: inline-flex;

        align-items: center;

        min-height: 42px;

        padding: 0;

        color: #55495d;

        font-size: .82rem;

        font-weight: 750;

        line-height: 1;

        text-decoration: none !important;

        white-space: nowrap;

        transition:
            color .18s ease;
    }


    .site-nav a:hover {
        color: #7139c6;
    }


    .site-nav a::after {
        content: "";

        position: absolute;

        left: 0;
        right: 0;
        bottom: 5px;

        height: 2px;

        border-radius: 999px;

        background: #8246e5;

        transform: scaleX(0);

        transform-origin: center;

        transition:
            transform .18s ease;
    }


    .site-nav a:hover::after {
        transform: scaleX(1);
    }


    /*
     * Keep logo properly proportioned on desktop.
     */

    .site-header img {
        max-width: 220px;
        height: auto;
    }

}


/* ============================================================
   TABLET / MOBILE HEADER
   ============================================================ */

@media (max-width: 900px) {

    /*
     * Main desktop navigation is deliberately hidden.
     * Mobile users have the bottom navigation.
     */

    .site-nav {
        display: none !important;
    }

}


/* ============================================================
   LEARNINGAI — HEADER ACCOUNT AVATAR
   ============================================================ */

.header-account {
    position: relative;

    flex: 0 0 auto;

    margin-left: 6px;
}


.header-account-button {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    padding: 0;

    border-radius: 50%;

    color: #5f4770;

    background: #f8f3fb;

    border: 1px solid #e2d6e8;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}


.header-account-button:hover {
    color: #713bc3;

    background: #f2e9fa;

    border-color: #cdb5e4;

    transform: translateY(-1px);
}


.header-account-icon {
    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.header-account-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 650;

    width: 235px;

    padding: 9px;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid #e5d9e9;

    box-shadow:
        0 20px 50px rgba(62,39,78,.16);
}


.header-account-menu[hidden] {
    display: none !important;
}


.header-account-user {
    padding:
        11px 12px 10px;

    border-bottom: 1px solid #eee6f1;

    margin-bottom: 6px;
}


.header-account-user small,
.header-account-user strong {
    display: block;
}


.header-account-user small {
    margin-bottom: 2px;

    color: #96889c;

    font-size: .66rem;

    text-transform: uppercase;

    letter-spacing: .07em;
}


.header-account-user strong {
    color: #3d2949;

    font-size: .86rem;
}


.header-account-menu a {
    display: block;

    padding:
        10px 12px;

    border-radius: 11px;

    color: #594665;

    font-size: .78rem;

    font-weight: 750;

    text-decoration: none !important;
}


.header-account-menu a:hover {
    color: #6f3eb0;

    background: #f8f3fb;
}


.header-account-menu .header-account-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8750ed,
            #7135d0
        );
}


.header-account-menu .header-account-primary:hover {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7a45e0,
            #6630c4
        );
}


/* ============================================================
   DESKTOP HEADER LAYOUT
   ============================================================ */

@media (min-width: 901px) {

    .site-header .header-inner {
        display: flex;
        align-items: center;
    }


    .site-nav {
        margin-left: auto;
    }


    .header-account {
        margin-left: 20px;
    }

}


/* ============================================================
   MOBILE
   Existing bottom Account nav handles account access
   ============================================================ */

@media (max-width: 900px) {

    .header-account {
        display: none !important;
    }

}


/* ============================================================
   LEARNINGAI — HEADER SETTINGS
   ============================================================ */

.header-settings {
    position: relative;

    flex: 0 0 auto;

    margin-left: 10px;
}


.header-settings-button {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    padding: 0;

    border-radius: 50%;

    color: #5f4770;

    background: #f8f3fb;

    border: 1px solid #e2d6e8;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}


.header-settings-button:hover {
    color: #713bc3;

    background: #f2e9fa;

    border-color: #cdb5e4;

    transform: translateY(-1px);
}


.header-settings-icon {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.55;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.header-settings-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 650;

    width: 285px;

    padding: 10px;

    border-radius: 19px;

    background: #ffffff;

    border: 1px solid #e4d8e9;

    box-shadow:
        0 20px 50px rgba(62,39,78,.16);
}


.header-settings-menu[hidden] {
    display: none !important;
}


.settings-menu-heading {
    padding:
        11px 12px;

    border-bottom:
        1px solid #eee6f1;
}


.settings-menu-heading small,
.settings-menu-heading strong {
    display: block;
}


.settings-menu-heading small {
    color: #95879c;

    font-size: .63rem;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.settings-menu-heading strong {
    margin-top: 2px;

    color: #392747;

    font-size: .92rem;
}


.settings-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding:
        12px;

    color: #5c4966;

    border-radius: 12px;
}


.settings-row > div {
    min-width: 0;
}


.settings-row span {
    display: block;

    font-size: .77rem;

    font-weight: 750;
}


.settings-row small {
    display: block;

    margin-top: 2px;

    color: #948799;

    font-size: .66rem;

    line-height: 1.4;
}


.settings-row > strong {
    flex: 0 0 auto;

    color: #74509d;

    font-size: .72rem;
}


.settings-install-row {
    margin-top: 5px;

    background: #f8f3fc;
}


.settings-installed-row {
    margin-top: 5px;

    background: #edf9f3;
}


.settings-installed-row > strong {
    color: #26835f;
}


.settings-install-button {
    flex: 0 0 auto;

    padding:
        8px 11px;

    border-radius: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8750ed,
            #7135d0
        );

    border: 0;

    font: inherit;

    font-size: .7rem;

    font-weight: 800;

    cursor: pointer;
}


.settings-ios-install {
    margin-top: 6px;

    padding:
        12px;

    border-radius: 12px;

    background: #fff8e4;

    border: 1px solid #f0e2bd;
}


.settings-ios-install strong {
    display: block;

    color: #604726;

    font-size: .75rem;
}


.settings-ios-install p {
    margin:
        5px 0 0;

    color: #79694f;

    font-size: .67rem;

    line-height: 1.5;
}


/* ============================================================
   DESKTOP ORDER
   Nav | Settings | Avatar
   ============================================================ */

@media (min-width: 901px) {

    .site-nav {
        margin-left: auto;
    }


    .header-settings {
        margin-left: 18px;
    }


    .header-account {
        margin-left: 8px;
    }

}


/* ============================================================
   MOBILE HEADER
   Keep gear visible, avatar handled by bottom Account
   ============================================================ */

@media (max-width: 900px) {

    .header-settings {
        display: block !important;

        margin-left: auto;
    }


    .header-settings-button {
        width: 40px;
        height: 40px;
    }


    .header-settings-menu {
        position: fixed;

        left: 14px;
        right: 14px;

        top: 82px;

        width: auto;
    }


    .header-account {
        display: none !important;
    }

}


/* ============================================================
   LEARNINGAI — CODE-GENERATED CHAPTER ILLUSTRATIONS
   ============================================================ */

.reader-chapter-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(250px, .8fr);

    gap: clamp(30px, 5vw, 58px);

    align-items: start;
}


.reader-chapter-illustration {
    grid-column: 2;
    grid-row: 1;

    position: sticky;

    top: 130px;
}


.reader-prose {
    grid-column: 1;
    grid-row: 1;

    margin-inline: 0;
}


.learning-illustration {
    width: 100%;

    margin: 0;

    padding: 18px;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,221,119,.22),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #faf5ff,
            #fffdf5
        );

    border:
        1px solid #e6d9ee;

    overflow: hidden;
}


.learning-illustration svg {
    display: block;

    width: 100%;
    height: auto;
}


/* ------------------------------------------------------------
   SVG THEME
   ------------------------------------------------------------ */

.learning-illustration .ill-chip {
    fill: #8047df;
}


.learning-illustration .ill-fill-soft {
    fill: #f4eaff;
}


.learning-illustration .ill-fill-secondary {
    fill: #eadcff;
}


.learning-illustration .ill-paper {
    fill: #ffffff;
}


.learning-illustration .ill-dark {
    fill: #382047;
}


.learning-illustration .ill-muted {
    fill: #ebe5ee;
}


.learning-illustration .ill-spark {
    fill: #ffca62;
}


.learning-illustration .ill-spark-secondary {
    fill: #ed75a7;
}


.learning-illustration .ill-green {
    fill: #65c89b;
}


.learning-illustration .ill-amber {
    fill: #f6bf59;
}


.learning-illustration .ill-red {
    fill: #ed7284;
}


.learning-illustration .ill-line {
    fill: none;

    stroke: #432b50;

    stroke-width: 5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.learning-illustration .ill-line-accent {
    fill: none;

    stroke: #8047df;

    stroke-width: 6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.learning-illustration .ill-line-small {
    fill: none;

    stroke: #6d5479;

    stroke-width: 4;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.learning-illustration .ill-line-paper {
    fill: none;

    stroke: #ffffff;

    stroke-width: 5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.learning-illustration .ill-light-ray {
    fill: none;

    stroke: #ffce66;

    stroke-width: 20;

    stroke-linecap: round;

    opacity: .38;
}


.learning-illustration .ill-dash {
    stroke-dasharray: 10 12;
}


.learning-illustration .ill-caption {
    fill: #654c72;

    font-size: 13px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-weight: 800;

    letter-spacing: .09em;
}


.learning-illustration .ill-mini {
    fill: #604a6b;

    font-size: 11px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-weight: 800;
}


.learning-illustration .ill-icon-text {
    fill: #382047;

    font-size: 18px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-weight: 850;
}


.learning-illustration .ill-paper-text {
    fill: #ffffff;

    font-size: 12px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-weight: 850;

    letter-spacing: .03em;
}


.learning-illustration .ill-dark-text {
    fill: #382047;

    font-size: 12px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-weight: 800;
}


/* ============================================================
   BIG READER WIDTH FOR TEXT + ILLUSTRATION
   ============================================================ */

@media (min-width: 1000px) {

    .reader-page .reader-width {
        width:
            min(
                calc(100% - 70px),
                1120px
            );
    }


    .reader-paper {
        padding:
            clamp(38px, 5vw, 64px);
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .reader-chapter-layout {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .reader-chapter-illustration {
        grid-column: 1;
        grid-row: 1;

        position: static;

        max-width: 520px;

        margin-inline: auto;
    }


    .reader-prose {
        grid-column: 1;
        grid-row: 2;

        max-width: 700px;

        margin-inline: auto;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .reader-paper-heading {
        margin-bottom: 20px;
    }


    .reader-chapter-layout {
        gap: 22px;
    }


    .learning-illustration {
        padding: 12px;

        border-radius: 21px;
    }


    .reader-chapter-illustration {
        width: 100%;
    }


    /*
     * Illustration first, then text.
     * This feels like a digital illustrated book.
     */

    .reader-prose {
        width: 100%;

        font-size: 1.06rem;

        line-height: 1.88;
    }

}


/* ============================================================
   LEARNINGAI — LESSON GLOSSARY
   ============================================================ */

.lesson-glossary {
    margin-top:
        clamp(42px, 7vw, 70px);

    padding-top:
        clamp(32px, 5vw, 48px);

    border-top:
        1px solid #e7dce9;
}


.lesson-glossary-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 24px;
}


.lesson-glossary-heading h2 {
    margin:
        5px 0 7px;

    color: #362345;

    font-size:
        clamp(1.8rem, 4vw, 2.6rem);

    line-height: 1.1;
}


.lesson-glossary-heading p {
    max-width: 590px;

    margin: 0;

    color: #776b7c;

    line-height: 1.6;
}


.lesson-glossary-all {
    flex: 0 0 auto;

    color: #7442ad;

    font-size: .8rem;

    font-weight: 800;

    text-decoration: none;
}


.lesson-glossary-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 10px;
}


.lesson-glossary-term {
    padding:
        18px 20px;

    border-radius: 18px;

    background: #faf6fd;

    border: 1px solid #e8deed;
}


.lesson-glossary-term h3 {
    margin:
        0 0 6px;

    color: #422d50;

    font-size: 1rem;
}


.lesson-glossary-term p {
    margin: 0;

    color: #776b7c;

    font-size: .86rem;

    line-height: 1.55;
}



/* ============================================================
   MASTER GLOSSARY
   ============================================================ */

.glossary-page {
    background: #fffaf4;
}


.glossary-width {
    width:
        min(
            calc(100% - 40px),
            1020px
        );

    margin-inline: auto;
}


.glossary-hero {
    padding:
        clamp(48px, 8vw, 82px)
        0
        34px;

    background:
        linear-gradient(
            145deg,
            #fff9e8,
            #f7eeff
        );

    border-bottom:
        1px solid #e9dfee;
}


.glossary-hero h1 {
    margin:
        7px 0 12px;

    color: #342141;

    font-size:
        clamp(3rem, 8vw, 5.5rem);

    line-height: .98;

    letter-spacing: -.04em;
}


.glossary-hero > .glossary-width > p {
    max-width: 680px;

    margin: 0;

    color: #746779;

    font-size: 1.05rem;

    line-height: 1.7;
}


.glossary-search-wrap {
    max-width: 620px;

    margin-top: 28px;
}


.glossary-search-label {
    display: block;

    margin-bottom: 7px;

    color: #564361;

    font-size: .76rem;

    font-weight: 800;
}


.glossary-search {
    width: 100%;

    min-height: 52px;

    padding:
        12px 16px;

    border-radius: 16px;

    color: #392747;

    background: #ffffff;

    border:
        1px solid #d8c8df;

    font: inherit;

    font-size: 1rem;
}


.glossary-search:focus {
    outline:
        3px solid rgba(126,72,207,.16);

    border-color:
        #9d74c7;
}


.glossary-alphabet {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 22px;
}


.glossary-alphabet a {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #6c4a84;

    background: rgba(255,255,255,.7);

    border:
        1px solid #e4d6e8;

    font-size: .7rem;

    font-weight: 850;

    text-decoration: none;
}


.glossary-main {
    padding:
        34px 0 110px;
}


.glossary-letter {
    margin:
        42px 0 12px;

    color: #8350b3;

    font-size: 1.05rem;

    font-weight: 900;

    letter-spacing: .08em;
}


.master-glossary-term {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        290px;

    gap:
        clamp(24px, 5vw, 55px);

    margin-bottom: 11px;

    padding:
        clamp(23px, 4vw, 34px);

    border-radius: 23px;

    background: #ffffff;

    border:
        1px solid #e8deeb;
}


.master-glossary-term h2 {
    margin:
        0 0 8px;

    color: #3a2746;

    font-size:
        clamp(1.4rem, 3vw, 1.9rem);
}


.glossary-short-definition {
    margin:
        0 0 11px;

    color: #51415b;

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.55;
}


.glossary-full-definition {
    margin:
        0;

    color: #796d7d;

    line-height: 1.65;
}


.glossary-example {
    margin-top: 17px;

    padding:
        14px 16px;

    border-radius: 14px;

    background: #fff9e9;
}


.glossary-example strong {
    color: #7b5c27;

    font-size: .7rem;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.glossary-example p {
    margin:
        4px 0 0;

    color: #695d4b;

    font-size: .86rem;

    line-height: 1.55;
}


.glossary-found {
    min-width: 0;
}


.glossary-found-label {
    display: block;

    margin-bottom: 9px;

    color: #8a7890;

    font-size: .67rem;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .07em;
}


.glossary-location-list {
    display: grid;

    gap: 7px;
}


.glossary-location {
    display: block;

    padding:
        11px 12px;

    border-radius: 13px;

    color: inherit;

    background: #faf6fd;

    border:
        1px solid #e6daea;

    text-decoration: none;
}


.glossary-location:hover {
    background: #f5ecfb;

    border-color: #cdb5dd;
}


.glossary-location span,
.glossary-location strong,
.glossary-location small,
.glossary-location em {
    display: block;
}


.glossary-location span {
    color: #8456a4;

    font-size: .65rem;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.glossary-location strong {
    margin-top: 2px;

    color: #473451;

    font-size: .77rem;

    line-height: 1.35;
}


.glossary-location small {
    margin-top: 3px;

    color: #817386;

    font-size: .68rem;

    line-height: 1.4;
}


.glossary-location em {
    width: fit-content;

    margin-top: 6px;

    padding:
        3px 7px;

    border-radius: 999px;

    color: #28745a;

    background: #eaf8f1;

    font-size: .59rem;

    font-style: normal;

    font-weight: 800;
}


.glossary-location-empty {
    color: #8d808f;

    font-size: .78rem;
}


.glossary-no-results {
    padding: 40px;

    border-radius: 22px;

    background: #ffffff;

    border:
        1px solid #e8deeb;

    color: #756779;

    text-align: center;
}



/* ============================================================
   SETTINGS GLOSSARY LINK
   ============================================================ */

.settings-glossary-link {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap:
        2px 12px;

    margin-top: 5px;

    padding:
        12px;

    border-radius: 12px;

    color: inherit;

    background: #faf6fd;

    text-decoration: none !important;
}


.settings-glossary-link span {
    color: #584162;

    font-size: .77rem;

    font-weight: 800;
}


.settings-glossary-link small {
    grid-column: 1;

    color: #95889a;

    font-size: .65rem;

    line-height: 1.4;
}


.settings-glossary-link strong {
    grid-column: 2;

    grid-row:
        1 / span 2;

    align-self: center;

    color: #7948aa;
}



/* ============================================================
   MOBILE GLOSSARY
   ============================================================ */

@media (max-width: 760px) {

    .lesson-glossary-heading {
        display: grid;

        gap: 12px;
    }


    .lesson-glossary-grid {
        grid-template-columns: 1fr;
    }


    .glossary-width {
        width:
            min(
                calc(100% - 28px),
                1020px
            );
    }


    .glossary-hero {
        padding:
            34px 0 25px;
    }


    .glossary-hero h1 {
        font-size:
            clamp(
                2.7rem,
                13vw,
                4.2rem
            );
    }


    .glossary-alphabet {
        gap: 4px;
    }


    .glossary-alphabet a {
        width: 29px;
        height: 29px;
    }


    .master-glossary-term {
        grid-template-columns: 1fr;

        gap: 22px;

        padding: 21px 18px;
    }


    .glossary-found {
        padding-top: 18px;

        border-top:
            1px solid #eee5f0;
    }

}


/* ============================================================
   LEARNINGAI — FINAL FIXED HEADER
   ============================================================ */

:root {
    --learningai-header-height: 74px;
}


.site-header {
    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000 !important;

    width: 100%;

    background:
        rgba(255,255,255,.97) !important;

    border-bottom:
        1px solid #eee5f2;

    box-shadow:
        0 4px 20px rgba(55,35,70,.05);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


/*
 * Prevent fixed header covering normal pages.
 */

body {
    padding-top:
        var(--learningai-header-height);
}


/*
 * Anchored sections should stop below fixed header.
 */

#why-learningai,
#how-it-works,
#lessons,
.glossary-page [id] {
    scroll-margin-top:
        calc(
            var(--learningai-header-height)
            + 18px
        );
}


/*
 * The lesson reader has its own secondary navigation.
 */

.lesson-book-page .reader-toolbar,
.lesson-book-page .lesson-reader-header,
.lesson-book-page .reader-topbar {
    top:
        var(--learningai-header-height);
}


/* ============================================================
   GLOSSARY — ONE LETTER PER PAGE
   ============================================================ */

.glossary-alphabet {
    display: grid !important;

    grid-template-columns:
        repeat(13, minmax(0, 1fr));

    gap: 6px;

    width: 100%;

    margin-top: 25px;
}


.glossary-alphabet a,
.glossary-alphabet span {
    width: auto !important;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: .72rem;

    font-weight: 850;

    text-decoration: none;
}


.glossary-alphabet a {
    color: #6e4b88;

    background: rgba(255,255,255,.75);

    border:
        1px solid #ded0e5;
}


.glossary-alphabet a:hover {
    color: #ffffff;

    background: #8350d7;

    border-color: #8350d7;
}


.glossary-alphabet a.is-active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8750ed,
            #7135d0
        );

    border-color:
        #7135d0;

    box-shadow:
        0 7px 18px rgba(112,54,198,.18);
}


.glossary-alphabet span.is-empty {
    color: #c5bbc8;

    background: rgba(255,255,255,.35);

    border:
        1px solid rgba(220,211,224,.55);

    cursor: default;
}


.glossary-current-letter {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 22px;
}


.glossary-current-letter > span {
    color: #807285;

    font-size: .72rem;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.glossary-current-letter > strong {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: #ffffff;

    background: #7d49cf;

    font-size: 1.25rem;
}


.glossary-current-letter > small {
    color: #8a7d8e;

    font-size: .74rem;
}


.glossary-page-letter {
    margin-bottom: 20px;

    color: #e8dcf2;

    font-size:
        clamp(5rem, 13vw, 9rem);

    font-weight: 900;

    line-height: .8;

    letter-spacing: -.05em;

    user-select: none;
}


.glossary-term-list {
    display: grid;

    gap: 11px;
}


/*
 * Previously every master term already had margin-bottom.
 * The grid now owns spacing.
 */

.glossary-term-list
.master-glossary-term {
    margin-bottom: 0;
}


/* ============================================================
   PREVIOUS / NEXT LETTER
   ============================================================ */

.glossary-page-navigation {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 20px;

    margin-top: 40px;

    padding-top: 24px;

    border-top:
        1px solid #e8deeb;
}


.glossary-page-navigation > div:last-child {
    text-align: right;
}


.glossary-page-nav-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 54px;

    min-height: 43px;

    padding:
        9px 14px;

    border-radius: 13px;

    color: #7044a0;

    background: #f7f0fb;

    border:
        1px solid #dfd0e7;

    font-size: .77rem;

    font-weight: 850;

    text-decoration: none;
}


.glossary-page-nav-button:hover {
    background: #efe2f8;
}


.glossary-page-top {
    color: #837488;

    font-size: .72rem;

    font-weight: 750;

    text-decoration: none;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    :root {
        --learningai-header-height: 72px;
    }


    .glossary-alphabet {
        grid-template-columns:
            repeat(9, minmax(0,1fr));
    }

}


/* ============================================================
   MOBILE / PWA FIXED HEADER
   ============================================================ */

@media (max-width: 760px) {

    :root {
        --learningai-header-height: 68px;
    }


    .site-header {
        min-height:
            var(--learningai-header-height);
    }


    body {
        padding-top:
            var(--learningai-header-height);
    }


    /*
     * Hero previously had mobile top spacing based on
     * a non-fixed header. Keep it comfortable.
     */

    .hero {
        padding-top:
            29px !important;
    }


    .glossary-hero {
        padding-top:
            30px;
    }


    .glossary-alphabet {
        grid-template-columns:
            repeat(7, minmax(0,1fr));

        gap: 5px;
    }


    .glossary-alphabet a,
    .glossary-alphabet span {
        height: 36px;

        border-radius: 9px;

        font-size: .7rem;
    }


    .glossary-current-letter {
        margin-top: 18px;
    }


    .glossary-current-letter > strong {
        width: 40px;
        height: 40px;
    }


    .glossary-search-wrap {
        margin-top: 20px;
    }


    .glossary-page-letter {
        margin-bottom: 18px;

        font-size:
            clamp(
                4rem,
                26vw,
                7rem
            );
    }


    .glossary-page-navigation {
        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }


    .glossary-page-top {
        grid-column:
            1 / -1;

        grid-row: 2;

        text-align: center;
    }


    .glossary-page-nav-button {
        width: 100%;
    }

}


/* ============================================================
   EXTRA SMALL PHONES
   ============================================================ */

@media (max-width: 390px) {

    .glossary-alphabet {
        grid-template-columns:
            repeat(6, minmax(0,1fr));
    }

}


/* ============================================================
   LEARNINGAI — ADVANCED TRACK
   ============================================================ */

.advanced-home-divider {
    grid-column:
        1 / -1;

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    align-items: center;

    gap: 35px;

    margin:
        28px 0 10px;

    padding:
        clamp(25px, 4vw, 38px);

    border-radius: 27px;

    background:
        linear-gradient(
            135deg,
            #382047,
            #633695
        );

    color: #ffffff;
}


.advanced-home-divider-copy > span {
    display: block;

    margin-bottom: 7px;

    color: #ffdc78;

    font-size: .67rem;

    font-weight: 900;

    letter-spacing: .1em;
}


.advanced-home-divider h3 {
    margin:
        0 0 8px;

    color: #ffffff;

    font-size:
        clamp(1.6rem, 3.5vw, 2.5rem);

    line-height: 1.1;
}


.advanced-home-divider p {
    max-width: 610px;

    margin: 0;

    color: rgba(255,255,255,.78);

    line-height: 1.6;
}


.advanced-home-divider-price {
    min-width: 160px;

    display: grid;

    text-align: right;
}


.advanced-home-divider-price strong {
    color: #ffffff;

    font-size: 1.5rem;
}


.advanced-home-divider-price span {
    color: rgba(255,255,255,.66);

    font-size: .7rem;
}


.advanced-home-divider-price small {
    margin: 5px 0;

    color: #d8c5eb;

    font-size: .62rem;
}


.advanced-home-divider-price a {
    margin-top: 10px;

    color: #ffdc78;

    font-size: .73rem;

    font-weight: 850;

    text-decoration: none;
}


.lesson-card-advanced {
    border-color:
        #d5c0e5 !important;

    background:
        linear-gradient(
            145deg,
            #fffdfd,
            #fbf6ff
        ) !important;
}


.advanced-card-price {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    padding:
        4px 8px;

    border-radius: 999px;

    color: #70409d;

    background: #f1e6fa;

    border:
        1px solid #ddc9eb;

    font-size: .59rem;

    font-weight: 900;

    letter-spacing: .03em;
}



/* ============================================================
   ADVANCED PAGE
   ============================================================ */

.advanced-page {
    background: #fffaf4;
}


.advanced-width {
    width:
        min(
            calc(100% - 40px),
            1050px
        );

    margin-inline: auto;
}


.advanced-hero {
    padding:
        clamp(55px, 8vw, 90px)
        0
        46px;

    background:
        linear-gradient(
            145deg,
            #fff7df,
            #f2e8ff
        );

    border-bottom:
        1px solid #e5d8e8;
}


.advanced-hero h1 {
    margin:
        7px 0 14px;

    color: #342141;

    font-size:
        clamp(3rem, 8vw, 5.7rem);

    line-height: .98;

    letter-spacing: -.045em;
}


.advanced-hero > .advanced-width > p {
    max-width: 740px;

    margin: 0;

    color: #716476;

    font-size: 1.08rem;

    line-height: 1.7;
}


.advanced-price-summary {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;
}


.advanced-price-summary > div {
    min-width: 180px;

    padding:
        15px 18px;

    border-radius: 18px;

    background: rgba(255,255,255,.72);

    border:
        1px solid #dfd2e5;
}


.advanced-price-summary small,
.advanced-price-summary strong,
.advanced-price-summary span {
    display: block;
}


.advanced-price-summary small {
    color: #817386;

    font-size: .65rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.advanced-price-summary strong {
    margin-top: 2px;

    color: #462b58;

    font-size: 1.7rem;
}


.advanced-price-summary span {
    color: #8b7e8e;

    font-size: .67rem;
}


.advanced-price-summary
.advanced-best-value {
    background: #382047;

    border-color: #382047;
}


.advanced-price-summary
.advanced-best-value small {
    color: #ffdb75;
}


.advanced-price-summary
.advanced-best-value strong {
    color: #ffffff;
}


.advanced-price-summary
.advanced-best-value span {
    color: #d9cee0;
}


.advanced-content {
    padding:
        42px 0 115px;
}


.advanced-pack-card {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        280px;

    gap:
        clamp(30px, 5vw, 60px);

    padding:
        clamp(28px, 5vw, 45px);

    border-radius: 28px;

    background: #ffffff;

    border:
        1px solid #e6daea;
}


.advanced-pack-badge,
.advanced-label {
    display: inline-flex;

    width: fit-content;

    padding:
        5px 9px;

    border-radius: 999px;

    color: #7745a8;

    background: #f1e7f8;

    font-size: .61rem;

    font-weight: 900;

    letter-spacing: .08em;
}


.advanced-pack-card h2 {
    margin:
        11px 0 8px;

    color: #392647;

    font-size:
        clamp(2rem, 4vw, 3rem);
}


.advanced-pack-card p {
    color: #786c7c;

    line-height: 1.65;
}


.advanced-pack-card ul {
    margin:
        20px 0 0;

    padding-left: 21px;

    color: #5e5064;

    line-height: 1.9;
}


.advanced-pack-price {
    align-self: center;

    padding:
        25px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #392047,
            #633695
        );

    text-align: center;
}


.advanced-pack-price > small,
.advanced-pack-price > strong,
.advanced-pack-price > span {
    display: block;
}


.advanced-pack-price > small {
    color: #dbcce5;

    font-size: .67rem;
}


.advanced-pack-price > strong {
    margin-top: 3px;

    color: #ffffff;

    font-size: 3rem;
}


.advanced-pack-price > span {
    margin-bottom: 17px;

    color: #d6c9de;

    font-size: .7rem;
}


.advanced-pack-price .button {
    width: 100%;
}


.advanced-checkout-disabled {
    opacity: .9;
}


.advanced-checkout-note {
    margin-top: 10px;

    color: #cdbed6 !important;

    font-size: .61rem !important;

    line-height: 1.4;
}


.advanced-divider {
    display: flex;

    align-items: center;

    gap: 16px;

    margin:
        40px 0 21px;

    color: #887a8b;

    font-size: .7rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.advanced-divider::before,
.advanced-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e6dce8;
}


.advanced-lesson-list {
    display: grid;

    gap: 10px;
}


.advanced-lesson-card {
    display: grid;

    grid-template-columns:
        70px
        minmax(0,1fr)
        120px;

    align-items: center;

    gap: 22px;

    padding:
        21px 23px;

    border-radius: 21px;

    background: #ffffff;

    border:
        1px solid #e8deeb;
}


.advanced-lesson-card.is-requested {
    border-color: #aa83c9;

    box-shadow:
        0 10px 30px
        rgba(90,54,119,.07);
}


.advanced-lesson-number span,
.advanced-lesson-number strong {
    display: block;
}


.advanced-lesson-number span {
    color: #9a8d9f;

    font-size: .6rem;

    font-weight: 850;

    text-transform: uppercase;
}


.advanced-lesson-number strong {
    color: #7947a8;

    font-size: 2rem;
}


.advanced-lesson-copy h2 {
    margin:
        6px 0 4px;

    color: #412e4c;

    font-size: 1.2rem;
}


.advanced-lesson-copy p {
    margin: 0;

    color: #827486;

    font-size: .83rem;

    line-height: 1.5;
}


.advanced-lesson-price {
    text-align: right;
}


.advanced-lesson-price > strong,
.advanced-lesson-price > small {
    display: block;
}


.advanced-lesson-price > strong {
    color: #533767;

    font-size: 1.22rem;
}


.advanced-lesson-price > small {
    color: #9a8c9f;

    font-size: .61rem;
}


.advanced-small-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 8px;

    padding:
        8px 11px;

    border-radius: 10px;

    color: #ffffff;

    background: #7c46c8;

    border: 0;

    font: inherit;

    font-size: .65rem;

    font-weight: 800;

    text-decoration: none;
}


button.advanced-small-button:disabled {
    opacity: .75;
}


.advanced-retired-note {
    display: flex;

    align-items: center;

    gap: 19px;

    margin-top: 30px;

    padding:
        20px 23px;

    border-radius: 20px;

    background: #eef9f3;

    border:
        1px solid #cde7d8;
}


.advanced-retired-icon {
    flex: 0 0 auto;

    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 17px;

    color: #267558;

    background: #ffffff;

    font-weight: 900;
}


.advanced-retired-note strong {
    color: #315f4e;
}


.advanced-retired-note p {
    margin:
        3px 0 0;

    color: #5f776d;

    font-size: .82rem;

    line-height: 1.5;
}



/* ============================================================
   MOBILE ADVANCED
   ============================================================ */

@media (max-width: 760px) {

    .advanced-home-divider {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 24px 20px;
    }


    .advanced-home-divider-price {
        text-align: left;
    }


    .advanced-width {
        width:
            min(
                calc(100% - 28px),
                1050px
            );
    }


    .advanced-hero {
        padding:
            38px 0 31px;
    }


    .advanced-pack-card {
        grid-template-columns: 1fr;

        padding: 22px 19px;
    }


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

        gap: 14px;

        padding: 18px 15px;
    }


    .advanced-lesson-price {
        grid-column:
            2;

        text-align: left;
    }


    .advanced-retired-note {
        align-items: flex-start;
    }

}


/* ============================================================
   MASTER GLOSSARY — LESSON-ONLY LOCATIONS
   ============================================================ */

.glossary-lesson-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.glossary-lesson-tag {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding:
        7px 10px;

    border-radius: 10px;

    color: #70469a;

    background: #f5edf9;

    border:
        1px solid #ddcee5;

    font-size: .7rem;

    font-weight: 800;

    text-decoration: none;
}


.glossary-lesson-tag:hover {
    color: #ffffff;

    background: #7d49ca;

    border-color: #7d49ca;
}



/* ============================================================
   LEARNINGAI — FINAL MOBILE / PWA BOTTOM NAV
   Native-style, flush to bottom
   ============================================================ */

@media (max-width: 760px) {

    /*
     * Leave room for fixed nav.
     */

    body:not(.lesson-book-page) {
        padding-bottom:
            calc(
                96px +
                env(safe-area-inset-bottom)
            ) !important;
    }


    /*
     * Full-width native-style bottom bar.
     */

    .mobile-bottom-nav {
        position: fixed !important;

        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        z-index: 1200 !important;

        width: 100% !important;

        min-height:
            calc(
                72px +
                env(safe-area-inset-bottom)
            ) !important;

        display: grid !important;

        grid-template-columns:
            repeat(5, minmax(0,1fr)) !important;

        align-items: start !important;

        gap: 0 !important;

        margin: 0 !important;

        padding:
            8px
            12px
            calc(
                8px +
                env(safe-area-inset-bottom)
            ) !important;

        border-radius:
            0 !important;

        background:
            rgba(255,255,255,.985) !important;

        border:
            0 !important;

        border-top:
            1px solid #d8c9df !important;

        box-shadow:
            0 -10px 30px
            rgba(54,31,70,.14) !important;

        backdrop-filter:
            blur(18px);

        -webkit-backdrop-filter:
            blur(18px);
    }


    /*
     * Add subtle top accent so the nav visually separates
     * from cards/content underneath.
     */

    .mobile-bottom-nav::before {
        content: "";

        position: absolute;

        top: 0;
        left: 50%;

        width: 76px;
        height: 3px;

        border-radius:
            0 0 999px 999px;

        background:
            linear-gradient(
                90deg,
                #ffcb68,
                #8b4df0,
                #e56fa6
            );

        transform:
            translateX(-50%);
    }


    /*
     * Standard tab items.
     */

    .bottom-nav-item {
        min-width: 0 !important;

        min-height: 55px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        flex-direction: column !important;

        gap: 3px !important;

        margin: 0 !important;

        padding:
            5px 2px !important;

        border-radius:
            14px !important;

        color:
            #706477 !important;

        background:
            transparent !important;

        font-size:
            .68rem !important;

        font-weight:
            750 !important;

        line-height:
            1.1 !important;

        text-decoration:
            none !important;

        transition:
            color .18s ease,
            background .18s ease;
    }


    .bottom-nav-item > span:first-child {
        display: grid;

        place-items: center;

        min-height: 24px;

        color:
            #65576d !important;

        font-size:
            1.28rem !important;

        line-height:
            1 !important;
    }


    .bottom-nav-item > span:last-child {
        color:
            inherit !important;
    }


    .bottom-nav-item:active {
        background:
            #f5eef9 !important;
    }


    /*
     * Main Learn tab.
     *
     * Keep it visually dominant, but inside the bottom bar
     * rather than floating above it.
     */

    .bottom-nav-primary {
        position: relative !important;

        width: auto !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 56px !important;

        margin:
            -2px 5px 0 !important;

        padding:
            6px 4px !important;

        color:
            #ffffff !important;

        background:
            linear-gradient(
                145deg,
                #904ef0,
                #7135d0
            ) !important;

        border-radius:
            18px !important;

        transform:
            none !important;

        box-shadow:
            0 7px 18px
            rgba(111,53,207,.27) !important;
    }


    .bottom-nav-primary > span:first-child,
    .bottom-nav-primary > span:last-child {
        color:
            #ffffff !important;
    }


    .bottom-nav-primary > span:first-child {
        font-size:
            1.3rem !important;
    }


    .bottom-nav-primary > span:last-child {
        display:
            block !important;

        font-weight:
            850 !important;
    }


    /*
     * Make non-primary tabs feel more substantial.
     */

    .bottom-nav-item:not(.bottom-nav-primary):hover,
    .bottom-nav-item:not(.bottom-nav-primary):focus-visible {
        color:
            #6e39a5 !important;

        background:
            #f7f1fa !important;
    }


    /*
     * Page footer must not disappear underneath nav.
     */

    .site-footer {
        padding-bottom:
            calc(
                92px +
                env(safe-area-inset-bottom)
            ) !important;
    }

}


/* ============================================================
   STANDALONE PWA
   Slightly more compact when installed.
   ============================================================ */

@media (
    display-mode: standalone
) and (
    max-width: 760px
) {

    .mobile-bottom-nav {
        padding-bottom:
            calc(
                6px +
                env(safe-area-inset-bottom)
            ) !important;
    }

}


/* ============================================================
   LEARNINGAI — LANGUAGE SWITCH
   ============================================================ */

.header-language-switch {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    margin-left: 18px;

    padding: 3px;

    border-radius: 999px;

    background: #f5eff8;

    border:
        1px solid #e0d4e5;
}


.header-language-switch a {
    min-width: 35px;
    height: 31px;

    display: grid;
    place-items: center;

    padding:
        0 8px;

    border-radius: 999px;

    color: #78647e;

    font-size: .67rem;

    font-weight: 900;

    text-decoration: none !important;

    transition:
        background .18s ease,
        color .18s ease;
}


.header-language-switch a:hover {
    color: #65369d;

    background: #ece1f4;
}


.header-language-switch a.is-active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8750ed,
            #7135d0
        );
}


@media (max-width: 900px) {

    .header-language-switch {
        margin-left: auto;
        margin-right: 8px;
    }


    .header-language-switch a {
        min-width: 32px;
        height: 29px;

        font-size: .63rem;
    }


    .header-settings {
        margin-left: 0 !important;
    }

}


/* ============================================================
   SETTINGS — PRIVACY + TERMS
   ============================================================ */

.settings-legal-links {
    display: grid;

    gap: 4px;

    margin-top: 7px;

    padding-top: 7px;

    border-top:
        1px solid #eee6f1;
}


.settings-legal-links a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding:
        10px 12px;

    border-radius: 11px;

    color: #5d4968;

    font-size: .75rem;

    font-weight: 750;

    text-decoration: none !important;
}


.settings-legal-links a:hover {
    color: #6e3ca5;

    background: #f7f1fa;
}


.settings-legal-links strong {
    color: #8250ac;

    font-size: .8rem;
}


/* ============================================================
   INSTALLED PWA — NO FOOTER
   ============================================================ */

@media (display-mode: standalone) {

    .site-footer {
        display: none !important;
    }

}


/*
 * Safari/iOS installed-mode fallback.
 */

html.is-standalone .site-footer,
body.is-standalone .site-footer {
    display: none !important;
}



/* ============================================================
   LEARNINGAI — FINAL HOMEPAGE HERO AUTHORITY
   Keep this at END of stylesheet.
   ============================================================ */


/* ------------------------------------------------------------
   DESKTOP / DEFAULT
   ------------------------------------------------------------ */

.landing-page .hero {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    min-height: auto !important;

    margin: 0 !important;

    padding:
        clamp(58px, 7vw, 94px)
        0
        clamp(60px, 7vw, 92px) !important;

    overflow: hidden !important;

    visibility: visible !important;

    opacity: 1 !important;

    background:
        linear-gradient(
            135deg,
            #fff7dc 0%,
            #fffaf5 48%,
            #f4e9ff 100%
        ) !important;
}


.landing-page .hero-grid {
    position: relative !important;

    z-index: 2 !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(400px, .98fr) !important;

    align-items: center !important;

    gap:
        clamp(42px, 6vw, 82px) !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;
}


.landing-page .hero-copy {
    position: relative !important;

    z-index: 5 !important;

    display: block !important;

    width: 100% !important;

    max-width: 650px !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;

    filter: none !important;
}


.landing-page .hero-copy > * {
    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;
}


.landing-page .hero-pill {
    display: inline-flex !important;

    align-items: center !important;

    width: fit-content !important;

    margin:
        0
        0
        22px !important;

    padding:
        9px
        14px !important;

    border-radius: 999px !important;

    color: #69487b !important;

    background: #f2e9fb !important;

    border:
        1px solid #ddcbed !important;

    font-weight: 800 !important;

    line-height: 1.2 !important;
}


.landing-page .hero h1 {
    display: block !important;

    max-width: 680px !important;

    margin:
        0
        0
        22px !important;

    color: #34213f !important;

    font-size:
        clamp(
            3.5rem,
            5.8vw,
            6.1rem
        ) !important;

    font-weight: 900 !important;

    line-height: .96 !important;

    letter-spacing: -.05em !important;

    visibility: visible !important;

    opacity: 1 !important;
}


.landing-page .hero h1 span {
    display: inline !important;

    color: #8147db !important;
}


.landing-page .hero-lead {
    display: block !important;

    max-width: 620px !important;

    margin:
        0
        0
        27px !important;

    color: #6f6474 !important;

    font-size:
        clamp(
            1.04rem,
            1.6vw,
            1.2rem
        ) !important;

    line-height: 1.7 !important;

    visibility: visible !important;

    opacity: 1 !important;
}


.landing-page .hero-actions {
    display: flex !important;

    flex-wrap: wrap !important;

    align-items: center !important;

    gap: 12px !important;

    width: 100% !important;

    margin:
        0
        0
        22px !important;

    visibility: visible !important;

    opacity: 1 !important;
}


.landing-page .hero-actions .button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: auto !important;

    min-height: 54px !important;

    padding:
        14px
        24px !important;

    visibility: visible !important;

    opacity: 1 !important;
}


.landing-page .hero-note {
    display: flex !important;

    align-items: center !important;

    gap: 9px !important;

    margin: 0 !important;

    color: #716677 !important;

    font-size: .94rem !important;

    line-height: 1.5 !important;

    visibility: visible !important;

    opacity: 1 !important;
}


.landing-page .hero-note > span {
    color: #2aa678 !important;

    font-weight: 900 !important;
}


/* ------------------------------------------------------------
   HERO VISUAL
   ------------------------------------------------------------ */

.landing-page .hero-visual {
    position: relative !important;

    z-index: 4 !important;

    display: block !important;

    width: 100% !important;

    max-width: 600px !important;

    margin-left: auto !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;

    filter: none !important;
}


.landing-page .hero-photo-wrap {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    visibility: visible !important;

    opacity: 1 !important;
}


.landing-page .hero-photo {
    display: block !important;

    width: 100% !important;

    height: auto !important;

    aspect-ratio:
        1.05 / 1 !important;

    object-fit: cover !important;

    border-radius:
        34px !important;

    visibility: visible !important;

    opacity: 1 !important;

    box-shadow:
        0 24px 60px
        rgba(69,43,83,.12) !important;
}


.landing-page .hero-photo-badge {
    display: flex !important;

    align-items: center !important;

    gap: 12px !important;

    position: absolute !important;

    z-index: 6 !important;

    min-width: 220px !important;

    padding:
        14px
        18px !important;

    border-radius:
        20px !important;

    background:
        rgba(255,255,255,.96) !important;

    border:
        1px solid rgba(220,207,226,.9) !important;

    box-shadow:
        0 13px 30px
        rgba(60,38,72,.12) !important;

    visibility: visible !important;

    opacity: 1 !important;

    transform: none !important;
}


.landing-page .hero-photo-badge-one {
    left:
        -28px !important;

    bottom:
        84px !important;
}


.landing-page .hero-photo-badge-two {
    right:
        -18px !important;

    bottom:
        18px !important;
}


.landing-page .hero-photo-badge strong,
.landing-page .hero-photo-badge small {
    display: block !important;
}


.landing-page .hero-photo-badge strong {
    color: #3d2948 !important;

    font-size: .92rem !important;
}


.landing-page .hero-photo-badge small {
    margin-top: 2px !important;

    color: #807484 !important;

    font-size: .72rem !important;
}


/* ------------------------------------------------------------
   DECORATIVE BACKGROUND
   MUST NEVER COVER THE HERO CONTENT
   ------------------------------------------------------------ */

.landing-page .hero-sun {
    position: absolute !important;

    z-index: 0 !important;

    pointer-events: none !important;

    opacity: .28 !important;
}


.landing-page .hero::before,
.landing-page .hero::after {
    pointer-events: none !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

    .landing-page .hero-grid {
        grid-template-columns:
            minmax(0,1fr)
            minmax(330px,.85fr) !important;

        gap: 38px !important;
    }


    .landing-page .hero h1 {
        font-size:
            clamp(
                3rem,
                6vw,
                4.7rem
            ) !important;
    }


    .landing-page .hero-photo-badge-one {
        left:
            -10px !important;
    }


    .landing-page .hero-photo-badge-two {
        right:
            -8px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .landing-page .hero {
        min-height: 0 !important;

        padding:
            29px
            0
            42px !important;
    }


    .landing-page .hero-grid {
        display: flex !important;

        flex-direction: column !important;

        grid-template-columns:
            none !important;

        align-items: stretch !important;

        gap:
            30px !important;
    }


    .landing-page .hero-copy {
        order: 1 !important;

        max-width: none !important;

        text-align: left !important;
    }


    .landing-page .hero-visual {
        order: 2 !important;

        max-width: none !important;

        margin: 0 !important;
    }


    .landing-page .hero h1 {
        max-width: none !important;

        margin-bottom:
            18px !important;

        font-size:
            clamp(
                2.75rem,
                13.5vw,
                4rem
            ) !important;

        line-height:
            .98 !important;
    }


    .landing-page .hero-lead {
        max-width: none !important;

        margin-bottom:
            22px !important;

        font-size:
            1rem !important;

        line-height:
            1.62 !important;
    }


    .landing-page .hero-actions {
        display: grid !important;

        grid-template-columns:
            1fr !important;

        gap:
            10px !important;

        margin-bottom:
            19px !important;
    }


    .landing-page .hero-actions .button {
        width:
            100% !important;

        min-height:
            56px !important;
    }


    .landing-page .hero-note {
        align-items:
            flex-start !important;

        font-size:
            .88rem !important;
    }


    .landing-page .hero-photo {
        width: 100% !important;

        aspect-ratio:
            1 / .75 !important;

        border-radius:
            27px !important;
    }


    /*
     * On mobile the badges become cards below the image
     * instead of floating over the photograph.
     */

    .landing-page .hero-photo-wrap {
        display: grid !important;

        grid-template-columns:
            1fr !important;

        gap:
            11px !important;
    }


    .landing-page .hero-photo-badge {
        position: static !important;

        width: 100% !important;

        min-width: 0 !important;

        padding:
            15px
            17px !important;

        border-radius:
            19px !important;

        transform:
            none !important;
    }


    .landing-page .hero-photo-badge-one,
    .landing-page .hero-photo-badge-two {
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }

}


/* ============================================================
   EMERGENCY VISIBILITY GUARANTEE
   ============================================================ */

.landing-page .hero,
.landing-page .hero-grid,
.landing-page .hero-copy,
.landing-page .hero-visual,
.landing-page .hero-photo-wrap,
.landing-page .hero-photo,
.landing-page .hero-actions,
.landing-page .hero-note {
    visibility:
        visible !important;

    opacity:
        1 !important;
}



/* ============================================================
   HERO FREE CALLOUT
   Independent from legacy .hero-photo-badge rules
   ============================================================ */

.landing-page .hero-free-callout {
    position: absolute !important;

    z-index: 8 !important;

    top: 48px !important;
    right: -20px !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 210px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    flex-direction: row !important;

    gap: 9px !important;

    margin: 0 !important;

    padding:
        11px
        14px !important;

    border-radius:
        16px !important;

    color: #322044 !important;

    background:
        rgba(255,255,255,.97) !important;

    border:
        1px solid rgba(78,47,105,.10) !important;

    box-shadow:
        0 12px 28px
        rgba(72,45,97,.13) !important;

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    overflow: visible !important;

    transform: none !important;

    opacity: 1 !important;

    visibility: visible !important;
}


.landing-page
.hero-free-callout > span {

    display: block !important;

    flex:
        0 0 auto !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;

    font-size:
        1rem !important;

    line-height:
        1 !important;
}


.landing-page
.hero-free-callout > div {

    display: block !important;

    flex:
        0 1 auto !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


.landing-page
.hero-free-callout strong {

    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #382443 !important;

    font-size:
        .82rem !important;

    font-weight:
        850 !important;

    line-height:
        1.18 !important;

    white-space:
        nowrap !important;
}


.landing-page
.hero-free-callout small {

    display: block !important;

    width: auto !important;
    height: auto !important;

    margin:
        3px 0 0 !important;

    padding: 0 !important;

    color:
        #796e7d !important;

    font-size:
        .64rem !important;

    font-weight:
        500 !important;

    line-height:
        1.25 !important;

    white-space:
        nowrap !important;
}


/*
 * French wording is slightly longer.
 */

html[lang="fr"]
.landing-page
.hero-free-callout {

    max-width:
        230px !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

    .landing-page
    .hero-free-callout {

        right:
            -8px !important;
    }

}


/* ============================================================
   MOBILE / PWA
   Make it a small card below image.
   ============================================================ */

@media (max-width: 760px) {

    .landing-page
    .hero-free-callout {

        position:
            static !important;

        top:
            auto !important;

        right:
            auto !important;

        bottom:
            auto !important;

        left:
            auto !important;

        width:
            100% !important;

        max-width:
            none !important;

        min-width:
            0 !important;

        display:
            flex !important;

        margin:
            10px 0 0 !important;

        padding:
            14px 15px !important;

        border-radius:
            17px !important;

        box-shadow:
            0 9px 25px
            rgba(57,38,73,.07) !important;
    }


    .landing-page
    .hero-free-callout strong {

        font-size:
            .88rem !important;

        white-space:
            normal !important;
    }


    .landing-page
    .hero-free-callout small {

        font-size:
            .76rem !important;

        white-space:
            normal !important;
    }

}



/* ============================================================
   HOME PAID LESSON TRACK
   ============================================================ */

.home-paid-track {
    width:
        min(
            100%,
            980px
        );

    margin:
        55px auto 0;
}


.home-paid-track-heading {
    margin-bottom:
        22px;

    padding:
        28px 30px;

    border:
        1px solid
        rgba(124,58,237,.16);

    border-radius:
        25px;

    background:
        linear-gradient(
            135deg,
            rgba(124,58,237,.08),
            rgba(255,202,88,.10)
        );
}


.home-paid-track-heading h3 {
    margin:
        7px 0 8px;

    color:
        #332046;

    font-size:
        clamp(
            1.65rem,
            4vw,
            2.35rem
        );

    line-height:
        1.1;
}


.home-paid-track-heading p {
    max-width:
        680px;

    margin:
        0;

    color:
        #74677c;

    line-height:
        1.6;
}


.home-paid-lesson-list {
    display:
        grid;

    gap:
        13px;
}


.home-paid-lesson-card {
    min-height:
        118px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.78),
            rgba(248,243,252,.88)
        );

    border-color:
        rgba(125,86,157,.16);

    cursor:
        default;

    box-shadow:
        none;
}


.home-paid-lesson-card:hover {
    transform:
        none;

    border-color:
        rgba(125,86,157,.20);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.82),
            rgba(248,243,252,.92)
        );
}


.home-paid-lesson-card .lesson-number {
    color:
        #a391b1;
}


.home-paid-lesson-card .lesson-content h3 {
    color:
        #574763;
}


.home-paid-badge {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;

    padding:
        4px 9px;

    border-radius:
        999px;

    color:
        #7644a1;

    background:
        #f2e9f9;

    border:
        1px solid
        #dfcdea;

    font-size:
        .67rem;

    font-weight:
        900;

    letter-spacing:
        .06em;
}


.home-paid-lock {
    width:
        49px;

    height:
        49px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    color:
        #7c5797;

    background:
        #f3ecf7;

    border:
        1px solid
        #e3d5ea;

    font-size:
        1.05rem;
}


@media (max-width: 760px) {

    .home-paid-track {
        margin-top:
            38px;
    }


    .home-paid-track-heading {
        padding:
            23px 20px;
    }


    .home-paid-lesson-card {
        min-height:
            105px;
    }


    .home-paid-lock {
        width:
            42px;

        height:
            42px;
    }

}


/* ============================================================
   DOOKUN AI — SHARED HERO TITLE STANDARD
   Matches Prompt Builder / Words / AI Portal
   ============================================================ */

.landing-page .hero h1 {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif !important;

    font-weight: 800 !important;
    font-size: clamp(2rem, 3.6vw, 3.05rem) !important;
    line-height: .98 !important;
    letter-spacing: -.055em !important;
}

@media (max-width: 780px) {
    .landing-page .hero h1 {
        font-size: clamp(2rem, 9vw, 3.05rem) !important;
        line-height: .98 !important;
        letter-spacing: -.055em !important;
    }
}

/* ============================================================
   DOOKUN AI — CANONICAL FAMILY HEADER
   ============================================================ */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: rgba(255,250,246,.94) !important;
    border-bottom: 1px solid rgba(57,36,71,.08) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
}

.site-header .header-inner {
    min-height: 74px !important;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: initial !important;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}

.site-header .brand-logo {
    width: 132px !important;
    max-width: 132px !important;
    height: auto !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.site-header .brand-product {
    color: #271a3b;
    font-size: .95rem;
    font-weight: 800;
    white-space: nowrap;
}

.site-header .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.site-header .site-nav {
    display: flex;
    align-items: center;
}

.site-header .site-nav a {
    color: #352440;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 700;
}

.site-header .site-nav a:hover {
    color: #7c3aed;
}

.site-header .language-switch {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: 0;
    padding: .25rem .4rem;
    border: 1px solid rgba(78,48,96,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.68);
    box-shadow: none;
}

.site-header .language-switch button {
    min-width: 34px;
    min-height: 30px;
    padding: 0;
    opacity: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: initial;
    transform: none;
}

.site-header .language-switch button.is-active,
.site-header .language-switch button[aria-pressed="true"] {
    background: #f1e5ff;
}

@media (max-width:780px) {

    .site-header .header-inner {
        min-height: 66px !important;
        gap: .65rem;
        justify-content: initial !important;
    }

    .site-header .brand-logo {
        width: 105px !important;
        max-width: 105px !important;
    }

    .site-header .brand-product {
        font-size: .82rem;
    }

    .site-header .site-nav {
        display: none !important;
    }

    .site-header .header-actions {
        margin-left: auto;
    }
}

/* ============================================================
   DOOKUN AI — CANONICAL FAMILY FOOTER
   ============================================================ */

.site-footer .footer-inner {
    min-height: 160px;
    padding-block: 2rem;

    display: grid;
    grid-template-columns: minmax(280px,1fr) auto;

    align-items: start;

    gap: 3rem;
}

.footer-left {
    display: grid;
    gap: .8rem;
}

.site-footer .footer-brand strong {
    color: #271a3b;
    font-size: 1rem;
    font-weight: 800;
}

.site-footer .footer-brand p {
    max-width: 440px;
    margin: .35rem 0 0;

    color: #766a7b;

    font-size: .9rem;
    line-height: 1.5;
}

.dai-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: .4rem;

    color: #94899d;

    font-size: .82rem;
}

.dai-footer-legal a {
    color: #573276;
    font-weight: 700;
    text-decoration: none;
}

.dai-footer-copyright {
    color: #94899d;
    font-size: .8rem;
}

.dai-footer-products {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(120px,auto));

    gap: 2.5rem;
}

.dai-footer-group {
    display: grid;
    align-content: start;

    gap: .45rem;
}

.dai-footer-group strong {
    color: #7c3aed;

    font-size: .72rem;
    font-weight: 900;

    letter-spacing: .08em;

    text-transform: uppercase;
}

.dai-footer-group a {
    color: #573276;

    font-size: .9rem;
    font-weight: 700;

    text-decoration: none;
}

.dai-footer-group a:hover,
.dai-footer-legal a:hover {
    color: #7c3aed;
}

@media (max-width:780px) {

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }

    .dai-footer-products {
        grid-template-columns:
            repeat(3,1fr);

        gap: 1rem;
    }
}

@media (max-width:520px) {

    .dai-footer-products {
        grid-template-columns: 1fr;

        gap: 1.25rem;
    }
}

/* ============================================================
   DOOKUN AI — LEGAL MODALS
   ============================================================ */

html.dai-legal-open,
html.dai-legal-open body {
    overflow: hidden;
}

.dai-legal-modal[hidden] {
    display: none !important;
}

.dai-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: grid;
    place-items: center;

    padding: 24px;
}

.dai-legal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(38,25,50,.58);

    backdrop-filter: blur(5px);
}

.dai-legal-dialog {
    position: relative;
    z-index: 1;

    width: min(760px,100%);
    max-height: min(82vh,900px);

    overflow: hidden;

    border: 1px solid #e7dcf1;
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 30px 90px rgba(44,24,61,.24);
}

.dai-legal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid #e5daed;
    border-radius: 999px;

    background: #fff;

    color: #4c375d;

    font-size: 1.45rem;

    cursor: pointer;
}

.dai-legal-content {
    max-height: min(82vh,900px);

    overflow-y: auto;

    padding:
        34px
        54px
        46px;
}

.dai-legal-content h2 {
    margin:
        0
        48px
        1.1rem
        0;

    color: #271a3b;

    font-size: clamp(1.8rem,4vw,2.45rem);
    font-weight: 800;

    letter-spacing: -.045em;
}

.dai-legal-content h3 {
    margin: 1.6rem 0 .45rem;

    color: #352440;

    font-size: 1rem;
    font-weight: 800;
}

.dai-legal-content p {
    margin: 0 0 .95rem;

    color: #665b70;

    font-size: .94rem;
    line-height: 1.68;
}

.dai-legal-content a {
    color: #6d42d8;
    font-weight: 700;
}

@media (max-width:640px) {

    .dai-legal-modal {
        padding: 12px;
    }

    .dai-legal-dialog {
        max-height: 90vh;
    }

    .dai-legal-content {
        max-height: 90vh;

        padding:
            28px
            24px
            34px;
    }
}

/* ============================================================
   LEARNINGAI — SERVER LANGUAGE SWITCH
   ============================================================ */

.site-header .language-switch a[data-lang] {
    min-width: 34px;
    min-height: 30px;

    display: inline-grid;
    place-items: center;

    padding: 0;

    border: 0;
    border-radius: 999px;

    background: transparent;

    color: inherit;
    text-decoration: none;

    line-height: 1;
}

.site-header .language-switch a[data-lang].is-active {
    background: #f1e5ff;
}
