/* ========================================
   JURISENCE
   Global Design System
   ======================================== */

:root {

    /* Backgrounds */
    --ice-blue: #EAF5FF;
    --pale-blue: #DCEEFF;
    --blue-white: #F8FBFF;

    /* Primary */
    --electric-blue: #1677FF;

    /* Dark */
    --midnight-navy: #071A33;
    --rich-charcoal: #0B0F14;

    /* Grey */
    --slate: #475467;
    --cool-grey: #98A2B3;
    --mist-grey: #D0D5DD;
}


/* Basic reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--ice-blue);
    color: var(--rich-charcoal);

    font-family: "Source Serif 4", serif;

    line-height: 1.6;
}


/* Headings and interface */

h1,
h2,
h3,
h4,
nav,
button,
.logo {
    font-family: "Space Grotesk", sans-serif;
}


/* Remove default link styling */

a {
    text-decoration: none;
    color: inherit;
}


/* Images */

img {
    max-width: 100%;
    display: block;
}


/* Buttons */

button {
    cursor: pointer;
}
/* ========================================
   JURISENCE NAVIGATION
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(248, 251, 255, 0.88);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(208, 213, 221, 0.55);
}


.nav-container {
    width: min(1400px, 92%);

    min-height: 82px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 35px;
}


/* ========================================
   BRAND
   ======================================== */

.brand {
    flex-shrink: 0;

    display: flex;

    align-items: center;
}


.brand-name {
    font-family: "Space Grotesk", sans-serif;

    font-size: 24px;

    font-weight: 700;

    letter-spacing: -0.8px;

    color: var(--midnight-navy);

    transition: color 0.25s ease;
}


.brand:hover .brand-name {
    color: var(--electric-blue);
}


/* ========================================
   DESKTOP NAVIGATION
   ======================================== */

.main-nav {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    flex: 1;
}


.nav-link {
    position: relative;

    padding: 9px 11px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 13px;

    font-weight: 500;

    color: var(--slate);

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 11px;
    right: 11px;

    bottom: 2px;

    height: 2px;

    background: var(--electric-blue);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.25s ease;
}


.nav-link:hover {
    color: var(--midnight-navy);

    transform: translateY(-1px);
}


.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


.nav-link.active {
    color: var(--midnight-navy);
}


/* ========================================
   SEARCH BUTTON
   ======================================== */

.nav-search {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

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

    border: 1px solid var(--mist-grey);

    border-radius: 50%;

    background: var(--blue-white);

    color: var(--midnight-navy);

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


.nav-search:hover {
    background: var(--electric-blue);

    border-color: var(--electric-blue);

    color: white;

    transform: scale(1.05);
}


.search-icon {
    font-family: Arial, sans-serif;

    font-size: 23px;

    line-height: 1;

    transform: rotate(-20deg);
}


/* ========================================
   MOBILE MENU BUTTON
   ======================================== */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    margin-left: auto;

    border: 1px solid var(--mist-grey);

    border-radius: 10px;

    background: var(--blue-white);

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;
}


.mobile-menu-button span {
    width: 18px;
    height: 2px;

    background: var(--midnight-navy);

    border-radius: 2px;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1150px) {

    .nav-container {
        width: 94%;

        gap: 20px;
    }


    .main-nav {
        gap: 0;
    }


    .nav-link {
        padding-left: 7px;
        padding-right: 7px;

        font-size: 12px;
    }


    .nav-link::after {
        left: 7px;
        right: 7px;
    }

}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 900px) {

    .nav-container {
        min-height: 72px;
    }


    .main-nav {
        display: none;
    }


    .nav-search {
        margin-left: auto;
    }


    .mobile-menu-button {
        display: flex;
    }

}
/* ========================================
   JURISENCE HERO
   ======================================== */

.hero-section {

    position: relative;

    min-height: calc(100vh - 82px);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(22, 119, 255, 0.12),
            transparent 32%
        ),
        var(--ice-blue);
}


.hero-container {

    width: min(1400px, 92%);

    min-height: calc(100vh - 82px);

    margin: 0 auto;

    display: flex;

    align-items: center;

    padding: 70px 0;
}


/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {

    position: relative;

    z-index: 5;

    max-width: 760px;
}


.hero-eyebrow {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

    color: var(--electric-blue);

    font-family: "Space Grotesk", sans-serif;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 2px;
}


.eyebrow-line {

    width: 34px;

    height: 2px;

    background: var(--electric-blue);

    border-radius: 10px;
}


.hero-title {

    max-width: 800px;

    color: var(--midnight-navy);

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(54px, 6vw, 86px);

    font-weight: 700;

    line-height: 0.98;

    letter-spacing: -3px;
}


.hero-title span {

    display: block;

    margin-top: 10px;

    color: var(--electric-blue);
}


.hero-description {

    max-width: 610px;

    margin-top: 30px;

    color: var(--slate);

    font-family: "Source Serif 4", serif;

    font-size: clamp(19px, 2vw, 23px);

    line-height: 1.55;
}


/* ========================================
   HERO BUTTONS
   ======================================== */

.hero-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 34px;
}


.hero-button {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    min-height: 52px;

    padding: 0 22px;

    border-radius: 10px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;

    font-weight: 500;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.hero-button.primary {

    background: var(--electric-blue);

    color: white;

    box-shadow:
        0 10px 30px
        rgba(22, 119, 255, 0.20);
}


.hero-button.primary:hover {

    transform: translateY(-3px);

    box-shadow:
        0 16px 35px
        rgba(22, 119, 255, 0.28);
}


.hero-button.secondary {

    border: 1px solid var(--mist-grey);

    background: rgba(248, 251, 255, 0.7);

    color: var(--midnight-navy);
}


.hero-button.secondary:hover {

    transform: translateY(-3px);

    border-color: var(--electric-blue);

    color: var(--electric-blue);
}


/* ========================================
   HERO NOTE
   ======================================== */

.hero-note {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 28px;

    color: var(--cool-grey);

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;
}


.status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--electric-blue);

    box-shadow:
        0 0 0 5px
        rgba(22, 119, 255, 0.10);
}


/* ========================================
   HERO RESPONSIVE
   ======================================== */

@media (max-width: 1000px) {

    .hero-container {

        grid-template-columns: 1fr;

        gap: 20px;

        padding-top: 80px;
    }


    .hero-content {

        max-width: 850px;

        text-align: center;

        margin: 0 auto;
    }


    .hero-eyebrow {

        justify-content: center;
    }


    .hero-description {

        margin-left: auto;

        margin-right: auto;
    }


    .hero-actions {

        justify-content: center;
    }


    .hero-note {

        justify-content: center;
    }

}


@media (max-width: 600px) {

    .hero-section {

        min-height: auto;
    }


    .hero-container {

        width: 90%;

        padding: 65px 0 50px;
    }


    .hero-title {

        font-size: 46px;

        letter-spacing: -2px;
    }


    .hero-description {

        font-size: 18px;
    }


    .hero-actions {

        flex-direction: column;

        align-items: stretch;
    }


    .hero-button {

        justify-content: center;
    }


}
/* ========================================
   ABOUT + CONTACT
   ======================================== */

.about-contact-section {

    position: relative;

    scroll-margin-top: 90px;

    padding: 170px 0;

    background: var(--pale-blue);

    overflow: hidden;
}


.about-contact-section::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -180px;
    right: -120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 119, 255, 0.12),
            transparent 70%
        );
}


.about-contact-container {

    position: relative;

    z-index: 2;

    width: min(1360px, 94%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.15fr
        0.85fr;

    gap: 70px;

    align-items: center;
}


/* ========================================
   ABOUT CONTENT
   ======================================== */

.about-content {

    max-width: 650px;
}


.section-eyebrow {

    margin-bottom: 16px;

    color: var(--electric-blue);

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;
}


.about-content h2 {

    color: var(--midnight-navy);

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.02;

    letter-spacing: -2px;
}


.about-content h2 span {

    display: block;

    color: var(--electric-blue);
}


.about-text {

    max-width: 600px;

    margin-top: 28px;

    color: var(--slate);

    font-family: "Source Serif 4", serif;

    font-size: 19px;

    line-height: 1.7;
}


/* ========================================
   ABOUT LINK
   ======================================== */

.text-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 28px;

    color: var(--midnight-navy);

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;

    font-weight: 600;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.text-link:hover {

    color: var(--electric-blue);

    gap: 15px;
}


/* ========================================
   CONTACT CARD
   ======================================== */

.contact-card {

    position: relative;

    padding: 38px;

    border: 1px solid
        rgba(208, 213, 221, 0.85);

    border-radius: 22px;

    background:
        rgba(248, 251, 255, 0.8);

    box-shadow:
        0 25px 60px
        rgba(7, 26, 51, 0.08);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.contact-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 30px 70px
        rgba(7, 26, 51, 0.12);
}


.contact-card h3 {

    max-width: 400px;

    color: var(--midnight-navy);

    font-family: "Space Grotesk", sans-serif;

    font-size: 30px;

    line-height: 1.15;

    letter-spacing: -0.8px;
}


.contact-card-top > p:not(.section-eyebrow) {

    margin-top: 14px;

    color: var(--slate);

    font-family: "Source Serif 4", serif;

    font-size: 17px;
}


/* ========================================
   CONTACT BUTTON
   ======================================== */

.contact-button {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 35px;

    padding: 15px 18px;

    border-radius: 10px;

    background: var(--midnight-navy);

    color: white;

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;

    font-weight: 500;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.contact-button:hover {

    background: var(--electric-blue);

    transform: translateY(-2px);
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 850px) {

    .about-contact-section {

        padding: 80px 0;
    }


    .about-contact-container {

        grid-template-columns: 1fr;

        gap: 45px;
    }


    .about-content h2 {

        font-size: 48px;
    }


    .contact-card {

        padding: 30px;
    }

}


@media (max-width: 500px) {

    .about-contact-section {

        padding: 65px 0;
    }


    .about-content h2 {

        font-size: 40px;
    }


    .about-text {

        font-size: 17px;
    }


    .contact-card h3 {

        font-size: 26px;
    }

}

/* ========================================
   HERO MOTION BACKGROUND
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}


/* Video */

.hero-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;

    pointer-events: none;
}


/* Soft overlay */

.hero-video-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(234, 245, 255, 0.94) 0%,
            rgba(234, 245, 255, 0.78) 38%,
            rgba(234, 245, 255, 0.20) 75%,
            rgba(234, 245, 255, 0.10) 100%
        );

    pointer-events: none;
}


/* Keep hero content above video */

.hero-container {
    position: relative;

    z-index: 2;
}

/* ========================================
   JURISENCE LOGO
   ======================================== */

.brand-logo {
    width: 150px;
    height: auto;
    max-height: 42px;
    display: block;
    object-fit: contain;
}

