/* Tates PC — main.css
 * Lightweight, system-font, mobile-first.
 * Palette: deep blue brand + warm accent on white.
 */

:root {
    /* Page titles; light mode follows body ink. Dark mode set below — must beat tmf-legacy #637485. */
    --heading: var(--ink);
    --brand: #0b3b6f;
    --brand-strong: #082b53;
    --brand-soft: #e6eef8;
    --accent: #d97706;
    --accent-strong: #b45309;
    --ink: #0f172a;
    --ink-soft: #475569;
    --rule: #d8dee9;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --good: #166534;
    --warn: #b45309;
    --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    --shadow-lift: 0 12px 36px rgba(15, 23, 42, 0.12);
    --radius: 10px;
    --radius-lg: 18px;
    --container: 72rem;
    --pad: clamp(1rem, 2vw + 0.5rem, 2rem);
    --pad-lg: clamp(2rem, 5vw, 5rem);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    /* Sticky site-header (main row + utility bar). Used so #anchors land below the bar, not under it. */
    --site-header-scroll-offset: clamp(5.25rem, 4.5rem + 2.5vw, 7.25rem);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme]) {
        --bg: #0c1320;
        --bg-soft: #111a2c;
        --ink: #f8fafc;
        --ink-soft: #e2e8f0;
        /* Brighter than body links (--link) for readable titles on ink backgrounds */
        --heading: #f1f5f9;
        --rule: #1f2a44;
        --brand-soft: #142545;
        --link: #93c5fd;
        --link-hover: #bfdbfe;
        --header-ink: #f8fafc;
        --header-brand: #93c5fd;
        --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
        --shadow-lift: 0 12px 36px rgba(0, 0, 0, 0.6);
    }
}

html[data-theme="dark"] {
    --bg: #0c1320;
    --bg-soft: #111a2c;
    --ink: #f8fafc;
    --ink-soft: #e2e8f0;
    --heading: #f1f5f9;
    --rule: #1f2a44;
    --brand-soft: #142545;
    --link: #93c5fd;
    --link-hover: #bfdbfe;
    --header-ink: #f8fafc;
    --header-brand: #93c5fd;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    --shadow-lift: 0 12px 36px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Vertical scrollbar always occupies gutter space so centered chrome does not
     * shift when moving between a short portal page and a tall marketing page. */
    overflow-y: scroll;
    scrollbar-gutter: stable;
    /* Hash links (#section) and scrollIntoView(): keep targets clear of sticky header */
    scroll-padding-top: var(--site-header-scroll-offset);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a {
    color: var(--brand);
    text-decoration-color: rgba(11, 59, 111, 0.3);
    text-underline-offset: 2px;
}
a:hover { color: var(--brand-strong); text-decoration-color: var(--brand); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0; padding: .5rem 1rem;
    background: var(--brand); color: #fff; text-decoration: none; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Site header & nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--rule);
}
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .site-header { background: rgba(12, 19, 32, 0.92); }
}
html[data-theme="dark"] .site-header { background: rgba(12, 19, 32, 0.92); }

/* Dark mode: body links and header chrome need higher luminance than brand blue on ink */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) a {
        color: var(--link);
        text-decoration-color: rgba(147, 197, 253, 0.45);
    }
    html:not([data-theme]) a:hover {
        color: var(--link-hover);
        text-decoration-color: var(--link-hover);
    }
    html:not([data-theme]) .site-header .brand {
        color: var(--header-brand);
    }
    html:not([data-theme]) .site-header .primary-nav__list a {
        color: var(--header-ink);
    }
    html:not([data-theme]) .site-header .primary-nav__list a:hover {
        color: var(--header-brand);
    }
    html:not([data-theme]) .site-header .primary-nav__list a[aria-current="page"] {
        color: var(--header-brand);
    }
    html:not([data-theme]) .site-header .has-menu__btn {
        color: var(--header-ink);
    }
    html:not([data-theme]) .site-header .nav-toggle__bar {
        background: var(--header-ink);
    }
}
html[data-theme="dark"] a {
    color: var(--link);
    text-decoration-color: rgba(147, 197, 253, 0.45);
}
html[data-theme="dark"] a:hover {
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}
html[data-theme="dark"] .site-header .brand {
    color: var(--header-brand);
}
html[data-theme="dark"] .site-header .primary-nav__list a {
    color: var(--header-ink);
}
html[data-theme="dark"] .site-header .primary-nav__list a:hover {
    color: var(--header-brand);
}
html[data-theme="dark"] .site-header .primary-nav__list a[aria-current="page"] {
    color: var(--header-brand);
}
html[data-theme="dark"] .site-header .has-menu__btn {
    color: var(--header-ink);
}
html[data-theme="dark"] .site-header .nav-toggle__bar {
    background: var(--header-ink);
}
/* Brand column + nav mid column. Theme host is a sibling (see below). */
.site-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    padding-top: 10px;
    padding-bottom: .65rem;
}
.site-header__mid {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
/* Theme floater: viewport bottom-right. Must live outside <header> (backdrop-filter traps fixed). */
#tatespc-theme-host.tatespc-theme-float,
.site-header__theme-host.tatespc-theme-float,
.site-header__theme-host {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    top: auto;
    left: auto;
    z-index: 9990;
    pointer-events: auto;
}
.site-header__theme-host.site-header__theme-host--active,
#tatespc-theme-host.site-header__theme-host--active {
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
}

