/* ==========================================================================
   Trustlayer Technologies Ltd - brand stylesheet
   --------------------------------------------------------------------------
   The palette is shared with the products on purpose: the navy and the blue
   are MailAuthInspector's, and each product keeps its own accent, injected
   per-section as --accent so one component serves both brands.

   Nothing here loads from another origin - no web font service, no icon CDN -
   which is what lets the privacy notice say the site makes no third-party
   requests at all.
   ========================================================================== */

:root {
    /* Surfaces, darkest first */
    --tl-void: #050a16;
    --tl-bg: #070e1e;
    --tl-bg-2: #0a1324;
    --tl-panel: rgba(255, 255, 255, .042);
    --tl-panel-2: rgba(255, 255, 255, .068);
    --tl-line: rgba(255, 255, 255, .095);
    --tl-line-soft: rgba(255, 255, 255, .055);

    /* Ink */
    --tl-text: rgba(255, 255, 255, .93);
    --tl-muted: rgba(255, 255, 255, .62);
    --tl-faint: rgba(255, 255, 255, .42);

    /* Brand */
    --tl-brand: #5b8def;
    --tl-brand-bright: #7ea6ff;
    --tl-teal: #2dd4bf;
    --tl-good: #22c55e;
    --tl-warn: #fbbf24;
    --tl-bad: #ef4444;

    /* Per-section accent - overridden inline on product sections */
    --accent: var(--tl-brand);

    /* Geometry */
    --tl-r-sm: 8px;
    --tl-r: 14px;
    --tl-r-lg: 20px;
    --tl-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --tl-shadow-sm: 0 8px 24px rgba(0, 0, 0, .3);

    /* Rhythm */
    --tl-gutter: clamp(20px, 5vw, 56px);
    --tl-max: 1240px;
    --tl-prose: 68ch;
    --tl-section-y: clamp(64px, 9vw, 132px);

    /* Type */
    --tl-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tl-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--tl-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tl-text);
    background-color: var(--tl-bg);
    background-image:
        radial-gradient(1100px 620px at 12% -8%, rgba(91, 141, 239, .22), transparent 62%),
        radial-gradient(900px 540px at 88% 4%, rgba(45, 212, 191, .11), transparent 60%),
        linear-gradient(180deg, var(--tl-bg) 0%, var(--tl-void) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(91, 141, 239, .35);
}

/* ---------- Layout primitives ---------- */

.tl-shell {
    width: 100%;
    max-width: var(--tl-max);
    margin-inline: auto;
    padding-inline: var(--tl-gutter);
}

.tl-section {
    padding-block: var(--tl-section-y);
    position: relative;
}

.tl-section--ruled {
    border-top: 1px solid var(--tl-line-soft);
}

.tl-section--tint {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 70%);
}

/* ---------- Skip link ---------- */

.tl-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
}

.tl-skip:focus {
    left: 12px;
    top: 12px;
    padding: 10px 16px;
    background: var(--tl-brand);
    color: #04101f;
    font-weight: 700;
    border-radius: var(--tl-r-sm);
}

/* ---------- Focus ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--tl-brand-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -.022em;
    line-height: 1.1;
    text-wrap: balance;
}

.tl-h1 {
    font-size: clamp(2.3rem, 5.6vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.tl-h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    letter-spacing: -.028em;
}

.tl-h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.32rem);
    letter-spacing: -.016em;
}

p {
    margin: 0 0 1.1em;
}

.tl-lede {
    font-size: clamp(1.05rem, 1.5vw, 1.27rem);
    line-height: 1.58;
    color: var(--tl-muted);
    max-width: 62ch;
}

.tl-prose {
    max-width: var(--tl-prose);
    color: var(--tl-muted);
}

a {
    color: var(--tl-brand-bright);
    text-decoration-color: rgba(126, 166, 255, .35);
    text-underline-offset: .18em;
}

a:hover {
    text-decoration-color: currentColor;
}

/* Eyebrow: a mono index plus a letterspaced label. Used to open every section. */

.tl-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-family: var(--tl-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tl-faint);
}

.tl-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent);
    opacity: .8;
    flex: 0 0 auto;
}

