/* DORON Tally ERP Bridge site (tallyerpbridge.dorontechsolutions.com): site.css
   (the TBB CA site's shared look) re-tinted to the bridge's navy and cyan, plus
   this site's sections. No web fonts: helmet's CSP allows same-origin styles only. */
:root {
    --brand:       #0369a1;
    --brand-hover: #075985;
    --brand-soft:  #f0f9ff;
    --accent:      #22d3ee;
    --ok:          #14a985;
    --navy-deep:   #0a1f44;
}
/* Top bar: the wide logo (branding/logos/tally-erp-bridge-wide.png at 2x: DORON | the bridge with
   ERP / Tally on the arch) and the product name beside it. Phones keep the logo, drop the name. */
.topbar .logo.brand { gap: 12px; }
.topbar .logo img.mark { height: 44px; width: auto; }
.topbar .logo.brand b { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap;
    background: linear-gradient(90deg, #1c3e96, #13708b 55%, #16b5a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .topbar .logo img.mark { height: 36px; } .topbar .logo.brand b { display: none; } }

/* ---- hero: navy band with the live-connection diagram, as on the app's Dashboard ---- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1b4f9c 0%, transparent 60%),
        linear-gradient(135deg, #0a1f44 0%, #0f2d5c 60%, #0b3a63 100%); color: #fff; padding: 60px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.hero .eyebrow { color: var(--accent); background: rgba(34, 211, 238, 0.12); }
.hero h1 { font-size: 40px; margin: 0 0 14px; }
@media (max-width: 560px) { .hero h1 { font-size: 30px; } }
.hero h1 .grad { background: linear-gradient(90deg, #22d3ee, #38bdf8 50%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c8d8ee; font-size: 17px; margin-bottom: 22px; }
.hero .btn-primary { background: #0ea5e9; }
.hero .btn-primary:hover { background: #0284c7; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.hero .from { margin-top: 16px; color: #9fb6d6; font-size: 14px; }

/* The diagram: three glass boxes joined by status links. */
.flow { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 20px 18px 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.flow .title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.flow .title img { height: 30px; }
.flow .title strong { font-style: italic; font-size: 19px; background: linear-gradient(90deg, #22d3ee, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow .live { margin-left: auto; font-size: 11.5px; letter-spacing: 0.08em; color: #9fb6d6; display: inline-flex; align-items: center; gap: 6px; }
.flow .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(20, 169, 133, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(20, 169, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 169, 133, 0); } }
.flow .row { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
@media (min-width: 640px) { .flow .row { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); } }
.link { align-self: center; }
.node { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px; padding: 12px 12px 10px; position: relative; }
.node::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 3px; border-radius: 3px; background: var(--ok); }
.node .head { display: flex; align-items: center; gap: 8px; }
.node .head > div { min-width: 0; }
.node .badge { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.node.erp .badge { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.node.bridge .badge { background: linear-gradient(135deg, #fbbf24, #f97316); }
.node.tally .badge { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.node h3 { margin: 0; font-size: 15px; white-space: nowrap; }
.node .pill { display: inline-block; font-size: 11px; font-weight: 600; color: #6ee7c8; background: rgba(20, 169, 133, 0.16); border: 1px solid rgba(20, 169, 133, 0.45);
    border-radius: 999px; padding: 1px 8px; margin-top: 2px; white-space: nowrap; }
.node ul { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: #dbe7f7; }
.node li { display: flex; gap: 6px; align-items: baseline; margin-bottom: 4px; overflow-wrap: anywhere; min-width: 0; }
.node li::before { content: "✓"; color: #fff; background: var(--ok); width: 14px; height: 14px; border-radius: 50%; font-size: 9px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex: none; transform: translateY(2px); }
.link { text-align: center; font-size: 10px; line-height: 1.3; color: #9fb6d6; }
.link i { display: block; height: 3px; border-radius: 3px; margin: 0 2px 6px; background: linear-gradient(90deg, rgba(20, 169, 133, 0.2), var(--ok), rgba(20, 169, 133, 0.2));
    background-size: 200% 100%; animation: flow 1.6s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 639px) { .link i { width: 3px; height: 22px; margin: 0 auto 4px; } }
.flow .foot { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 11.5px; color: #8aa3c6; }
@media (prefers-reduced-motion: reduce) { .link i, .flow .live::before { animation: none; } }

/* ---- sections ---- */
.block { padding: 52px 0; }
.block h2 { font-size: 26px; margin: 0 0 6px; }
.block p.sub { color: var(--muted); margin-bottom: 24px; max-width: 820px; }
.block.alt { background: #eef6fb; border-top: 1px solid #d6e7f2; border-bottom: 1px solid #d6e7f2; }
.block.dark { background: var(--navy-deep); color: #e2e8f0; }
.block.dark h2 { color: #fff; }
.block.dark p.sub { color: #9fb6d6; }
.feat { padding: 22px; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { color: var(--muted); margin: 0; }
.feat ul { color: var(--muted); margin: 6px 0 0; padding-left: 18px; }

/* What goes across: ERPNext item → Tally item, two columns. */
.map { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.map th, .map td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.map th { background: #f1f5f9; font-size: 13.5px; }
.map td:first-child { font-weight: 600; width: 34%; }
.map td.arrow { width: 32px; color: var(--brand); font-weight: 700; text-align: center; }
.map tr:last-child td { border-bottom: none; }
@media (max-width: 640px) { .map td.arrow { display: none; } .map td:first-child { width: auto; } }

/* Numbered steps (download / install pages). */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 14px 56px; position: relative; }
.steps > li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps > li p { margin: 6px 0 0; color: var(--muted); }
.steps > li ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.dl { padding: 28px; display: grid; gap: 14px; }
@media (min-width: 760px) { .dl { grid-template-columns: 1fr auto; align-items: center; } }
.dl h2 { margin: 0; font-size: 22px; }
.muted-sm { color: var(--muted); font-size: 13.5px; }
.note { border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 16px 0; }
.note.warn { border-color: #d97706; background: #fffbeb; }
kbd { font: 600 12.5px var(--font); background: #f1f5f9; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 13.5px; color: var(--text); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
.guide h2 { scroll-margin-top: 80px; }
.trouble { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.trouble th, .trouble td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.trouble th { background: #f1f5f9; }
.trouble tr:last-child td { border-bottom: none; }
.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); }
.cta-band { margin-top: 26px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #0a1f44, #0f2d5c); color: #e2e8f0; border-radius: 14px; }
.cta-band strong { font-size: 18px; color: #fff; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }

/* Privacy notice. */
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px 0; }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 4px 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: #f1f5f9; font-weight: 600; }
@media (max-width: 640px) { .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; } .prose thead { display: none; }
    .prose td { border-bottom: none; padding: 4px 0; } .prose tr { border-bottom: 1px solid var(--line); padding: 8px 0; } }

/* Talk to us. */
.contact { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .contact.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact .card { padding: 22px; }
.contact h3 { margin: 0 0 6px; }
.contact a.big { font-size: 17px; font-weight: 700; text-decoration: none; word-break: break-word; }