/* =========================================================
   NAV — "COMING SOON" LINKS (Phase 2 sections)
   ========================================================= */

.nav-link-soon,
.footer-link-soon {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--cool-grey);
    cursor: default;
}

.nav-link-soon em,
.footer-link-soon em {
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    padding: 2px 6px;
    border-radius: 20px;

    background: var(--pale-blue);
    color: var(--electric-blue);
}

.nav-link-soon::after {
    display: none;
}


/* =========================================================
   MOBILE NAVIGATION — DROPDOWN PANEL
   ========================================================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;

        padding: 14px 5%;

        background: rgba(248, 251, 255, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border-bottom: 1px solid rgba(208, 213, 221, 0.55);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link,
    .nav-link-soon {
        padding: 12px 6px;
        justify-content: space-between;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-button.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-button.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}


/* =========================================================
   SITE FOOTER
   ========================================================= */

.site-footer {
    background: var(--midnight-navy);
    color: var(--mist-grey);
    padding: 64px 0 0;
}

.footer-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(208, 213, 221, 0.15);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    width: 130px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    margin-bottom: 14px;
}

.footer-tagline {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--cool-grey);
    line-height: 1.6;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-column-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 14px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 130px;
}

.footer-link {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--mist-grey);
    transition: color 0.2s ease;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-link svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: inherit;
}

a.footer-link:hover {
    color: var(--electric-blue);
}

.footer-link-soon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--slate);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 22px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--slate);
}

@media (max-width: 600px) {

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}


/* =========================================================
   SCROLL REVEAL UTILITY
   ========================================================= */

/* Only hides content once script.js has started (it adds .js-reveal).
   If the script fails for any reason, everything stays visible. */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================================
   HERO 3D CANVAS (replaces video background)
   ========================================================= */

.hero-3d-canvas {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    display: block;
}


.hero-3d-glow {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);

    width: min(56vw, 720px);
    height: min(56vw, 720px);

    z-index: -1;

    background: radial-gradient(
        circle,
        rgba(7, 26, 51, 0.16) 0%,
        rgba(7, 26, 51, 0.08) 35%,
        rgba(7, 26, 51, 0) 70%
    );

    pointer-events: none;
}

@media (max-width: 760px) {
    .hero-3d-glow {
        right: 50%;
        transform: translate(50%, -50%);
        width: 90vw;
        height: 90vw;
    }
}


/* =========================================================
   SECTION EYEBROW (shared)
   ========================================================= */

.center-eyebrow {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 16px;
}


/* =========================================================
   ECOSYSTEM INTRO
   ========================================================= */

.ecosystem-section {
    scroll-margin-top: 90px;
    padding: 180px 0 170px;
    background: var(--ice-blue);
}

.ecosystem-container {
    width: min(1360px, 94%);
    margin: 0 auto;
}

.ecosystem-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
}

.ecosystem-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--rich-charcoal);
    line-height: 1.25;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--mist-grey);
    border: 1px solid var(--mist-grey);
    border-radius: 16px;
    overflow: hidden;
}

.ecosystem-item {
    background: var(--blue-white);
    padding: 32px 26px;
    transition: background 0.25s ease;
}

.ecosystem-item:hover {
    background: var(--pale-blue);
}

.ecosystem-item .ecosystem-icon {
    display: block;
    font-size: 22px;
    color: var(--electric-blue);
    margin-bottom: 14px;
}

.ecosystem-item .ecosystem-index {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: 18px;
}

.ecosystem-item h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 10px;
}

.ecosystem-item p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
}

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

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


/* =========================================================
   AI LEGAL HUB PREVIEW (navy band)
   ========================================================= */

.ai-hub-preview-section {
    scroll-margin-top: 90px;
    background: var(--midnight-navy);
    padding: 170px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ai-hub-container {
    width: min(1360px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.ai-hub-text .section-eyebrow {
    color: var(--electric-blue);
}

.ai-hub-text h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-white);
    letter-spacing: -0.8px;
    margin: 14px 0 16px;
    line-height: 1.3;
}

.ai-hub-text p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--cool-grey);
    line-height: 1.7;
    margin-bottom: 24px;
}

.ai-hub-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-hub-list li {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--mist-grey);
    padding-left: 20px;
    position: relative;
}

.ai-hub-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--electric-blue);
}

.ai-hub-visual {
    background: rgba(248, 251, 255, 0.04);
    border: 1px solid rgba(248, 251, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
}

.ai-hub-visual .prompt-card {
    background: rgba(248, 251, 255, 0.06);
    border: 1px solid rgba(248, 251, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.ai-hub-visual .prompt-card:last-child {
    margin-bottom: 0;
}

.ai-hub-visual .prompt-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 6px;
}

.ai-hub-visual .prompt-text {
    font-family: "Source Serif 4", serif;
    font-size: 13px;
    color: var(--mist-grey);
    line-height: 1.6;
}

. -tag {
    display: inline-block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--electric-blue);
    background: rgba(22, 119, 255, 0.12);
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .ai-hub-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}


/* =========================================================
   STUDY MATERIALS PREVIEW
   ========================================================= */

.study-preview-section {
    scroll-margin-top: 90px;
    background: var(--ice-blue);
    padding: 170px 0;
}

.study-preview-container {
    width: min(1150px, 94%);
    margin: 0 auto;
}

.study-note-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 26px;
    margin-top: 40px;
}

.study-note-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--pale-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--electric-blue);
    font-size: 15px;
}

.study-note-card h3 {
    font-family: "Source Serif 4", serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 6px;
}

.study-note-card p {
    font-family: "Source Serif 4", serif;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.7;
}

.study-note-meta {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    color: var(--cool-grey);
    margin-top: 8px;
    display: block;
}


/* =========================================================
   SKILL ROADMAPS PREVIEW
   ========================================================= */

.roadmap-preview-section {
    scroll-margin-top: 90px;
    background: var(--ice-blue);
    padding: 170px 0;
}

.roadmap-preview-container {
    width: min(1300px, 94%);
    margin: 0 auto;
}

.roadmap-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 40px 0 44px;
}

.roadmap-tab {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--mist-grey);
    background: var(--blue-white);
    color: var(--slate);
}

.roadmap-tab.is-active {
    background: var(--midnight-navy);
    border-color: var(--midnight-navy);
    color: var(--blue-white);
}

.roadmap-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.roadmap-node {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    color: var(--rich-charcoal);
}

.roadmap-arrow {
    color: var(--cool-grey);
    font-size: 14px;
}

@media (max-width: 700px) {
    .roadmap-flow {
        flex-direction: column;
    }

    .roadmap-arrow {
        transform: rotate(90deg);
    }
}


/* =========================================================
   MOOT COURT RESOURCES PREVIEW
   ========================================================= */

.moot-court-preview-section {
    scroll-margin-top: 90px;
    background: var(--midnight-navy);
    padding: 160px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.moot-court-container {
    width: min(1150px, 94%);
    margin: 0 auto;
    text-align: center;
}

.moot-court-container h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--blue-white);
    margin: 14px 0 16px;
}

.moot-court-container > p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--cool-grey);
    max-width: 560px;
    margin: 0 auto 36px;
}

.moot-court-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.moot-court-tags span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--mist-grey);
    border: 1px solid rgba(248, 251, 255, 0.16);
    padding: 8px 16px;
    border-radius: 999px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter-section {
    background: var(--pale-blue);
    padding: 150px 0;
}

.newsletter-card {
    width: min(820px, 94%);
    margin: 0 auto;
    text-align: center;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 16px;
    padding: 44px 32px;
}

.newsletter-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--rich-charcoal);
    margin-bottom: 10px;
}

.newsletter-card p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--mist-grey);
    background: var(--ice-blue);
    color: var(--rich-charcoal);
}

.newsletter-form input:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 1px;
}

.newsletter-form button {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    background: var(--electric-blue);
    color: var(--blue-white);
    cursor: pointer;
    transition: filter 0.2s ease;
}

.newsletter-form button:hover {
    filter: brightness(1.08);
}

.newsletter-note {
    font-size: 11px !important;
    color: var(--cool-grey) !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
    }
}


/* =========================================================
   PODCAST PREVIEW
   ========================================================= */

.podcast-preview-section {
    scroll-margin-top: 90px;
    background: var(--pale-blue);
    padding: 170px 0;
}

.podcast-preview-container {
    width: min(1150px, 94%);
    margin: 0 auto;
}

.podcast-episode-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 26px;
    margin-top: 40px;
}

.podcast-play-button {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: var(--electric-blue);
    color: var(--blue-white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.podcast-play-button:hover {
    filter: brightness(1.08);
    transform: scale(1.05);
}

.podcast-episode-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 6px;
}

.podcast-episode-card p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
}

@media (max-width: 560px) {
    .podcast-episode-card {
        flex-direction: column;
        text-align: center;
    }
}


/* =========================================================
   LEGAL PAGES (Privacy, Terms, Disclaimer)
   Simpler, minimal motion — reading-focused
   ========================================================= */

.legal-page {
    background: var(--ice-blue);
    padding: 60px 0 100px;
    min-height: 60vh;
}

.legal-container {
    width: min(760px, 92%);
    margin: 0 auto;
}

.legal-container .section-eyebrow {
    display: block;
}

.legal-container h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--rich-charcoal);
    letter-spacing: -0.8px;
    margin: 12px 0 10px;
}

.legal-updated {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--cool-grey);
    margin-bottom: 44px;
}

.legal-container h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin: 40px 0 14px;
}

.legal-container p {
    font-family: "Source Serif 4", serif;
    font-size: 16px;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-container ul {
    margin: 0 0 16px 22px;
}

.legal-container li {
    font-family: "Source Serif 4", serif;
    font-size: 16px;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 8px;
}

.legal-container strong {
    color: var(--rich-charcoal);
}

.legal-container a {
    color: var(--electric-blue);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .legal-container h1 {
        font-size: 30px;
    }
}


/* =========================================================
   AI LEGAL HUB — FULL PAGE
   ========================================================= */

.ai-hub-page-hero {
    background: var(--midnight-navy);
    padding: 150px 0 80px;
}

.ai-hub-page-hero-container {
    width: min(1150px, 92%);
    margin: 0 auto;
    text-align: center;
}

.ai-hub-page-hero-container h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--blue-white);
    letter-spacing: -0.8px;
    margin: 14px 0 16px;
}

.ai-hub-page-hero-container > p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    color: var(--cool-grey);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.ai-hub-page-hero-container .section-eyebrow {
    text-align: center;
    color: var(--electric-blue);
}

/* Hero option buttons — shared by AI Legal Hub and Advocacy Lab heroes */

