/* Home Services Pro. Clean, friendly and roomy, one confident color (safety orange), pill shapes.
   The visual system is written up in DESIGN.md. */
:root {
  --ink: #14213d;
  --text: #2a3140;
  --muted: #5b6474;
  --brand: #c2410c;
  --brand-hover: #9a3412;
  --brand-text: #c2410c;
  --brand-soft: #fde7d7;
  --bg: #fcfbf9;
  --card: #ffffff;
  --tint: #fff4ea;
  --tint-2: #ffe6d2;
  --line: #e7e2db;
  --chip: #ffffff;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .07);
  --r: 20px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* the engine's consent banner */
  --consent-bg: #14213d; --consent-fg: #ffffff; --consent-line: #2c3a58; --consent-accent: #f08a4b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6f1ea; --text: #dcd7d0; --muted: #a8a29a; --brand-text: #f6a06d;
    --brand-soft: #3a2418; --bg: #11151c; --card: #192029; --tint: #1a1f27; --tint-2: #2a2019;
    --line: #2b333f; --chip: #1f2631;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: .18em; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 99px; z-index: 50; }
.skip:focus { left: .75rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--brand); background: var(--brand); color: #fff; font: 700 1rem/1 var(--font); padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-text); border-color: var(--brand-text); }
.btn-ghost:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn .ico { width: 20px; height: 20px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand b { background: var(--brand); color: #fff; font-weight: 800; padding: .08em .45em .12em; border-radius: 99px; margin-left: .1em; font-size: .9em; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--brand-text); }
.bar .btn { padding: .6rem 1.1rem; font-size: .95rem; }
@media (max-width: 760px) { .nav { display: none; } .bar .btn { margin-left: auto; } }
@media (max-width: 400px) { .brand { font-size: 1.05rem; } .brand img { width: 30px; height: 30px; } .bar .btn { padding: .55rem .85rem; font-size: .88rem; } }

/* hero: big friendly headline, search pill, topic tabs, chips, topic card */
.hero { padding: clamp(2.5rem, 7vw, 4.75rem) 0 1rem; text-align: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 4.1rem); letter-spacing: -.03em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.lede { max-width: 40rem; margin: 1.1rem auto 0; font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--muted); }
.ask { position: relative; max-width: 40rem; margin: 2rem auto 2.3rem; }
.ask input { width: 100%; font: 500 1.08rem var(--font); color: var(--text); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 1.05rem 4.4rem 1.05rem 1.5rem; box-shadow: var(--shadow); -webkit-appearance: none; appearance: none; }
.ask input::placeholder { color: var(--muted); }
.ask input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.ask button { position: absolute; right: .4rem; top: 50%; translate: 0 -50%; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ask button:hover { background: var(--brand-hover); }
.ask-note { position: absolute; left: 0; right: 0; top: 100%; margin: .6rem 0 0; font-size: .95rem; color: var(--muted); }
.ask:not(.on) { display: none; }

.topics { margin-top: 1.5rem; text-align: left; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); padding: 0 .25rem; }
.tabs::before, .tabs::after { content: ""; margin: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 6.6rem; padding: .7rem .7rem .85rem; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); font: 600 .9rem/1.2 var(--font); cursor: pointer; }
.tab .ico { width: 30px; height: 30px; stroke-width: 1.5; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--brand-text); border-bottom-color: var(--brand-text); }
.tabs:not(.on) { display: none; }

