/* The Autowhat 100 hub (ai-agents-for-small-business.html): hero, periodic table of agents, phones at work, trust, families */
.hb-body { --hb-ink: #22303a; --hb-body: #55605f; --hb-mute: #6a7779; --hb-line: #dceaee; --hb-card: #fff; --hb-ok: #e8a317; }

/* hero */
.hb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(16px, 3vw, 44px); align-items: center; }
.hb-hero h1 { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.04; letter-spacing: -.025em; }
.hb-hero .s-lede { max-width: 590px; }
.hb-stats { list-style: none; margin: 26px 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(5, auto); justify-content: start; gap: 8px 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hb-stats li { display: flex; flex-direction: column; }
.hb-stats b { font-size: clamp(26px, 2.5vw, 36px); line-height: 1; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.hb-stats span { font-size: 12.5px; color: rgba(227, 246, 250, .78); margin-top: 5px; }
.hb-wheel { max-width: 560px; justify-self: center; width: 100%; }

/* definition + how it works */
.hb-define__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 4vw, 56px); align-items: start; }
.hb-define__grid .s-title { margin: 0; }
.hb-define__grid .dt-define { margin: 0; }
.hb-how { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.hb-how li { position: relative; background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 18px; padding: 22px 20px 20px; }
.hb-how li:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -14px; width: 14px; height: 2px; background: #9fd3dd; }
.hb-how span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0b8fa8; color: #fff; font: 700 15px/1 "IBM Plex Mono", monospace; }
.hb-how b { display: block; margin: 14px 0 6px; font-size: 19px; color: var(--hb-ink); }
.hb-how p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--hb-body); }
.hb-how .hb-how__ok { background: #fff8ea; border-color: #f2d49b; }
.hb-how .hb-how__ok span { background: var(--hb-ok); }

/* finder tools */
.hb-tools { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 20px; padding: 16px; margin-bottom: 16px; box-shadow: 0 10px 30px -22px rgba(11, 60, 72, .35); }
.hb-tools .a1-bizbar { align-items: center; margin-bottom: 12px; }
.hb-tools__l { font-size: 13px; font-weight: 700; color: var(--hb-mute); margin-right: 4px; text-transform: uppercase; letter-spacing: .05em; }
.hb-tools .a1-search { margin-bottom: 10px; }
.hb-clear { appearance: none; border: 1px solid var(--hb-line); background: #f4f9fa; color: var(--hb-ink); border-radius: 12px; height: 50px; padding: 0 16px; font: 600 14px "Source Sans 3", system-ui, sans-serif; cursor: pointer; }
.hb-clear[hidden] { display: none; }
.hb-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 34px; font-size: 14.5px; color: var(--hb-body); }
.hb-sum b { color: var(--hb-ink); font-size: 17px; }
.hb-sum em { font-style: normal; color: var(--hb-mute); }
.hb-sum .a1-add { --c: #0b8fa8; margin-left: auto; }

/* periodic table */
.pt { display: grid; gap: 6px; }
.pt-row { --tint: color-mix(in srgb, var(--c) 9%, #fff); --edge: color-mix(in srgb, var(--c) 26%, #fff); display: grid; grid-template-columns: 148px repeat(10, minmax(0, 1fr)); gap: 6px; scroll-margin-top: 90px; }
.pt-fam { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--c); color: #fff; }
.pt-fam b { font: 700 26px/1 "Source Sans 3", system-ui, sans-serif; }
.pt-fam span { font-size: 12.5px; font-weight: 600; line-height: 1.2; opacity: .95; }
.pt-cell { position: relative; min-width: 0; }
.pt-t { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 104px; padding: 8px 9px 7px; border-radius: 12px; background: var(--tint); border: 1px solid var(--edge); color: var(--hb-ink); text-decoration: none; transition: transform .18s, background .18s, opacity .18s, box-shadow .18s; }
.pt-t:hover, .pt-t:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--c) 70%, #000); border-color: var(--c); z-index: 3; }
.pt-sku { font: 700 11.5px/1 "IBM Plex Mono", monospace; color: var(--c); letter-spacing: .02em; }
.pt-star { font-style: normal; position: absolute; top: 7px; left: 40px; font-size: 11px; color: var(--hb-ok); }
.pt-n { display: block; margin: 6px 0 6px; flex: 1; font-size: 13px; font-weight: 700; line-height: 1.18; letter-spacing: -.005em; hyphens: auto; -webkit-hyphens: auto; }
.pt-meta { display: flex; align-items: center; gap: 5px; font: 500 10.5px/1 "IBM Plex Mono", monospace; color: var(--hb-mute); white-space: nowrap; }
.pt-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; background: #12a68f; }
.pt-dot--conn { background: #3b5bff; } .pt-dot--later { background: #a3adb3; }
.pt-pop { position: absolute; left: 0; bottom: calc(100% + 8px); width: 250px; padding: 10px 12px; border-radius: 12px; background: #0f1c20; color: #e3f6fa; font-size: 13px; line-height: 1.45; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; z-index: 5; }
.pt-pop em { display: block; margin-top: 4px; font-style: normal; color: #5cc8d6; font-size: 12px; }
.pt-cell:nth-child(n+8) .pt-pop { left: auto; right: 0; }
.pt-t:hover .pt-pop, .pt-t:focus-visible .pt-pop { opacity: 1; visibility: visible; transform: none; }
.pt-add.a1-add { position: absolute; top: 5px; right: 5px; margin: 0; width: 24px; height: 24px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--edge); background: #fff; color: var(--c); font: 700 16px/1 "Source Sans 3", system-ui, sans-serif; opacity: .85; transition: opacity .15s, transform .15s; z-index: 4; }
.pt-add.a1-add:hover { opacity: 1; transform: scale(1.1); border-color: var(--c); }
.pt-add.a1-add[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; opacity: 1; }
.pt-cell.in-team .pt-t { box-shadow: inset 0 0 0 2px var(--c); }
/* lit by business or search */
.pt.is-filtered .pt-cell:not(.is-on) .pt-t { opacity: .28; filter: saturate(.3); }
.pt.is-filtered .pt-cell:not(.is-on) .pt-t:hover { opacity: 1; filter: none; }
.pt.is-filtered .pt-fam { opacity: .75; }
.pt-cell.is-on .pt-t { background: var(--c); border-color: var(--c); color: #fff; }
.pt-cell.is-on .pt-sku, .pt-cell.is-on .pt-meta { color: rgba(255, 255, 255, .88); }
.pt-cell.is-on .pt-star { color: #ffe08a; }
.pt-cell.is-ping .pt-t { animation: ptPing 1.4s ease 2; }
@keyframes ptPing { 50% { transform: scale(1.07); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); } }
.pt-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--hb-mute); }
.pt-legend li { display: flex; align-items: center; gap: 6px; }
.pt-legend .pt-star { position: static; font-size: 13px; }
.pt-legend b { font: 700 11.5px "IBM Plex Mono", monospace; color: var(--hb-ink); }
/* matching tasks under the table */
.hb-hits { margin-top: 16px; }
.hb-hits[hidden] { display: none; }
.hb-hits h3 { margin: 0 0 10px; font-size: 16px; color: var(--hb-ink); }
.hb-hits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.hb-hits a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--hb-card); border: 1px solid var(--hb-line); text-decoration: none; color: var(--hb-ink); font-size: 14px; line-height: 1.35; }
.hb-hits a:hover { border-color: var(--c); }
.hb-hits a > span { font: 700 11px/1 "IBM Plex Mono", monospace; color: #fff; background: var(--c); padding: 5px 6px; border-radius: 6px; }
.hb-hits small { display: block; color: var(--hb-mute); font-size: 12px; }
.hb-hits em { font-style: normal; font: 600 10px/1.2 "IBM Plex Mono", monospace; padding: 4px 6px; border-radius: 6px; background: #e3f6ee; color: #12805c; white-space: nowrap; }
.hb-hits em.ok { background: #fff4dc; color: #8a5a00; }
.hb-hits mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.hb-hits p { margin: 10px 0 0; font-size: 13.5px; color: var(--hb-mute); }

/* at work: tabbed phones */
html body.scm-page main > section.hb-work { background: radial-gradient(120% 90% at 85% 40%, #0d4b57 0%, #0a2a31 45%, #071a1f 100%) !important; color: #e3f6fa; }
html body.scm-page section.hb-work .s-title { color: #fff !important; } html body.scm-page section.hb-work .s-title .hl { color: #5cc8d6 !important; }
html body.scm-page section.hb-work .s-lede { color: rgba(227, 246, 250, .8) !important; } html body.scm-page section.hb-work .s-eyebrow, html body.scm-page section.hb-work .s-eyebrow span { color: #5cc8d6 !important; }
.hb-work__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hb-tabs { display: grid; gap: 8px; }
.hb-tab { appearance: none; text-align: left; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); color: #e3f6fa; cursor: pointer; font-family: "Source Sans 3", system-ui, sans-serif; transition: background .2s, border-color .2s; }
.hb-tab:hover { background: rgba(255, 255, 255, .07); }
.hb-tab[aria-selected="true"] { background: rgba(255, 255, 255, .1); border-color: var(--c); box-shadow: inset 4px 0 0 var(--c); }
.hb-tab span { grid-row: span 2; display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--c); color: #fff; font: 700 13px/1 "IBM Plex Mono", monospace; }
.hb-tab b { font-size: 17px; color: #fff; }
.hb-tab small { font-size: 13.5px; line-height: 1.4; color: rgba(227, 246, 250, .72); }
.hb-stage { display: flex; justify-content: center; }
.hb-pane { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: hbIn .35s ease; }
.hb-pane[hidden] { display: none; }
.hb-pane .ax-phone { width: 300px; }
.hb-pane__go { font-size: 14px; font-weight: 700; color: #5cc8d6; text-decoration: none; }
.hb-pane__go:hover { text-decoration: underline; }
@keyframes hbIn { from { opacity: 0; transform: translateY(8px); } }

/* week */
.hb-week { height: 110px; border-radius: 20px; }

/* trust */
.hb-trust__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-panel { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 20px; padding: 20px 20px 16px; }
.hb-panel h3, .hb-sub { margin: 0 0 14px; font-size: 18px; color: var(--hb-ink); }
.hb-sub { margin-top: clamp(26px, 3vw, 36px); }
.hb-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hb-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 12px; align-items: center; }
.hb-bars b { font-size: 15px; color: var(--hb-ink); }
.hb-bars small { grid-column: 1; font-size: 13.5px; color: var(--hb-mute); }
.hb-bars em { grid-column: 2; grid-row: 1 / span 3; font-style: normal; font: 700 24px/1 "Source Sans 3", system-ui, sans-serif; color: var(--hb-ink); text-align: right; }
.hb-bar { grid-column: 1; height: 8px; border-radius: 99px; background: #eef4f6; overflow: hidden; order: 3; }
.hb-bar i { display: block; height: 100%; width: calc(var(--w) * 2.2%); max-width: 100%; border-radius: inherit; background: #0b8fa8; }
.hb-bars li > b { order: 1; } .hb-bars li > small { order: 2; }
.hb-bars--risk .hb-r1 .hb-bar i { background: #5cc8d6; } .hb-bars--risk .hb-r2 .hb-bar i { background: #1fb3cc; }
.hb-bars--risk .hb-r3 .hb-bar i { background: #f0a43a; } .hb-bars--risk .hb-r4 .hb-bar i { background: #e8590c; }
.hb-panel .ptw-note { margin: 14px 0 0; }
.hb-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hb-rules li { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 16px; padding: 16px 18px; font-size: 14.5px; line-height: 1.5; color: var(--hb-body); }
.hb-rules span { display: block; font: 700 12px/1 "IBM Plex Mono", monospace; color: #0b8fa8; margin-bottom: 8px; }
.hb-rules b { color: var(--hb-ink); }

/* top 20 */
.hb-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hb-top a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; height: 100%; padding: 12px 14px; border-radius: 14px; background: var(--hb-card); border: 1px solid var(--hb-line); text-decoration: none; transition: border-color .2s, transform .2s; }
.hb-top a:hover { border-color: var(--c); transform: translateY(-2px); }
.hb-top span { grid-row: span 2; align-self: start; font: 700 11.5px/1 "IBM Plex Mono", monospace; color: #fff; background: var(--c); padding: 6px 7px; border-radius: 7px; }
.hb-top b { font-size: 15px; color: var(--hb-ink); line-height: 1.25; }
.hb-top small { font-size: 13px; line-height: 1.4; color: var(--hb-mute); }

/* receptionist */
.hb-rec__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hb-rec__phone { display: flex; justify-content: center; }
.hb-rec__phone .ax-phone { width: 300px; }
.hb-rec__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; align-items: start; }
.hb-rec__g { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 14px; padding: 0 14px; }
.hb-rec__g summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--hb-ink); }
.hb-rec__g summary::-webkit-details-marker { display: none; }
.hb-rec__g summary span { font: 600 11.5px/1 "IBM Plex Mono", monospace; color: #e8288a; background: #fde8f2; padding: 4px 7px; border-radius: 6px; }
.hb-rec__g ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--hb-body); }
.hb-rec__go { margin: 14px 0 0; } .hb-rec__go a { font-weight: 700; color: #0a6f83; text-decoration: none; }
.hb-eds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hb-eds li { display: flex; flex-direction: column; gap: 3px; background: var(--hb-card); border: 1px solid var(--hb-line); border-top: 3px solid #e8288a; border-radius: 14px; padding: 12px 14px; }
.hb-eds b { font-size: 15.5px; color: var(--hb-ink); }
.hb-eds span { font-size: 13px; color: var(--hb-mute); }
.hb-eds em { font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--hb-body); margin-top: 4px; }

/* families */
.hb-fc__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hb-fc { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 16px; padding: 16px; border-top: 4px solid var(--c); }
.hb-fc header { display: flex; gap: 10px; align-items: center; }
.hb-fc header b { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 17px; }
.hb-fc h3 { margin: 0; font-size: 16px; line-height: 1.2; } .hb-fc h3 a { color: var(--hb-ink); text-decoration: none; } .hb-fc h3 a:hover { color: var(--c); }
.hb-fc p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--hb-body); }
.hb-fc .hb-fc__h { font-weight: 700; color: var(--hb-ink); }
.hb-fc ul { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hb-line); display: grid; gap: 3px; }
.hb-fc li a { font-size: 13.5px; color: #0a6f83; text-decoration: none; } .hb-fc li a:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 1200px) {
  .pt-row { grid-template-columns: 112px repeat(10, minmax(0, 1fr)); }
  .pt-n { font-size: 12px; }
  .hb-fc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hb-hero__grid, .hb-define__grid, .hb-work__grid, .hb-rec__grid { grid-template-columns: 1fr; }
  .hb-wheel { max-width: 460px; }
  .pt-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pt-fam { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; }
  .pt-fam b { font-size: 20px; } .pt-fam span { font-size: 14px; }
  .pt-cell:nth-child(n+8) .pt-pop { left: 0; right: auto; }
  .pt-cell:nth-child(5n + 1) .pt-pop { left: auto; right: 0; }
  .hb-top, .hb-eds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-trust__grid { grid-template-columns: 1fr; }
  .hb-fc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-work__grid .hb-stage { order: -1; }
}
@media (max-width: 640px) {
  .hb-stats { grid-template-columns: repeat(3, auto); gap: 14px 22px; }
  .hb-how { grid-template-columns: 1fr; } .hb-how li:not(:last-child)::after { top: auto; bottom: -10px; left: 36px; right: auto; width: 2px; height: 10px; }
  .pt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .pt-t { min-height: 96px; }
  .pt-cell:nth-child(5n + 1) .pt-pop { left: 0; right: auto; }
  .pt-cell:nth-child(3n + 1) .pt-pop { left: auto; right: 0; }
  .pt-pop { width: 210px; }
  .hb-hits ul, .hb-top, .hb-eds, .hb-rules, .hb-rec__groups, .hb-fc__grid { grid-template-columns: 1fr; }
  .hb-tab small { display: none; }
  .hb-pane .ax-phone, .hb-rec__phone .ax-phone { width: 270px; }
  .hb-sum .a1-add { margin-left: 0; }
}
@media (hover: none) { .pt-pop { display: none; } .pt-add.a1-add { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pt-t, .hb-top a, .hb-tab, .pt-pop { transition: none; } .hb-pane, .pt-cell.is-ping .pt-t { animation: none; } }