.tl-eyebrow__index {
    color: var(--accent);
}

/* ---------- Buttons ---------- */

.tl-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--tl-r-sm);
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tl-btn:active {
    transform: translateY(1px);
}

.tl-btn--primary {
    background: var(--tl-brand);
    color: #04101f;
    box-shadow: 0 10px 26px rgba(91, 141, 239, .28);
}

.tl-btn--primary:hover {
    background: var(--tl-brand-bright);
    color: #04101f;
}

.tl-btn--accent {
    background: var(--accent);
    color: #04101f;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}

.tl-btn--accent:hover {
    filter: brightness(1.1);
    color: #04101f;
}

.tl-btn--ghost {
    background: var(--tl-panel);
    border-color: var(--tl-line);
    color: var(--tl-text);
}

.tl-btn--ghost:hover {
    background: var(--tl-panel-2);
    border-color: rgba(255, 255, 255, .2);
    color: var(--tl-text);
}

.tl-btn__arrow {
    transition: transform .18s ease;
}

.tl-btn:hover .tl-btn__arrow {
    transform: translateX(3px);
}

.tl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ---------- Masthead ---------- */

.tl-masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: rgba(7, 14, 30, 0);
    transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.tl-masthead.is-stuck {
    background: rgba(6, 12, 26, .88);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--tl-line-soft);
}

.tl-masthead__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}

/* Wordmark: the layered mark, the name, and the group line beneath it. */

.tl-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--tl-text);
    flex: 0 0 auto;
}

.tl-wordmark__mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.tl-wordmark__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tl-wordmark__name {
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: -.028em;
}

.tl-wordmark__name em {
    font-style: normal;
    color: var(--tl-brand-bright);
}

.tl-wordmark__sub {
    font-family: var(--tl-mono);
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--tl-faint);
    margin-top: 3px;
}

.tl-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tl-nav__link {
    padding: 9px 13px;
    border-radius: var(--tl-r-sm);
    font-size: .92rem;
    font-weight: 550;
    color: var(--tl-muted);
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

.tl-nav__link:hover {
    color: var(--tl-text);
    background: var(--tl-panel);
}

.tl-nav__link.is-current {
    color: var(--tl-text);
    background: var(--tl-panel);
    box-shadow: inset 0 0 0 1px var(--tl-line);
}

.tl-nav__cta {
    margin-left: 8px;
}

.tl-burger {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--tl-panel);
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r-sm);
    color: var(--tl-text);
    cursor: pointer;
}

@media (max-width: 880px) {
    .tl-burger {
        display: inline-flex;
    }

    .tl-nav {
        position: absolute;
        inset: 72px var(--tl-gutter) auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        margin: 0;
        background: rgba(8, 15, 32, .97);
        backdrop-filter: blur(16px);
        border: 1px solid var(--tl-line);
        border-radius: var(--tl-r);
        box-shadow: var(--tl-shadow);
        display: none;
    }

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

    .tl-nav__link {
        padding: 13px;
        font-size: 1rem;
    }

    .tl-nav__cta {
        margin: 6px 0 0;
        justify-content: center;
    }
}

/* ---------- Hero ---------- */

.tl-hero {
    padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}

.tl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

@media (max-width: 1000px) {
    .tl-hero__grid {
        grid-template-columns: 1fr;
    }
}