.ai-hub-hero-options {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.ai-hub-hero-option {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-width: 230px;
    padding: 15px 18px 15px 20px;
    border: 1px solid rgba(22, 119, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--blue-white);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.ai-hub-hero-option:hover,
.ai-hub-hero-option:focus-visible {
    transform: translateY(-2px);
    background: rgba(22, 119, 255, 0.14);
    border-color: rgba(22, 119, 255, 0.75);
    outline: none;
}

.ai-hub-hero-option-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.ai-hub-hero-option-arrow {
    font-size: 20px;
    line-height: 1;
    color: var(--electric-blue);
}

@media (max-width: 600px) {
    .ai-hub-hero-options {
        flex-direction: column;
        align-items: stretch;
    }
    .ai-hub-hero-option {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-hub-hero-option {
        transition: none;
    }
    .ai-hub-hero-option:hover,
    .ai-hub-hero-option:focus-visible {
        transform: none;
    }
}

/* Shared section wrapper */

.ai-hub-page-section {
    padding: 90px 0;
    background: var(--ice-blue);
}

.ai-hub-page-section.is-alt {
    background: var(--pale-blue);
}

.ai-hub-page-container {
    width: min(1150px, 94%);
    margin: 0 auto;
}

.ai-hub-page-section-heading {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.ai-hub-page-section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--rich-charcoal);
    margin: 10px 0 10px;
}

.ai-hub-page-section-heading p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.7;
}

/* Category filter tabs */

.tool-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.tool-filter-tab {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--mist-grey);
    background: var(--blue-white);
    color: var(--slate);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tool-filter-tab.is-active {
    background: var(--midnight-navy);
    border-color: var(--midnight-navy);
    color: var(--blue-white);
}

/* Tool cards grid */

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

.tool-card {
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(7, 26, 51, 0.08);
}

.tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.tool-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--rich-charcoal);
}

.tool-category-tag {
    flex-shrink: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--electric-blue);
    background: var(--pale-blue);
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.tool-card p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.65;
}

/* Responsible AI callout */

.responsible-ai-callout {
    background: var(--midnight-navy);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.responsible-ai-callout h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-white);
    margin: 10px 0 14px;
}

.responsible-ai-callout p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--cool-grey);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.responsible-ai-callout .section-eyebrow {
    text-align: center;
    color: var(--electric-blue);
}

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

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


/* =========================================================
   LEGAL PAGES — VISUAL UPGRADE
   Hero band, quick-summary callout, jump-to nav, numbered
   section markers
   ========================================================= */

.legal-page-hero {
    background: var(--midnight-navy);
    padding: 140px 0 70px;
    text-align: center;
}

.legal-page-hero .section-eyebrow {
    text-align: center;
    color: var(--electric-blue);
}

.legal-page-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-white);
    letter-spacing: -0.7px;
    margin: 12px 0 10px;
}

.legal-page-hero p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--cool-grey);
}

/* Quick-summary callout */

.legal-summary-card {
    background: var(--pale-blue);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 48px;
}

.legal-summary-card p.legal-summary-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 12px;
}

.legal-summary-card ul {
    margin: 0 0 0 20px;
}

.legal-summary-card li {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--rich-charcoal);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Jump-to-section nav */

.legal-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mist-grey);
}

.legal-jump-nav a {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    padding: 7px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.legal-jump-nav a:hover {
    background: var(--midnight-navy);
    border-color: var(--midnight-navy);
    color: var(--blue-white);
}

/* Numbered section markers */

.legal-container h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    scroll-margin-top: 100px;
}

.legal-section-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pale-blue);
    color: var(--electric-blue);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-page-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(22, 119, 255, 0.14);
    color: var(--electric-blue);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.legal-summary-card .legal-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .legal-page-hero h1 {
        font-size: 28px;
    }

    .legal-jump-nav {
        gap: 6px;
    }

    .legal-jump-nav a {
        font-size: 11px;
        padding: 6px 11px;
    }
}


/* =========================================================
   ABOUT / FOUNDER PAGE
   ========================================================= */

.founder-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
}

.founder-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pale-blue);
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.founder-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 2px;
}

.founder-role {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--electric-blue);
    margin-bottom: 12px;
    display: block;
}

.founder-card p.founder-bio {
    font-family: "Source Serif 4", serif;
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
}

/* =========================================
   FOUNDER PROFILE
========================================= */

.founder-profile {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 64px;
    align-items: center;

    margin: 32px 0 90px;
    padding: 42px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(234, 245, 255, 0.88)
        );

    border: 1px solid rgba(22, 119, 255, 0.12);
    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(7, 26, 51, 0.08);

    overflow: hidden;
}


/* Subtle background detail */

.founder-profile::before {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: -120px;
    top: -140px;

    background: rgba(22, 119, 255, 0.08);

    border-radius: 50%;
    filter: blur(10px);

    pointer-events: none;
}


/* =========================================
   PHOTO
========================================= */

.founder-profile-image {
    position: relative;

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

    margin: 0 auto;

    border-radius: 24px;

    overflow: visible;
}


/* Blue glow behind image */

.founder-image-glow {
    position: absolute;

    inset: 8% -5% -5% 5%;

    background:
        linear-gradient(
            135deg,
            rgba(22, 119, 255, 0.35),
            rgba(95, 75, 255, 0.18)
        );

    filter: blur(32px);

    border-radius: 30px;

    z-index: 0;
}


/* Actual founder image */

.founder-photo {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 4 / 7;

    object-fit: cover;
    object-position: center top;

    border-radius: 22px;

    border: 1px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 24px 50px rgba(7, 26, 51, 0.18);

    z-index: 1;

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}


.founder-profile:hover .founder-photo {
    transform: translateY(-5px);

    box-shadow:
        0 30px 65px rgba(7, 26, 51, 0.22);
}


/* Decorative blue line */

.founder-photo-accent {
    position: absolute;

    width: 90px;
    height: 90px;

    right: -18px;
    bottom: -18px;

    border-right: 3px solid #1677FF;
    border-bottom: 3px solid #1677FF;

    border-radius: 0 0 20px 0;

    z-index: 2;

    pointer-events: none;
}


/* =========================================
   CONTENT
========================================= */

.founder-profile-content {
    position: relative;
    z-index: 2;

    max-width: 720px;
}


.founder-label {
    margin: 0 0 12px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.14em;

    color: #1677FF;
}


.founder-name {
    margin: 0;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(2.3rem, 5vw, 4.2rem);

    line-height: 0.98;

    letter-spacing: -0.045em;

    color: #071A33;
}


.founder-title {
    margin: 14px 0 4px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 1.08rem;
    font-weight: 700;

    color: #0B0F14;
}


.founder-domain {
    margin: 0 0 28px;

    font-family: "Source Serif 4", serif;

    font-size: 1.08rem;

    color: #475467;
}


.founder-domain span {
    margin: 0 7px;

    color: #1677FF;

    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}


.founder-bio {
    max-width: 680px;

    margin: 0;

    font-family: "Source Serif 4", serif;

    font-size: 1.08rem;

    line-height: 1.8;

    color: #475467;
}


/* =========================================
   FOCUS TAGS
========================================= */

.founder-focus {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;
}


.founder-focus span {
    display: inline-flex;

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

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(22, 119, 255, 0.07);

    border: 1px solid rgba(22, 119, 255, 0.14);

    color: #071A33;

    font-family: "Space Grotesk", sans-serif;

    font-size: 0.82rem;
    font-weight: 700;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .founder-profile {
        grid-template-columns: 280px minmax(0, 1fr);

        gap: 38px;

        padding: 32px;
    }

    .founder-name {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .founder-profile {
        grid-template-columns: 1fr;

        gap: 34px;

        margin-top: 24px;

        padding: 24px;

        border-radius: 22px;
    }


    .founder-profile-image {
        width: min(100%, 340px);

        margin: 0 auto;
    }


    .founder-photo {
        aspect-ratio: 4 / 5;
    }


    .founder-profile-content {
        text-align: left;
    }


    .founder-name {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }


    .founder-title {
        font-size: 1rem;
    }


    .founder-domain {
        font-size: 1rem;

        margin-bottom: 22px;
    }


    .founder-bio {
        font-size: 1rem;

        line-height: 1.7;
    }


    .founder-focus {
        margin-top: 22px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .founder-profile {
        padding: 18px;

        border-radius: 18px;
    }


    .founder-profile-image {
        width: 100%;
    }


    .founder-photo {
        border-radius: 18px;
    }


    .founder-name {
        font-size: 2.25rem;
    }


    .founder-bio {
        font-size: 0.98rem;
    }

}

.about-vision-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 32px 0;
}

.about-vision-list .roadmap-node {
    align-self: flex-start;
}

.about-vision-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.about-vision-step .legal-section-number {
    width: 30px;
    height: 30px;
}

.about-vision-step p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--rich-charcoal);
    margin: 0;
}

.about-vision-arrow {
    color: var(--cool-grey);
    padding-left: 14px;
    font-size: 13px;
}

@media (max-width: 560px) {
    .founder-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
}

.contact-form-card {
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 16px;
    padding: 32px;
}

.contact-form-card label {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 6px;
}

.contact-form-card .form-field {
    margin-bottom: 20px;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--mist-grey);
    background: var(--ice-blue);
    color: var(--rich-charcoal);
    resize: vertical;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 1px;
}

.contact-form-card button[type="submit"] {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 8px;
    border: none;
    background: var(--electric-blue);
    color: var(--blue-white);
    cursor: pointer;
    transition: filter 0.2s ease;
    width: 100%;
}

.contact-form-card button[type="submit"]:hover {
    filter: brightness(1.08);
}

.contact-form-note {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--cool-grey);
    margin-top: 14px;
}

/* Side info cards */

.contact-info-card {
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-info-card .legal-section-number {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.contact-info-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
}

.contact-info-card a {
    color: var(--electric-blue);
}

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


/* =========================================================
   STUDY MATERIALS — FULL PAGE
   ========================================================= */

.study-page-hero {
    background: var(--midnight-navy);
    padding: 150px 0 70px;
    text-align: center;
}

.study-page-hero .section-eyebrow {
    text-align: center;
    color: var(--electric-blue);
}

.study-page-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-white);
    letter-spacing: -0.7px;
    margin: 12px 0 10px;
}

.study-page-hero p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--cool-grey);
    max-width: 560px;
    margin: 0 auto;
}

/* Subject tabs */

.subject-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 36px 0 0;
    background: var(--midnight-navy);
}

.subject-tab {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px 999px 0 0;
    border: 1px solid rgba(248, 251, 255, 0.15);
    border-bottom: none;
    background: rgba(248, 251, 255, 0.04);
    color: var(--cool-grey);
}

.subject-tab.is-active {
    background: var(--ice-blue);
    color: var(--midnight-navy);
    border-color: var(--ice-blue);
}

.subject-tab.is-soon {
    opacity: 0.5;
    cursor: default;
}

/* Layout: sidebar + reading pane */

