/* ==========================================================================
   Theme 3 — TawiOS Single-page Landing (section-switcher)
   Ohio-style fixed sidebar. Clicking a nav item swaps the visible section;
   the page itself does not scroll on desktop. Built on the Theme 3 (t3-)
   design tokens from auth-theme3.css — load that file BEFORE this one.
   Layout classes are namespaced `t3l-` so they never collide with `t3-`.
   ========================================================================== */

:root {
    --t3l-sidebar-width: 320px;
    --t3l-tint: color-mix(in srgb, var(--t3-primary) 9%, #f4f6f4);
    --t3l-tint-strong: color-mix(in srgb, var(--t3-primary) 16%, #eef1ee);
}

html, body.t3l-body {
    height: 100%;
}

body.t3l-body {
    margin: 0;
    font-family: var(--t3-font);
    color: var(--t3-text);
    background: var(--t3-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Home is a fixed-viewport section switcher — the page does not scroll. */
    overflow: hidden;
}

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

/* The sidebar keeps a fully chrome-free look. */
.t3l-sidebar {
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE / old Edge */
}

.t3l-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;                  /* Chrome / Safari */
}

/* Content panels keep a slim, subtle scrollbar so that when a section is taller
   than the viewport, the overflow is always discoverable (no clipped content). */
.t3l-main,
.t3l-panel {
    scrollbar-width: thin;                                  /* Firefox */
    scrollbar-color: var(--t3-border-hover) transparent;
}

.t3l-main::-webkit-scrollbar,
.t3l-panel::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.t3l-main::-webkit-scrollbar-thumb,
.t3l-panel::-webkit-scrollbar-thumb {
    background: var(--t3-border-hover);
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 20px;
}

.t3l-main::-webkit-scrollbar-thumb:hover,
.t3l-panel::-webkit-scrollbar-thumb:hover {
    background: var(--t3-text-muted);
    background-clip: padding-box;
    border: 3px solid transparent;
}

/* Panels receive programmatic focus on section change — don't draw a focus ring. */
.t3l-panel:focus,
.t3l-panel:focus-visible {
    outline: none;
}

.t3l-shell {
    display: flex;
    height: 100vh;
}

/* ==========================================================================
   Fixed left sidebar (Ohio-style)
   ========================================================================== */

.t3l-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--t3l-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 29px 29px 22px;
    background: var(--t3-bg);
    border-right: 1px solid var(--t3-border);
    overflow-y: auto;
    z-index: 40;
}

.t3l-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 39px;
}

.t3l-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    /* Logo and name now sit side by side, so the name must be free to shrink. */
    min-width: 0;
    text-decoration: none;
    color: var(--t3-text);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.t3l-brand-logo {
    flex: 0 0 auto;
    max-height: 34px;
    max-width: 34px;
    object-fit: contain;
    border-radius: 6px;
}

/* Name over tagline, as in the app sidebar's head. */
.t3l-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.t3l-brand-name {
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--t3-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Same font treatment as the app sidebar's user line (.t3s-brand-user), minus the
   green status dot — that dot signals a signed-in user, which the landing has none of. */
.t3l-brand-tag {
    min-width: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--t3-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger — mobile only */
.t3l-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--t3-border);
    border-radius: 50%;
    background: var(--t3-bg);
    color: var(--t3-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Navigation — modern app-style, each item switches to a section.
   Vertically centred within the available sidebar space. */
.t3l-nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.t3l-nav-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--t3-placeholder);
    padding: 0 10px;
    margin-bottom: 8px;
}

.t3l-nav-item {
    position: relative;
}

.t3l-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--t3-text);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background .18s ease, color .18s ease;
}

.t3l-nav-label {
    flex: 1 1 auto;
    min-width: 0;
}