.panel { padding-top: 1.4rem; }
.panel[hidden] { display: none; }
.panel > h2 { font-size: 1.35rem; margin: 1.2rem 0 1rem; text-align: center; }
.on ~ .panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1.5px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .95rem; transition: border-color .15s, background .15s; }
.chips li.hit { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 1.6rem; background: var(--tint); border-radius: 28px; overflow: hidden; }
.feature-copy { position: relative; z-index: 1; background: var(--card); margin: 1.6rem 0 1.6rem 1.6rem; padding: 1.8rem 1.9rem; border-radius: var(--r); box-shadow: var(--shadow); align-self: center; }
.feature-copy h3 { font-size: 1.55rem; }
.feature-copy ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.feature-copy li { position: relative; padding-left: 1.35rem; }
.feature-copy li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }
.art { position: relative; min-height: 290px; display: grid; place-items: center; background:
  radial-gradient(circle at 78% 24%, var(--tint-2) 0 18%, transparent 18.5%),
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px; }
.art-disc { width: 168px; height: 168px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand-text); }
.art-disc .ico { width: 84px; height: 84px; stroke-width: 1.3; }
.art span { position: absolute; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.art span:nth-of-type(1) { left: 9%; top: 16%; rotate: -4deg; }
.art span:nth-of-type(2) { right: 8%; bottom: 15%; rotate: 3deg; }
.art span:nth-of-type(3) { left: 13%; bottom: 11%; rotate: 2deg; }
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; }
  .feature-copy { margin: 0 1rem 1rem; order: 2; padding: 1.4rem 1.4rem; }
  .art { min-height: 230px; }
  .art-disc { width: 120px; height: 120px; }
  .art-disc .ico { width: 60px; height: 60px; }
  .art span { font-size: .78rem; }
}

/* sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.section-head { font-size: clamp(1.75rem, 3.6vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; }
.section-sub { margin: .5rem 0 0; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* guide cards (a project grid: picture on top, title, a small line under) */
.lead-card { display: grid; grid-template-columns: 1.15fr 1fr; margin-top: 1.8rem; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.lead-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.lead-card > div { padding: clamp(1.4rem, 3vw, 2.2rem); align-self: center; }
.lead-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.lead-card p { margin: .7rem 0 0; color: var(--muted); }
.lead-card:hover h3 { color: var(--brand-text); }
@media (max-width: 760px) { .lead-card { grid-template-columns: 1fr; } }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: .8rem; letter-spacing: .02em; padding: .25rem .7rem; border-radius: 99px; margin-bottom: .7rem; }
.meta { font-size: .92rem; color: var(--muted); }
.cards { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.cards a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: translate .15s; }
.cards a:hover { translate: 0 -3px; }
.cards img, .cards .thumb-none { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb-none { display: block; background: var(--tint) url("/img/mark.svg") center / 56px no-repeat; }
.cards h3 { font-size: 1.08rem; padding: 1rem 1.1rem 0; }
.cards a:hover h3 { color: var(--brand-text); }
.cards time { padding: .35rem 1.1rem 1.1rem; margin-top: auto; font-size: .9rem; color: var(--muted); }
.cards li.miss { display: none; }
.empty { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r); padding: 1.6rem 1.8rem; }
.empty p { margin: 0; max-width: 38rem; }
.empty strong { color: var(--ink); display: block; font-size: 1.15rem; margin-bottom: .2rem; }

/* how it works */
.how { margin-top: clamp(3rem, 7vw, 5rem); background: var(--tint); padding: clamp(2.6rem, 6vw, 4rem) 0; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: .5rem 0 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* trades strip */
.trades { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .6rem; list-style: none; margin: 1.6rem auto 0; padding: 0; max-width: 56rem; }
.trades li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem; }
.trades li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand); }