.study-page-body {
    background: var(--ice-blue);
    padding: 60px 0 110px;
}

.study-page-grid {
    width: min(1150px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.study-sidebar {
    position: sticky;
    top: 100px;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 22px;
}

.study-sidebar-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 14px;
}

.study-sidebar a,
.study-sidebar .study-sidebar-soon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
    padding: 9px 0;
    border-bottom: 1px solid var(--mist-grey);
}

.study-sidebar a:last-child,
.study-sidebar .study-sidebar-soon:last-child {
    border-bottom: none;
}

.study-sidebar a:hover {
    color: var(--electric-blue);
}

.study-sidebar .study-sidebar-soon {
    color: var(--cool-grey);
}

.study-sidebar .mini-tag {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cool-grey);
    background: var(--pale-blue);
    padding: 2px 7px;
    border-radius: 20px;
}

/* Reading pane */

.study-reading-pane {
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 16px;
    padding: 40px;
}

.study-reading-pane .study-note-meta-top {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--cool-grey);
    margin-bottom: 8px;
}

.study-reading-pane h1.note-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--rich-charcoal);
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    scroll-margin-top: 90px;
}

.study-reading-pane h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin: 34px 0 12px;
    scroll-margin-top: 90px;
}

.study-reading-pane h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--electric-blue);
    margin: 22px 0 8px;
}

.study-reading-pane p {
    font-family: "Source Serif 4", serif;
    font-size: 16px;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 14px;
}

.study-reading-pane ul {
    margin: 0 0 14px 22px;
}

.study-reading-pane li {
    font-family: "Source Serif 4", serif;
    font-size: 16px;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 6px;
}

.study-reading-pane strong {
    color: var(--rich-charcoal);
}

/* Key cases callout */

.key-cases-box {
    background: var(--pale-blue);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 28px 0;
}

.key-cases-box p.key-cases-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 10px;
}

.key-cases-box ul {
    margin: 0 0 0 18px;
}

.key-cases-box li {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--rich-charcoal);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Coming soon note stub */

.note-stub {
    background: var(--pale-blue);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.note-stub p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--slate);
}

@media (max-width: 900px) {
    .study-page-grid {
        grid-template-columns: 1fr;
    }

    .study-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .study-reading-pane {
        padding: 26px 20px;
    }
}


/* =========================================================
   SKILL ROADMAPS — FULL PAGE
   ========================================================= */

.roadmap-page-hero {
    background: var(--midnight-navy);
    padding: 150px 0 40px;
    text-align: center;
}

.roadmap-page-hero .section-eyebrow {
    text-align: center;
    color: var(--electric-blue);
}

.roadmap-page-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-white);
    letter-spacing: -0.7px;
    margin: 12px 0 10px;
}

.roadmap-page-hero p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--cool-grey);
    max-width: 560px;
    margin: 0 auto;
}

/* Roadmap selector tabs */

.roadmap-select-tabs {
    background: var(--midnight-navy);
    padding: 30px 0 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.roadmap-select-tab {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(248, 251, 255, 0.18);
    background: rgba(248, 251, 255, 0.04);
    color: var(--cool-grey);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.roadmap-select-tab.is-active {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    color: var(--blue-white);
}

/* Timeline */

.roadmap-page-body {
    background: var(--ice-blue);
    padding: 70px 0 110px;
}

.roadmap-panel {
    display: none;
}

.roadmap-panel.is-active {
    display: block;
}

.roadmap-timeline-container {
    width: min(820px, 92%);
    margin: 0 auto;
}

.roadmap-timeline {
    position: relative;
    padding-left: 44px;
}

.roadmap-timeline::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--mist-grey);
}

.roadmap-step-card {
    position: relative;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 20px;
}

.roadmap-step-number {
    position: absolute;
    left: -44px;
    top: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--midnight-navy);
    color: var(--blue-white);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap-step-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 8px;
}

.roadmap-step-card p {
    font-family: "Source Serif 4", serif;
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 14px;
}

.roadmap-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.roadmap-skill-tags span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--electric-blue);
    background: var(--pale-blue);
    padding: 4px 10px;
    border-radius: 20px;
}

.roadmap-tools-note {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--cool-grey);
}

@media (max-width: 600px) {
    .roadmap-timeline {
        padding-left: 36px;
    }

    .roadmap-step-number {
        left: -36px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}


/* =========================================================
   PODCAST — FULL PAGE
   ========================================================= */

.podcast-page-hero {
    background: var(--midnight-navy);
    padding: 150px 0 70px;
    text-align: center;
}

.podcast-page-hero .section-eyebrow {
    text-align: center;
    color: var(--electric-blue);
}

.podcast-page-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-white);
    letter-spacing: -0.7px;
    margin: 12px 0 10px;
}

.podcast-page-hero p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    color: var(--cool-grey);
    max-width: 560px;
    margin: 0 auto;
}

.podcast-page-body {
    background: var(--ice-blue);
    padding: 90px 0 110px;
}

.podcast-list-container {
    width: min(820px, 92%);
    margin: 0 auto;
}

.podcast-episode-card-full {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.podcast-episode-card-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 26, 51, 0.06);
}

.podcast-ep-number {
    flex-shrink: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--cool-grey);
    width: 30px;
}

.podcast-episode-card-full h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--rich-charcoal);
    margin-bottom: 6px;
}

.podcast-episode-card-full p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 4px;
}

.podcast-episode-card-full .study-note-meta {
    font-size: 11px;
    color: var(--cool-grey);
}

@media (max-width: 560px) {
    .podcast-episode-card-full {
        flex-wrap: wrap;
    }
}

/* =========================================================
   JURISENCE PROMPT LIBRARY — search box, stats, no results
   (cards and pop-up styles are further down)
========================================================= */

#prompts .prompt-library-tools {
    width: min(100%, 900px);
    margin: 35px auto 16px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
}

#prompts .prompt-library-tools input,
#prompts .prompt-library-tools select {
    width: 100%;
    min-height: 48px;

    padding: 0 16px;

    background: #ffffff;
    color: #071A33;

    border: 1px solid rgba(7, 26, 51, 0.14);
    border-radius: 12px;

    font-family: inherit;
    font-size: 0.92rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#prompts .prompt-library-tools input:focus,
#prompts .prompt-library-tools select:focus {
    border-color: #1677FF;

    box-shadow:
        0 0 0 3px rgba(22, 119, 255, 0.10);
}

#prompts .prompt-library-stats {
    width: min(100%, 900px);
    margin: 0 auto 28px;

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

    gap: 24px;

    color: #475467;

    font-size: 0.82rem;
}

#prompts .prompt-library-stats strong {
    color: #071A33;
    font-size: 1rem;
}

#prompts #prompt-library-no-results {
    width: min(100%, 700px);

    margin: 30px auto 0;
    padding: 30px;

    color: #475467;

    background: #F8FBFF;

    border: 1px solid rgba(7, 26, 51, 0.10);
    border-radius: 16px;

    text-align: center;
}

@media (max-width: 900px) {
    #prompts .prompt-library-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #prompts .prompt-library-tools {
        margin-top: 25px;
    }

    #prompts .prompt-library-stats {
        gap: 16px;
        flex-wrap: wrap;
    }
}


/* =========================================================
   PROMPT LIBRARY — tool-directory style
   (cards reuse .tool-card, pop-up reuses .tool-details-*)
========================================================= */

#prompts .prompt-library-tools--search-only {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
}

#prompts #prompt-filter-tabs {
    margin-bottom: 18px;
}

#prompts .prompt-library-stats {
    width: 100%;
    justify-content: center;
}

#prompts #prompt-library-container.tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.prompt-tool-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.prompt-tool-card:focus-visible {
    outline: 2px solid #1677FF;
    outline-offset: 4px;
}

.prompt-tool-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-tool-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--cool-grey);
}

.prompt-tool-card-id {
    color: var(--electric-blue);
    letter-spacing: 0.06em;
}

/* Prompt text inside the pop-up */

.prompt-details-code {
    margin: 0 0 13px;
    border-radius: 14px;
    background: #071A33;
    overflow: hidden;
}

.prompt-details-code-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #98A2B3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.prompt-details-code-copy {
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.prompt-details-code-copy:hover {
    background: rgba(255, 255, 255, 0.18);
}

.prompt-details-code pre {
    max-height: 320px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    color: #EAF5FF;
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-details-copy-main {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 900px) {
    #prompts #prompt-library-container.tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #prompts #prompt-library-container.tool-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PROMPT LIBRARY — loading message + "Show more" button
========================================================= */

#prompts .prompt-library-message {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: #475467;
    font-size: 0.92rem;
}

#prompts .prompt-library-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

#prompts .prompt-library-load-more[hidden],
#prompts .prompt-library-load-more-button[hidden] {
    display: none;
}

#prompts .prompt-library-load-more-status {
    color: #475467;
    font-size: 0.82rem;
}

#prompts .prompt-library-load-more-button {
    min-height: 46px;
    padding: 0 26px;
    color: #ffffff;
    background: #071A33;
    border: 1px solid #071A33;
    border-radius: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#prompts .prompt-library-load-more-button:hover {
    background: #1677FF;
    border-color: #1677FF;
}

#prompts .prompt-library-load-more-button:focus-visible {
    outline: 2px solid #1677FF;
    outline-offset: 3px;
}


/* =========================================================
   TOOL DIRECTORY — search, stats, "Show more"
   (matches the Prompt Library)
========================================================= */

#tools .tool-directory-search {
    width: min(100%, 900px);
    margin: 30px auto 22px;
}

#tools .tool-directory-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    background: #ffffff;
    color: #071A33;
    border: 1px solid rgba(7, 26, 51, 0.14);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tools .tool-directory-search input:focus {
    border-color: #1677FF;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.10);
}

#tools .tool-directory-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 18px 0 28px;
    color: #475467;
    font-size: 0.82rem;
}

#tools .tool-directory-stats strong {
    color: #071A33;
    font-size: 1rem;
}

#tools .tool-card {
    cursor: pointer;
}

#tool-directory-no-results {
    padding: 30px 0;
    text-align: center;
    color: #475467;
}

/* "Show more" button (same look as the Prompt Library) */

#tools .prompt-library-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

#tools .prompt-library-load-more[hidden],
#tools .prompt-library-load-more-button[hidden],
#tool-details-modal [hidden] {
    display: none !important;
}

#tools .prompt-library-load-more-status {
    color: #475467;
    font-size: 0.82rem;
}

#tools .prompt-library-load-more-button {
    min-height: 46px;
    padding: 0 26px;
    color: #ffffff;
    background: #071A33;
    border: 1px solid #071A33;
    border-radius: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#tools .prompt-library-load-more-button:hover {
    background: #1677FF;
    border-color: #1677FF;
}

#tools .prompt-library-load-more-button:focus-visible {
    outline: 2px solid #1677FF;
    outline-offset: 3px;
}


