/* CallBotScore: one stylesheet, system fonts, no external assets. */
:root {
  --navy: #0f1f3d;
  --text: #1c2b45;
  --muted: #55627a;
  --line: #d9dee7;
  --bg-soft: #f5f7fa;
  --accent: #0f766e;
  --accent-dark: #0b5a54;
  --accent-soft: #e6f4f2;
  --focus: #f59e0b;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font-size: 1.75rem; margin: 1.5rem 0 .75rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
code { background: var(--bg-soft); padding: .1em .3em; border-radius: 4px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .5rem .75rem; z-index: 100; }
.skip-link:focus { left: .5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.site-header nav ul { display: flex; gap: .25rem .9rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.site-header nav a { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; padding: .25rem 0; display: inline-block; }
.site-header nav a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Text */
.lede { font-size: 1.05rem; max-width: 46rem; }
.meta-line, .small, .source-line { font-size: .875rem; color: var(--muted); }
.source-line { margin: .5rem 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.tight li { margin-bottom: .25rem; }
.hero h1 { font-size: 1.6rem; max-width: 46rem; }
.breadcrumb { font-size: .875rem; margin-top: 1rem; color: var(--muted); }
.todo { background: #fff4d6; color: #6b4200; padding: .1em .4em; border-radius: 4px; font-size: .875rem; font-weight: 600; }

/* Boxes */
.note, .callout, .coming-soon, .legend, .newsletter, .worked-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--bg-soft);
}
.note h3 { margin-top: 0; }
.note ul { margin: 0; padding-left: 1.2rem; }
.note li + li { margin-top: .35rem; }
.note-warn { background: #fff8e6; border-color: #f0d18a; margin: 1rem 0; }
.callout { background: var(--accent-soft); border-color: #b5ddd8; }
.coming-soon { background: #fff; border: 2px dashed var(--accent); }
.coming-soon h2 { margin-top: 0; }
.legend { margin: 1rem 0; background: #fff; }
.legend-h { font-weight: 700; margin: 0 0 .5rem; color: var(--navy); }
.legend-list li { margin-bottom: .4rem; font-size: .9rem; }
.legend-list .badge { margin-right: .35rem; }
.disclosure-line { font-size: .875rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: .75rem; }
.notes li { margin-bottom: .6rem; }

/* Badges */
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1.3;
  padding: .15rem .5rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; text-decoration: none;
}
a.badge { text-decoration: underline; text-decoration-thickness: 1px; }
.badge-native { background: #dcf3e6; color: #0b5a2e; border-color: #9fd8b5; }
.badge-zapier { background: #e3edfb; color: #1b4683; border-color: #a9c3ea; }
.badge-claimed { background: #fff1d6; color: #6b4200; border-color: #f0cf8a; }
.badge-no { background: #f1f1f3; color: #3c4250; border-color: #c9ccd3; }
.badge-unknown { background: #fff; color: #4d5566; border: 1px dashed #9aa2b1; }

/* Buttons & forms */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: .6rem 1rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn-ghost { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--navy); }
input, select, textarea {
  font: inherit; color: var(--text); border: 1px solid #8a94a6; border-radius: 6px; padding: .5rem .6rem; background: #fff; width: 100%;
}
label { font-weight: 600; font-size: .92rem; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.filters fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 1rem 0 .5rem; }
.filters legend { font-weight: 700; color: var(--navy); padding: 0 .25rem; }
.filter-grid { display: grid; gap: .5rem 1rem; grid-template-columns: 1fr; align-items: end; }
.filter-grid .field { margin: 0; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: .3rem; }
.result-count { font-size: .9rem; font-weight: 600; color: var(--navy); min-height: 1.4em; }
.newsletter-wrap { margin: 2.5rem 0; }
.newsletter-h { font-weight: 700; color: var(--navy); margin: 0 0 .25rem; }
.beehiiv-embed { margin-top: .5rem; min-height: 0; max-width: 100%; }
.beehiiv-embed iframe { max-width: 100%; border: 0; }
.contact-form { max-width: 34rem; }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin: .75rem 0; }
.data-table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .875rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .55rem .65rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.data-table thead th a { color: #fff; }
.data-table tbody tr:nth-child(even) { background: #fafbfc; }
.data-table tbody th { font-weight: 700; color: var(--navy); }
.data-table td.wide { min-width: 14rem; }
.data-table td.mid { min-width: 9rem; }
.compare-table tbody th, .compare-table thead th:first-child {
  position: sticky; left: 0; z-index: 1; min-width: 9rem; box-shadow: 1px 0 0 var(--line);
}
.compare-table tbody th { background: #fff; }
.compare-table tbody tr:nth-child(even) th { background: #fafbfc; }
.compare-table thead th:first-child { z-index: 2; }
.sort-btn {
  all: unset; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center;
}
.sort-btn::after { content: "↕"; opacity: .6; font-size: .8em; }
th[aria-sort="ascending"] .sort-btn::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .sort-btn::after { content: "↓"; opacity: 1; }
.sort-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.side-table td { min-width: 15rem; }

/* Vendor page */
.vendor-head .visit { margin: 1rem 0 0; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; }

/* Cards */
.card-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
.card-links a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: var(--text); height: 100%; }
.card-links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.card-links strong { display: block; color: var(--navy); }
.card-links span { font-size: .875rem; color: var(--muted); }

/* Worked example */
.worked-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
.worked-card { background: #fff; }
.worked-card h3 { margin-top: 0; }
.worked-plan { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
.worked-plan p { margin: .25rem 0; }
.worked-total { font-size: 1.05rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.faq-item h3 { margin-top: 1rem; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 2rem 0; font-size: .92rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.footer-h { font-weight: 700; color: var(--navy); margin-top: 0; }
.site-footer .plain li { margin-bottom: .3rem; }
.site-footer .newsletter { background: #fff; }

@media (min-width: 700px) {
  h1, .hero h1 { font-size: 2rem; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .card-links { grid-template-columns: repeat(2, 1fr); }
  .worked-grid { grid-template-columns: 1fr 1fr; }
  .facts > div { grid-template-columns: 12rem 1fr; }
  .scroll-hint { display: none; }
}
@media (min-width: 1000px) {
  .card-links { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Guides, Price Index, calculator */
.h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.nav-hi { font-weight: 700; color: var(--accent-dark); }
.index-promo { display: block; margin: 1.25rem 0 .5rem; padding: 1rem 1.15rem; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); text-decoration: none; color: var(--text); max-width: 46rem; }
.index-promo strong { display: block; font-size: 1.15rem; color: var(--navy); }
.index-promo:hover { background: #d7eeea; }
.index-promo-k { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #fff; padding: .1rem .45rem; border-radius: 4px; margin-bottom: .3rem; }
.guide > section { max-width: 60rem; }
.chart-wrap { margin: .75rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; max-width: 60rem; }
.pi-chart { display: block; width: 100%; height: auto; }
.pi-table td .small { font-weight: 400; }
.calc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: .75rem 0; background: #fff; }
.calc-card h3 { margin-top: .25rem; }
.calc-vol { margin: .6rem 0 .2rem; }
.calc-lines { margin: 0 0 .25rem; padding-left: 1.2rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.calc-lines li.best { font-weight: 600; color: var(--navy); }
.cite-box { margin: .5rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: var(--bg-soft); }
.cite-box p { margin: 0; }
.calc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.25rem 1rem; }
.calc-grid { display: grid; gap: .25rem 1.25rem; grid-template-columns: 1fr; }
.calc-form input { font: inherit; padding: .5rem .6rem; border: 1px solid #9aa2b1; border-radius: 6px; max-width: 16rem; }
.calc-out { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: .75rem 1rem; margin-top: .5rem; }
.calc-err { color: #8a1c1c; margin: 0; }
details summary { cursor: pointer; font-weight: 600; }
@media (min-width: 700px) { .calc-grid { grid-template-columns: 1fr 1fr; } }

/* Guides hub */
@media (min-width: 1000px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