.tl-hero__h1 em {
    font-style: normal;
    background: linear-gradient(96deg, var(--tl-brand-bright), var(--tl-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tl-hero__lede {
    margin-top: 22px;
}

.tl-hero__actions {
    margin-top: 32px;
}

.tl-hero__note {
    margin-top: 26px;
    font-family: var(--tl-mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tl-faint);
}

/* The stack diagram: three planes, one per layer of the pitch. */

.tl-stack {
    display: grid;
    gap: 14px;
    perspective: 1200px;
}

.tl-stack__plane {
    position: relative;
    padding: 20px 22px;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    box-shadow: var(--tl-shadow-sm);
    transition: transform .3s cubic-bezier(.22, .8, .3, 1), border-color .3s ease;
}

.tl-stack__plane:hover {
    transform: translateX(-6px);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.tl-stack__plane--a {
    --accent: var(--tl-teal);
    margin-right: 34px;
}

.tl-stack__plane--b {
    --accent: var(--tl-brand);
    margin-left: 18px;
    margin-right: 16px;
}

.tl-stack__plane--c {
    --accent: var(--tl-good);
    margin-left: 36px;
}

.tl-stack__label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--tl-mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

.tl-stack__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
    flex: 0 0 auto;
}

.tl-stack__title {
    margin: 10px 0 4px;
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -.018em;
}

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

/* ---------- Facts strip ---------- */

.tl-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    border-top: 1px solid var(--tl-line-soft);
    border-bottom: 1px solid var(--tl-line-soft);
}

.tl-facts__item {
    padding: 26px 24px;
    border-left: 1px solid var(--tl-line-soft);
}

.tl-facts__item:first-child {
    border-left: 0;
    padding-left: 0;
}

.tl-facts__value {
    font-family: var(--tl-mono);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--tl-text);
}

.tl-facts__label {
    margin-top: 6px;
    font-size: .82rem;
    color: var(--tl-faint);
}

@media (max-width: 640px) {
    .tl-facts__item {
        border-left: 0;
        border-top: 1px solid var(--tl-line-soft);
        padding-inline: 0;
    }

    .tl-facts__item:first-child {
        border-top: 0;
    }
}

/* ---------- Section head ---------- */

.tl-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: end;
    margin-bottom: clamp(32px, 4vw, 54px);
}

@media (max-width: 860px) {
    .tl-head {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

/* ---------- Product blocks ---------- */

.tl-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(28px, 4.5vw, 64px);
    align-items: start;
    padding-block: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--tl-line-soft);
}

@media (max-width: 920px) {
    .tl-product {
        grid-template-columns: 1fr;
    }
}

.tl-product__mark {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
}

.tl-product__name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.tl-product__domain {
    font-family: var(--tl-mono);
    font-size: .8rem;
    letter-spacing: .02em;
    color: var(--accent);
}

.tl-product__kicker {
    margin: 12px 0 0;
    font-size: 1.08rem;
    color: var(--tl-text);
    font-weight: 600;
    letter-spacing: -.016em;
}

.tl-product__summary {
    margin: 14px 0 24px;
    color: var(--tl-muted);
    max-width: 54ch;
}

.tl-caps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
    gap: 1px;
    background: var(--tl-line-soft);
    border: 1px solid var(--tl-line-soft);
    border-radius: var(--tl-r);
    overflow: hidden;
}

.tl-caps__item {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    transition: background-color .2s ease;
}

.tl-caps__item:hover {
    background: var(--tl-panel-2);
}

.tl-caps__title {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: .98rem;
    font-weight: 680;
    letter-spacing: -.014em;
    margin-bottom: 8px;
}

.tl-caps__num {
    font-family: var(--tl-mono);
    font-size: .7rem;
    color: var(--accent);
    flex: 0 0 auto;
}

.tl-caps__text {
    margin: 0;
    font-size: .89rem;
    line-height: 1.62;
    color: var(--tl-muted);
}

/* ---------- Cards ---------- */

.tl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 18px;
}

.tl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r);
    background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .22s cubic-bezier(.22, .8, .3, 1), border-color .22s ease, box-shadow .22s ease;
}

.tl-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .22s ease;
}

a.tl-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .38);
}

a.tl-card:hover::before {
    opacity: 1;
}

.tl-card__mark {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
}

.tl-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
    font-weight: 740;
    letter-spacing: -.02em;
}

.tl-card__meta {
    margin-top: 4px;
    font-family: var(--tl-mono);
    font-size: .74rem;
    letter-spacing: .04em;
    color: var(--accent);
}

.tl-card__text {
    margin: 14px 0 0;
    font-size: .91rem;
    color: var(--tl-muted);
}

.tl-card__more {
    margin-top: auto;
    padding-top: 20px;
    font-size: .88rem;
    font-weight: 620;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* ---------- Pill / badge ---------- */

.tl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-family: var(--tl-mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

/* ---------- Values / list blocks ---------- */

.tl-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(22px, 3vw, 40px);
}

.tl-value__num {
    font-family: var(--tl-mono);
    font-size: .74rem;
    letter-spacing: .16em;
    color: var(--accent);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tl-line-soft);
    margin-bottom: 16px;
    display: block;
}

