/*
 * Shared look for the public site pages (welcome, overview, pricing, buy,
 * downloads): top menu bar, footer, sections, cards, buttons and the flyer
 * pop-up. Page-specific bits stay in each page's own <style>.
 * No web fonts: helmet's CSP only allows same-origin styles.
 */
:root {
    --brand:       #2563eb;
    --brand-hover: #1d4ed8;
    --brand-soft:  #eff6ff;
    --navy:        #0f172a;
    --navy-2:      #1e293b;
    --gold:        #f59e0b;
    --gold-soft:   #fef3c7;
    --green:       #059669;
    --green-soft:  #ecfdf5;
    --text:        #0f172a;
    --muted:       #64748b;
    --line:        #e2e8f0;
    --bg:          #f8fafc;
    --card:        #ffffff;
    --radius:      12px;
    --shadow:      0 8px 30px rgba(15, 23, 42, 0.06);
    --font:        -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 12px 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 24px; } }

/* ---- top menu bar --------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(6px);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}
.topbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.topbar .logo img { height: 36px; width: auto; }
.topbar .logo span {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    padding-left: 10px;
    border-left: 1px solid var(--line);
}
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
}
.topbar nav a:hover { color: var(--text); background: #f1f5f9; }
.topbar nav a[aria-current="page"] { color: var(--text); font-weight: 650; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.topbar nav a.cta { background: var(--brand); color: #fff; margin-left: 8px; font-weight: 600; }
.topbar nav a.cta:hover { background: var(--brand-hover); }
.topbar nav a.cta[aria-current="page"] { box-shadow: none; border-radius: 8px; }
.menu-btn {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}
@media (max-width: 860px) {
    .topbar .logo span { display: none; }
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .topbar nav {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 14px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }
    .topbar.open nav { display: flex; }
    .topbar nav a { padding: 11px 12px; }
    .topbar nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); background: var(--brand-soft); }
    .topbar nav a.cta { margin: 6px 0 0 0; text-align: center; }
}

/* ---- page sections ---------------------------------------------------- */
.page-head {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
    padding: 40px 0 32px;
}
.page-head h1 { margin: 0 0 8px 0; font-size: 30px; }
.page-head p.lead { margin: 0; color: var(--muted); font-size: 16px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
}
section.block { padding: 40px 0; }
section.block + section.block { padding-top: 8px; }
section.block h2 { margin: 0 0 10px 0; font-size: 22px; }
section.block > .wrap > p.sub { color: var(--muted); margin-bottom: 20px; }
.muted { color: var(--muted); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
    .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms, border-color 120ms, color 120ms;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--green);
    color: #fff;
}