.t3l-nav-arrow {
    font-size: 11px;
    color: var(--t3-primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity .18s ease, transform .18s ease;
}

/* Hover */
.t3l-nav-link:hover {
    background: var(--t3-subtle-bg);
}

/* Active — soft brand-tint pill */
.t3l-nav-link.is-active {
    background: var(--t3l-tint);
    color: var(--t3-primary);
}

.t3l-nav-link.is-active .t3l-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Quick Apps — secondary nav section */
.t3l-nav-apps {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
}

.t3l-apps {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.t3l-app {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--t3-text-muted);
    text-decoration: none;
    transition: background .16s ease, color .16s ease;
}

.t3l-app-ic {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: inherit;
    font-size: 13px;
    transition: color .16s ease;
}

.t3l-app-name {
    flex: 1 1 auto;
    min-width: 0;
}

.t3l-app-go {
    font-size: 10px;
    color: var(--t3-placeholder);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .16s ease, transform .16s ease;
}

.t3l-app:hover {
    background: var(--t3-subtle-bg);
    color: var(--t3-text);
}

.t3l-app:hover .t3l-app-go {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar bottom: sign in, get started, mini footer */
.t3l-sidebar-bottom {
    margin-top: 19px;
    padding-top: 19px;
    border-top: 1px solid var(--t3-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* On the dark sidebar the near-black button would disappear — invert it. */

/* Social icons */

/* ==========================================================================
   Main viewport + section panels (only one visible at a time)
   ========================================================================== */

.t3l-main {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: var(--t3l-sidebar-width);
    width: calc(100% - var(--t3l-sidebar-width));
    height: 100vh;
    overflow: hidden;
}

.t3l-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    /* `safe` keeps content centred when it fits, but anchors to the top the
       moment it overflows — otherwise flex centring clips the unreachable top. */
    justify-content: safe center;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.t3l-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.t3l-panel.is-active > * {
    animation: t3l-rise .4s ease both;
}

@keyframes t3l-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Padded content panels (modules / features) — sized to fit the viewport. */
.t3l-panel-pad {
    padding: clamp(27px, 5vh, 48px) 6%;
}

.t3l-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t3-text-muted);
}

.t3l-eyebrow .t3l-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--t3-primary);
}

/* ==========================================================================
   HOME — chevron split (">" image layout, auth design language)
   ========================================================================== */

.t3l-home {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    overflow: hidden;
}

.t3l-home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 7%;
    position: relative;
    z-index: 2;
}

/* Soft dark band that hugs the left edge — strongest at the bottom-left and
   stretching vertically up, fading as it rises. Scoped to the content column and
   painted behind the copy (z-index -1) so it is physically confined to the white
   area and never crosses the chevron border onto the image — the image stays clear. */
.t3l-home-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(80% 120% at 0% 100%,
        rgba(16, 24, 40, .20) 0%,
        rgba(16, 24, 40, .09) 38%,
        rgba(16, 24, 40, 0) 70%);
}

.dark-theme .t3l-home-content::before {
    background: radial-gradient(80% 120% at 0% 100%,
        rgba(0, 0, 0, .40) 0%,
        rgba(0, 0, 0, .16) 38%,
        rgba(0, 0, 0, 0) 70%);
}

.t3l-home-title {
    font-size: clamp(38px, 4.2vw, 66px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--t3-text);
    margin: 19px 0 17px;
}

.t3l-home-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--t3-text-muted);
    max-width: 460px;
    margin: 0 0 29px;
}

.t3l-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Chevron image panel — left edge points right, forming ">" */
.t3l-home-media {
    position: relative;
    overflow: hidden;
    background: var(--t3-primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22% 50%);
    margin-left: -1px;
}

.t3l-home-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Brand tint that fades in from the chevron edge, matching the auth promo. */
.t3l-home-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--t3-primary) 0%, rgba(255, 255, 255, 0) 40%);
    opacity: .55;
}

.t3l-home-watermark {
    position: absolute;
    left: 6%;
    bottom: -0.14em;
    font-size: 20vw;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--t3-text);
    opacity: .035;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* ==========================================================================
   Pills / buttons
   ========================================================================== */

.t3l-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--t3-radius); /* match the login page button shape */
    background: var(--t3-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    box-shadow: var(--t3-shadow-btn);
    transition: background .15s ease, transform .12s ease;
}

.t3l-pill:hover {
    background: var(--t3-primary-hover);
    transform: translateY(-1px);
    color: #fff;
}

.t3l-pill i { transition: transform .15s ease; }
.t3l-pill:hover i { transform: translateX(3px); }

.t3l-pill-outline {
    background: transparent;
    color: var(--t3-text);
    border-color: var(--t3-border);
    box-shadow: var(--t3-shadow-sm);
}

.t3l-pill-outline:hover {
    background: var(--t3-subtle-bg);
    color: var(--t3-text);
    border-color: var(--t3-border-hover);
}

/* ==========================================================================
   Section heads (modules / features)
   ========================================================================== */

.t3l-section-head {
    max-width: 640px;
    margin-bottom: clamp(20px, 4vh, 34px);
}

.t3l-section-title {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--t3-text);
    margin: 14px 0 12px;
}

.t3l-section-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--t3-text-muted);
    margin: 0;
    max-width: 560px;
}