.tl-value__title {
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -.018em;
    margin-bottom: 9px;
}

.tl-value__text {
    margin: 0;
    font-size: .92rem;
    color: var(--tl-muted);
}

.tl-ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.tl-ticks li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: .94rem;
    color: var(--tl-muted);
}

.tl-ticks li::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-top: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
    background:
        radial-gradient(circle at 50% 50%, var(--accent) 0 3px, transparent 3.5px);
}

/* ---------- Spec table ---------- */

.tl-spec {
    width: 100%;
    border-collapse: collapse;
    font-size: .91rem;
}

.tl-spec th,
.tl-spec td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tl-line-soft);
    vertical-align: top;
}

.tl-spec th {
    width: 38%;
    font-family: var(--tl-mono);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tl-faint);
}

.tl-spec td {
    color: var(--tl-text);
}

.tl-spec tr:last-child th,
.tl-spec tr:last-child td {
    border-bottom: 0;
}

.tl-panel {
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r);
    background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
    padding: clamp(20px, 3vw, 30px);
}

.tl-panel--flush {
    padding: 8px clamp(14px, 2vw, 20px);
}

.tl-note {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--tl-warn) 32%, transparent);
    border-left-width: 3px;
    border-radius: var(--tl-r-sm);
    background: color-mix(in srgb, var(--tl-warn) 8%, transparent);
    font-size: .9rem;
    color: var(--tl-text);
}

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

/* ---------- Call to action band ---------- */

.tl-cta {
    position: relative;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r-lg);
    padding: clamp(30px, 5vw, 60px);
    background:
        radial-gradient(700px 320px at 10% 0%, rgba(91, 141, 239, .2), transparent 65%),
        radial-gradient(600px 300px at 92% 100%, rgba(45, 212, 191, .14), transparent 62%),
        rgba(255, 255, 255, .03);
    overflow: hidden;
}

.tl-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

@media (max-width: 820px) {
    .tl-cta__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Legal pages ---------- */

.tl-legal {
    display: grid;
    /* Body first in the markup, index to the right of it: a printed or
       screen-read copy then starts with the policy, not with its own index. */
    grid-template-columns: minmax(0, 1fr) 236px;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

@media (max-width: 960px) {
    .tl-legal {
        grid-template-columns: 1fr;
    }
}

.tl-legal__toc {
    position: sticky;
    top: 96px;
    border-left: 1px solid var(--tl-line-soft);
    padding-left: 18px;
}

@media (max-width: 960px) {
    .tl-legal__toc {
        position: static;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--tl-line-soft);
        padding-top: 18px;
    }
}

.tl-legal__toc-title {
    font-family: var(--tl-mono);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tl-faint);
    margin-bottom: 14px;
}

.tl-legal__toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.tl-legal__toc a {
    counter-increment: toc;
    display: flex;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--tl-r-sm);
    font-size: .86rem;
    color: var(--tl-muted);
    text-decoration: none;
}

.tl-legal__toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--tl-mono);
    font-size: .72rem;
    color: var(--tl-faint);
    flex: 0 0 auto;
}

.tl-legal__toc a:hover {
    background: var(--tl-panel);
    color: var(--tl-text);
}

.tl-legal__body {
    max-width: var(--tl-prose);
    counter-reset: clause;
}

.tl-legal__body h2 {
    counter-increment: clause;
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    letter-spacing: -.02em;
    margin: 56px 0 14px;
    scroll-margin-top: 96px;
    padding-top: 22px;
    border-top: 1px solid var(--tl-line-soft);
}

.tl-legal__body h2:first-of-type {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.tl-legal__body h2::before {
    content: counter(clause, decimal-leading-zero) " ";
    font-family: var(--tl-mono);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.tl-legal__body h3 {
    font-size: 1.02rem;
    margin: 30px 0 10px;
    color: var(--tl-text);
}

.tl-legal__body p,
.tl-legal__body li {
    color: var(--tl-muted);
    font-size: .96rem;
    line-height: 1.72;
}

.tl-legal__body ul,
.tl-legal__body ol {
    padding-left: 22px;
    margin: 0 0 1.1em;
    display: grid;
    gap: 8px;
}

.tl-legal__body strong {
    color: var(--tl-text);
    font-weight: 650;
}

.tl-legal__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    font-size: .89rem;
}

.tl-legal__body table th,
.tl-legal__body table td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--tl-line-soft);
    vertical-align: top;
    color: var(--tl-muted);
}