/* =========================================================
   ADVOCACY LAB
   Landing page (advocacy-lab.html) +  guidebook readers
   (moot-court.html, trial-advocacy.html)
   Moot = electric blue. Trial = "red tape" crimson.
   ========================================================= */

:root {
    --tape-red: #B3362E;
    --tape-soft: #FBEDEB;
    --lab-paper: #FFFFFF;
}


/* ---------- Landing: shared section shell ---------- */

.lab-landing-section {
    padding: 100px 0;
    background: var(--ice-blue);
}

.lab-landing-section--alt {
    background: var(--pale-blue);
}

.lab-landing-container {
    width: min(1150px, 94%);
    margin: 0 auto;
}


/* ---------- Landing: the two "doors" ---------- */

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

.lab-door {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 36px 34px;
    border-radius: 20px;
    overflow: hidden;
}

.lab-door--moot {
    background: var(--midnight-navy);
    color: var(--blue-white);
}

.lab-door--trial {
    background: var(--lab-paper);
    color: var(--rich-charcoal);
    border: 1px solid var(--mist-grey);
}

/* the strip across the top of each door */
.lab-door::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: var(--electric-blue);
}

.lab-door--trial::before {
    background: repeating-linear-gradient(
        -45deg,
        var(--tape-red) 0 14px,
        #C9463D 14px 28px
    );
}

.lab-door-court {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 14px;
}

.lab-door--trial .lab-door-court {
    color: var(--tape-red);
}

.lab-door h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.lab-door-lede {
    font-family: "Source Serif 4", serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--slate);
    margin-bottom: 28px;
}

.lab-door--moot .lab-door-lede {
    color: var(--mist-grey);
}

.lab-door-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 26px;
    border-top: 1px solid rgba(208, 213, 221, 0.6);
    border-bottom: 1px solid rgba(208, 213, 221, 0.6);
}

.lab-door--moot .lab-door-stats {
    border-color: rgba(248, 251, 255, 0.14);
}

.lab-door-stats div {
    padding: 14px 0;
}

.lab-door-stats dt {
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}

.lab-door-stats dd {
    margin: 6px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--cool-grey);
}

.lab-door-case {
    font-family: "Source Serif 4", serif;
    font-style: italic;
    font-size: 15px;
    margin-bottom: 28px;
}

.lab-door-case span {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cool-grey);
    margin-bottom: 4px;
}

.lab-door-cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: var(--electric-blue);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lab-door--trial .lab-door-cta {
    background: var(--midnight-navy);
}

.lab-door-cta:hover {
    transform: translateY(-2px);
}

.lab-door--trial .lab-door-cta:hover {
    background: var(--tape-red);
}

.lab-door-cta:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 3px;
}


/* ---------- Landing: journey (tabs + stage rows + part tiles) ---------- */

.lab-journey {
    --j-accent: var(--electric-blue);
    --j-soft: var(--pale-blue);
}

.lab-j-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lab-j-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto 40px;
    padding: 6px;
    border-radius: 999px;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
}

.lab-j-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lab-j-tab span {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
}

.lab-j-tab:hover {
    color: var(--midnight-navy);
}

#lab-j-moot:checked ~ .lab-j-tabs .lab-j-tab--moot {
    background: var(--electric-blue);
    color: #fff;
}

#lab-j-trial:checked ~ .lab-j-tabs .lab-j-tab--trial {
    background: var(--tape-red);
    color: #fff;
}

#lab-j-moot:focus-visible ~ .lab-j-tabs .lab-j-tab--moot,
#lab-j-trial:focus-visible ~ .lab-j-tabs .lab-j-tab--trial {
    outline: 3px solid var(--midnight-navy);
    outline-offset: 2px;
}

.lab-j-panel {
    display: none;
}

#lab-j-moot:checked ~ .lab-j-panel--moot,
#lab-j-trial:checked ~ .lab-j-panel--trial {
    display: block;
    animation: lab-j-in 0.35s ease;
}

.lab-j-panel--trial {
    --j-accent: var(--tape-red);
    --j-soft: var(--tape-soft);
}

@keyframes lab-j-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* one row per stage: label on the left, part tiles on the right */
.lab-j-stage {
    position: relative;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    padding: 26px 0;
    border-top: 1px solid rgba(7, 26, 51, 0.10);
}

.lab-j-stage:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.lab-j-stage-label {
    position: relative;
    padding-left: 26px;
}

/* stage marker dot */
.lab-j-stage-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--j-accent);
    box-shadow: 0 0 0 5px var(--j-soft);
}

.lab-j-stage-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--j-accent);
    margin-bottom: 4px;
}

.lab-j-stage-label h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--midnight-navy);
    margin-bottom: 6px;
}

.lab-j-stage-meta {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--slate);
}

/* part tiles: all the same size */
.lab-tiles {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.lab-tile {
    height: 100%;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 14px;
    border-radius: 12px;
    background: var(--lab-paper);
    border: 1px solid var(--mist-grey);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lab-tile:hover {
    border-color: var(--j-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(7, 26, 51, 0.08);
}

.lab-tile:focus-visible {
    outline: 3px solid var(--j-accent);
    outline-offset: 3px;
}

.lab-tile-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--j-accent);
}

.lab-tile-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rich-charcoal);
}

.lab-tile-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--cool-grey);
}

.lab-tile-ai {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--pale-blue);
    color: var(--electric-blue);
    font-size: 10px;
    font-weight: 700;
}

.lab-j-open {
    display: inline-flex;
    gap: 10px;
    margin-top: 18px;
    margin-left: calc(230px + 28px);
    padding: 13px 20px;
    border-radius: 10px;
    background: var(--midnight-navy);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.lab-j-open:hover {
    background: var(--j-accent);
}

@media (max-width: 800px) {
    .lab-j-stage {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lab-j-open {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .lab-j-tabs {
        width: 100%;
    }

    .lab-j-tab {
        flex: 1;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        padding: 10px 8px;
        text-align: center;
    }

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

    .lab-tile {
        min-height: 108px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #lab-j-moot:checked ~ .lab-j-panel--moot,
    #lab-j-trial:checked ~ .lab-j-panel--trial {
        animation: none;
    }

    .lab-tile {
        transition: none;
    }
}


/* ---------- Landing: AI band ---------- */

.lab-ai-band {
    background: var(--midnight-navy);
    padding: 100px 0;
}

.lab-ai-band-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.lab-ai-band h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--blue-white);
    margin-bottom: 18px;
}

.lab-ai-band p:not(.section-eyebrow) {
    font-family: "Source Serif 4", serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--mist-grey);
    margin-bottom: 26px;
}

.lab-ai-band-link {
    display: inline-flex;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid rgba(22, 119, 255, 0.5);
    border-radius: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-white);
    transition: background 0.2s ease;
}

.lab-ai-band-link:hover {
    background: rgba(22, 119, 255, 0.18);
}

.lab-ai-rules {
    list-style: none;
    border-left: 2px solid var(--electric-blue);
}

.lab-ai-rules li {
    padding: 14px 0 14px 22px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    color: var(--mist-grey);
    border-bottom: 1px solid rgba(248, 251, 255, 0.08);
}

.lab-ai-rules li:last-child {
    border-bottom: 0;
}

.lab-ai-rules b {
    color: var(--blue-white);
}


/* ---------- Landing: reference shelf ---------- */

.lab-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lab-shelf-card {
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 14px;
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.lab-shelf-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--rich-charcoal);
    margin-bottom: 8px;
}

.lab-shelf-card p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: var(--slate);
}

.lab-shelf-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.lab-shelf-links a {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--mist-grey);
    font-weight: 600;
    font-size: 12px;
    color: var(--midnight-navy);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lab-shelf-links a:first-child:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.lab-shelf-links a:last-child:hover {
    border-color: var(--tape-red);
    color: var(--tape-red);
}


/* =========================================================
    guidebook READER
   ========================================================= */

.lab-reader-hero {
    background: var(--midnight-navy);
    padding: 110px 0 44px;
    border-bottom: 6px solid var(--electric-blue);
}

.lab-reader-hero--trial {
    border-bottom: 0;
    box-shadow: inset 0 -6px 0 0 var(--tape-red);
}

.lab-reader-hero-inner {
    width: min(1240px, 94%);
    margin: 0 auto;
}

.lab-crumbs {
    display: flex;
    gap: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--cool-grey);
    margin-bottom: 14px;
}

.lab-crumbs a {
    color: var(--electric-blue);
}

.lab-reader-hero--trial .lab-crumbs a {
    color: #F08A80;
}

.lab-reader-hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.2px;
    color: var(--blue-white);
    max-width: 820px;
    margin-bottom: 14px;
}

.lab-reader-lede {
    font-family: "Source Serif 4", serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--mist-grey);
    max-width: 720px;
    margin-bottom: 28px;
}

.lab-reader-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
}

.lab-search {
    flex: 1 1 320px;
    max-width: 520px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(248, 251, 255, 0.2);
    background: rgba(248, 251, 255, 0.08);
    color: var(--blue-white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
}

.lab-search::  {
    color: var(--cool-grey);
}

.lab-search:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.3);
}

.lab-progress {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 200px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--cool-grey);
}

.lab-progress-track {
    height: 4px;
    border-radius: 4px;
    background: rgba(248, 251, 255, 0.12);
    overflow: hidden;
}

.lab-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--electric-blue);
    transition: width 0.4s ease;
}

.lab-reader-hero--trial .lab-progress-bar {
    background: #E0675E;
}


/* ---------- Reader layout ---------- */

.lab-reader {
    --accent: var(--electric-blue);
    --accent-soft: var(--pale-blue);
    width: min(1240px, 94%);
    margin: 0 auto;
    padding: 44px 0 110px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.lab-reader--trial {
    --accent: var(--tape-red);
    --accent-soft: var(--tape-soft);
}

.lab-toc-toggle {
    display: none;
}


/* ---------- Contents sidebar ---------- */

.lab-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 6px 10px 20px 0;
    font-family: "Space Grotesk", sans-serif;
    scrollbar-width: thin;
}

.lab-toc-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cool-grey);
    margin: 0 0 10px;
}

.lab-toc-heading--ref {
    margin-top: 24px;
}

.lab-toc-group {
    margin-bottom: 18px;
}

.lab-toc-group-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 6px;
}

.lab-toc-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--slate);
    transition: background 0.15s ease, color 0.15s ease;
}

.lab-toc-link:hover {
    background: var(--blue-white);
    color: var(--rich-charcoal);
}

.lab-toc-link.is-current {
    background: var(--accent-soft);
    color: var(--midnight-navy);
    font-weight: 600;
}

.lab-toc-link.is-read::after {
    content: "\2713";
    margin-left: auto;
    color: var(--accent);
    font-weight: 700;
}