/* Feature grid */
.t3l-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.t3l-feature {
    background: var(--t3-bg);
    border: 1px solid var(--t3-border);
    border-radius: var(--t3-radius);
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease;
}

.t3l-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
    border-color: var(--t3-border-hover);
}

.t3l-feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--t3l-tint-strong);
    color: var(--t3-primary);
    font-size: 18px;
    margin-bottom: 14px;
}

.t3l-feature h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--t3-text);
    margin: 0 0 7px;
}

.t3l-feature p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--t3-text-muted);
    margin: 0;
}

/* ==========================================================================
   PRICING — data-driven package cards
   ========================================================================== */

.t3l-pricing-head {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.t3l-pricing-head .t3l-eyebrow { justify-content: center; }

/* This head sits over the wedge overlay + background image, so its sub-copy
   ("Start free, add your team…") must stay legible and flip with the theme.
   The full --t3-text token is dark in light mode and light in dark mode;
   softening it with opacity keeps the muted look without washing out. */
.t3l-pricing-head .t3l-section-text {
    color: var(--t3-text);
    opacity: .82;
}

/* Monthly / annual billing switch (rendered only when paid plans exist) */
.t3l-price-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    margin: 0 auto clamp(19px, 3.5vh, 29px);
    padding: 5px;
    border-radius: 40px;
    background: var(--t3-subtle-bg);
    border: 1px solid var(--t3-border);
}

.t3l-price-toggle button {
    display: inline-flex;
    align-items: center;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--t3-text-muted);
    padding: 7px 19px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.t3l-price-toggle button.is-active {
    background: var(--t3-bg);
    color: var(--t3-text);
    box-shadow: var(--t3-shadow-sm);
}

.t3l-price-save {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    background: var(--t3l-tint);
    color: var(--t3-primary);
}

/* Pricing controls row: business-type filter (left) + billing toggle (right).
   Constrained to the card-grid width (3 x 340px + 2 x 24px gaps) and centred so
   the filter aligns to the first card and the toggle to the last card. */
.t3l-price-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    width: 100%;
    max-width: 1068px;
    margin: 0 auto clamp(19px, 3.5vh, 29px);
}

/* When the controls row is used, the billing toggle no longer auto-centres. */
.t3l-price-controls .t3l-price-toggle {
    margin: 0;
}

.t3l-price-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.t3l-filter-pills {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 5px;
    border-radius: 40px;
    background: var(--t3-subtle-bg);
    border: 1px solid var(--t3-border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.t3l-filter-pills::-webkit-scrollbar {
    display: none;
}

.t3l-filter-pills button {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--t3-text-muted);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.t3l-filter-pills button:hover {
    color: var(--t3-text);
}

.t3l-filter-pills button.is-active {
    background: var(--t3-bg);
    color: var(--t3-text);
    box-shadow: var(--t3-shadow-sm);
}

@media (max-width: 760px) {
    .t3l-price-controls {
        justify-content: center;
    }

    .t3l-price-filter {
        width: 100%;
        justify-content: center;
    }

    .t3l-price-controls .t3l-price-toggle {
        margin: 0 auto;
    }
}

/* Card grid — centres for a single plan, wraps into a row for many. */
.t3l-price-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
}

.t3l-price {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 340px;
    max-width: 100%;
    padding: 27px 26px;
    background: var(--t3-bg);
    border: 1px solid var(--t3-border);
    border-radius: calc(var(--t3-radius) + 4px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease;
}

.t3l-price:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(16, 24, 40, .11);
    border-color: var(--t3-border-hover);
}

/* Featured (recommended) plan — stays a white card, set apart with a brand
   accent ring and a stronger shadow so it lifts off the coloured diagonal. */
.t3l-price.is-featured {
    border-color: color-mix(in srgb, var(--t3-primary) 42%, var(--t3-border));
    box-shadow: 0 26px 54px rgba(16, 24, 40, .20);
}

.t3l-price.is-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px rgba(16, 24, 40, .26);
    border-color: var(--t3-primary);
}

.t3l-price-badge {
    position: absolute;
    top: 20px;
    right: 22px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    background: var(--t3l-tint);
    color: var(--t3-primary);
}

/* On the featured card the badge becomes a solid brand pill for emphasis. */
.t3l-price.is-featured .t3l-price-badge {
    background: var(--t3-primary);
    color: #fff;
}

.t3l-price-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--t3-text-muted);
}

.t3l-price-amount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0 2px;
}