/* ---- footer menu ------------------------------------------------------ */
.site-foot {
    margin-top: 48px;
    background: var(--navy);
    color: #cbd5e1;
    border-top: 4px solid var(--gold);
    font-size: 14px;
}
.site-foot .cols {
    display: grid;
    gap: 28px;
    padding: 40px 0 28px;
}
@media (min-width: 760px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-foot h4 { margin: 0 0 12px 0; color: #fbbf24; font-size: 14px; letter-spacing: 0.02em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #cbd5e1; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .phone-link { display: inline-flex; align-items: center; gap: 6px; }
/* Phone number is a tap-to-call link on phones; on desktop it's just the hover caption. */
@media (min-width: 768px) { .site-foot .phone-link { cursor: default; } }
.site-foot .about img { height: 34px; background: #fff; border-radius: 6px; padding: 4px 8px; margin-bottom: 10px; }
.site-foot .about p { color: #94a3b8; font-size: 13.5px; }
.site-foot .legal {
    border-top: 1px solid var(--navy-2);
    padding: 16px 0 22px;
    font-size: 12.5px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

/* ---- flyer pop-up: a corner peek that cycles, and a full-size view ---- */
.flyer-peek {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    width: 248px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition: transform 420ms cubic-bezier(.2,.8,.2,1), opacity 300ms;
}
.flyer-peek.show { transform: none; opacity: 1; }
.flyer-peek button.open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f1f5f9;
    cursor: zoom-in;
}
.flyer-peek img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; }
.flyer-peek .meta { padding: 10px 12px 12px; }
.flyer-peek .meta strong { display: block; font-size: 14px; }
.flyer-peek .meta span { display: block; font-size: 12.5px; color: var(--muted); }
.flyer-peek .close {
    position: absolute;
    top: 6px; right: 6px;
    width: 28px; height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 520px) {
    .flyer-peek { width: auto; left: 16px; display: flex; }
    .flyer-peek button.open { width: 96px; flex: 0 0 96px; }
    .flyer-peek img { height: 100%; min-height: 110px; }
}
.flyer-view {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.78);
}
.flyer-view.show { display: flex; }
.flyer-view .box { position: relative; line-height: 0; }
.flyer-view .box a.go { display: block; cursor: none; }
.flyer-view .box img {
    display: block; width: auto; height: auto;
    max-width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.flyer-view .x {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid #fff; background: rgba(15, 23, 42, 0.85); color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer;
}
/* "Buy" prompt that rides with the mouse over the flyer (the cursor itself is hidden). */
.flyer-view .buy-cursor {
    position: absolute; z-index: 1; left: 0; top: 0;
    transform: translate(-50%, -50%);
    padding: 9px 18px; border-radius: 999px;
    background: var(--brand); color: #fff; font: 700 15px/1 var(--font);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    pointer-events: none; white-space: nowrap;
    opacity: 0; transition: opacity 120ms;
}
.flyer-view .box.hover .buy-cursor { opacity: 1; }
/* Touch screens have no hover: park the prompt at the bottom of the flyer. */
@media (hover: none) {
    .flyer-view .box a.go { cursor: pointer; }
    .flyer-view .buy-cursor { opacity: 1; left: 50% !important; top: auto !important; bottom: 14px; transform: translateX(-50%); }
}
/* ---- offer strip + teaser pop-up --------------------------------------- */
.offer-strip {
    position: relative;
    background: #fff3c4;
    border-bottom: 1px solid #f3d27a;
    font-size: 14px;
    text-align: center;
    padding: 9px 44px;
}
.offer-strip a { color: #1f2937; text-decoration: none; }
.offer-strip a:hover u { color: var(--brand); }
.offer-strip s { color: #94a3b8; }
.offer-strip u { font-weight: 700; color: #b45309; text-underline-offset: 3px; }
.offer-strip .tag-save {
    display: inline-block; padding: 1px 8px; border-radius: 5px; margin-right: 4px;
    background: #dc2626; color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: 0.02em;
}
.offer-strip button {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: transparent; font-size: 20px; color: #78350f; cursor: pointer;
}
.offer-strip button:hover { background: rgba(0, 0, 0, 0.06); }
.teaser-pop {
    position: fixed; inset: 0; z-index: 70;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0);
    pointer-events: none;
    transition: background 300ms;
}
.teaser-pop.show { background: rgba(15, 23, 42, 0.62); pointer-events: auto; }
.teaser-pop .box {
    position: relative; width: 100%; max-width: 600px;
    transform: translateY(24px) scale(0.97); opacity: 0;
    transition: transform 380ms cubic-bezier(.2,.8,.2,1), opacity 300ms;
}
.teaser-pop.show .box { transform: none; opacity: 1; }
.teaser-pop img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); transition: opacity 250ms; }
.teaser-pop p { margin: 8px 0 0; text-align: center; font-size: 12px; color: #e2e8f0; }
.teaser-pop p a { color: #fff; }
.teaser-pop .x {
    position: absolute; top: -14px; right: -14px; z-index: 1;
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid #fff; background: #0f172a; color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer;
}
@media (max-width: 520px) {
    .teaser-pop .x { top: -12px; right: -6px; }
    .offer-strip { font-size: 13px; padding: 8px 40px 8px 12px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .teaser-pop, .teaser-pop .box { transition: none; }
    .flyer-peek { transition: none; }
    html { scroll-behavior: auto; }
}

/* TBB CA headline features as small pills (home and overview cards) */
.feat-chips { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feat-chips li { font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft);
                 border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
