/* bestaiansweringservices.com
   Tokens: answered-call green for "included / answered", missed-call red only for missed calls and gaps,
   caller-ID LCD tint only inside the cost calculator. Archivo (expanded) for headings and figures,
   Public Sans for reading. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"), url("/assets/fonts/archivo-var.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/public-sans-var.woff2") format("woff2-variations"), url("/assets/fonts/public-sans-var.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/public-sans-var-italic.woff2") format("woff2-variations"), url("/assets/fonts/public-sans-var-italic.woff2") format("woff2"); }

:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --ink: #0f1d24;
  --ink-2: #33444d;
  --muted: #5a6a72;
  --line: #d6dfdb;
  --line-strong: #b9c7c1;
  --answer: #0c7349;
  --answer-ink: #075c39;
  --answer-soft: #e2f1e8;
  --on-answer: #ffffff;
  --missed: #b93a2a;
  --missed-soft: #fbeae6;
  --lcd: #d9e4c6;
  --lcd-edge: #b8c7a0;
  --lcd-ink: #1f2b18;
  --lcd-dim: #55653f;
  --focus: #1a5fd0;
  --shadow: 0 1px 0 rgba(15, 29, 36, .06);

  --f-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s-1: .8rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.563rem;
  --s3: 1.953rem;
  --s4: 2.441rem;
  --s5: 3.052rem;

  --measure: 68ch;
  --wide: 1120px;
  --gutter: 16px;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1418;
    --surface: #131d22;
    --ink: #e5ede9;
    --ink-2: #c3d0ca;
    --muted: #9aaba4;
    --line: #25343b;
    --line-strong: #37494f;
    --answer: #3fc58a;
    --answer-ink: #7ad9ad;
    --answer-soft: #15301f;
    --on-answer: #07140d;
    --missed: #f07a64;
    --missed-soft: #3a1c17;
    --lcd: #1c2a18;
    --lcd-edge: #2f4526;
    --lcd-ink: #cfe8a9;
    --lcd-dim: #8fae6a;
    --focus: #7fb0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1418;
  --surface: #131d22;
  --ink: #e5ede9;
  --ink-2: #c3d0ca;
  --muted: #9aaba4;
  --line: #25343b;
  --line-strong: #37494f;
  --answer: #3fc58a;
  --answer-ink: #7ad9ad;
  --answer-soft: #15301f;
  --on-answer: #07140d;
  --missed: #f07a64;
  --missed-soft: #3a1c17;
  --lcd: #1c2a18;
  --lcd-edge: #2f4526;
  --lcd-ink: #cfe8a9;
  --lcd-dim: #8fae6a;
  --focus: #7fb0ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; height: auto; }
a { color: var(--answer-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: .5rem; background: var(--surface); padding: .5rem .75rem; z-index: 10; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .bar {
  max-width: var(--wide); margin: 0 auto; padding: .75rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span {
  font-family: var(--f-head); font-weight: 800; font-stretch: 112%;
  font-size: 1.02rem; line-height: 1.1; letter-spacing: -.005em;
}
.nav { display: flex; align-items: center; gap: 1.25rem; font-size: .97rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--answer-ink); text-decoration: underline; }
.nav details { position: relative; }
.nav summary { cursor: pointer; color: var(--ink-2); list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; display: inline-block; margin-left: .35rem; width: .45rem; height: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav details[open] > div {
  position: absolute; right: 0; top: 2rem; z-index: 5; min-width: 15rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .4rem 0; box-shadow: 0 8px 24px rgba(15, 29, 36, .12);
}
.nav details > div a { display: block; padding: .45rem 1rem; }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary {
    list-style: none; cursor: pointer; font-weight: 700; color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .35rem .7rem; font-size: .95rem;
  }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle[open] nav {
    position: absolute; left: 0; right: 0; top: 3.6rem; z-index: 5; background: var(--surface);
    border-bottom: 1px solid var(--line-strong); padding: .5rem var(--gutter) 1rem; display: grid; gap: .1rem;
  }
  .menu-toggle nav a { color: var(--ink); text-decoration: none; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .site-head .bar { position: relative; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 2rem 0 4rem; }
@media (min-width: 1100px) {
  .page.has-toc { grid-template-columns: 220px minmax(0, 1fr); }
}
.content { min-width: 0; max-width: 860px; }
.content > * { max-width: var(--measure); }
.content > .wide, .content > .table-scroll, .content > .calc, .content > .ranked, .content > .picks { max-width: none; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, var(--s5)); font-weight: 800; font-stretch: 118%; margin: .2rem 0 1rem; }
h2 { font-size: clamp(1.55rem, 3.4vw, var(--s3)); font-weight: 800; font-stretch: 112%; margin: 3.2rem 0 .9rem;
  padding-top: 1.1rem; border-top: 3px solid var(--ink); }
h3 { font-size: clamp(1.2rem, 2.4vw, var(--s1)); font-weight: 750; font-stretch: 106%; margin: 2rem 0 .5rem; }
h4 { font-size: 1.02rem; font-weight: 750; margin: 1.3rem 0 .3rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin: .25rem 0; }
strong { font-weight: 700; }
small, .small { font-size: .88rem; }
.lede { font-size: 1.12em; color: var(--ink-2); }
.muted { color: var(--muted); }
.num { font-family: var(--f-head); font-variant-numeric: tabular-nums lining-nums; font-stretch: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 .4rem; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-strong); }

.meta {
  display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; font-size: .92rem; color: var(--muted);
  margin: 0 0 1.5rem; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.meta b { color: var(--ink-2); font-weight: 700; }

.note {
  border-left: 4px solid var(--answer); background: var(--answer-soft); padding: .8rem 1rem; margin: 1.2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note.warn { border-left-color: var(--missed); background: var(--missed-soft); }
.note p:last-child { margin-bottom: 0; }

/* ---------- TOC ---------- */
.toc { font-size: .93rem; }
.toc h2 { font-size: 1rem; border: 0; margin: 0 0 .5rem; padding: 0; font-stretch: 100%; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .28rem 0 .28rem .8rem; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--answer-ink); text-decoration: underline; }
.toc-side { display: none; }
@media (min-width: 1100px) {
  .toc-side { display: block; }
  .toc-side > div { position: sticky; top: 1.2rem; max-height: calc(100vh - 2.4rem); overflow: auto; }
  .toc-inline { display: none; }
}
.toc-inline { margin: 0 0 1.5rem; }
.toc-inline details { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: .6rem .9rem; }
.toc-inline summary { cursor: pointer; font-weight: 700; font-family: var(--f-head); }
.toc-inline ol { margin-top: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--f-head); font-weight: 750; font-stretch: 106%;
  background: var(--answer); color: var(--on-answer); text-decoration: none; padding: .62rem 1.05rem; border-radius: var(--radius);
  border: 2px solid var(--answer); line-height: 1.2;
}
.btn:hover { background: var(--answer-ink); border-color: var(--answer-ink); color: var(--on-answer); }
.btn.ghost { background: transparent; color: var(--answer-ink); border-color: var(--answer); }
.btn.ghost:hover { background: var(--answer-soft); color: var(--answer-ink); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 1.2rem 0 1.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.table-scroll:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.4; }
.table-note { font-size: .87rem; color: var(--muted); margin: -.7rem 0 1.6rem; line-height: 1.5; }
caption { text-align: left; padding: .7rem .8rem; font-size: .88rem; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
th, td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--f-head); font-weight: 750; font-size: .86rem; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
tbody th { font-weight: 700; white-space: nowrap; }
td.n, th.n { text-align: right; font-family: var(--f-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.nowrap td { white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.yes { color: var(--answer-ink); font-weight: 700; }
.no { color: var(--missed); font-weight: 700; }
.part { color: var(--ink-2); }
table.compact td, table.compact th { padding: .45rem .6rem; }

/* ---------- Calculator (the one loud element) ---------- */
.calc {
  margin: 1.6rem 0 2rem; background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden;
}
.calc-controls { padding: 1rem 1.1rem 1.1rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .calc-controls { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.calc label, .calc legend { font-family: var(--f-head); font-weight: 750; font-size: .95rem; display: block; margin-bottom: .35rem; }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc .row { display: flex; align-items: center; gap: .8rem; }
.calc input[type=range] { flex: 1; accent-color: var(--answer); min-width: 0; height: 28px; }
.calc output.calls {
  font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; min-width: 4.2ch; text-align: right;
  font-variant-numeric: tabular-nums;
}
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg label { margin: 0; font-weight: 700; font-size: .93rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .38rem .8rem; cursor: pointer; border-right: 1px solid var(--line-strong); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.checks { display: grid; gap: .35rem; margin-top: .5rem; }
.checks label { font-family: var(--f-body); font-weight: 400; font-size: .97rem; display: flex; gap: .5rem; align-items: flex-start; margin: 0; }
.checks input { margin-top: .3rem; accent-color: var(--answer); width: 1.05rem; height: 1.05rem; flex: none; }

.lcd {
  background: var(--lcd); color: var(--lcd-ink); border-top: 2px solid var(--ink);
  padding: 1rem 1.1rem 1.1rem; box-shadow: inset 0 2px 0 var(--lcd-edge);
}
.lcd-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--f-head); font-stretch: 112%; }
.lcd-head strong { font-size: 1.05rem; }
.lcd-head span { color: var(--lcd-dim); font-size: .9rem; }
.lcd ol { list-style: none; padding: 0; margin: .6rem 0 0; counter-reset: r; }
.lcd li {
  counter-increment: r; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto; gap: .2rem .6rem;
  align-items: baseline; padding: .42rem 0; border-bottom: 1px dashed var(--lcd-edge); margin: 0;
}
.lcd li::before { content: counter(r); font-family: var(--f-head); font-weight: 800; color: var(--lcd-dim); font-variant-numeric: tabular-nums; }
.lcd li .nm { font-weight: 700; }
.lcd li .nm a { color: inherit; }
.lcd li .pl { grid-column: 2 / 3; font-size: .86rem; color: var(--lcd-dim); }
.lcd li .pr { font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; grid-row: 1 / 3; grid-column: 3; align-self: center; }
.lcd li.top .pr { font-size: 1.45rem; }
.lcd li.flag::before { content: "–"; }
.lcd .sub { margin-top: 1rem; font-family: var(--f-head); font-weight: 750; font-stretch: 112%; font-size: .95rem; }
.lcd .foot { font-size: .84rem; color: var(--lcd-dim); margin: .8rem 0 0; }
.lcd a { color: var(--lcd-ink); }

/* ---------- Picks ---------- */
.picks { margin: 1.2rem 0 2rem; border-top: 2px solid var(--ink); }
.picks dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.picks .pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .picks .pick { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; } .picks .go { grid-column: 2; margin-top: .55rem; } }
.picks dt { font-family: var(--f-head); font-weight: 750; color: var(--muted); font-size: .95rem; }
.picks dd { margin: 0; }
.picks dd b { font-family: var(--f-head); font-weight: 800; font-size: 1.12rem; }
.picks .go { justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin-top: .55rem; }
.picks .more { font-weight: 600; color: var(--answer-ink); text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Ranked tools ---------- */
.tool { margin: 2.6rem 0 0; padding: 0 0 0 1rem; border-left: 4px solid var(--ink); }
.tool header { display: flex; gap: .9rem; align-items: baseline; }
.tool .rank { font-family: var(--f-head); font-weight: 800; font-stretch: 125%; font-size: 2.3rem; line-height: 1; color: var(--answer); font-variant-numeric: tabular-nums; }
.tool h3 { margin: 0; font-size: clamp(1.35rem, 2.8vw, 1.7rem); }
.tool .verdict { font-size: 1.05em; color: var(--ink-2); margin: .4rem 0 .8rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0; margin: .8rem 0 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.facts div { padding: .5rem .7rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-size: .95rem; line-height: 1.35; }
.proscons { display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem 1.4rem; }
@media (min-width: 720px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons h4 { margin-top: .6rem; }
.proscons ul { padding-left: 1.1rem; }
.proscons .good li::marker { color: var(--answer); }
.proscons .watch li::marker { color: var(--missed); }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .9rem 0 0; }
.cta-row .small { color: var(--muted); }

/* ---------- Sponsored slot (for renters) ---------- */
.sponsored { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: .9rem 1rem; margin: 1.5rem 0; background: var(--surface); }
.sponsored .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 .35rem; margin-bottom: .4rem; }

/* ---------- FAQ ---------- */
.faq h3 { font-size: 1.12rem; margin-top: 1.7rem; }
.faq p { max-width: var(--measure); }

/* ---------- Sources ---------- */
.sources { font-size: .9rem; color: var(--ink-2); }
.sources li { overflow-wrap: anywhere; }

/* ---------- Industry links ---------- */
.industries { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.industries li { margin: 0; border-bottom: 1px solid var(--line); }
.industries a { display: grid; grid-template-columns: minmax(0, 1fr); padding: .75rem 0; text-decoration: none; color: var(--ink); }
.industries a b { font-family: var(--f-head); font-weight: 750; color: var(--answer-ink); text-decoration: underline; text-underline-offset: 3px; }
.industries a span { color: var(--muted); font-size: .95rem; }

/* ---------- Cost chart (HTML bars stay readable on phones) ---------- */
.chart { margin: 1.4rem 0 1.8rem; padding: .9rem 1rem 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.chart figcaption { font-size: .87rem; color: var(--muted); margin-top: .7rem; }
.chart .grp { font-family: var(--f-head); font-weight: 750; font-stretch: 106%; color: var(--muted); font-size: .85rem; margin: .7rem 0 .25rem; }
.chart .grp:first-child { margin-top: 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bl bv" "bt bt"; gap: .12rem .6rem; align-items: center; padding: .28rem 0; }
.bar-row .bl { grid-area: bl; } .bar-row .bt { grid-area: bt; } .bar-row .bv { grid-area: bv; }
@media (min-width: 640px) { .bar-row { grid-template-columns: 12rem minmax(0, 1fr) 4.6rem; grid-template-areas: "bl bt bv"; gap: .6rem; padding: .16rem 0; } }
.bar-row .bl { font-size: .9rem; line-height: 1.25; }
.bar-row .bl a { color: var(--ink); text-decoration: none; }
.bar-row .bl a:hover { text-decoration: underline; }
.bar-row .bt { height: .8rem; }
.bar-row .bf { display: block; height: 100%; border-radius: 2px; }
.bar-row .bf.ai { background: var(--answer); }
.bar-row .bf.hum { background: var(--ink-2); }
.bar-row .bv { font-family: var(--f-head); font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; font-size: .92rem; }

/* ---------- Related guides ---------- */
.related { margin: 3rem 0 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 3px solid var(--ink); background: var(--surface); margin-top: 2rem; }
.site-foot .cols { max-width: var(--wide); margin: 0 auto; padding: 1.8rem var(--gutter); display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h2 { font-size: .98rem; border: 0; margin: 0 0 .5rem; padding: 0; font-stretch: 100%; }
.site-foot ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.site-foot li { margin: .3rem 0; }
.site-foot p { font-size: .92rem; color: var(--muted); }
.site-foot .legal { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 1.6rem; font-size: .85rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-top: .6rem; }
.hero p.lede { max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .toc, .calc-controls, .site-foot, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}