.lab-toc-link--intro {
    font-style: italic;
}

.lab-toc-num {
    flex: 0 0 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cool-grey);
}

.lab-toc-text {
    flex: 1;
}

.lab-toc-ai {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--pale-blue);
    color: var(--electric-blue);
}

.lab-toc-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--cool-grey);
}

.lab-toc-part {
    border-top: 1px solid var(--mist-grey);
}

.lab-toc-part:last-of-type {
    border-bottom: 1px solid var(--mist-grey);
}

.lab-toc-part summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 4px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--rich-charcoal);
}

.lab-toc-part summary::-webkit-details-marker {
    display: none;
}

.lab-toc-part summary::after {
    content: "+";
    margin-left: auto;
    color: var(--cool-grey);
    font-weight: 400;
}

.lab-toc-part[open] summary::after {
    content: "\2013";
}

.lab-toc-part[open] {
    padding-bottom: 8px;
}

.lab-toc-numeral {
    flex: 0 0 34px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.lab-toc-link--part {
    padding-left: 4px;
}


/* ---------- Main view ---------- */

.lab-view {
    min-width: 0;
    max-width: 780px;
}

.lab-view:focus {
    outline: none;
}

.lab-loading,
.lab-error {
    font-family: "Space Grotesk", sans-serif;
    color: var(--slate);
    padding: 40px 0;
}

.lab-error h1 {
    font-size: 24px;
    color: var(--rich-charcoal);
    margin-bottom: 10px;
}

.lab-view-head {
    position: relative;
    padding-bottom: 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--mist-grey);
}

.lab-view-head h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    color: var(--midnight-navy);
    margin: 6px 0 12px;
    max-width: 680px;
}

.lab-kicker {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.lab-kicker a {
    color: inherit;
}

.lab-kicker a:hover {
    text-decoration: underline;
}

.lab-kicker span {
    color: var(--cool-grey);
    margin: 0 4px;
}

.lab-view-lede {
    font-family: "Source Serif 4", serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--slate);
    max-width: 680px;
}

.lab-view-lede a {
    color: var(--accent);
    text-decoration: underline;
}

/* big outline numeral on part pages */
.lab-view-head--part {
    padding-top: 10px;
}

.lab-part-numeral {
    position: absolute;
    right: 0;
    top: -18px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(80px, 12vw, 140px);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--mist-grey);
    pointer-events: none;
    user-select: none;
}

.lab-inpage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.lab-inpage a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--mist-grey);
    background: var(--blue-white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.lab-inpage a:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ---------- Long-form text ---------- */

.lab-prose {
    font-family: "Source Serif 4", serif;
    font-size: 17px;
    line-height: 1.75;
    color: #2B3544;
}

.lab-prose > * + * {
    margin-top: 14px;
}

.lab-prose p,
.lab-prose li {
    font-size: 17px;
}

.lab-prose ul,
.lab-prose ol {
    padding-left: 24px;
}

.lab-prose li + li {
    margin-top: 6px;
}

.lab-prose strong,
.lab-prose b {
    color: var(--rich-charcoal);
    font-weight: 600;
}

.lab-prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lab-prose code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.86em;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--ice-blue);
    word-break: break-word;
}

.lab-prose blockquote {
    margin: 18px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: var(--blue-white);
    border-radius: 0 10px 10px 0;
}

.lab-pre {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--midnight-navy);
    color: var(--ice-blue);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.lab-pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    white-space: pre;
}

.lab-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border: 1px solid var(--mist-grey);
    border-radius: 12px;
    background: var(--lab-paper);
}

.lab-prose table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.lab-prose th,
.lab-prose td {
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--ice-blue);
    min-width: 120px;
}

.lab-prose th {
    background: var(--midnight-navy);
    color: var(--blue-white);
    font-weight: 600;
    font-size: 13px;
}

.lab-prose tbody tr:nth-child(even) td {
    background: #FAFCFF;
}

.lab-prose mark,
.lab-results mark {
    background: #FFE9A8;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}


/* ---------- Section components (moot types) ---------- */

.lab-sec {
    margin: 0 0 22px;
    scroll-margin-top: 100px;
}

.lab-sec-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.lab-sec-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--rich-charcoal);
    margin-bottom: 12px;
}

/* boxed variants share this frame */
.lab-sec--plain,
.lab-sec--why,
.lab-sec--how,
.lab-sec--look,
.lab-sec--wrong,
.lab-sec--digital,
.lab-sec--ai,
.lab-sec--check,
.lab-sec--output,
.lab-sec--advanced,
.lab-sec--exercise,
.lab-sec--example,
.lab-sec--template {
    padding: 24px 26px;
    border-radius: 14px;
    border: 1px solid var(--mist-grey);
    background: var(--lab-paper);
}

.lab-sec--content {
    padding: 8px 0 6px;
}

/* In plain words: the lead */
.lab-sec--plain {
    border: 0;
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
    background: var(--blue-white);
}

.lab-sec--plain .lab-prose p {
    font-size: 19px;
    line-height: 1.7;
}

.lab-sec--why {
    background: var(--pale-blue);
    border-color: transparent;
}

.lab-sec--how ol {
    list-style: none;
    counter-reset: step;
    padding-left: 0;
}

.lab-sec--how ol li {
    counter-increment: step;
    position: relative;
    padding-left: 42px;
    min-height: 28px;
}

.lab-sec--how ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--midnight-navy);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-sec--wrong {
    border-color: #EBC5C1;
    border-left: 4px solid var(--tape-red);
    border-radius: 0 14px 14px 0;
    background: var(--tape-soft);
}

.lab-sec--wrong .lab-sec-label {
    color: var(--tape-red);
}

.lab-sec--digital {
    background: var(--blue-white);
}

.lab-sec--ai {
    border: 1px solid rgba(22, 119, 255, 0.35);
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(22, 119, 255, 0) 60%),
        var(--lab-paper);
}

.lab-sec--ai .lab-sec-label {
    color: var(--electric-blue);
}

.lab-sec--check ul {
    list-style: none;
    padding-left: 0;
}

.lab-sec--check li {
    position: relative;
    padding-left: 32px;
}

.lab-sec--check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 17px;
    height: 17px;
    border: 2px solid var(--accent);
    border-radius: 4px;
}

/* Stage output: a stamped deliverable */
.lab-sec--output {
    border: 2px dashed var(--accent);
    background: var(--lab-paper);
    position: relative;
}

.lab-sec--output::after {
    content: "Deliverable";
    position: absolute;
    right: 18px;
    top: -11px;
    padding: 2px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lab-sec--advanced {
    background: var(--midnight-navy);
    border-color: var(--midnight-navy);
}

.lab-sec--advanced .lab-sec-label {
    color: #7FB2FF;
}

.lab-sec--advanced .lab-prose,
.lab-sec--advanced .lab-prose p,
.lab-sec--advanced .lab-prose li,
.lab-sec--advanced .lab-prose strong {
    color: var(--mist-grey);
}

.lab-sec--advanced .lab-prose strong {
    color: #fff;
}

.lab-sec--exercise {
    background: #FFFBEF;
    border-color: #EFE1B5;
}

.lab-sec--exercise .lab-sec-label {
    color: #8A6A12;
}

/* Running example: a case file */
.lab-sec--example {
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(22, 119, 255, 0.06) 31px 32px),
        #FDFEFF;
    border-left: 4px solid var(--midnight-navy);
    border-radius: 0 14px 14px 0;
}

.lab-sec--example .lab-sec-label {
    color: var(--midnight-navy);
}

.lab-sec--template {
    border-style: dashed;
}


/* ---------- AI Legal Hub link box ---------- */

.lab-hub-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 16px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--midnight-navy);
    color: var(--blue-white);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lab-hub-box:hover {
    background: #0C2A52;
    transform: translateY(-1px);
}

.lab-hub-box:focus-visible {
    outline: 3px solid var(--electric-blue);
    outline-offset: 3px;
}

.lab-hub-box-label {
    grid-column: 1;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7FB2FF;
}

.lab-hub-box-title {
    grid-column: 1;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.lab-hub-box-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 22px;
    color: var(--electric-blue);
}


/* ---------- Part pages: chapter list ---------- */

.lab-part-intro {
    margin-bottom: 30px;
}

.lab-part-intro p:first-child {
    font-size: 19px;
}

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

.lab-chapter-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid var(--mist-grey);
    background: var(--lab-paper);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lab-chapter-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 26, 51, 0.07);
}

.lab-chapter-card.is-read {
    background: var(--blue-white);
}

.lab-chapter-card-num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.lab-chapter-card-title {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--rich-charcoal);
    margin-bottom: 6px;
}

.lab-chapter-card-output {
    display: block;
    font-family: "Source Serif 4", serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate);
}

.lab-chapter-card-output b {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    color: var(--midnight-navy);
}

.lab-chapter-card-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.lab-tag {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.lab-tag--ai {
    background: var(--pale-blue);
    color: var(--electric-blue);
}

.lab-tag--read {
    background: var(--midnight-navy);
    color: #fff;
}


/* ---------- Templates ---------- */

.lab-annex-strip {
    margin: 30px 0 10px;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--pale-blue);
}

.lab-annex-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lab-annex-chips a {
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--lab-paper);
    border: 1px solid var(--mist-grey);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    color: var(--slate);
}

.lab-annex-chips a b {
    color: var(--accent);
    margin-right: 4px;
}

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

.lab-annex-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--mist-grey);
    border-top: 3px solid var(--accent);
    background: var(--lab-paper);
    font-family: "Space Grotesk", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lab-annex-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(7, 26, 51, 0.07);
}

.lab-annex-card-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.lab-annex-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--rich-charcoal);
}

.lab-annex-card-meta {
    font-size: 12px;
    color: var(--cool-grey);
}

.lab-print {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--mist-grey);
    background: var(--lab-paper);
    font-size: 13px;
    font-weight: 600;
    color: var(--midnight-navy);
}

.lab-print:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* ---------- Glossary ---------- */

.lab-gloss-filter {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    margin: 4px 0 20px;
    border-radius: 12px;
    border: 1px solid var(--mist-grey);
    background: var(--lab-paper);
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
}

.lab-gloss-filter:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.lab-gloss {
    display: grid;
    gap: 0;
}

.lab-gloss-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mist-grey);
}

.lab-gloss-row[hidden] {
    display: none;
}

.lab-gloss dt {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--midnight-navy);
}

.lab-gloss dd {
    font-family: "Source Serif 4", serif;
    color: var(--slate);
    line-height: 1.65;
}


/* ---------- Read toggle + pager ---------- */

.lab-read-row {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}

.lab-read-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    transition: background 0.2s ease, color 0.2s ease;
}

.lab-read-toggle::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.lab-read-toggle.is-done {
    background: var(--accent);
    color: #fff;
}

