:root {
    --jl-logo-blue: #168bef;
    --jl-logo-blue-dark: #1068f0;
    --jl-logo-blue-deep: #0f5bd8;
    --jl-logo-cyan: #30c0d8;
    --jl-primary-50: #eff8ff;
    --jl-primary-100: #dbeefe;
    --jl-primary-200: #bfdefd;
    --jl-primary-300: #91c9fb;
    --jl-primary-400: #4aa8f5;
    --jl-primary-500: var(--jl-logo-blue);
    --jl-primary-600: var(--jl-logo-blue-dark);
    --jl-primary-700: var(--jl-logo-blue-deep);
    --jl-primary-800: #104bb8;
    --jl-primary-900: #123f86;
    --jl-primary-950: #0f2554;
    --jl-neutral-50: #fafafa;
    --jl-neutral-100: #f4f4f5;
    --jl-neutral-200: #e4e4e7;
    --jl-neutral-300: #d4d4d8;
    --jl-neutral-400: #a1a1aa;
    --jl-neutral-500: #71717a;
    --jl-neutral-600: #52525b;
    --jl-neutral-700: #3f3f46;
    --jl-neutral-800: #27272a;
    --jl-neutral-900: #18181b;
    --jl-border: #ddd;
    --jl-admin-border: #e5e7eb;
    --jl-page-bg: #f4f4f5;
    --jl-header-height: 57px;
    --jl-radius: 4px;
    --jl-shadow-header: 0 1px 3px 0 rgb(0 0 0 / 0.10), 0 1px 2px -1px rgb(0 0 0 / 0.10);
    --jl-shadow-panel: 0 1px 1px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: var(--jl-page-bg);
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.42857143;
    overflow-x: hidden;
}

body > * {
    font-size: 14px;
}

a {
    color: var(--jl-primary-800);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--jl-primary-900);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    min-height: var(--jl-header-height);
    background: #fff;
    box-shadow: var(--jl-shadow-header);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--jl-header-height);
    gap: 18px;
}

.nav-toggle {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    height: 33px;
}

.brand small,
.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.2em 0.6em 0.3em;
    border-radius: 0.25em;
    background: var(--jl-primary-50);
    color: var(--jl-primary-800);
    box-shadow: inset 0 0 0 1px rgba(38, 127, 142, 0.14);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.brand small {
    font-size: 10px;
    line-height: 1.15;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    color: #6b7280;
    font-size: 13.5px;
    font-weight: 400;
}

.nav-links a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--jl-header-height);
    padding: 18px 11px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    line-height: 17px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
    color: #0f172a;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% - 1px);
    right: -96px;
    display: none;
    width: min(920px, calc(100vw - 32px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--jl-border);
    border-radius: var(--jl-radius);
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.nav-dropdown-open .nav-dropdown-panel {
    display: grid;
}

.nav-dropdown-col {
    display: grid;
    align-content: start;
    gap: 6px;
}

.nav-dropdown-col strong,
.footer-links strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.nav-dropdown-panel a {
    justify-content: flex-start;
    min-height: 0;
    padding: 5px 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus {
    color: var(--jl-logo-blue-dark);
}

.btn,
.nav-links .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 0;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: var(--jl-radius);
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42857143;
    text-align: center;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}

.nav-links .btn {
    min-height: 34px;
    margin-left: 8px;
}

.btn:hover,
.btn:focus {
    border-color: #adadad;
    background: #e6e6e6;
    color: #333;
}

.btn.primary,
.nav-links .btn.primary {
    border-color: var(--jl-logo-blue-dark);
    background: var(--jl-logo-blue);
    color: #fff;
}

.btn.primary:hover,
.btn.primary:focus,
.nav-links .btn.primary:hover,
.nav-links .btn.primary:focus {
    border-color: var(--jl-logo-blue-deep);
    background: var(--jl-logo-blue-dark);
    color: #fff;
}

.hero {
    padding: 72px 0 64px;
    background:
        linear-gradient(180deg, #fff 0%, #fff 58%, var(--jl-page-bg) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
    gap: 42px;
    align-items: center;
}

.hero-grid > *,
.grid > *,
.footer-grid > * {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 16px;
}

h1,
h2,
h3 {
    margin: 0;
    color: #111827;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    max-width: 900px;
    font-size: clamp(40px, 5.2vw, 58px);
    font-weight: 600;
    line-height: 1.1;
    overflow-wrap: break-word;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(28px, 3.1vw, 38px);
    font-weight: 600;
    line-height: 1.16;
}

h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.gradient-text {
    color: var(--jl-logo-blue-dark);
}

.lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.65;
    overflow-wrap: break-word;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.answer-card,
.panel,
.card,
.faq details,
.cta-band,
.comparison,
.media-card,
.workflow-step {
    border: 1px solid var(--jl-border);
    border-radius: var(--jl-radius);
    background: #fff;
    box-shadow: var(--jl-shadow-panel);
}

.answer-card,
.panel {
    width: 100%;
    max-width: 100%;
}

.answer-card {
    padding: 18px;
}

.answer-card strong {
    display: block;
    margin: -18px -18px 16px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--jl-border);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.answer-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 18px -18px -18px;
    border-top: 1px solid var(--jl-border);
}

.metric {
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid var(--jl-border);
    background: #f9fafb;
}

.metric:last-child {
    border-right: 0;
}

.metric b {
    display: block;
    color: var(--jl-primary-800);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.1;
}

.metric span {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.25;
}

.section {
    padding: 72px 0;
    background: var(--jl-page-bg);
}

.section.compact {
    padding: 32px 0;
}

.section.alt {
    background: #fff;
    border-block: 1px solid var(--jl-admin-border);
}

.section-intro {
    max-width: 780px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

.media-card {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.media-card img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    border: 1px solid var(--jl-admin-border);
    border-radius: var(--jl-radius);
    background: #fff;
}

.media-card p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.card {
    width: 100%;
    max-width: 100%;
    padding: 20px;
}

.card h3 {
    margin-bottom: 12px;
}

.card p,
.card li {
    color: #4b5563;
    line-height: 1.65;
    overflow-wrap: break-word;
}

.answer-card p,
.faq p,
.comparison td {
    overflow-wrap: break-word;
}

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

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 11px;
    height: 11px;
    border: 1px solid var(--jl-primary-700);
    border-radius: 2px;
    background: var(--jl-primary-50);
    box-shadow: inset 0 0 0 2px #fff;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.workflow-step {
    padding: 18px;
}

.workflow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    margin-bottom: 12px;
    border: 1px solid var(--jl-primary-200);
    border-radius: var(--jl-radius);
    background: var(--jl-primary-50);
    color: var(--jl-primary-800);
    font-size: 12px;
    font-weight: 700;
}

