:root {
    --tl-ink: #17211b;
    --tl-muted: #5a665f;
    --tl-line: #d8ded8;
    --tl-paper: #f7f8f5;
    --tl-panel: #ffffff;
    --tl-mist: #e8efea;
    --tl-teal: #246c67;
    --tl-teal-dark: #174f4b;
    --tl-rust: #a5572b;
    --tl-gold: #d6a642;
    --tl-night: #182523;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--tl-ink);
    background: var(--tl-paper);
}

.navbar {
    --bs-navbar-padding-y: .85rem;
}

.navbar-brand {
    color: var(--tl-ink);
    font-weight: 700;
}

.nav-pills .nav-link {
    color: var(--tl-muted);
    font-weight: 600;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    color: var(--tl-teal);
}

.btn-primary {
    --bs-btn-bg: var(--tl-teal);
    --bs-btn-border-color: var(--tl-teal);
    --bs-btn-hover-bg: var(--tl-teal-dark);
    --bs-btn-hover-border-color: var(--tl-teal-dark);
    --bs-btn-active-bg: var(--tl-teal-dark);
    --bs-btn-active-border-color: var(--tl-teal-dark);
}

.btn-warning {
    --bs-btn-bg: var(--tl-gold);
    --bs-btn-border-color: var(--tl-gold);
    --bs-btn-hover-bg: #c5912c;
    --bs-btn-hover-border-color: #c5912c;
    --bs-btn-color: #1f211c;
}

.tl-public-site {
    overflow: hidden;
}

.tl-hero {
    position: relative;
    min-height: clamp(640px, 88vh, 820px);
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    color: #ffffff;
    background: var(--tl-night);
}

.tl-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.tl-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}

.tl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 32, 29, .95) 0%, rgba(17, 32, 29, .78) 43%, rgba(17, 32, 29, .38) 100%),
        linear-gradient(0deg, rgba(17, 32, 29, .88) 0%, rgba(17, 32, 29, .15) 45%);
}

.tl-hero__content {
    padding-top: 5rem;
    padding-bottom: 4.25rem;
}

.tl-kicker {
    margin-bottom: .85rem;
    color: var(--tl-rust);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tl-hero .tl-kicker,
.tl-section--dark .tl-kicker {
    color: #f0b76b;
}

.tl-hero h1,
.tl-section h2 {
    margin-bottom: 1.25rem;
    font-weight: 750;
    line-height: 1.03;
}

.tl-hero h1 {
    max-width: 860px;
    font-size: clamp(3rem, 8vw, 5.75rem);
}

.tl-hero__lead {
    max-width: 780px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.25rem;
    line-height: 1.65;
}

.tl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2rem;
}

.tl-hero__actions .btn {
    border-radius: .35rem;
    font-weight: 700;
}

.tl-chat-preview {
    width: min(100%, 460px);
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

.tl-chat-preview__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.tl-chat-preview__badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: .2rem .5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--bs-body-bg);
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 600;
}

.tl-chat-preview__conversation {
    gap: .85rem;
}

.tl-chat-preview .ai-chat__bubble {
    font-size: .88rem;
    white-space: normal;
}

.tl-chat-preview .ai-chat__msg--user .ai-chat__bubble {
    max-width: 92%;
    background: var(--bs-primary-bg-subtle);
}

.tl-proof-band {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--tl-line);
    background: #ffffff;
}

.tl-proof-band p {
    margin-bottom: 0;
    color: var(--tl-muted);
}