#tatespc-theme-host[hidden] {
    display: none !important;
}
.brand {
    display: inline-flex; align-items: center; gap: .65rem;
    min-width: 0;
    justify-self: start;
    color: var(--brand); text-decoration: none; font-weight: 700; font-size: 1.05rem;
    letter-spacing: .01em;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand__wordmark { font-size: 1.05rem; }

.primary-nav {
    margin-left: 0;
}
.primary-nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
/* tmf-legacy.css sets ul li { padding-left: 0.5em } globally; keep header nav flush */
.site-header .primary-nav li {
    padding-left: 0;
}
.primary-nav__list a {
    display: inline-block; padding: .55rem .8rem; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-weight: 500;
}
.primary-nav__list a:hover { background: var(--brand-soft); color: var(--brand); }
.primary-nav__list a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

/* Products flyout: no hover “dead zone” between the trigger and the panel
 * (margin above the panel used to drop :hover before the pointer reached links).
 * Desktop: bridge pseudo + stacking; mobile drawer: submenu via focus/class, not :hover
 * (avoids stuck-open hover on touch devices). Disclosure button works everywhere. */
.has-menu {
    position: relative;
    z-index: 0;
}
.has-menu__head {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}
.has-menu__primary {
    display: inline-block;
}
.has-menu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
}
.has-menu__btn-icon {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.15s ease;
}
.has-menu.is-submenu-open .has-menu__btn-icon {
    transform: rotate(180deg);
}
.has-menu:hover .has-menu__btn,
.has-menu:focus-within .has-menu__btn,
.has-menu.is-submenu-open .has-menu__btn {
    background: var(--brand-soft);
    color: var(--brand);
}
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding: 0.45rem 0.4rem 0.4rem;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 16rem;
    list-style: none;
    display: none;
    z-index: 210;
}
/* Hit-area bridge so the pointer can travel from “Products” into the panel */
.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 14px;
}
.has-menu:hover,
.has-menu:focus-within,
.has-menu.is-submenu-open {
    z-index: 200;
}
.submenu li a { display: block; padding: .5rem .65rem; border-radius: 6px; }
.submenu__hint { color: var(--ink-soft); font-size: .85em; font-weight: 400; }

@media (min-width: 881px) {
    .has-menu:hover .submenu,
    .has-menu:focus-within .submenu,
    .has-menu.is-submenu-open .submenu {
        display: block;
    }
}

.primary-nav__cta a.button { padding: .55rem 1rem; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
    .site-header__mid .nav-toggle {
        display: inline-flex; align-items: center; gap: .5rem;
        margin-left: 0;
        background: transparent; border: 1px solid var(--rule);
        padding: .5rem .75rem; border-radius: 8px; color: var(--ink); cursor: pointer;
    }
    .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
        content: ""; display: block; width: 18px; height: 2px; background: currentColor;
    }
    .nav-toggle__bar { position: relative; }
    .nav-toggle__bar::before { position: absolute; top: -6px; }
    .nav-toggle__bar::after  { position: absolute; top:  6px; }

    .site-header__mid .primary-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--bg); border-bottom: 1px solid var(--rule);
        padding: 0;
        max-height: 0; overflow: hidden;
        transition: max-height .25s ease, padding .2s ease;
        margin-right: 0;
    }
    .primary-nav[data-open="true"] {
        max-height: 80vh;
        padding: .5rem var(--pad) 1rem;
    }
    .primary-nav__list { flex-direction: column; align-items: stretch; }
    .primary-nav__list > li { width: 100%; }
    .has-menu__head {
        width: 100%;
        justify-content: space-between;
    }
    .has-menu .submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--brand-soft);
        margin: 0.35rem 0 0 0.35rem;
        padding: 0.25rem 0 0.25rem 0.75rem;
        min-width: 0;
        display: none;
        z-index: auto;
    }
    .has-menu .submenu::before {
        display: none;
    }
    /* No :hover here — touch “phantom hover” would trap the panel open */
    .has-menu:focus-within .submenu,
    .has-menu.is-submenu-open .submenu {
        display: block;
    }
}