.t3l-price-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--t3-text);
}

.t3l-price-per {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t3-text-muted);
}

.t3l-price-sub {
    font-size: 12.5px;
    color: var(--t3-placeholder);
    margin-bottom: 19px;
}

.t3l-price-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 19px 0 0;
    border-top: 1px solid var(--t3-border);
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1 1 auto;
}

.t3l-price-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--t3-text);
}

.t3l-price-list i {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--t3l-tint);
    color: var(--t3-primary);
    font-size: 11px;
}

.t3l-price-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 17px;
    border-radius: var(--t3-radius); /* match the login page button shape */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    background: var(--t3-primary);
    color: #fff;
    box-shadow: var(--t3-shadow-btn);
    transition: background .15s ease, transform .12s ease, color .15s ease;
}

.t3l-price-cta:hover { background: var(--t3-primary-hover); transform: translateY(-1px); color: #fff; }
.t3l-price-cta i { transition: transform .15s ease; }
.t3l-price-cta:hover i { transform: translateX(3px); }

/* Non-featured cards use a calm, soft CTA. */
.t3l-price:not(.is-featured) .t3l-price-cta.is-soft {
    background: var(--t3-subtle-bg);
    color: var(--t3-text);
    border-color: var(--t3-border);
    box-shadow: none;
}

.t3l-price:not(.is-featured) .t3l-price-cta.is-soft:hover {
    background: var(--t3-bg);
    border-color: var(--t3-border-hover);
    color: var(--t3-text);
}

/* Reassurance note under the grid (trial / no-card-required). */
.t3l-price-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(19px, 3.5vh, 29px);
    font-size: 12.5px;
    color: var(--t3-text-muted);
    text-align: center;
}

.t3l-price-note i { color: var(--t3-primary); }

.dark-theme .t3l-price { background: var(--t3-field-bg); }
.dark-theme .t3l-price:hover { box-shadow: 0 22px 48px rgba(0, 0, 0, .45); }

/* Diagonal two-tone backdrop: neutral upper-left, brand-colour lower-right,
   split by a true corner-to-corner diagonal (top-right → bottom-left). A
   stretched SVG draws the crisp edge line so it hits both corners at any
   panel size. */
.t3l-panel-pricing {
    justify-content: flex-start;
    background-color: var(--t3-bg);
    /* Contain the backdrop's negative z-index so it stays above this panel's own
       background-colour instead of sliding behind an ancestor. */
    isolation: isolate;
    /* Pricing never scrolls — clip any overflow and hide the scrollbar entirely. */
    overflow: hidden;
    scrollbar-width: none;              /* Firefox */
    -ms-overflow-style: none;           /* IE / old Edge */
}

.t3l-panel-pricing::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;                      /* Chrome / Safari */
}

/* Coloured triangle — clipped so its hypotenuse runs corner-to-corner. */
.t3l-panel-pricing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    background:
        radial-gradient(135% 120% at 100% 100%, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 58%),
        linear-gradient(135deg,
            color-mix(in srgb, #fff 10%, var(--t3-primary)) 0%,
            color-mix(in srgb, #000 20%, var(--t3-primary)) 100%);
}

/* Crisp diagonal edge line, stretched to hit both corners exactly.
   Dark stroke in light mode; the white variant is restored under .dark-theme. */
.t3l-panel-pricing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='100' y1='0' x2='0' y2='100' stroke='%23101828' stroke-opacity='0.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.dark-theme .t3l-panel-pricing::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='100' y1='0' x2='0' y2='100' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Keep the header and cards above the diagonal backdrop. */
.t3l-panel-pricing > * { position: relative; z-index: 1; }

/* Optional per-business-type backdrop image, swapped live by the pricing filter.
   It fills the panel but only ever reads in the neutral upper-left wedge — the
   coloured triangle (::before, z-index 0) paints over its lower-right half.
   Needs the extra class to outrank `.t3l-panel-pricing > *` above. */
.t3l-panel-pricing .t3l-price-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .4s ease;
}

.t3l-panel-pricing .t3l-price-bg.is-set { opacity: 1; }

/* Second diagonal border — runs from the top-left corner down to the centre,
   ending exactly where it meets the existing top-right→bottom-left diagonal.
   Dark stroke in light mode; the white variant is restored under .dark-theme. */
.t3l-price-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='50' y2='50' stroke='%23101828' stroke-opacity='0.45' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.dark-theme .t3l-price-bg::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' y1='0' x2='50' y2='50' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Overlay filling the wedge on the OTHER side of the new diagonal — the triangle
   bounded by the top-left corner, the top-right corner and the centre point where
   the two diagonals meet. Mixing against --t3-bg makes it theme-adaptive: a light
   wash in light mode, a dark wash in dark mode. */
.t3l-price-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 50% 50%);
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--t3-bg) 88%, transparent) 0%,
        color-mix(in srgb, var(--t3-bg) 58%, transparent) 45%,
        color-mix(in srgb, var(--t3-bg) 18%, transparent) 100%);
}