.tl-proof-band .tl-metric {
    margin-bottom: .35rem;
    color: var(--tl-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.tl-section {
    padding: 6rem 0;
    background: var(--tl-paper);
}

.tl-section--warm {
    background: var(--tl-mist);
}

.tl-section--groups {
    border-top: 1px solid var(--tl-line);
    border-bottom: 1px solid var(--tl-line);
    background: #edf3ef;
}

.tl-section--systems {
    background: #ffffff;
}

.tl-section--dark {
    color: #ffffff;
    background: var(--tl-night);
}

.tl-section--contact {
    padding-bottom: 4.5rem;
    background: #ffffff;
}

.tl-section h2 {
    max-width: 760px;
    font-size: clamp(2.1rem, 4.2vw, 4rem);
}

.tl-section__lead,
.tl-section-heading p,
.tl-contact p {
    color: var(--tl-muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.tl-section--dark p {
    color: rgba(255, 255, 255, .76);
}

.tl-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--tl-line);
    border-left: 1px solid var(--tl-line);
    background: #ffffff;
}

.tl-feature-grid article {
    min-height: 15.5rem;
    padding: 1.5rem;
    border-right: 1px solid var(--tl-line);
    border-bottom: 1px solid var(--tl-line);
}

.tl-feature-grid i,
.tl-ai-card i {
    color: var(--tl-teal);
    font-size: 1.8rem;
}

.tl-feature-grid h3,
.tl-ai-card h3,
.tl-trust-list h3 {
    margin: 1rem 0 .65rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.tl-feature-grid p,
.tl-ai-card p,
.tl-trust-list p {
    margin-bottom: 0;
    color: var(--tl-muted);
    line-height: 1.6;
}

.tl-group-heading {
    max-width: 960px;
}

.tl-group-journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tl-group-journey article {
    min-height: 24rem;
    padding: 1.6rem;
    border: 1px solid #ccd8d0;
    border-radius: .5rem;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(31, 48, 39, .07);
}

.tl-group-journey__stage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tl-group-journey__stage span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: #f3e5da;
    color: var(--tl-rust);
    font-size: .78rem;
    font-weight: 850;
}

.tl-group-journey__stage i {
    color: var(--tl-teal);
    font-size: 1.75rem;
}

.tl-group-journey .tl-group-journey__verb {
    margin-bottom: .45rem;
    color: var(--tl-teal-dark);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tl-group-journey h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}

.tl-group-journey article > p:not(.tl-group-journey__verb) {
    margin-bottom: 1rem;
    color: var(--tl-muted);
    line-height: 1.7;
}

.tl-group-journey article > p:last-child {
    margin-bottom: 0;
}

.tl-group-outcome {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .85rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: .5rem;
    background: var(--tl-teal-dark);
    color: #ffffff;
}

.tl-group-outcome i {
    color: #f0b76b;
    font-size: 1.35rem;
}

.tl-group-outcome p {
    margin: 0;
    font-weight: 700;
    line-height: 1.55;
}

.tl-notebook {
    border: 1px solid #cbd7cd;
    border-radius: .5rem;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(31, 48, 39, .12);
}

.tl-notebook__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--tl-line);
    color: var(--tl-teal-dark);
    font-weight: 850;
}

.tl-notebook__item {
    display: grid;
    gap: .3rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #e4e9e3;
}

.tl-notebook__item span {
    color: var(--tl-muted);
    font-size: .9rem;
}

.tl-notebook__item strong {
    font-size: 1.08rem;
}

.tl-notebook__prompt {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .85rem;
    align-items: center;
    margin: 1.2rem;
    padding: 1rem;
    border-radius: .35rem;
    background: #f4f1e8;
    color: #3f3324;
    font-weight: 700;
}

.tl-notebook__prompt i {
    color: var(--tl-rust);
    font-size: 1.25rem;
}

.tl-check-list {
    display: grid;
    gap: .95rem;
    margin-top: 1.5rem;
}

.tl-check-list div {
    display: grid;
    grid-template-columns: 1.65rem 1fr;
    gap: .75rem;
    align-items: start;
}

.tl-check-list i {
    color: var(--tl-teal);
    font-size: 1.15rem;
}

.tl-notebook-export {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: .9rem;
    align-items: start;
    margin-top: 1.75rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #c7d7cf;
    border-left: 4px solid var(--tl-teal);
    border-radius: .35rem;
    background: #eef4f0;
}

.tl-notebook-export > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: var(--tl-teal-dark);
    color: #ffffff;
    font-size: 1rem;
}

.tl-notebook-export strong {
    display: block;
    margin-bottom: .3rem;
    color: var(--tl-ink);
    font-size: 1.05rem;
}

.tl-notebook-export p {
    margin: 0;
    color: var(--tl-muted);
    line-height: 1.6;
}

.tl-system-list {
    display: grid;
    gap: .85rem;
    margin-top: 1.6rem;
}

.tl-system-list div {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .85rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--tl-line);
    border-radius: .35rem;
    background: var(--tl-paper);
    color: var(--tl-ink);
    font-weight: 650;
}

.tl-system-list i {
    color: var(--tl-teal);
    font-size: 1.25rem;
}

.tl-section-heading {
    max-width: 820px;
    margin-bottom: 2.5rem;
}

.tl-ai-card {
    min-height: 15rem;
    padding: 1.4rem;
    border: 1px solid var(--tl-line);
    border-radius: .35rem;
    background: #ffffff;
}

.tl-question-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}

.tl-question-strip span {
    display: flex;
    align-items: center;
    min-height: 4.25rem;
    padding: .9rem 1rem;
    border-left: 4px solid var(--tl-rust);
    background: #eef4f0;
    color: var(--tl-ink);
    font-weight: 750;
}

.tl-trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tl-trust-list div {
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .35rem;
    background: rgba(255, 255, 255, .05);
}