.lab-read-toggle.is-done::before {
    content: "\2713";
    border: 0;
    width: auto;
    height: auto;
    font-size: 13px;
    line-height: 1;
}

.lab-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--mist-grey);
}

.lab-pager a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--mist-grey);
    background: var(--lab-paper);
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rich-charcoal);
    transition: border-color 0.2s ease;
}

.lab-pager a:hover {
    border-color: var(--accent);
}

.lab-pager span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.lab-pager-next {
    text-align: right;
    align-items: flex-end;
}


/* ---------- Search results ---------- */

.lab-results {
    list-style: none;
    display: grid;
    gap: 10px;
}

.lab-results a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--mist-grey);
    background: var(--lab-paper);
}

.lab-results a:hover {
    border-color: var(--accent);
}

.lab-results-kicker {
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.lab-results-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--rich-charcoal);
}

.lab-results-snippet {
    font-family: "Source Serif 4", serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--slate);
}


/* ---------- Trial  guidebook building blocks ---------- */

.lab-trial-body h3 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--midnight-navy);
    margin: 48px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--mist-grey);
    scroll-margin-top: 100px;
}

.lab-trial-body > h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.lab-trial-body h3 .cn {
    flex-shrink: 0;
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--tape-soft);
    color: var(--tape-red);
    font-size: 14px;
    text-align: center;
}

.lab-trial-body h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--rich-charcoal);
    margin: 26px 0 8px;
}

.lab-trial-body .lvl {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    vertical-align: 2px;
}

.lab-trial-body .l1 { background: var(--pale-blue); color: var(--electric-blue); }
.lab-trial-body .l2 { background: #FFF3D6; color: #8A6A12; }
.lab-trial-body .l3 { background: var(--tape-soft); color: var(--tape-red); }

.lab-trial-body aside,
.lab-trial-body .box {
    margin: 22px 0;
    padding: 20px 22px;
    border-radius: 0 14px 14px 0;
    border-left: 4px solid var(--mist-grey);
    background: var(--lab-paper);
}

.lab-trial-body :where(p, ul, ol, pre, .tw, .qa, .flow, details, dl) {
    margin-top: 12px;
}

.lab-trial-body aside > :first-child,
.lab-trial-body .box > :first-child,
.lab-trial-body .qa > :first-child {
    margin-top: 0;
}

.lab-trial-body aside.ai {
    border: 1px solid rgba(22, 119, 255, 0.35);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(22, 119, 255, 0) 60%),
        var(--lab-paper);
}

.lab-trial-body aside.ai h4 {
    color: var(--electric-blue);
}

/* the hub link inside AI boxes becomes the same link box as in the moot reader */
.lab-trial-body aside.ai .hub {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--midnight-navy);
    color: var(--mist-grey);
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
}

.lab-trial-body aside.ai .hub a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.lab-trial-body aside.ai .hub a::after {
    content: " \2192";
    color: var(--electric-blue);
}

.lab-trial-body pre.prompt {
    white-space: pre-wrap;
    font-family: "Source Serif 4", serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px dashed rgba(22, 119, 255, 0.4);
    background: var(--blue-white);
}

.lab-trial-body .box.ex {
    border-left-color: var(--midnight-navy);
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(22, 119, 255, 0.06) 31px 32px),
        #FDFEFF;
}

.lab-trial-body .box.mis {
    border-left-color: var(--tape-red);
    background: var(--tape-soft);
}

.lab-trial-body .box.mis h4 {
    color: var(--tape-red);
}

.lab-trial-body .box.law {
    border-left-color: var(--midnight-navy);
    background: var(--pale-blue);
}

.lab-trial-body .box.think {
    border: 1px solid #EFE1B5;
    border-left: 4px solid #C9A227;
    background: #FFFBEF;
}

.lab-trial-body .qa {
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--lab-paper);
    border: 1px solid var(--mist-grey);
}

.lab-trial-body .qa p {
    margin: 4px 0;
}

.lab-trial-body .qa .q::before,
.lab-trial-body .qa .a::before {
    display: inline-block;
    width: 28px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.lab-trial-body .qa .q::before {
    content: "Q.";
    color: var(--tape-red);
}

.lab-trial-body .qa .a::before {
    content: "A.";
    color: var(--cool-grey);
}

.lab-trial-body .qa .n {
    font-style: italic;
    color: var(--slate);
    font-size: 15px;
}

.lab-trial-body ol.journey {
    list-style: none;
    counter-reset: s;
    position: relative;
    padding-left: 0;
}

.lab-trial-body ol.journey::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--tape-red);
    opacity: 0.35;
}

.lab-trial-body ol.journey li {
    counter-increment: s;
    position: relative;
    padding: 6px 0 10px 54px;
}

.lab-trial-body ol.journey li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lab-paper);
    border: 2px solid var(--tape-red);
    color: var(--tape-red);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-trial-body ol.journey li b {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    color: var(--rich-charcoal);
}

.lab-trial-body ol.journey li span {
    color: var(--slate);
    font-size: 15px;
}

.lab-trial-body .checklist {
    list-style: none;
    padding-left: 0;
}

.lab-trial-body .checklist li {
    position: relative;
    padding-left: 32px;
}

.lab-trial-body .checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 17px;
    height: 17px;
    border: 2px solid var(--tape-red);
    border-radius: 4px;
}

.lab-trial-body .flow {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--midnight-navy);
    color: var(--ice-blue);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    text-align: center;
    line-height: 1.9;
}

.lab-trial-body .tw {
    overflow-x: auto;
    border: 1px solid var(--mist-grey);
    border-radius: 12px;
    background: var(--lab-paper);
}

.lab-trial-body table.blank td {
    height: 36px;
}

.lab-trial-body details.reveal {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
}

.lab-trial-body details.reveal summary {
    cursor: pointer;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--tape-red);
}

.lab-trial-body dl.gloss dt {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--midnight-navy);
    margin-top: 16px;
}

.lab-trial-body dl.gloss dd {
    margin: 4px 0 0;
    color: var(--slate);
}

.lab-trial-body [hidden] {
    display: none;
}

.lab-trial-footer {
    margin-top: 40px;
    padding: 20px 22px;
    border-radius: 12px;
    background: var(--blue-white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: var(--slate);
}

.lab-trial-footer p + p {
    margin-top: 8px;
}

.lab-trial-footer a {
    color: var(--electric-blue);
    font-weight: 600;
}


/* ---------- Responsive ---------- */

@media (max-width: 1000px) {

    .lab-doors,
    .lab-ai-band-grid {
        grid-template-columns: 1fr;
    }

    .lab-ai-band-grid {
        gap: 36px;
    }


    .lab-shelf {
        grid-template-columns: 1fr;
    }

    .lab-reader {
        display: block;
        padding-top: 20px;
    }

    .lab-toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        margin-bottom: 20px;
        border-radius: 12px;
        border: 1px solid var(--mist-grey);
        background: var(--lab-paper);
        font-size: 15px;
        font-weight: 700;
        color: var(--midnight-navy);
    }

    .lab-toc-toggle::after {
        content: "+";
        font-size: 20px;
        color: var(--accent);
    }

    .lab-toc-toggle[aria-expanded="true"]::after {
        content: "\2013";
    }

    .lab-toc {
        display: none;
        position: static;
        max-height: none;
        margin-bottom: 26px;
        padding: 16px;
        border-radius: 12px;
        border: 1px solid var(--mist-grey);
        background: var(--lab-paper);
    }

    .lab-toc.is-open {
        display: block;
    }

    .lab-view {
        max-width: none;
    }
}

@media (max-width: 640px) {

    .lab-landing-section,
    .lab-ai-band {
        padding: 70px 0;
    }

    .lab-door {
        padding: 32px 22px 26px;
    }

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


    .lab-reader-hero {
        padding-top: 70px;
    }

    .lab-sec--plain,
    .lab-sec--why,
    .lab-sec--how,
    .lab-sec--look,
    .lab-sec--wrong,
    .lab-sec--digital,
    .lab-sec--ai,
    .lab-sec--check,
    .lab-sec--output,
    .lab-sec--advanced,
    .lab-sec--exercise,
    .lab-sec--example,
    .lab-sec--template {
        padding: 18px 16px;
    }

    .lab-chapter-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .lab-chapter-card-tags {
        grid-column: 2;
        flex-direction: row;
        align-items: flex-start;
    }

    .lab-annex-grid,
    .lab-pager {
        grid-template-columns: 1fr;
    }

    .lab-pager-next {
        text-align: left;
        align-items: flex-start;
    }

    .lab-gloss-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lab-part-numeral {
        font-size: 64px;
        top: -6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lab-door-cta,
    .lab-chapter-card,
    .lab-annex-card,
    .lab-hub-box,
    .lab-progress-bar {
        transition: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .lab-reader-hero,
    .lab-toc,
    .lab-toc-toggle,
    .lab-pager,
    .lab-read-row,
    .lab-print {
        display: none !important;
    }

    .lab-reader {
        display: block;
        padding: 0;
    }

    .lab-sec,
    .lab-trial-body aside,
    .lab-trial-body .box {
        break-inside: avoid;
    }
}

/* Podcast: links, disabled state, empty message */
a.podcast-play-button { text-decoration: none; }
.podcast-play-button.is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.podcast-empty { text-align: center; color: var(--slate); font-family: "Space Grotesk", sans-serif; padding: 40px 0; }


/* =========================================================
   JURISENCE PODCAST — UPDATED PAGE DESIGN
   Add this section at the END of style.css
========================================================= */

/* HERO */

.podcast-page-hero {
    position: relative;
    overflow: hidden;
    padding: 145px 20px 100px;
    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(22, 119, 255, 0.17),
            transparent 34%
        ),
        var(--midnight-navy);
}

.podcast-hero-inner {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.podcast-page-hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin: 20px 0;
}

.podcast-page-hero h1 span {
    color: var(--electric-blue);
}

.podcast-page-hero p {
    max-width: 650px;
    margin: 0 auto;
    font-family: "Source Serif 4", serif;
    font-size: 18px;
    line-height: 1.75;
    color: var(--mist-grey);
}

.podcast-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 13px 22px;
    border: 1px solid rgba(248, 251, 255, 0.25);
    border-radius: 8px;
    color: var(--blue-white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

.podcast-hero-link:hover {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    transform: translateY(-3px);
}


/* EPISODE SECTION */

.podcast-page-body {
    padding: 90px 0 110px;
    background: var(--ice-blue);
}

.podcast-list-container {
    width: min(1050px, 92%);
    margin: 0 auto;
}

.podcast-section-heading {
    max-width: 650px;
    margin: 0 auto 48px;
    text-align: center;
}

.podcast-section-heading h2 {
    margin: 12px 0;
    color: var(--midnight-navy);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1px;
}

.podcast-section-heading h2 span {
    color: var(--electric-blue);
}

.podcast-section-heading p {
    color: var(--slate);
    font-family: "Source Serif 4", serif;
    font-size: 16px;
    line-height: 1.7;
}


/* FEATURED EPISODE */

.podcast-featured-card {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) 1.15fr;
    gap: 38px;
    align-items: center;
    padding: 30px;
    margin-bottom: 24px;
    background: var(--blue-white);
    border: 1px solid var(--mist-grey);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(7, 26, 51, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podcast-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(7, 26, 51, 0.10);
}

.podcast-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}


.podcast-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-featured-card:hover .podcast-cover {
    transform: scale(1.035);
}

.podcast-episode-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 5px;
    background: var(--electric-blue);
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* FEATURED EPISODE CONTENT */

.podcast-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #167A45;
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.podcast-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20A464;
    box-shadow: 0 0 0 4px rgba(32, 164, 100, 0.12);
}

