/* aboutmybiz: the one stylesheet for aboutmybiz.com and every business page
   (lib/aboutMyBiz/html.js). Mobile first, light and dark, no script, no web
   font: the system stack draws at once. */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #121826;
  --muted: #4a5568;
  --line: #dde2ec;
  --accent: #1f4fd1;
  --accent-ink: #ffffff;
  --accent-soft: #e6edff;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b24;
    --surface-2: #1b2330;
    --text: #e8edf5;
    --muted: #a3aec2;
    --line: #2a3443;
    --accent: #6e95ff;
    --accent-ink: #0b1020;
    --accent-soft: #1b2744;
    --err: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 .75em; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.b-narrow { max-width: 760px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  max-width: 100%; text-align: center;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-sm { min-height: 36px; padding: 6px 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.hero { padding: 40px 0 28px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.page-h { font-size: clamp(26px, 5vw, 36px); margin: 28px 0 12px; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; min-width: 0;
}
.card h2 { font-size: 20px; }

/* ── a business's pages ── */
.b-head, .r-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.b-head-in, .r-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.b-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.b-brand-name { min-width: 0; }
.b-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex: none; }
.b-mono { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.b-nav, .r-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 15px; }
.b-nav a, .r-nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 6px 0; }
.b-nav a[aria-current="page"], .r-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.b-nav a:hover, .r-nav a:not(.btn):hover { color: var(--text); }
.b-main { display: grid; gap: 20px; padding-bottom: 40px; }
.cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cols { grid-template-columns: 3fr 2fr; align-items: start; } }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.svc li { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-weight: 500; }
.c-lines { font-style: normal; display: grid; gap: 4px; }
.c-name { font-weight: 700; }
.c-lic { color: var(--muted); font-size: 14px; }
.disc { font-size: 13px; color: var(--muted); }
.disc p { margin: 0 0 6px; }

/* the opt-in */
.optin { display: grid; gap: 14px; }
.f { display: grid; gap: 6px; }
.f label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
.f input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
.has-err input { border-color: var(--err); }
.f-err, .form-err { color: var(--err); font-size: 14px; }
.form-err { font-weight: 600; }
.hp { display: none; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.optin .btn { justify-self: start; }

/* the legal pages */
.legal section { margin: 0 0 18px; }
.legal h2 { font-size: 18px; margin-bottom: 6px; }
.legal p { color: var(--text); }
.legal-by { color: var(--muted); margin-bottom: 20px; }
.thanks { margin-top: 28px; }

.b-foot, .r-foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.b-foot-in, .r-foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.b-foot-nav, .r-foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.b-foot a, .r-foot a { color: var(--muted); }
.b-host { width: 100%; font-size: 13px; }

/* ── aboutmybiz.com ── */
.r-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.r-mark { display: inline-block; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.r-foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.r-mark::after { content: ""; position: absolute; left: 7px; top: 8px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--accent-ink); }
.r-hero { padding: 48px 0 40px; }
.r-hero-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .r-hero-in { grid-template-columns: 1.1fr 1fr; } }
.r-hero-copy, .r-hero-art { min-width: 0; }
.band { padding: 40px 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 20px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.tile h3 { font-size: 17px; margin-bottom: 6px; }
.tile p { color: var(--muted); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.step { min-width: 0; }
.step-n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.cta-band { text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta-band h2 { margin: 0; }
.r-main { padding-bottom: 40px; }
.nf { padding-top: 40px; padding-bottom: 60px; }

/* the sample page on the home page */
.sample { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.sample-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); min-width: 0; }
.sample-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.sample-url { margin-left: 8px; font-size: 13px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 3px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-body { padding: 18px; display: grid; gap: 10px; }
.sample-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sample-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.sample-h { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sample-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-btn { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.sample-btn.is-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sample-box { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 10px; }
.sample-check { width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 4px; margin-top: 2px; }
.sample-links { font-size: 12px; color: var(--accent); }
.sample figcaption { font-size: 12px; color: var(--muted); padding: 0 18px 12px; }
