/* Small Business AI Stack. System fonts only, no external requests. */
:root {
  --bg: #f4f7f6; --surface: #fff; --surface-2: #eaf1ef; --ink: #0e1f1d; --muted: #4a5a57; --line: #d6e0dd;
  --brand: #0b5f55; --brand-dark: #08443d; --on-brand: #fff; --link: #0a6a5e;
  --accent: #f2b134; --on-accent: #2b1b00; --focus: #0b5fd6;
  --deep: #0b3b36; --deep-2: #0e4a43; --on-deep: #e7f5f2; --on-deep-muted: #a9d3cb;
  --pill-app: #e1f1ee; --pill-app-ink: #07463e; --pill-tool: #fdf0d0; --pill-tool-ink: #5c3a00; --pill-repo: #e6e9f5; --pill-repo-ink: #262f66;
  --ad-bg: #fff8e6; --ad-line: #e3b44f; --radius: 14px; --shadow: 0 1px 2px rgba(11, 59, 54, .06), 0 6px 18px rgba(11, 59, 54, .06);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-family: var(--font); color: var(--ink); background: var(--bg); color-scheme: light dark; -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1413; --surface: #11201e; --surface-2: #17292b; --ink: #e8f2ef; --muted: #a2b8b3; --line: #254240;
    --brand: #3fc6ab; --brand-dark: #6ee0c8; --on-brand: #04201b; --link: #6ee0c8; --focus: #8ab8ff;
    --deep: #0d2a27; --deep-2: #123a35;
    --pill-app: #15403a; --pill-app-ink: #aef0df; --pill-tool: #3d2f10; --pill-tool-ink: #ffd98a; --pill-repo: #232b52; --pill-repo-ink: #c5ceff;
    --ad-bg: #2a2310; --ad-line: #7a5f1c; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; line-height: 1.65; font-size: 17px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; z-index: 20; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and brand */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 66px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.mark { flex: none; border-radius: 8px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wm-main { font-family: var(--font-display); font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); margin-top: 2px; }
.site-header nav { display: flex; gap: 6px 4px; align-items: center; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.site-header nav a:hover { background: var(--surface-2); }
.site-header nav a.btn { color: var(--on-brand); margin-left: 6px; }
.site-header nav a.btn:hover { background: var(--brand-dark); }

main { padding: 24px 20px 64px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.12; margin: .2em 0 .4em; font-weight: 800; }
h2 { font-size: 1.5rem; margin: 2.1em 0 .6em; line-height: 1.25; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 800; color: var(--brand); margin: 0; }
.page-head { padding: 8px 0 4px; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--on-brand); padding: 11px 20px; border-radius: 10px; text-decoration: none; font-weight: 700; border: 2px solid var(--brand); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.3; transition: transform .12s, background .12s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--surface-2); color: var(--brand-dark); }
.btn-sm { padding: 7px 14px; font-size: .92rem; }