.workflow-step h3 {
    margin-bottom: 10px;
}

.workflow-step p {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.comparison {
    width: 100%;
    margin-top: 18px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.comparison th,
.comparison td {
    padding: 10px 12px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.comparison th {
    background: #f3f4f6;
    color: #030712;
    font-weight: 600;
}

.comparison td {
    color: #4b5563;
}

.comparison th:last-child,
.comparison td:last-child {
    border-right: 0;
}

.comparison tr:last-child td {
    border-bottom: 0;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill:hover,
.pill:focus {
    background: var(--jl-primary-100);
    color: var(--jl-primary-900);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    padding: 0;
}

.faq summary {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--jl-border);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    font-weight: 600;
}

.faq p {
    margin: 0;
    padding: 16px 18px;
    color: #4b5563;
    line-height: 1.65;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-left: 4px solid var(--jl-primary-800);
}

.cta-band h2,
.cta-band h3 {
    color: #111827;
}

.cta-band p {
    color: #4b5563;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 20px;
}

.footer-links {
    display: grid;
    gap: 7px;
}

.footer-links a {
    color: #6b7280;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #111827;
}

.source-note {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        position: relative;
        justify-content: center;
        min-height: var(--jl-header-height);
        padding: 0 56px;
    }

    .brand {
        justify-content: center;
        text-align: center;
    }

    .brand img {
        height: 31px;
    }

    .brand small {
        display: none;
    }

    .nav-toggle {
        position: absolute;
        top: 9px;
        right: 15px;
        z-index: 101;
        display: inline-flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border: 1px solid #ccc;
        border-radius: var(--jl-radius);
        background: #fff;
        color: #333;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 17px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .site-header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: var(--jl-header-height);
        right: 0;
        left: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        border-bottom: 1px solid #e4e5e7;
        background: #fff;
        box-shadow: var(--jl-shadow-header);
    }

    .site-header.nav-open .nav-links {
        display: grid;
    }

    .nav-links a {
        justify-content: flex-start;
        min-height: 42px;
        padding: 10px 15px;
        border-bottom: 1px solid #e2e8f0;
        color: #334155;
        white-space: normal;
    }

    .nav-dropdown {
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-dropdown-toggle {
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 10px 15px;
        color: #334155;
    }

    .nav-dropdown-panel {
        position: static;
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 15px 14px;
        border: 0;
        box-shadow: none;
    }

    .nav-dropdown:hover .nav-dropdown-panel {
        display: none;
    }

    .nav-dropdown.nav-dropdown-open .nav-dropdown-panel {
        display: grid;
    }

    .nav-dropdown-panel a {
        min-height: 0;
        padding: 4px 0;
        border-bottom: 0;
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .nav-links .btn {
        display: flex;
        width: calc(100% - 30px);
        margin: 10px 15px;
        text-align: center;
    }

    .hero {
        padding: 44px 0 48px;
    }

    .hero-grid,
    .workflow-grid,
    .grid.three,
    .grid.two,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .metric {
        border-right: 0;
        border-bottom: 1px solid var(--jl-border);
    }

    .metric:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 52px 0;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: clamp(31px, 9vw, 38px);
        line-height: 1.14;
    }

    h2 {
        font-size: clamp(24px, 7.5vw, 30px);
    }

    .lead {
        font-size: 16px;
    }

    .answer-card,
    .card,
    .cta-band {
        padding: 16px;
    }

    .answer-card strong {
        margin: -16px -16px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