/* promises */
.promise { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem 3rem; align-items: start; }
.promise h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; }
.promise > div > p { color: var(--muted); margin: .9rem 0 0; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.promise li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--card); border-radius: var(--r); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.badge { width: 3rem; height: 3rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.promise h3 { font-size: 1.12rem; }
.promise li p { margin: .25rem 0 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) { .promise { grid-template-columns: 1fr; } }

/* sign-up */
.signup-band { margin: clamp(3rem, 7vw, 5rem) auto 0; scroll-margin-top: 90px; }
.signup-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem 2.5rem; align-items: center; background: #14213d; color: #e9e6e1; border-radius: 28px; padding: clamp(1.8rem, 4.5vw, 3rem); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .signup-card { background: #1f2a44; } }
.signup-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(240, 138, 75, .22); pointer-events: none; }
.signup-card h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.signup-card p { margin: .6rem 0 0; color: #c9cfdb; }
.signup { position: relative; z-index: 1; }
.signup label { display: block; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.signup .row { display: flex; gap: .5rem; background: #fff; border-radius: 999px; padding: .35rem; }
.signup input[type="email"] { flex: 1; min-width: 0; border: 0; background: none; font: 500 1rem var(--font); color: #14213d; padding: .6rem 1rem; }
.signup input[type="email"]:focus { outline: none; }
.signup .row:focus-within { box-shadow: 0 0 0 4px rgba(240, 138, 75, .45); }
.signup .btn { flex: none; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 780px) { .signup-card { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .signup .row { flex-direction: column; border-radius: 22px; } .signup .btn { justify-content: center; } }

/* footer */
.foot { margin-top: clamp(3rem, 7vw, 4.5rem); border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; font-size: .95rem; color: var(--muted); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.foot .brand { font-size: 1.1rem; }
.foot .brand img { width: 28px; height: 28px; }
.foot-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot p { margin: .35rem 0; }
.foot p a { color: var(--ink); }
.foot .buzzz a { font-weight: 700; }

/* about */
.page-hero { background: var(--tint); padding: clamp(2.6rem, 7vw, 4.5rem) 0; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.page-hero p { max-width: 42rem; margin: 1rem auto 0; font-size: clamp(1.06rem, 2vw, 1.2rem); color: var(--muted); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.8rem; }
.about-grid > div { background: var(--card); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); }
.about-grid .badge { margin-bottom: 1rem; }
.about-grid h2 { font-size: 1.25rem; }
.about-grid p { margin: .5rem 0 0; color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.prose { max-width: 44rem; }
.prose p { margin: 1rem 0 0; }

/* article */
.art-hero { background: var(--tint); padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(2rem, 5vw, 3rem); }
.crumbs { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-text); }
.art-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; max-width: 52rem; }
.art-hero .dek { margin: .9rem 0 0; font-size: clamp(1.08rem, 2vw, 1.26rem); color: var(--muted); max-width: 46rem; }
.art-hero .meta { margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.art-hero .meta span { background: var(--card); border: 1.5px solid var(--line); border-radius: 99px; padding: .3rem .8rem; font-weight: 600; color: var(--ink); font-size: .88rem; }
.art-figure { margin: clamp(1.4rem, 4vw, 2.2rem) 0 0; }
.art-figure img { width: 100%; border-radius: 24px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.read { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; padding-top: clamp(2rem, 5vw, 3rem); }
.toc { position: sticky; top: 92px; align-self: start; background: var(--card); border-radius: var(--r); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); font-size: .95rem; }
.toc p { margin: 0 0 .6rem; font-weight: 800; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; counter-reset: t; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 1.6rem 1fr; }
.toc li::before { content: counter(t); color: var(--brand-text); font-weight: 800; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand-text); }
@media (max-width: 900px) { .read { grid-template-columns: 1fr; gap: 1.5rem; } .toc { position: static; } }
.body { max-width: 44rem; font-size: 1.1rem; }
.body h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 800; margin: 2.4rem 0 .2rem; scroll-margin-top: 90px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font-size: 1.2rem; margin: 1.6rem 0 0; }
.body p, .body ul, .body ol { margin: .9rem 0 0; }
.body li + li { margin-top: .35rem; }
.body blockquote { margin: 1.4rem 0 0; padding: 1rem 1.3rem; background: var(--tint); border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; }
.body blockquote p:first-child { margin-top: 0; }
.body table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .98rem; display: block; overflow-x: auto; }
.body th, .body td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.body img { border-radius: 16px; }
.byline { margin: 2.2rem 0 0; color: var(--muted); font-size: .95rem; }
.byline a { color: var(--ink); font-weight: 700; }
.sources, .related { margin-top: 2rem; background: var(--card); border-radius: var(--r); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.sources h2, .related h2 { font-size: 1.2rem; }
.sources ol, .related ul { margin: .7rem 0 0; padding-left: 1.3rem; }
.sources li + li, .related li + li { margin-top: .35rem; }
.read:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); }
.lead-card.miss { display: none; }
.lead-card:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