/* Utility bar */
.utility-bar { background: var(--brand); color: #fff; }
.utility-bar__inner {
    display: flex; gap: 1rem; flex-wrap: wrap;
    padding-top: .4rem; padding-bottom: .4rem;
    font-size: .9rem; justify-content: flex-end;
}
.utility-bar__link { color: #fff; text-decoration: none; padding: .15rem .5rem; border-radius: 6px; }
.utility-bar__link:hover { background: rgba(255,255,255,.12); color: #fff; }

/*
 * tmf-legacy.css is loaded before this file on signup, subscribe, and many
 * portal routes. Its global `button, .button { text-transform: uppercase;
 * font-size: 0.8em; height: 3.5em; … }` block is for legacy form chrome only.
 * index.php does not load tmf-legacy — without an explicit reset here, those
 * properties stick on the marketing header and mis-size the hamburger and CTAs.
 */
.site-header button,
.site-header .button {
    text-transform: none;
    letter-spacing: normal;
    height: auto;
    min-height: 0;
    line-height: 1.25;
    font-size: inherit;
    white-space: normal;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; padding: .8rem 1.2rem; border-radius: 999px;
    font-weight: 600; text-decoration: none; line-height: 1;
    border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--brand); color: #fff; }
.button--primary:hover { background: var(--brand-strong); color: #fff; }
.button--accent { background: var(--accent); color: #fff; }
.button--accent:hover { background: var(--accent-strong); color: #fff; }
.button--ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.button--ghost:hover { background: var(--bg-soft); color: var(--brand); border-color: var(--brand); }
.button--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.button--full { width: 100%; }

/* ---------- Generic typography blocks ---------- */
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .08em;
    font-size: .8rem; font-weight: 700; color: var(--brand);
    margin: 0 0 .5rem;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    line-height: 1.18;
    margin: 0 0 .65em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.88rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin: 0 0 1rem; }
.lede--tight { margin-top: -0.35rem; font-size: 1.05rem; max-width: 60ch; }

.section { padding: var(--pad-lg) 0; }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-soft); }
.section__head { text-align: center; max-width: 50rem; margin: 0 auto 2rem; }
.section__head p { color: var(--ink-soft); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse at top right, rgba(11,59,111,.12), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(217,119,6,.10), transparent 60%),
        var(--bg);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__inner {
    display: grid; gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 880px) {
    .hero__inner { grid-template-columns: 1.2fr 1fr; }
}
.hero h1 { margin-bottom: .5rem; }
.hero p.lede { margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__visual {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-lift);
    color: #fff;
}
.hero__visual h2 { color: #fff; font-size: 1.25rem; margin-bottom: .35rem; }
.hero__visual ul { margin: 0; padding-left: 1.1rem; }
.hero__visual li { margin-bottom: .35rem; line-height: 1.45; }

/* ---------- Cards ---------- */
.cards {
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
    display: flex; flex-direction: column; gap: .5rem;
    background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--brand-soft); }
.card__eyebrow { color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__body { color: var(--ink-soft); flex: 1; line-height: 1.55; }
.product-pricing {
    color: var(--ink-soft); font-size: .92rem; line-height: 1.5;
    margin: .75rem 0 0; padding-left: 1.15rem;
}
.product-pricing li { margin: .35rem 0; }
.product-pricing__cta { font-size: .92rem; margin: .5rem 0 0; }
.card__cta { margin-top: .25rem; }

/* ---------- Feature list with icons ---------- */
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: .8rem; align-items: flex-start; }
.feature__bullet {
    flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.feature h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); line-height: 1.5; }

/* ---------- CTA strip ---------- */
.cta-strip {
    background: var(--brand); color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: grid; gap: 1rem; grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 720px) { .cta-strip { grid-template-columns: 1.4fr auto; } }
.cta-strip h2 { color: #fff; margin: 0 0 .25rem; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 0; }
.cta-strip__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-strip .button--primary { background: #fff; color: var(--brand); }
.cta-strip .button--primary:hover { background: rgba(255,255,255,.9); color: var(--brand-strong); }
.cta-strip .button--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.cta-strip .button--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: .35rem; margin-bottom: 1rem; }
.form-row label { font-weight: 600; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: .65rem .8rem; border-radius: 8px;
    border: 1px solid var(--rule); font: inherit; color: var(--ink); background: var(--bg);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: 3px solid var(--brand-soft); border-color: var(--brand);
}
.form-hint { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-soft); border-top: 1px solid var(--rule);
    margin-top: var(--pad-lg);
}
.site-footer__grid {
    display: grid; gap: 2rem; padding: var(--pad-lg) var(--pad);
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer__heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 .75rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__links a { color: var(--ink); text-decoration: none; }
.site-footer__links a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 700; margin-bottom: .6rem; }
.footer-brand img { width: 48px; height: 48px; border-radius: 8px; }
.footer-brand__name { font-size: 1.05rem; }
.site-footer__mission, .site-footer__area { color: var(--ink-soft); margin: 0 0 .6rem; }
.site-footer__address { font-style: normal; color: var(--ink-soft); }
.site-footer__address a { color: var(--ink); text-decoration: none; }
.site-footer__address a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__legal { border-top: 1px solid var(--rule); padding: 1rem 0; font-size: .9rem; color: var(--ink-soft); }
.site-footer__legal-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.trust-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--bg); border: 1px solid var(--good);
    color: var(--good); padding: .35rem .6rem; border-radius: 999px;
    font-weight: 600; font-size: .9rem; text-decoration: none;
}
.trust-badge:hover { background: rgba(22,101,52,.08); color: var(--good); }
.trust-badge__icon { font-weight: 700; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.flex-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.kbd { font-family: var(--font-mono); background: var(--bg-soft); padding: .1rem .3rem; border-radius: 4px; border: 1px solid var(--rule); font-size: .9em; }
.note { background: var(--bg-soft); border-left: 4px solid var(--brand); padding: 1rem 1.2rem; border-radius: 8px; margin: 1rem 0; }
.note strong { color: var(--brand); }
.list-clean { list-style: none; padding-left: 0; }
.list-clean li { padding-left: 1.6em; position: relative; margin-bottom: .35rem; }
.list-clean li::before { content: "✓"; color: var(--good); position: absolute; left: 0; font-weight: 700; }

/* Tag chip */
.tag {
    display: inline-block; padding: .15rem .55rem;
    border-radius: 999px; background: var(--brand-soft); color: var(--brand);
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* Lift used by ecommerce/portal pages to constrain max width */
.page-narrow { max-width: 56rem; margin: 0 auto; padding: var(--pad-lg) var(--pad); }
.page-wide { max-width: var(--container); margin: 0 auto; padding: var(--pad-lg) var(--pad); }

/* Contact page: Google Maps embed (CSP frame-src must include https://www.google.com; see web.config) */
.contact-map-heading {
    margin-top: 2.25rem;
    margin-bottom: 0.35rem;
}
.contact-map-lede {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.contact-map-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    background: var(--bg-soft);
}
.contact-map-embed__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Welcome pill + header theme switch (subscriber / operator) */
.brand__badge--welcome {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
    max-width: min(56vw, 13rem);
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start;
}
.brand__badge--welcome-inner {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.25;
    font-size: 11px;
}

.site-header__theme {
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: var(--bg-soft);
    backdrop-filter: saturate(140%) blur(8px);
    box-shadow: var(--shadow);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-soft);
    max-width: min(100vw - 0.75rem, 14rem);
}
.site-header__theme__row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.site-header__theme__side {
    flex: 0 0 auto;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.site-header__theme__switch {
    position: relative;
    width: 2.35rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: var(--bg);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s ease;
}
.site-header__theme__switch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: left 0.15s ease;
}
.site-header__theme__switch--dark::after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}
.site-header__theme__switch:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
