/*
 * 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: 1fr 1fr 1fr; } }
@media (min-width: 1040px) { .site-foot .cols { grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 1.5fr; } }
.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; }
/* DORON on Instagram / LinkedIn, next to the website link. */
.site-foot .social { display: inline-flex; gap: 10px; margin-left: 10px; vertical-align: middle; }
.site-foot .social a { display: inline-flex; padding: 2px; border-radius: 4px; }
.site-foot .social a:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.site-foot .social svg { display: block; }
/* 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; }

/* ---- TBB & Saathi site additions (2026-10-28) ---------------------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg); font-weight: 600; }
.feature h3 { margin: 0 0 6px 0; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }
/* Flyer-style cards: a coloured bar down the left, coloured title over a rule. */
.usp { position: relative; overflow: hidden; --accent: var(--navy); }
.usp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.usp h3 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--accent); }
.usp p { margin: 0; font-size: 14px; color: var(--muted); }
.usp ul { margin: 0; padding: 0; list-style: none; }
.usp li { position: relative; padding-left: 15px; margin-bottom: 7px; font-size: 14px; color: #334155; }
.usp li:last-child { margin-bottom: 0; }
.usp li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.usp-navy   { --accent: #1e3a6e; }
.usp-orange { --accent: #c2620a; }
.usp-teal   { --accent: #136e8b; }
.usp-blue   { --accent: #2a5599; }
.usp-purple { --accent: #6b2f8a; }
.usp-green  { --accent: #237a4f; }
.usp-amber  { --accent: #b45309; }
.hero-card { margin: 0 0 16px; padding: 18px 22px; border-radius: var(--radius); background: #1e3a6e; color: #fff; }
.hero-card h3 { margin: 0 0 4px; font-size: 18px; }
.hero-card p { margin: 0; font-size: 14.5px; color: #dbe4f3; }
.hero-teal { margin: 16px 0 0; background: #0f5566; border-left: 5px solid var(--gold); }
.fit-map { display: block; width: 100%; height: auto; font-family: var(--font); }
.fit-wide { display: none; }
@media (min-width: 760px) { .fit-wide { display: block; } .fit-tall { display: none; } }
.fit-map .zone { fill: var(--brand-soft); stroke: #bfdbfe; stroke-width: 1.5; stroke-dasharray: 6 5; }
.fit-map .zone-out { fill: var(--green-soft); stroke: #a7f3d0; }
.fit-map .box { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.fit-map .box-hero { stroke: var(--brand); stroke-width: 2; }
.fit-map .cloud, .fit-map .pill { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.fit-map .chip { fill: var(--bg); stroke: var(--line); }
.fit-map .chip-on { fill: var(--brand-soft); stroke: #bfdbfe; }
.fit-map .t { font-size: 16px; font-weight: 650; fill: var(--text); }
.fit-map .chip-t { font-size: 14.5px; font-weight: 650; fill: var(--text); }
.fit-map .note { font-size: 13px; fill: var(--muted); }
.fit-map .tc { text-anchor: middle; }
.fit-map .zone-t { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; fill: var(--muted); }
.fit-map .tag-r { fill: var(--brand); }
.fit-map .tag-v { fill: #7c3aed; }
.fit-map .tag-g { fill: var(--green); }
.fit-map .tag-t { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; fill: #fff; text-anchor: middle; }
.fit-map .link { fill: none; stroke: #64748b; stroke-width: 1.75; }
.fit-map .banner { fill: var(--green); }
.fit-map .banner-t { font-size: 17px; font-weight: 700; fill: #fff; }
.trade { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.dl-card { display: flex; gap: 18px; align-items: flex-start; }
.dl-card img { width: 84px; height: 84px; border-radius: 16px; border: 1px solid var(--line); flex: none; }
.dl-card h3 { margin: 0 0 4px 0; font-size: 17px; }
.dl-card p { margin: 0 0 12px 0; font-size: 14px; color: var(--muted); }
.note { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 8px; font-size: 14px; }

/* ---- pricing and /buy, as TBB CA's and the ERP Bridge's ---- */
:root { --accent: #22d3ee; --ok: #14a985; }
.muted { color: var(--muted); }
.block.alt { background: #eef6fb; border-top: 1px solid #d6e7f2; border-bottom: 1px solid #d6e7f2; }
.muted-sm { color: var(--muted); font-size: 13.5px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.gst { color: var(--muted); font-size: 13.5px; }
.off { display: inline-block; vertical-align: middle; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
.amc-cols { display: grid; gap: 14px; margin-top: 20px; }
.amc-cols > div { border-radius: 10px; padding: 16px 18px; }
.amc-cols h3 { margin: 0 0 8px; font-size: 16px; }
.amc-cols ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.amc-cols li { margin-bottom: 6px; }
.amc-cols p { margin: 8px 0 0; }
.amc-in { background: var(--green-soft); border: 1px solid #a7f3d0; }
.amc-in h3 { color: #065f46; }
.amc-out { background: #fffbeb; border: 1px solid #fde68a; }
.amc-out h3 { color: #92400e; }
.trial-band { max-width: 920px; margin: 22px auto 0; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    background: var(--brand-soft); border: 1px solid #bae6fd; border-radius: 12px; }
.trial-band strong { font-size: 17px; }
.partner-offer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px;
    padding: 8px 12px; border-radius: 10px; background: var(--green-soft); border: 1px dashed #34d399; color: #065f46; font-size: 14px; }
.partner-offer strong { color: #065f46; font-size: 1.15em; }
.partner-offer .off { background: #dc2626; color: #fff; font-weight: 800; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; letter-spacing: 0.02em; }
.partner-offer a { color: #065f46; font-weight: 700; white-space: nowrap; }


/* ---- top menu: pill links (2026-11-09; the same on every DORON site) ---- */
@media (min-width: 861px) {
    .topbar nav { gap: 4px; padding: 5px; background: linear-gradient(180deg, #f8fafc, #eef2f7); border: 1px solid #e2e8f0;
        border-radius: 999px; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06); }
    .topbar nav a { padding: 8px 16px; border-radius: 999px; color: #1e293b; font-weight: 600; font-size: 14.5px;
        transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s; }
    .topbar nav a:hover { background: #fff; color: #0369a1; box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.2); }
    .topbar nav a[aria-current="page"] { background: linear-gradient(135deg, #0ea5e9, #4f46e5); color: #fff; border-radius: 999px;
        box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.65); padding-bottom: 8px; }
    .topbar nav a.cta { margin-left: 6px; background: linear-gradient(135deg, #fbbf24, #f97316); color: #fff;
        box-shadow: 0 6px 16px -6px rgba(249, 115, 22, 0.75); }
    .topbar nav a.cta:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }
}