/* Oversized faded brand mark in the coloured wedge — the Pricing counterpart of
   the Overview watermark (light here, since it sits on the dark diagonal). */
.t3l-price-watermark {
    position: absolute;
    right: 3%;
    bottom: -0.06em;
    margin: 0;
    z-index: 1;
    font-size: min(32vw, 440px);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .11);
    pointer-events: none;
    user-select: none;
}

/* Pin the reassurance note into the coloured wedge and invert it to white. */
.t3l-panel-pricing .t3l-price-note {
    margin-top: auto;
    padding-top: clamp(26px, 6vh, 51px);
    color: rgba(255, 255, 255, .95);
}

.t3l-panel-pricing .t3l-price-note i { color: #fff; }

/* ==========================================================================
   Nav dropdowns (Ohio-style "+" expanders)
   ========================================================================== */

.t3l-nav-plus {
    position: relative;
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--t3-text-muted);
    transition: color .18s ease;
}

.t3l-nav-plus::before,
.t3l-nav-plus::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
}

.t3l-nav-plus::before { top: 50%; left: 0; width: 100%; height: 1.6px; transform: translateY(-50%); }
.t3l-nav-plus::after  { left: 50%; top: 0; width: 1.6px; height: 100%; transform: translateX(-50%); }

.t3l-nav-item.is-open > .t3l-nav-link { color: var(--t3-primary); }
.t3l-nav-item.is-open > .t3l-nav-link .t3l-nav-plus { color: var(--t3-primary); }
.t3l-nav-item.is-open > .t3l-nav-link .t3l-nav-plus::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

/* Smoothly animate the sub-menu height with the grid-rows trick. */
.t3l-subnav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .26s ease;
    padding-left: 5px;
}

.t3l-subnav-inner { overflow: hidden; }

.t3l-nav-item.is-open .t3l-subnav { grid-template-rows: 1fr; }

.t3l-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 7px 10px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--t3-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .16s ease, color .16s ease;
}

.t3l-sublink::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--t3-border-hover);
    flex: 0 0 auto;
    transition: background .16s ease, transform .16s ease;
}

.t3l-sublink:hover {
    color: var(--t3-text);
    background: var(--t3-subtle-bg);
}

.t3l-sublink.is-active {
    color: var(--t3-primary);
    background: var(--t3l-tint);
    font-weight: 600;
}

.t3l-sublink.is-active::before {
    background: var(--t3-primary);
    transform: scale(1.3);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.t3l-faq {
    max-width: 800px;
}

.t3l-faq-item {
    border-bottom: 1px solid var(--t3-border);
}

.t3l-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding: 17px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--t3-text);
    text-align: left;
    transition: color .15s ease;
}

.t3l-faq-q:hover { color: var(--t3-primary); }
.t3l-faq-item.is-open .t3l-faq-q { color: var(--t3-primary); }
.t3l-faq-item.is-open .t3l-faq-q .t3l-nav-plus { color: var(--t3-primary); }
.t3l-faq-item.is-open .t3l-faq-q .t3l-nav-plus::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

.t3l-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .26s ease;
}

.t3l-faq-a-inner { overflow: hidden; }

.t3l-faq-item.is-open .t3l-faq-a { grid-template-rows: 1fr; }

.t3l-faq-a p {
    margin: 0;
    padding: 0 4px 19px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--t3-text-muted);
    max-width: 660px;
}

/* ==========================================================================
   Testimonials / customer quotes
   ========================================================================== */

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

.t3l-quote {
    display: flex;
    flex-direction: column;
    gap: 13px;
    background: var(--t3-bg);
    border: 1px solid var(--t3-border);
    border-radius: var(--t3-radius);
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .15s ease;
}

.t3l-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
    border-color: var(--t3-border-hover);
}

.t3l-quote-stars {
    display: flex;
    gap: 3px;
    color: #f5a623;
    font-size: 12px;
}

.t3l-quote p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--t3-text);
}