.tl-legal__body table th {
    background: var(--tl-panel);
    color: var(--tl-text);
    font-weight: 650;
    font-size: .84rem;
}

.tl-legal__body table caption {
    text-align: left;
    font-family: var(--tl-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tl-faint);
    padding-bottom: 10px;
}

.tl-legal__updated {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    font-family: var(--tl-mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tl-faint);
}

/* ---------- Forms ---------- */

.tl-form {
    display: grid;
    gap: 20px;
}

.tl-field {
    display: grid;
    gap: 7px;
}

.tl-field__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tl-field label {
    font-size: .86rem;
    font-weight: 620;
    letter-spacing: -.01em;
    color: var(--tl-text);
}

.tl-field__hint {
    font-size: .8rem;
    color: var(--tl-faint);
}

.tl-input,
.tl-select,
.tl-textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: .95rem;
    color: var(--tl-text);
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r-sm);
    transition: border-color .16s ease, background-color .16s ease;
}

.tl-input::placeholder,
.tl-textarea::placeholder {
    color: rgba(255, 255, 255, .3);
}

.tl-input:focus,
.tl-select:focus,
.tl-textarea:focus {
    border-color: var(--tl-brand);
    background: rgba(0, 0, 0, .4);
}

.tl-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--tl-muted) 50%),
        linear-gradient(135deg, var(--tl-muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.tl-select option {
    background: var(--tl-bg-2);
    color: var(--tl-text);
}

.tl-textarea {
    min-height: 148px;
    resize: vertical;
}

.tl-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--tl-line);
    border-radius: var(--tl-r-sm);
    background: var(--tl-panel);
}

.tl-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--tl-brand);
}

.tl-check span {
    font-size: .89rem;
    color: var(--tl-muted);
    line-height: 1.6;
}

.field-validation-error,
.tl-field__error {
    font-size: .82rem;
    color: #ff9a9a;
}

.validation-summary-errors {
    border: 1px solid color-mix(in srgb, var(--tl-bad) 42%, transparent);
    border-left-width: 3px;
    border-radius: var(--tl-r-sm);
    background: color-mix(in srgb, var(--tl-bad) 10%, transparent);
    padding: 16px 20px;
    font-size: .9rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.input-validation-error {
    border-color: color-mix(in srgb, var(--tl-bad) 60%, transparent);
}

/* ---------- Contact aside ---------- */

.tl-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .78fr);
    gap: clamp(28px, 4.5vw, 64px);
    align-items: start;
}

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

.tl-routes {
    display: grid;
    gap: 1px;
    background: var(--tl-line-soft);
    border: 1px solid var(--tl-line-soft);
    border-radius: var(--tl-r);
    overflow: hidden;
}

.tl-route {
    padding: 20px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012));
}

.tl-route__label {
    font-family: var(--tl-mono);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.tl-route__value {
    font-size: .95rem;
    font-weight: 620;
    word-break: break-word;
}

.tl-route__text {
    margin: 6px 0 0;
    font-size: .85rem;
    color: var(--tl-muted);
}

/* ---------- Footer ---------- */

.tl-footer {
    margin-top: clamp(48px, 7vw, 96px);
    border-top: 1px solid var(--tl-line);
    background: rgba(0, 0, 0, .26);
    padding-block: clamp(40px, 5vw, 64px) 28px;
}

.tl-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 48px);
}

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

    .tl-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .tl-footer__grid {
        grid-template-columns: 1fr;
    }
}

.tl-footer__blurb {
    margin: 16px 0 0;
    font-size: .88rem;
    color: var(--tl-muted);
    max-width: 38ch;
}

.tl-footer__col-title {
    font-family: var(--tl-mono);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tl-faint);
    margin-bottom: 14px;
}