/* Homepage: search first */
.home-top { margin: 4px 0 0; padding: 26px 28px 22px; border-radius: 20px; color: var(--on-deep); background: radial-gradient(700px 300px at 90% 0, rgba(94, 234, 212, .14), transparent 60%), linear-gradient(135deg, var(--deep-2), var(--deep)); }
.home-top h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 .25em; }
.home-lede { margin: 0; color: var(--on-deep-muted); max-width: 720px; }
.home-top .filters { margin: 16px 0 12px; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.home-top a:focus-visible { outline-color: #fff; }
.tasks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; }
.tasks span { color: var(--on-deep-muted); font-weight: 700; margin-right: 2px; }
.tasks a { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(169, 211, 203, .4); background: rgba(255, 255, 255, .06); }
.tasks a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.home-results h2 { margin-top: 1.4em; }
h2 small { font-family: var(--font); font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.show-all { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips span { font-weight: 700; color: var(--ink); }
.chips a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.chips a:hover { text-decoration: underline; }
.guide-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.guide-cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.guide-cards a:hover { border-color: var(--brand); }
.guide-cards strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.guide-cards a:hover strong { color: var(--link); text-decoration: underline; }
.guide-cards span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* Logos */
.lg { flex: none; display: inline-block; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 22%; padding: 6px; }
.lg-fallback { display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; background: hsl(var(--h) 55% 32%); border-color: transparent; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card:focus-within { border-color: var(--brand); }
.card-top { display: flex; gap: 12px; align-items: center; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.vendor { display: block; font-size: .82rem; color: var(--muted); }
.card p { margin: 0; color: var(--muted); flex: 1; font-size: .95rem; line-height: 1.5; }
.card-link { text-decoration: none; color: var(--ink); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card:hover .card-link { color: var(--link); }
.card[hidden] { display: none; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.pill { font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: var(--pill-app); color: var(--pill-app-ink); text-decoration: none; font-weight: 700; }
a.pill:hover { filter: brightness(.95); text-decoration: underline; }
.pill-tool { background: var(--pill-tool); color: var(--pill-tool-ink); }
.pill-repo { background: var(--pill-repo); color: var(--pill-repo-ink); }
.pill-new { background: var(--accent); color: var(--on-accent); }
.card .card-date { flex: 0; font-size: .8rem; }
.meta .pill:not([class*="pill-"]) { background: var(--surface-2); color: var(--ink); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; display: flex; gap: 10px; align-items: center; transition: border-color .15s, background .15s; }
.cat small { margin-left: auto; color: var(--muted); font-weight: 600; background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.cat:hover { border-color: var(--brand); background: var(--surface-2); color: var(--ink); }
.cat-list section { border-bottom: 1px solid var(--line); }
.cat-list h2 { margin-top: 1.2em; }
.cat-list h2 a { text-decoration: none; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters input, .filters select, .form input, .form textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--muted) 55%, var(--line)); border-radius: 10px; background: var(--bg); min-height: 44px; }
.filters input:focus-visible, .filters select:focus-visible, .form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.filters .search { flex: 1 1 280px; }
.filters input { width: 100%; }
.empty { margin: 0 0 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty p { margin: 0 0 10px; }
.empty p:last-child { margin: 0; }

/* Ads */
.ad { margin: 22px 0; border: 1px dashed var(--ad-line); background: var(--ad-bg); border-radius: var(--radius); padding: 14px 18px; }
.ad a { text-decoration: none; color: var(--ink); }
.ad a:hover { text-decoration: underline; }
.ad-label { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: color-mix(in srgb, var(--accent) 45%, transparent); padding: 1px 8px; border-radius: 4px; font-weight: 800; margin-bottom: 6px; }
.ad-live { border-style: solid; }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 26px 0; }
.callout-wide { padding: 28px 32px; background: linear-gradient(135deg, var(--deep-2), var(--deep)); color: var(--on-deep); border: 0; border-left: 0; }
.callout-wide h2 { margin-top: 0; color: #fff; }
.callout-wide p { color: var(--on-deep-muted); max-width: 720px; }
.callout-wide a:not(.btn) { color: #fff; }
.callout-wide .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Listing page */
.listing-head { display: flex; gap: 22px; align-items: flex-start; padding: 8px 0 4px; }
.listing-head .lg { width: 84px; height: 84px; padding: 10px; border-radius: 22px; box-shadow: var(--shadow); }
.listing-head .lg-fallback { font-size: 2.4rem; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr; column-gap: 36px; margin-top: 8px; }
.listing-main > h2:first-child { margin-top: .6em; }
.listing-grid .side { grid-column: 2; grid-row: 1 / span 2; }
.listing-faq { grid-column: 1; }
.side { position: relative; }
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; box-shadow: var(--shadow); }
.facts caption { text-align: left; font-family: var(--font-display); font-weight: 800; padding: 0 0 8px; font-size: 1.05rem; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
.facts th { width: 38%; color: var(--muted); font-weight: 600; background: var(--surface-2); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--brand); }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* Guides and long-form typography */
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-weight: 700; font-size: 1.05rem; }
.guide-list span { display: block; color: var(--muted); font-size: .95rem; }
.guide { max-width: 760px; font-size: 1.08rem; line-height: 1.75; }
.guide h2 { margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--line); }
.guide h3 { margin: 1.8em 0 .4em; font-size: 1.2rem; }
.guide section:first-of-type h2 { border-top: 0; }
.guide p, .guide li { max-width: 68ch; }
.guide li { margin: .35em 0; }
.guide blockquote { margin: 1.4em 0; padding: .2em 1.2em; border-left: 4px solid var(--accent); color: var(--muted); }
.guide code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.guide .page-head .lede { font-size: 1.25rem; }
.guide table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .95rem; display: block; overflow-x: auto; }
.guide th, .guide td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.guide th { background: var(--surface-2); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; font-size: .98rem; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.summary ul { padding-left: 20px; }
.summary li { margin: .3em 0; }

/* Guide: tools for this job, setup steps */
.guide table.tool-table { display: table; overflow: visible; font-size: .93rem; }
.tool-table th, .tool-table td { vertical-align: top; }
.tool-table td:nth-last-child(-n+2) { min-width: 8.5rem; }
.tool-table tbody th { background: var(--surface); }
.tool-name { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 130px; }
.tool-name .lg { width: 40px; height: 40px; padding: 4px; }
.tool-table .pill { display: inline-block; white-space: normal; line-height: 1.35; }
.step-list { list-style: none; counter-reset: step; padding: 0; }
.step-list > li { counter-increment: step; position: relative; padding: 0 0 4px 52px; margin: 0 0 18px; max-width: none; }
.step-list > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); }
.guide .step-list h3 { margin: .2em 0 .3em; }

.glance { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 14px 20px; margin: 4px 0 18px; font-size: .97rem; }
.glance dl { margin: 6px 0 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.glance dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.glance dd { margin: 0 0 6px; }

/* New listings */
.new-list { list-style: none; padding: 0; margin: 0; }
.new-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.new-list li > div { flex: 1; min-width: 0; }
.new-list p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.new-list time { flex: none; font-size: .85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); font-size: .88rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan ul { padding-left: 18px; flex: 1; color: var(--muted); font-size: .95rem; }
.plan .btn { text-align: center; margin-top: 8px; }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); margin: 8px 0 2px; line-height: 1.1; }
.price .from, .price .per { font-size: .85rem; font-weight: 600; color: var(--muted); font-family: var(--font); }

.form { display: grid; gap: 14px; max-width: 580px; }
.form label { display: grid; gap: 5px; font-weight: 700; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding: 48px 0 24px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; }
.site-footer strong { color: #fff; display: block; margin-bottom: 10px; font-family: var(--font-display); }
.site-footer nav a { color: var(--on-deep); display: block; text-decoration: none; padding: 3px 0; }
.site-footer a { color: #fff; }
.site-footer nav a:hover, .site-footer p a:hover { color: var(--accent); }
.site-footer p { margin: 8px 0 0; font-size: .94rem; }
.site-footer .logo { color: #fff; }
.site-footer .wm-top { color: var(--on-deep-muted); }
.site-footer .wm-main { color: #fff; }
.site-footer .legal { display: block; font-size: .8rem; color: #8fb9b0; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(169, 211, 203, .2); }
.site-footer :focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .listing-grid .side, .listing-faq { grid-column: auto; grid-row: auto; }
  .listing-grid .side { margin-top: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 16px 16px 48px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .site-header nav a { padding: 8px 8px; font-size: .9rem; }
  .site-header nav a.btn { margin-left: 0; }
  .home-top { padding: 18px 16px 16px; border-radius: 16px; }
  .home-top .filters { padding: 8px; gap: 8px; }
  .filters select { flex: 1 1 130px; min-width: 0; }
  .tasks a { padding: 5px 10px; font-size: .88rem; }
  .new-list li { flex-wrap: wrap; }
  .new-list time { margin-left: 54px; }
  .listing-head { flex-direction: column; gap: 12px; }
  .listing-head .lg { width: 64px; height: 64px; }
  .cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .callout-wide { padding: 22px 20px; }
  .guide { font-size: 1.04rem; }
}
@media (max-width: 760px) {
  .guide table.tool-table, .tool-table tbody, .tool-table tr, .tool-table th, .tool-table td { display: block; width: 100%; }
  .tool-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tool-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; }
  .guide .tool-table th, .guide .tool-table td { border: 0; border-top: 1px solid var(--line); }
  .guide .tool-table tbody th { border-top: 0; background: var(--surface-2); }
  .tool-table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
}
