/* cashflowos.in — compare pages (/compare/…) and glossary pages (/glossary/…) and their hubs (seo/compare_glossary.py,
   2026-11-07). Loaded after seo.css; builds on its tokens (--acc amber on compare, indigo on glossary) and its industry /
   guide blocks (ind-*, g-*). */

/* ───────────────────────────── shared: "Cashflow OS vs X" name badges */
.cg-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.cg-vs i { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cg-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; border: 1px solid transparent; }
.cg-badge img { width: 20px; height: 20px; }
.cg-badge.us { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(21, 89, 234, .22); }
.cg-badge.them { background: #fff; color: var(--ink); border-color: rgba(15, 20, 32, .14); box-shadow: 0 1px 2px rgba(15, 20, 32, .05); }
.cg-vs.small { margin: 0 0 10px; gap: 6px; }
.cg-vs.small .cg-badge { font-size: 12.5px; padding: 4px 10px; box-shadow: none; }
.cg-vs.small i { font-size: 11px; }
.cg-h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.18; letter-spacing: -.025em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.cg-h2.small { font-size: clamp(20px, 2.4vw, 24px); margin-bottom: 12px; }

/* ───────────────────────────── compare page */
.cg-hero h1 { max-width: 16ch; }
.cg-compare .ind-jump .wrap a:first-child { margin-left: -4px; }

/* verdict: two cards side by side */
.cg-verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cg-vcard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; box-shadow: var(--shadow); overflow: hidden; }
.cg-vcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: #cfcbbf; }
.cg-vcard.us { border-color: #c9d7f7; background: linear-gradient(180deg, var(--tint), #fff 60%); }
.cg-vcard.us::before { background: var(--blue); }
.cg-vcard.them::before { background: var(--acc-2); }
.cg-vhead { margin: 0 0 10px; }
.cg-vcard h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px; }
.cg-vcard p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.cg-vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cg-vlist li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; line-height: 1.45; color: #222938; }
.cg-vlist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--acc-t); }
.cg-vlist li::after { content: ""; position: absolute; left: 5.5px; top: 6.5px; width: 8px; height: 4px; border-left: 2.3px solid var(--acc); border-bottom: 2.3px solid var(--acc); transform: rotate(-45deg); }
.cg-vcard.us .cg-vlist li::before { background: #d9e5fd; } .cg-vcard.us .cg-vlist li::after { border-color: var(--blue); }

/* where Cashflow OS is stronger: 3 numbered cards */
.cg-hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cg-hl li { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.cg-hl .ind-ic { color: var(--blue); background: var(--tint); margin-bottom: 6px; }
.cg-n { position: absolute; right: 18px; top: 16px; font-size: 13px; font-weight: 800; color: #c3bfb3; letter-spacing: .02em; }
.cg-hl b { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.cg-hl li > span:not(.cg-n) { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.cg-hl .ind-more { margin-top: auto; padding-top: 8px; }

/* where the other may suit you: 2 honest cards */
.cg-fair { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cg-fair li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; background: #fffaf0; border: 1px solid #f3dfb6; border-radius: 18px; padding: 18px 20px; }
.cg-fair-ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--acc-t); color: var(--acc); }
.cg-fair b { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.cg-fair li > span:last-child { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* the long comparison */
.cg-long .g-grid { padding: 0; justify-content: start; }
.cg-long .prose > section:last-child { margin-bottom: 20px; }
.cg-rail-cta { border-color: rgba(180, 83, 9, .16); }
.cg-legend { display: block; margin: 0 0 22px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cg-key { display: inline-block; text-align: center; vertical-align: 1px; min-width: 24px; line-height: 22px; padding: 0 6px; margin-right: 3px; border-radius: 6px; font-weight: 800; font-size: 13px; }
.cg-key.yes { background: #e3f6ea; color: #15803d; } .cg-key.na { background: #efeee9; color: #6b7080; margin-left: 8px; }
/* comparison tables: sticky first column, tinted cells, scroll inside the box on phones */
.cg-compare .tbl { position: relative; }
.prose .tbl table.cg-cmp { display: table; }
.cg-cmp th, .cg-cmp td { font-size: 14.5px; line-height: 1.45; }
.cg-cmp th { white-space: normal; }
.cg-cmp th:first-child, .cg-cmp td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
.cg-cmp thead th:first-child { background: var(--acc-t); }
.prose .cg-cmp tbody tr:nth-child(even) td:first-child { background: #fbfaf7; }
.cg-cmp thead th.cg-us { background: #dfe8fc; color: var(--blue-deep); }
.cg-cmp td.cg-yes { background: #eefaf2 !important; color: #14532d; }
.cg-cmp td.cg-yes::before { content: "✓"; display: inline-block; margin-right: 6px; font-weight: 800; color: #15803d; }
.cg-cmp td.cg-no { background: #f7f5ef !important; color: var(--ink-2); }
.cg-cmp td.cg-na { background: #f4f3ef !important; color: #8a8f9c; text-align: center; font-weight: 700; }
.cg-cols3, .cg-cols4 { min-width: 600px; }

/* other comparisons: vs cards */
.cg-ocards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.cg-ocard { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--acc-2); border-radius: 16px; padding: 16px 18px 40px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.cg-ocard::after { content: "→"; position: absolute; left: 18px; bottom: 12px; color: var(--acc); font-weight: 800; transition: transform .15s; }
.cg-ocard:hover { border-color: var(--acc); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 20, 32, .1); }
.cg-ocard:hover::after { transform: translateX(4px); }
.cg-ocard > b { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.cg-ocard > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cg-others { padding-top: 50px; }
.cg-others .g-rel-head .ind-more { color: var(--acc); }
.cg-hub-note { margin: 10px 0 50px; }

/* ───────────────────────────── glossary page */
.cg-ghero .eyebrow a { color: inherit; text-decoration: none; } .cg-ghero .eyebrow a:hover { text-decoration: underline; }
.cg-ghero h1 { font-size: clamp(38px, 5.6vw, 66px); margin-bottom: 20px; }
.cg-def { position: relative; background: #fff; border: 1px solid rgba(67, 56, 202, .16); border-left: 5px solid var(--acc); border-radius: 18px; padding: 18px 22px 20px; margin: 0 0 16px; box-shadow: 0 18px 40px -20px rgba(67, 56, 202, .4), var(--shadow); max-width: 640px; }
.cg-def-label { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--acc); }
.cg-def-text { margin: 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.42; font-weight: 650; letter-spacing: -.012em; color: var(--ink); }
.cg-def-more { margin: 0 0 14px; color: var(--ink-2); max-width: 62ch; }
.cg-gmain { display: grid; grid-template-columns: minmax(0, 860px) 250px; gap: 56px; padding: 40px 0 10px; }
.cg-gcol { min-width: 0; }
.cg-gside { margin-top: 0; }
.cg-rail-gl { border-color: rgba(67, 56, 202, .14); }
.cg-gcol > section, .cg-gcol > .prose { margin: 0 0 44px; scroll-margin-top: calc(var(--top-h) + 16px); }

/* example callout */
.cg-ex { background: linear-gradient(135deg, #fff8e6, #fff 70%); border: 1px solid #f1dfae; border-radius: 20px; padding: 20px 22px 8px; box-shadow: var(--shadow); }
.cg-ex-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #92400e; }
.cg-ex-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fde9b8; color: #92400e; }
.cg-ex-body { font-size: 16.5px; color: #222938; }
.cg-ex-body p { margin: 0 0 12px; }
.cg-ex-body .tbl { margin: 6px 0 14px; }
.cg-ex-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cg-ex-body th, .cg-ex-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cg-ex-body th { background: #fdf3d7; font-size: 14px; }
.cg-ex-body tr:last-child td { border-bottom: 0; font-weight: 700; }

/* in TallyPrime / in Cashflow OS */
.cg-where-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.cg-where-grid.one { grid-template-columns: minmax(0, 1fr); }
.cg-in { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.cg-in.app { background: linear-gradient(180deg, var(--tint), #fff 75%); border-color: #c9d7f7; padding-bottom: 0; overflow: hidden; }
.cg-in-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.cg-in-head small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cg-in-head > span:last-child { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cg-in-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc-t); color: var(--acc); }
.cg-in-ic.app { background: #fff; box-shadow: var(--shadow); }
.cg-in-body { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; min-width: 0; }
.cg-in-body p { margin: 0 0 10px; }
.cg-in-body .ind-more { margin-top: 2px; }
.cg-in-app { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: end; flex: 1; }
.cg-in-app .cg-in-body { align-self: start; padding-bottom: 18px; }
.cg-in-phone { width: 150px; height: 230px; overflow: hidden; align-self: end; }
.cg-in-phone::before { display: none; }
.cg-in-phone img { border-width: 6px; border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -4px 30px -10px rgba(15, 20, 32, .35); }

/* common misunderstandings */
.cg-mis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cg-mis li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); font-weight: 600; font-size: 15.5px; line-height: 1.45; color: #222938; }
.cg-mis small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b45309; margin-bottom: 3px; }
.cg-mis-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fef3c7; color: #b45309; }

/* related terms */
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(67, 56, 202, .18); color: var(--acc); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.cg-chip:hover { background: var(--acc-t); border-color: var(--acc); }
.cg-chip.all { background: var(--acc); color: #fff; border-color: var(--acc); }
.cg-chip.all:hover { background: #3730a3; }
.cg-gcol .g-faq { margin-bottom: 30px; }

/* small CTA band */
.cg-mini { margin-top: 10px; background: radial-gradient(40% 90% at 90% 20%, var(--g1), transparent 70%), radial-gradient(35% 80% at 0% 100%, var(--g2), transparent 70%), var(--acc-t); border-top: 1px solid rgba(67, 56, 202, .12); overflow: hidden; }
.cg-mini-in { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 40px; }
.cg-mini-in > div { align-self: center; padding-bottom: 40px; }
.cg-mini h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; }
.cg-mini p:not(.eyebrow):not(.cg-mini-btns) { margin: 0 0 18px; color: var(--ink-2); max-width: 56ch; }
.cg-mini-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cg-mini-phone { width: 170px; height: 220px; overflow: hidden; }
.cg-mini-phone::before { display: none; }
.cg-mini-phone img { border-bottom: 0; border-radius: 30px 30px 0 0; }

/* ───────────────────────────── glossary hub: A–Z */
.cg-az { position: sticky; top: var(--top-h); z-index: 20; background: rgba(247, 246, 242, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cg-az .wrap { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.cg-az-in { display: flex; flex: 1; min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cg-az-in::-webkit-scrollbar { display: none; }
.cg-az-in a, .cg-az-in span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 800; font-size: 14.5px; text-decoration: none; }
.cg-az-in a { color: var(--acc); background: #fff; border: 1px solid rgba(67, 56, 202, .14); }
.cg-az-in a:hover { background: var(--acc); color: #fff; }
.cg-az-in span { color: #c4c0b5; }
.cg-find { flex: none; }
.cg-find input { width: 220px; height: 38px; padding: 0 14px; border: 1px solid #cfcbbf; border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; color: var(--ink); }
.cg-find input:focus { outline: 3px solid rgba(67, 56, 202, .3); border-color: var(--acc); }
.cg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cg-ghub-in { padding: 28px 0 60px; }
.cg-letters { columns: 3 300px; column-gap: 18px; }
.cg-letter { break-inside: avoid; margin: 0 0 22px; scroll-margin-top: calc(var(--top-h) + 64px); }
.cg-L { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--acc); }
.cg-L::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cg-terms { display: grid; gap: 10px; }
.cg-term { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.cg-term:hover { border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 20, 32, .1); }
.cg-term[hidden], .cg-letter[hidden] { display: none; }
.cg-term-kind { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.cg-term b { font-size: 18px; letter-spacing: -.015em; line-height: 1.25; }
.cg-term > span:last-child { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.cg-none { padding: 30px 0; color: var(--muted); }

/* ───────────────────────────── responsive */
@media (max-width: 1120px) {
  .cg-long .g-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-gmain { grid-template-columns: minmax(0, 860px); }
  .cg-gside { display: none; }
}
@media (max-width: 860px) {
  .cg-verdict, .cg-fair, .cg-where-grid, .cg-mis { grid-template-columns: minmax(0, 1fr); }
  .cg-hl { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cg-hl li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
  .cg-hl .ind-ic { grid-row: span 3; margin: 0; }
  .cg-hl .ind-more { padding-top: 2px; }
  .cg-n { display: none; }
  .cg-vcard { padding: 18px 16px 16px; }
  .cg-gmain { padding-top: 26px; }
  .cg-gcol > section, .cg-gcol > .prose { margin-bottom: 34px; }
  .cg-ghero .hero-art { width: min(72%, 320px); }
  .cg-mini-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 34px; }
  .cg-mini-in > div { order: -1; padding-bottom: 24px; }
  .cg-mini-phone { width: 150px; height: 170px; margin: 0 auto; justify-self: center; }
  .cg-az .wrap { flex-wrap: wrap; gap: 8px; }
  .cg-find { flex: 1 1 100%; } .cg-find input { width: 100%; }
}
@media (max-width: 620px) {
  .cg-badge { font-size: 14px; padding: 5px 11px; }
  .cg-def { padding: 15px 16px 16px; border-radius: 16px; }
  .cg-ex { padding: 16px 16px 4px; }
  .cg-in { padding: 16px; }
  .cg-in-app { grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; }
  .cg-in-phone { width: 104px; height: 170px; }
  .cg-in-phone img { border-width: 4px; border-radius: 18px 18px 0 0; }
  .cg-cmp th, .cg-cmp td { font-size: 13.5px; padding: 9px 10px; }
  .cg-cmp th:first-child, .cg-cmp td:first-child { max-width: 128px; }
  .cg-cols3, .cg-cols4 { min-width: 520px; }
  .cg-az-in a, .cg-az-in span { width: 30px; height: 30px; font-size: 13.5px; }
  .cg-term { padding: 12px 14px; border-radius: 14px; } .cg-term b { font-size: 16.5px; } .cg-term > span:last-child { font-size: 14px; }
  .cg-ocard { padding: 14px 14px 36px; } .cg-ocard > b { font-size: 16px; } .cg-ocard::after { left: 14px; bottom: 10px; }
}

/* compare: the sticky jump bar sits under the header, so the TOC rail and anchor targets clear both */
.cg-long .toc { top: calc(var(--top-h) + 66px); max-height: calc(100vh - var(--top-h) - 86px); }
.cg-compare section[id], .cg-compare .prose section { scroll-margin-top: calc(var(--top-h) + 62px); }
/* the rail's button is a link inside .toc: keep it a button */
.cg-gside .g-rail-cta .btn, .cg-long .g-rail-cta .btn { color: #fff; background: var(--blue); border: 1px solid var(--blue); padding: 0 14px; }
.cg-gside .g-rail-cta .btn:hover, .cg-long .g-rail-cta .btn:hover { background: var(--blue-deep); color: #fff; }