.tl-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.tl-footer__links a {
    font-size: .89rem;
    color: var(--tl-muted);
    text-decoration: none;
}

.tl-footer__links a:hover {
    color: var(--tl-text);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.tl-footer__legalese {
    margin-top: clamp(32px, 4vw, 52px);
    padding-top: 22px;
    border-top: 1px solid var(--tl-line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: baseline;
    font-size: .8rem;
    color: var(--tl-faint);
}

.tl-footer__legalese dl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
}

.tl-footer__legalese dt {
    display: inline;
    font-weight: 600;
}

.tl-footer__legalese dt::after {
    content: " ";
}

.tl-footer__legalese dd {
    display: inline;
    margin: 0 0 0 4px;
    font-family: var(--tl-mono);
}

/* ---------- Reveal on scroll ---------- */

.tl-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22, .8, .3, 1);
}

.tl-reveal.is-in {
    opacity: 1;
    transform: none;
}

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

    .tl-card,
    .tl-stack__plane,
    .tl-btn {
        transition: none;
    }
}

/* ---------- Utility ---------- */

.tl-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.tl-stack-sm > * + * {
    margin-top: 14px;
}

.tl-mt-lg {
    margin-top: clamp(32px, 4vw, 56px);
}

.tl-mono {
    font-family: var(--tl-mono);
}

/* ---------- Print: the legal pages get printed and filed ---------- */

@media print {
    body {
        background: #fff;
        color: #111;
    }

    .tl-masthead,
    .tl-footer,
    .tl-legal__toc,
    .tl-cta,
    .tl-skip {
        display: none !important;
    }

    .tl-legal {
        grid-template-columns: 1fr;
    }

    .tl-legal__body p,
    .tl-legal__body li,
    .tl-legal__body table td,
    .tl-legal__body table th {
        color: #222;
    }

    .tl-legal__body h2::before {
        color: #555;
    }

    a {
        color: #111;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: .8em;
        color: #555;
    }
}

/* ==========================================================================
   Utility classes
   --------------------------------------------------------------------------
   These exist because the content security policy forbids inline styles -
   style-src is 'self' with no 'unsafe-inline'. Every per-element tweak that
   would otherwise be a style attribute is a class here instead, which keeps
   the policy strict and the styling in one file.
   ========================================================================== */

/* Accent scopes. A product sets its own accent on the block that describes it
   and every pill, rule and button inside picks it up. */
.tl-accent-brand {
    --accent: var(--tl-brand);
}

.tl-accent-teal {
    --accent: var(--tl-teal);
}

.tl-accent-good {
    --accent: var(--tl-good);
}

.tl-accent-warn {
    --accent: var(--tl-warn);
}

.tl-accent-footersly {
    --accent: #2dd4bf;
}

.tl-accent-mai {
    --accent: #5b8def;
}

/* Spacing */
.tl-mt-sm {
    margin-top: 10px;
}

.tl-mt-md {
    margin-top: 20px;
}

.tl-mt-xl {
    margin-top: 34px;
}

.tl-mb-lg {
    margin-bottom: 24px;
}

.tl-mb-0 {
    margin-bottom: 0;
}

/* One-off type and size variants */
.tl-h1--sm {
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
}

.tl-h1--legal {
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}

.tl-prose--lg {
    font-size: 1.05rem;
}

.tl-section--snug {
    padding-top: clamp(32px, 4vw, 56px);
}

.tl-product__mark--lg {
    width: 60px;
    height: 60px;
}

/* Small print inside a panel */
.tl-panel__text {
    margin: 0;
    font-size: .9rem;
    color: var(--tl-muted);
}

.tl-panel__link {
    margin: 12px 0 0;
    font-size: .9rem;
}

.tl-panel__note {
    margin: 12px 0 0;
    font-size: .82rem;
    color: var(--tl-faint);
}

/* The icon sprite is markup, not picture: out of flow and out of the tree. */
.tl-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Stagger for revealed blocks, set by class rather than by an inline delay. */
.tl-reveal.is-d1 {
    transition-delay: 60ms;
}

.tl-reveal.is-d2 {
    transition-delay: 120ms;
}

.tl-reveal.is-d3 {
    transition-delay: 180ms;
}