.podcast-category {
    margin-bottom: 10px;
    color: var(--electric-blue);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.podcast-featured-content h3 {
    margin-bottom: 14px;
    color: var(--midnight-navy);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.podcast-description {
    margin-bottom: 22px;
    color: var(--slate);
    font-family: "Source Serif 4", serif;
    font-size: 15px;
    line-height: 1.75;
}


/* HOST AND GUEST */

.podcast-guest-details {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    padding: 18px 0;
    border-top: 1px solid var(--mist-grey);
    border-bottom: 1px solid var(--mist-grey);
}

.podcast-guest-details div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.podcast-guest-details span {
    color: var(--cool-grey);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.podcast-guest-details strong {
    color: var(--midnight-navy);
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
}


/* PLATFORM BUTTONS */

.podcast-platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.podcast-platform-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: 0.25s ease;
}

.podcast-youtube {
    background: var(--midnight-navy);
    color: white;
}

.podcast-spotify {
    background: var(--electric-blue);
    color: white;
}

.podcast-platform-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
}


/* UPCOMING EPISODE */

.podcast-upcoming-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 30px;
    margin-top: 20px;
    border: 1px solid var(--mist-grey);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.75);
}

.podcast-upcoming-number {
    flex-shrink: 0;
    color: rgba(22, 119, 255, 0.25);
    font-family: "Space Grotesk", sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.podcast-upcoming-content {
    flex: 1;
    min-width: 0;
}

.podcast-upcoming-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.podcast-coming-soon {
    padding: 5px 10px;
    border-radius: 30px;
    background: var(--pale-blue);
    color: var(--electric-blue);
    font-family: "Space Grotesk", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.podcast-upcoming-content h3 {
    margin-bottom: 9px;
    color: var(--midnight-navy);
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    line-height: 1.35;
}

.podcast-upcoming-content > p {
    color: var(--slate);
    font-family: "Source Serif 4", serif;
    font-size: 14px;
    line-height: 1.7;
}

.podcast-upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    color: var(--cool-grey);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 600;
}


/* BOTTOM NOTE */

.podcast-bottom-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 26px;
    margin-top: 35px;
    border-radius: 14px;
    background: var(--midnight-navy);
}

.podcast-note-icon {
    color: var(--electric-blue);
    font-size: 24px;
}

.podcast-bottom-note h3 {
    margin-bottom: 5px;
    color: var(--blue-white);
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
}

.podcast-bottom-note p {
    color: var(--cool-grey);
    font-family: "Source Serif 4", serif;
    font-size: 14px;
    line-height: 1.65;
}


/* RESPONSIVE */

@media (max-width: 760px) {

    .podcast-page-hero {
        padding: 110px 20px 75px;
    }

    .podcast-page-body {
        padding: 65px 0 80px;
    }

    .podcast-featured-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .podcast-cover-wrap {
    position: relative;
    overflow: hidden;
    background: #EAF5FF;
    border-radius: 18px;
}

    .podcast-featured-content h3 {
        font-size: 25px;
    }

    .podcast-upcoming-card {
        padding: 22px 18px;
        gap: 15px;
    }

    .podcast-upcoming-number {
        font-size: 30px;
    }
}

@media (max-width: 480px) {

    .podcast-page-hero h1 {
        letter-spacing: -1px;
    }

    .podcast-page-hero p {
        font-size: 15px;
    }

    .podcast-section-heading {
        margin-bottom: 30px;
    }

    .podcast-guest-details {
        gap: 25px;
    }

    .podcast-platform-links {
        flex-direction: column;
    }

    .podcast-platform-button {
        width: 100%;
    }

    .podcast-upcoming-card {
        flex-direction: column;
    }

    .podcast-bottom-note {
        padding: 20px;
    }
}


/* =========================================
   JURISENCE PODCAST - FEATURED CARD FIX
========================================= */

.podcast-featured-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 38px;
    padding: 30px;
    border-radius: 22px;
    overflow: hidden;
}

/* Cover image container */

.podcast-cover-wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #EAF5FF;
    align-self: center;
}

/* Complete original cover */

.podcast-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Episode badge */

.podcast-episode-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 8px;
    background: #1677FF;
    color: #FFFFFF;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Episode details */

.podcast-featured-content {
    min-width: 0;
    width: 100%;
}

.podcast-featured-content h3 {
    line-height: 1.2;
    margin-top: 14px;
    margin-bottom: 16px;
}

.podcast-description {
    line-height: 1.7;
}

/* Mobile layout */

@media (max-width: 768px) {

    .podcast-featured-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 18px;
    }

    .podcast-cover-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .podcast-featured-content h3 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .podcast-episode-badge {
        top: 10px;
        left: 10px;
    }
}

.jx-podcast-actions .podcast-youtube {
    background: #FFFFFF;
    color: #0B1B33;
    border: 1px solid #FFFFFF;
}

.jx-podcast-actions .podcast-youtube:hover {
    background: #EAF5FF;
    color: #0B1B33;
}


/* =========================================================
   Jurisence Premium · sign-in and notice dialogs
   Uses the site's own colours and fonts (style.css variables),
   with the same values as fallbacks.
   ========================================================= */

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

.jp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: rgba(7, 26, 51, 0.58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: jp-fade 0.18s ease-out;
}

.jp-modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    padding: 30px 26px 24px;
    background: #ffffff;
    border: 1px solid var(--mist-grey, #D0D5DD);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(7, 26, 51, 0.35);
    color: var(--midnight-navy, #071A33);
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    animation: jp-rise 0.22s ease-out;
}

.jp-modal__card:focus {
    outline: none;
}

.jp-modal__brand {
    margin: 0 0 10px;
    color: var(--electric-blue, #1677FF);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--slate, #475467);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.jp-modal__close:hover {
    background: var(--ice-blue, #EAF5FF);
}

.jp-modal__title {
    margin: 0 40px 10px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--midnight-navy, #071A33);
}

.jp-modal__lede {
    margin: 0 0 18px;
    color: var(--slate, #475467);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 16px;
    line-height: 1.6;
}

.jp-modal__lede strong {
    color: var(--midnight-navy, #071A33);
    overflow-wrap: anywhere;
}

.jp-modal__label {
    display: block;
    margin-bottom: 6px;
    color: var(--midnight-navy, #071A33);
    font-size: 13px;
    font-weight: 600;
}

/* 16px minimum so phones do not zoom into the field */
.jp-modal__input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: #ffffff;
    border: 1.5px solid var(--mist-grey, #D0D5DD);
    border-radius: 12px;
    color: var(--midnight-navy, #071A33);
    font: 500 16px "Space Grotesk", system-ui, sans-serif;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jp-modal__input::placeholder {
    color: var(--cool-grey, #98A2B3);
}

.jp-modal__input:focus {
    border-color: var(--electric-blue, #1677FF);
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.16);
}

.jp-modal__input--code {
    padding-left: 0.45em;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.45em;
    font-variant-numeric: tabular-nums;
}

.jp-modal__hint {
    margin: 10px 0 0;
    color: var(--slate, #475467);
    font-size: 13px;
    line-height: 1.5;
}

.jp-modal__error,
.jp-modal__note {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.jp-modal__error {
    color: var(--tape-red, #B3362E);
}

.jp-modal__note {
    color: #1B7F4B;
}

.jp-modal__error:empty,
.jp-modal__note:empty {
    display: none;
}

.jp-modal__btn {
    display: block;
    width: 100%;
    height: 50px;
    margin-top: 16px;
    border: 0;
    border-radius: 12px;
    background: var(--electric-blue, #1677FF);
    color: #ffffff;
    font: 600 16px "Space Grotesk", system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.jp-modal__btn:hover:not(:disabled) {
    background: #0F63DB;
}

.jp-modal__btn:active:not(:disabled) {
    transform: translateY(1px);
}

.jp-modal__btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.jp-modal__btn.is-busy {
    position: relative;
    color: transparent;
}

.jp-modal__btn.is-busy::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: jp-spin 0.7s linear infinite;
}

.jp-modal__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin-top: 12px;
}

.jp-modal__link {
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--electric-blue, #1677FF);
    font: 600 14px "Space Grotesk", system-ui, sans-serif;
    cursor: pointer;
}

.jp-modal__link:hover:not(:disabled) {
    text-decoration: underline;
}

.jp-modal__link:disabled {
    color: var(--cool-grey, #98A2B3);
    cursor: default;
}

.jp-modal__btn:focus-visible,
.jp-modal__link:focus-visible,
.jp-modal__close:focus-visible {
    outline: 3px solid rgba(22, 119, 255, 0.45);
    outline-offset: 2px;
}

/* ---------------------------------------------------
   Account line in the guide header (Log in / Sign out)
   The header is dark navy, so these colours are light.
   --------------------------------------------------- */

.jp-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: 22px;
    color: var(--cool-grey, #98A2B3);
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
}

.jp-account:empty {
    display: none;
}

.jp-account__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(46, 160, 100, 0.2);
    color: #7DDBA6;
    font-size: 12px;
    font-weight: 600;
}

.jp-account__email {
    color: var(--mist-grey, #D0D5DD);
    overflow-wrap: anywhere;
}

.jp-account__btn {
    min-height: 32px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: #6AA7FF;
    font: 600 13px "Space Grotesk", system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lab-reader-hero--trial .jp-account__btn {
    color: #F08A80;
}

.jp-account__btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.jp-account__btn:focus-visible {
    outline: 3px solid rgba(106, 167, 255, 0.6);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .jp-modal__card {
        padding: 26px 20px 20px;
        border-radius: 18px;
    }

    .jp-modal__title {
        font-size: 22px;
    }

    .jp-modal__input--code {
        font-size: 24px;
        letter-spacing: 0.35em;
        padding-left: 0.35em;
    }
}

@keyframes jp-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes jp-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .jp-modal,
    .jp-modal__card,
    .jp-modal__btn.is-busy::after {
        animation: none;
    }
}