.tl-trust-list h3 {
    margin-top: 0;
    color: #ffffff;
}

.tl-trust-list p {
    color: rgba(255, 255, 255, .75);
}

.tl-contact {
    padding: 2.25rem;
    border: 1px solid var(--tl-line);
    border-radius: .5rem;
    background: var(--tl-paper);
}

.tl-contact h2 {
    max-width: 680px;
}

.tl-email-signup {
    margin-top: 1.75rem;
}

.tl-email-signup .form-label {
    font-weight: 750;
}

.tl-email-signup .form-control,
.tl-email-signup .btn {
    border-radius: .35rem;
}

.tl-form-note {
    margin: .75rem 0 0;
    color: var(--tl-muted);
    font-size: .88rem;
}

.tl-cookie-consent {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -18px 38px rgba(23, 33, 27, .12);
}

[data-bs-theme="dark"] .tl-public-site,
[data-bs-theme="dark"] body {
    background: #121a18;
}

[data-bs-theme="dark"] .tl-section,
[data-bs-theme="dark"] .tl-section--contact,
[data-bs-theme="dark"] .tl-section--systems {
    background: #121a18;
}

[data-bs-theme="dark"] .tl-section--groups {
    background: #121a18;
}

[data-bs-theme="dark"] .tl-section--warm,
[data-bs-theme="dark"] .tl-proof-band,
[data-bs-theme="dark"] .tl-feature-grid,
[data-bs-theme="dark"] .tl-feature-grid article,
[data-bs-theme="dark"] .tl-group-journey article,
[data-bs-theme="dark"] .tl-ai-card,
[data-bs-theme="dark"] .tl-notebook,
[data-bs-theme="dark"] .tl-notebook-export,
[data-bs-theme="dark"] .tl-contact,
[data-bs-theme="dark"] .tl-system-list div {
    background: #1b2724;
    border-color: #33433e;
}

[data-bs-theme="dark"] .tl-section h2,
[data-bs-theme="dark"] .tl-notebook__item strong,
[data-bs-theme="dark"] .tl-notebook-export strong,
[data-bs-theme="dark"] .tl-proof-band .tl-metric,
[data-bs-theme="dark"] .tl-question-strip span,
[data-bs-theme="dark"] .tl-system-list div {
    color: #f4f7f2;
}

[data-bs-theme="dark"] .tl-section__lead,
[data-bs-theme="dark"] .tl-section-heading p,
[data-bs-theme="dark"] .tl-contact p,
[data-bs-theme="dark"] .tl-feature-grid p,
[data-bs-theme="dark"] .tl-group-journey article > p:not(.tl-group-journey__verb),
[data-bs-theme="dark"] .tl-ai-card p,
[data-bs-theme="dark"] .tl-proof-band p,
[data-bs-theme="dark"] .tl-notebook-export p,
[data-bs-theme="dark"] .tl-notebook__item span {
    color: #b9c5bf;
}

[data-bs-theme="dark"] .tl-question-strip span,
[data-bs-theme="dark"] .tl-notebook__prompt {
    background: #25342f;
}

@media (max-width: 991.98px) {
    .tl-hero {
        min-height: auto;
    }

    .tl-hero__content {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .tl-hero h1 {
        font-size: clamp(2.65rem, 11vw, 4.5rem);
    }

    .tl-chat-preview {
        margin-left: 0;
    }

    .tl-section {
        padding: 4.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .tl-hero::after {
        background:
            linear-gradient(90deg, rgba(17, 32, 29, .94) 0%, rgba(17, 32, 29, .78) 100%),
            linear-gradient(0deg, rgba(17, 32, 29, .88) 0%, rgba(17, 32, 29, .35) 45%);
    }

    .tl-hero__lead,
    .tl-section__lead,
    .tl-section-heading p,
    .tl-contact p {
        font-size: 1.05rem;
    }

    .tl-feature-grid,
    .tl-group-journey,
    .tl-question-strip,
    .tl-trust-list {
        grid-template-columns: 1fr;
    }

    .tl-feature-grid article,
    .tl-group-journey article,
    .tl-ai-card {
        min-height: auto;
    }

    .tl-contact {
        padding: 1.35rem;
    }

    .tl-email-signup .input-group {
        display: grid;
        gap: .75rem;
    }

    .tl-email-signup .input-group > .form-control,
    .tl-email-signup .input-group > .btn {
        width: 100%;
        border-radius: .35rem !important;
    }
}

@media (max-width: 420px) {
    .tl-hero__actions .btn,
    .navbar .btn {
        width: 100%;
    }

    .navbar .d-flex.ms-auto {
        width: 100%;
        margin-top: .75rem;
        gap: .5rem;
    }
}