.t3l-quote-by {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.t3l-quote-av {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t3l-tint);
    color: var(--t3-primary);
    font-weight: 700;
    font-size: 14px;
}

.t3l-quote-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--t3-text);
}

.t3l-quote-role {
    font-size: 12px;
    color: var(--t3-text-muted);
}

.dark-theme .t3l-quote { background: var(--t3-field-bg); }
.dark-theme .t3l-quote:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }

/* ==========================================================================
   Mobile drawer backdrop
   ========================================================================== */

.t3l-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .5);
    z-index: 35;
}

.t3l-backdrop.is-visible { display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .t3l-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t3l-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    :root { --t3l-sidebar-width: 300px; }

    /* Sidebar becomes an off-canvas drawer */
    .t3l-sidebar {
        transform: translateX(-100%);
        transition: transform .28s ease;
        box-shadow: 0 0 60px rgba(16, 24, 40, .18);
    }

    .t3l-sidebar.is-open { transform: translateX(0); }

    /* On mobile the page scrolls naturally; panels take natural height. */
    body.t3l-body { overflow-x: hidden; overflow-y: auto; }

    .t3l-shell { height: auto; min-height: 100vh; flex-direction: column; }

    .t3l-main {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    /* Content sections size to their content on mobile (no forced full-screen
       height — that left large empty gaps on short sections). */
    .t3l-panel {
        position: static;
        display: none;
        min-height: 0;
        justify-content: flex-start;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .t3l-panel.is-active { display: flex; }

    /* Panel is static on mobile — keep it a positioning context so the pricing
       diagonal backdrop pseudo-elements still anchor to it. */
    .t3l-panel-pricing { position: relative; }

    /* Home stays a full-height hero. svh avoids the mobile-browser chrome jump;
       vh is the fallback for older browsers. */
    .t3l-home {
        position: static;
        min-height: calc(100vh - 64px);
        min-height: calc(100svh - 64px);
        grid-template-columns: 1fr;
    }

    /* Show the product visual on mobile too (as a banner below the copy),
       dropping the desktop chevron clip so it reads as a clean image. */
    .t3l-home-media {
        position: relative;
        min-height: 240px;
        clip-path: none;
        margin-left: 0;
    }

    .t3l-home-content {
        padding: 48px 6%;
    }

    /* Top bar with hamburger */
    .t3l-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 5%;
        border-bottom: 1px solid var(--t3-border);
        position: sticky;
        top: 0;
        background: var(--t3-bg);
        z-index: 30;
    }

    .t3l-burger { display: inline-flex; }
}

@media (min-width: 1025px) {
    .t3l-topbar { display: none; }
}

@media (max-width: 720px) {
    .t3l-feature-grid { grid-template-columns: 1fr; }
    .t3l-quotes { grid-template-columns: 1fr; }
    .t3l-home-title { font-size: 32px; }
}

/* Small phones — tighten spacing, keep type readable, full-width CTAs. */
@media (max-width: 600px) {
    .t3l-panel-pad { padding: 37px 5%; }

    .t3l-home-content { padding: 41px 6%; }
    .t3l-home-title { font-size: 27px; }
    .t3l-home-text { font-size: 15px; margin-bottom: 24px; }

    /* Stack the hero buttons full-width for easy tapping. */
    .t3l-home-actions { width: 100%; gap: 10px; }
    .t3l-home-actions .t3l-pill { flex: 1 1 100%; justify-content: center; }

    .t3l-section-title { font-size: 22px; }
    .t3l-section-text { font-size: 14.5px; }

    /* Roomier cards without wasting width. */
    .t3l-feature { padding: 19px; }
    .t3l-price { padding: 22px 19px; width: 100%; }
    .t3l-price-value { font-size: 30px; }

    .t3l-faq-q { font-size: 14.5px; padding: 15px 2px; }
    .t3l-home-media { min-height: 200px; }
}

/* ==========================================================================
   Dark mode — tokens from auth-theme3.css
   ========================================================================== */

.dark-theme.t3l-body { background: var(--t3-bg); }

.dark-theme .t3l-sidebar,
.dark-theme .t3l-topbar { background: var(--t3-bg); }

.dark-theme {
    --t3l-tint: color-mix(in srgb, var(--t3-primary) 16%, #1a1c26);
    --t3l-tint-strong: color-mix(in srgb, var(--t3-primary) 24%, #1a1c26);
}

.dark-theme .t3l-feature { background: var(--t3-field-bg); }

.dark-theme .t3l-home-watermark { color: #fff; opacity: .05; }

.dark-theme .t3l-feature:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
