/* Pick A Contractor public site: one shared stylesheet for every public page.
   Job-site brown/tan base with blueprint-blue hints (links, faint grid on hero +
   local band, blue top edge on sheets, dashed blue programs, blue rule under the
   header); hardhat-yellow primary buttons with dark text; check-green confirmations.
   Light + dark follow prefers-color-scheme (data-theme overrides either way).
   Photos: hard-hat quote band, blueprint page headers, optional photo slots (end of file). */
:root {
  --brown: #4b3220;          /* header + bands (deep job-site brown) */
  --brown-2: #5d3d22;        /* brand brown */
  --ink: #241a12;            /* brown-black body text */
  --paper-bg: #f3ece2;       /* tan ground */
  --paper: #fffcf7;          /* sheet / card surface */
  --tint: #e8dccb;           /* tan band */
  --line: #d9c9b3;
  --blue: #004d99;           /* blueprint blue: links, grid, accents */
  --grid: rgba(0, 77, 153, 0.075);
  --yellow: #f6de42;         /* logo hardhat: primary buttons */
  --yellow-dark: #deae1e;
  --green: #0a7d22;          /* logo check, darkened for text */
  --muted: #6a5644;
  --on-brown: #f4ece1;
  --blueprint: #0b3d73;
  --error: #b3261e;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brown: #2b1c11; --ink: #f1e7da; --paper-bg: #1b130c; --paper: #261b12; --tint: #22180f;
    --line: #3e2e20; --blue: #8cc2f5; --grid: rgba(140, 194, 245, 0.07); --green: #5fcc78; --muted: #bba78f;
    --brown-2: #e0b98c; --error: #ff8a80;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brown: #2b1c11; --ink: #f1e7da; --paper-bg: #1b130c; --paper: #261b12; --tint: #22180f;
  --line: #3e2e20; --blue: #8cc2f5; --grid: rgba(140, 194, 245, 0.07); --green: #5fcc78; --muted: #bba78f;
    --brown-2: #e0b98c; --error: #ff8a80;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper-bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.eyebrow { font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-head { background: var(--brown); color: var(--on-brown); border-bottom: 3px solid var(--blueprint); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; flex-wrap: wrap; }
.site-head img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: 20px; align-items: center; margin-left: auto; flex-wrap: wrap; }
/* Disclosure menu for small screens (no JS): a visually hidden checkbox + its label. */
.nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; pointer-events: none; }
.nav-btn, .site-nav .nav-more, .nav-btn .when-open { display: none; }
.site-nav a { color: var(--on-brown); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; cursor: pointer;
  font: 600 0.95rem/1 var(--font-body); padding: 12px 18px; text-decoration: none; }
.btn-primary { background: var(--yellow); color: #142233; box-shadow: inset 0 -2px 0 var(--yellow-dark); }
.btn-primary:hover { background: #ffe75a; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.site-nav .btn-login { color: var(--on-brown); box-shadow: inset 0 0 0 1.5px rgba(244,236,225,0.45); padding: 9px 14px; }

/* Hero */
.hero { background-color: var(--paper-bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 84px); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; font-stretch: 78%; line-height: 0.98; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--brown-2); }
.lede { font-size: 1.12rem; max-width: 34rem; margin: 20px 0 28px; color: var(--ink); }
.zip-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 30rem; }
.zip-form label { flex-basis: 100%; font-weight: 600; font-size: 0.92rem; }
.zip-form input { flex: 1 1 10rem; min-width: 0; font: 500 1.05rem/1 var(--font-mono); padding: 12px 14px; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); letter-spacing: 0.08em; }
.zip-note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
/* Two paths under the hero lede: homeowners / architects & owners. */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 34rem; margin: 0 0 24px; }
.path { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 6px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--blue); text-decoration: none; }
.path b { font: 700 1.02rem/1.2 var(--font-display); font-stretch: 90%; }
.path b::after { content: " \2192"; color: var(--blue); }
.path span { font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.path:hover { border-color: var(--blue); }
.hero .lede { margin-bottom: 18px; }
@media (max-width: 400px) { .paths { grid-template-columns: 1fr; } }
.zip-note a { font-weight: 600; }

/* Bid sheet (the subject's own artifact) */
.sheet { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; box-shadow: 0 18px 40px -24px rgba(36,26,18,0.45);
  padding: 22px 22px 18px; transform: rotate(0.6deg); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 2px solid var(--blue); padding-bottom: 10px; flex-wrap: wrap; }
.sheet-head h2 { font-size: 1.15rem; font-stretch: 90%; }
.sheet-meta { font: 400 0.78rem/1.4 var(--font-mono); color: var(--muted); }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sheet th { text-align: left; font: 600 0.7rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 8px 6px; }
.sheet td { padding: 10px 6px; border-top: 1px dashed var(--line); font-size: 0.92rem; vertical-align: top; }
.sheet td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.sheet th.num { text-align: right; }
.who { font-weight: 600; }
.who small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.stamp { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--green); font-weight: 600; }
.stamp svg { flex: none; }
.sheet-scroll { overflow-x: auto; }

/* Sections */
section { padding-block: clamp(44px, 7vw, 80px); }
.section-head { display: grid; gap: 10px; margin-bottom: 30px; max-width: 46rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; font-stretch: 85%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 3px solid var(--blue); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: "Step " counter(step); font: 500 0.78rem/1 var(--font-mono); color: var(--blue); letter-spacing: 0.06em; }
.step h3 { font-size: 1.25rem; font-stretch: 88%; }
.step p { margin: 0; color: var(--muted); }

.audiences { background: var(--tint); }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.aud h3 { font-size: 1.6rem; font-stretch: 82%; font-weight: 750; }
.aud ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aud li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.aud li svg { margin-top: 3px; }
.aud li b { display: block; }
.aud li span { color: var(--muted); font-size: 0.95rem; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1.5px dashed var(--green); border-radius: 6px; }
.price .was { font: 500 1.15rem/1 var(--font-mono); text-decoration: line-through; text-decoration-color: var(--blue); text-decoration-thickness: 2px; color: var(--muted); }
.price .now { font: 800 1.5rem/1 var(--font-display); font-stretch: 85%; color: var(--green); text-transform: uppercase; }
.price .fine { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { border: 1.5px dashed var(--blue); border-radius: 6px; padding: 12px; display: grid; gap: 4px; }
.plan b { font-size: 0.9rem; }
.plan .amt { font: 500 1.1rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.plan span { font-size: 0.8rem; color: var(--muted); }
.aud .fine { font-size: 0.85rem; color: var(--muted); margin: 0; }
.aud .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.aud-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 18px clamp(24px, 4vw, 48px); }
.aud-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
.aud-wide .aud-col + .aud-col { align-content: center; }

.types { display: flex; flex-wrap: wrap; gap: 10px; }
.types span { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; font-size: 0.95rem; }

.local { background: var(--brown); color: var(--on-brown); background-image: linear-gradient(rgba(140,194,245,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(140,194,245,0.07) 1px, transparent 1px); background-size: 28px 28px; }
.local .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.local h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 82%; font-weight: 750; }
.local p { margin: 10px 0 0; max-width: 36rem; color: var(--on-brown); opacity: 0.88; }
.office { border: 1.5px solid rgba(140,194,245,0.45); border-radius: 8px; padding: 20px; display: grid; gap: 6px; }
.office .eyebrow { color: var(--yellow); }
.office .phone { font: 500 1.4rem/1.2 var(--font-mono); color: #fff; text-decoration: none; }
.office small { opacity: 0.8; }
.local .eyebrow, .office a { color: var(--yellow); }

footer { padding-block: 28px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap, .aud-grid, .aud-wide, .local .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sheet { transform: none; }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { transition: transform 0.4s ease; }
  .sheet:hover { transform: rotate(0deg); }
}

/* ---------- Shared additions for the inner pages ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: #142233; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .btn-primary { color: #142233; padding: 9px 14px; }
.site-nav .btn-primary:hover { text-decoration: none; }
.site-nav a.in-section { text-decoration: underline; text-decoration-color: rgba(244,236,225,0.5); text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (max-width: 1040px) {
  .site-head .wrap { gap: 0 16px; }
  .nav-btn { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; cursor: pointer; user-select: none;
    font: 600 0.92rem/1 var(--font-body); padding: 10px 13px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(244,236,225,0.45); }
  .nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--yellow-dark); outline-offset: 2px; }
  .nav-toggle:checked + .nav-btn .when-closed { display: none; }
  .nav-toggle:checked + .nav-btn .when-open { display: inline; }
  .site-nav { display: none; flex: 1 0 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; margin: 12px 0 0;
    border-top: 1px solid rgba(244,236,225,0.22); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 2px; font-size: 1rem; border-bottom: 1px solid rgba(244,236,225,0.14); }
  .site-nav .nav-more { display: block; }
  .site-nav .btn { justify-content: center; margin-top: 10px; padding: 13px 14px; border-bottom: 0; }
  .site-nav a[aria-current="page"], .site-nav a.in-section { text-underline-offset: 4px; }
}

.page-hero { background-color: var(--paper-bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(36px, 6vw, 64px); display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; font-stretch: 80%; line-height: 1.02; text-transform: uppercase; max-width: 22ch; }
.page-hero .lede { margin: 0; }
.page-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.tinted { background: var(--tint); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-stretch: 86%; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.3em; }

.flow { display: grid; counter-reset: flow; }
.flow-step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-block: 24px; border-top: 1px dashed var(--line); }
.flow-step:first-child { border-top: 0; }
.flow-step::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); font: 500 1.6rem/1 var(--font-mono); color: var(--blue); padding-top: 4px; }
.flow-step h3 { font-size: 1.3rem; font-stretch: 88%; margin-bottom: 6px; }
.flow-step p { margin: 0 0 8px; color: var(--muted); }
.flow-step ul { margin: 6px 0 0; padding-left: 1.1rem; color: var(--muted); }
.flow-step li { margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 28px); display: grid; gap: 12px; align-content: start; }
.card.sheet-edge { border-top: 4px solid var(--blue); border-radius: 4px; }
.card h3 { font-size: 1.3rem; font-stretch: 86%; }
.card p { margin: 0; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks li svg { margin-top: 3px; }
.checks li b { display: block; }
.checks li span { color: var(--muted); font-size: 0.95rem; }

.plans-lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plans-lg .plan { background: var(--paper); padding: 20px; gap: 8px; align-content: start; }
.plans-lg .plan b { font-size: 1.05rem; font-family: var(--font-display); }
.plans-lg .plan .amt { font-size: 1.6rem; }
.plans-lg .plan .tag { justify-self: start; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border: 1.5px solid var(--green); border-radius: 999px; padding: 5px 9px; }
.fee-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; max-width: 46rem; }

.faq-group { margin-top: 36px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-stretch: 86%; margin-bottom: 14px; }
.faq-list { display: grid; gap: 12px; max-width: 50rem; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; }
.faq-list details[open] { border-color: var(--blue); }
.faq-list summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 13px; font: 500 1.3rem/1 var(--font-mono); color: var(--blue); }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details > div { padding-bottom: 16px; color: var(--muted); }
.faq-list details > div p { margin: 0 0 8px; }

.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; padding: clamp(20px, 3vw, 30px); position: relative; }
.form-card h2 { font-size: 1.5rem; font-stretch: 86%; margin-bottom: 6px; }
.form-card > p { margin: 0 0 18px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--font-body); padding: 11px 12px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper-bg); color: var(--ink); width: 100%; min-width: 0; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 1px; }
.field .error, .form-errors { color: var(--error); font-size: 0.86rem; font-weight: 600; margin: 0; }
.form-errors { margin: 0 0 14px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-actions small { color: var(--muted); }

.notice { border-radius: 8px; padding: 18px 20px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 24px; }
.notice h2 { font-size: 1.3rem; font-stretch: 88%; margin-bottom: 4px; }
.notice p { margin: 0 0 6px; }
.notice.ok { background: var(--paper); border: 1.5px solid var(--green); }
.notice.ok svg { color: var(--green); }
.notice.info { background: var(--paper); border: 1.5px dashed var(--blue); }
.notice.info svg { color: var(--blue); }

.office-card { background: var(--brown); color: var(--on-brown); border-radius: 8px; padding: 22px; display: grid; gap: 8px; background-image: linear-gradient(rgba(140,194,245,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(140,194,245,0.07) 1px, transparent 1px); background-size: 28px 28px; }
.office-card .eyebrow { color: var(--yellow); }
.office-card .phone { font: 500 1.5rem/1.2 var(--font-mono); color: #fff; text-decoration: none; }
.office-card p { margin: 0; opacity: 0.88; font-size: 0.95rem; }

.cta-band { background: var(--tint); }
.cta-band .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-stretch: 84%; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.doc-meta { font: 400 0.85rem/1.4 var(--font-mono); color: var(--muted); }

@media (max-width: 860px) {
  .split, .contact-grid, .plans-lg { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 1fr; gap: 6px; }
}
.more-link { margin: 26px 0 0; font-weight: 600; }
.price.narrow { max-width: 34rem; margin-top: 18px; }
.cta-band.plain { background: var(--paper-bg); border-top: 1px solid var(--line); }
.section-head .lede { margin: 0; }
.layout-where { margin: 0; color: var(--muted); max-width: 40rem; }
.layout-where b { color: var(--blue); }

/* ---------- Contractor tools (/contractor-tools/, tools tiles, home teaser) ---------- */
.tools-access { margin: 0; font-size: 0.92rem; color: var(--muted); max-width: 40rem; }
.tools-jump ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools-jump a { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1.5px dashed var(--blue);
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.tools-jump a span { font: 500 0.75rem/1 var(--font-mono); color: var(--blue); }
.tools-jump a:hover { border-style: solid; }
.stepno { font-family: var(--font-mono); color: var(--blue); letter-spacing: 0.04em; margin-right: 4px; }

.tool-sec { scroll-margin-top: 72px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.tool-grid > * { min-width: 0; }
.tool-grid .section-head { margin-bottom: 22px; }
.tool-sec .section-head h2, #tools .section-head h2, .help-sec .section-head h2 { line-height: 1.08; }

/* Example cards reuse .sheet; .flat drops the tilt so a column of them stays calm. */
.sheet.flat, .sheet.flat:hover { transform: none; }
.sheet.flat { margin: 0; }
.sheet-title { margin: 0; font: 700 1.1rem/1.25 var(--font-display); font-stretch: 90%; }
.sheet > .sheet-meta { margin: 8px 0 0; }
.ex-tag { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue);
  border: 1px dashed var(--blue); border-radius: 3px; padding: 4px 6px; }
.sheet table.tight td, .sheet table.tight th { padding-inline: 5px; }
.sheet table.tight td { font-size: 0.86rem; }
.sheet tfoot th { text-align: left; font: 500 0.88rem/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); padding: 6px; border-top: 1px dashed var(--line); }
.sheet tfoot td { padding: 6px; }
.sheet tfoot tr.total th, .sheet tfoot tr.total td { color: var(--ink); font-weight: 700; border-top: 2px solid var(--blue); }
.sheet td.mono { font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap; }
.sheet td .sub, .sheet td small.sub { display: block; font: 400 0.74rem/1.3 var(--font-mono); color: var(--muted); }
.sheet td.num .sub { color: var(--blue); }
.sheet td.good { color: var(--green); }
.sheet .live { font-family: var(--font-body); color: var(--green); font-weight: 600; }

.chip { display: inline-block; font: 600 0.72rem/1 var(--font-body); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--green); border-color: var(--green); }
.chip.blue { color: var(--blue); border-color: var(--blue); border-style: dashed; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.stats div { border: 1px dashed var(--blue); border-radius: 4px; padding: 8px 10px; background: var(--paper-bg); }
.stats dt { font: 600 0.66rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 500 1.15rem/1 var(--font-mono); font-variant-numeric: tabular-nums; }

.sum { margin: 12px 0 0; display: grid; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 6px; border-top: 1px dashed var(--line); font-size: 0.92rem; }
.sum dt { color: var(--muted); }
.sum dt small { font: 400 0.76rem/1 var(--font-mono); color: var(--green); margin-left: 6px; }
.sum dd { margin: 0; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum .indent dt { padding-left: 14px; }
.sum .total dt, .sum .total dd { color: var(--ink); font-weight: 700; }
.sum .total.net, .sum div.total:last-child { border-top: 2px solid var(--blue); }
.sum .net dd { color: var(--green); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; padding: 18px 20px;
  display: grid; gap: 6px; align-content: start; color: var(--ink); text-decoration: none; }
.tile .stepno { font-size: 0.78rem; }
.tile h3 { font-size: 1.2rem; font-stretch: 88%; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
a.tile:hover { border-color: var(--blue); }
a.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow-dark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tiles-foot { margin-top: 20px; display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; }

.gridded { background-color: var(--paper-bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; border-block: 1px solid var(--line); }
.teaser { background-color: var(--paper-bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; border-block: 1px solid var(--line); padding-block: clamp(32px, 5vw, 52px); }
.teaser .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px 40px; align-items: center; }
.teaser h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 750; font-stretch: 85%; }
.teaser p { margin: 8px 0 0; color: var(--muted); max-width: 32rem; }
.teaser .tools-access { font-size: 0.86rem; }
.teaser .types a { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; font-size: 0.92rem; color: var(--ink); text-decoration: none; }
.teaser .types a:hover { border-color: var(--blue); }
.teaser .more-link { margin: 14px 0 0; }

@media (max-width: 860px) {
  .tool-grid, .teaser .wrap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding: 18px 14px 14px; }
}

/* ---------- Since 2006, our story, quotes and photos ----------
   Photos live in public/static/public/img/ (see docs/PUBLIC_SITE_IMAGES.md).
   Optional ones are switched on by the template only when the file exists. */
.est { display: inline-block; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); border: 1.5px solid var(--yellow-dark); border-radius: 3px; padding: 4px 7px; vertical-align: middle; }
.eyebrow .est { margin-left: 6px; letter-spacing: 0.08em; }
footer .est { border: 0; padding: 0; margin-left: 10px; color: var(--muted); font-size: 0.78rem; }
.since { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 30rem; margin: 18px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line); font-size: 0.92rem; font-weight: 600; color: var(--brown-2); }

.hero .wrap > * { min-width: 0; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.hero-art.has-photo .sheet { position: relative; margin: -72px 14px 0; }

.photo-print { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 8px;
  box-shadow: 0 18px 40px -24px rgba(36,26,18,0.45); }
.photo-print img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.head-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 30px; }
.head-photo .section-head { margin-bottom: 0; }
.head-photo .photo-print img { aspect-ratio: 4 / 3; }

.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.story-grid.story-solo { grid-template-columns: 1fr; }
.story .photo-print { max-width: 540px; transform: rotate(-0.8deg); }
.story-side { display: grid; gap: 28px; }
.story-text { display: grid; gap: 12px; align-content: start; }
.story-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; font-stretch: 85%; }
.story-text p { margin: 0; max-width: 34rem; }
.story-text p { font-size: 1.05rem; }
.story-text p.eyebrow { font-size: 0.75rem; }
.story-text .more-link { margin-top: 6px; }
.section-head h2, .story-text h2 { line-height: 1.12; }

.quote { margin: 0; position: relative; padding-top: 3.1rem; display: grid; gap: 14px; }
.quote::before { content: "\201C"; position: absolute; top: 0; left: -0.04em; font: 800 6rem/1 var(--font-display); color: var(--blue); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font: 700 clamp(1.5rem, 3.1vw, 2.15rem)/1.16 var(--font-display); font-stretch: 88%; letter-spacing: -0.01em; text-wrap: balance; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font: 600 0.78rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.quote figcaption::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--yellow-dark); }
.quote-dark::before { color: var(--yellow); }
.quote-dark blockquote p { color: #fff; }
.quote-dark figcaption { color: var(--on-brown); }
.quote-dark figcaption::before { background: var(--yellow); }

.voices { color: var(--on-brown); background: linear-gradient(rgba(43,28,17,0.88), rgba(43,28,17,0.82)), #2b1c11 url("img/hardhat-band.jpg") center / cover no-repeat; }
.voices .eyebrow { color: var(--yellow); margin: 0 0 22px; }
.voices-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px); align-items: center; }
.voices-both .voices-grid { align-items: start; }
.voices-both .voice:first-child { grid-row: 1 / span 2; }
.voices-both .voice + .voice, .voices-both .paid { grid-column: 2; }
.paid { display: grid; gap: 8px; padding: 18px 20px; border-left: 4px solid var(--yellow); border-radius: 0 6px 6px 0; background: rgba(27,19,12,0.6); }
.paid h3 { font-size: 1.15rem; font-stretch: 88%; color: #fff; }
.paid p { margin: 0; font-size: 0.95rem; }
.paid .paid-lead { font-weight: 600; color: #fff; }
.paid a { color: var(--yellow); font-weight: 600; }

.page-hero.blueprint { color: #fff; border-bottom: 0; background: linear-gradient(rgba(11,61,115,0.84), rgba(11,61,115,0.9)), #0b3d73 url("img/blueprint-band.jpg") center / cover no-repeat; }
.page-hero.blueprint .eyebrow { color: var(--yellow); }
.page-hero.blueprint .lede { color: #eef4fb; }
.page-hero.blueprint .tools-access { color: #d6e4f3; }
.page-hero.blueprint .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.page-hero.blueprint .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.local.has-photo { background-image: linear-gradient(90deg, rgba(43,28,17,0.94) 0%, rgba(43,28,17,0.88) 60%, rgba(43,28,17,0.5) 100%), var(--photo); background-size: cover; background-position: center; }
.local.has-photo .office { background: rgba(43,28,17,0.88); }

@media (max-width: 860px) {
  .story-grid, .voices-grid, .head-photo { grid-template-columns: 1fr; }
  .voices-both .voice:first-child { grid-row: auto; }
  .voices-both .voice + .voice, .voices-both .paid { grid-column: auto; }
  .story .photo-print { transform: none; }
  .head-photo .photo-print { max-width: 480px; }
  .hero-art.has-photo .sheet { margin: -44px 10px 0; }
  .local.has-photo { background-image: linear-gradient(rgba(43,28,17,0.9), rgba(43,28,17,0.9)), var(--photo); }
}
@media (max-width: 560px) {
  .quote { padding-top: 2.6rem; }
  .quote::before { font-size: 5rem; }
  footer .est { display: block; margin: 6px 0 0; }
}

/* ---------- /our-story/ : hard-hat header + timeline (content.OUR_STORY) ---------- */
/* The hat sits right of centre so the heading has calm space on the left. */
.page-hero.hardhat { color: #fff; border-bottom: 0; background: linear-gradient(90deg, rgba(43,28,17,0.94) 0%, rgba(43,28,17,0.88) 45%, rgba(43,28,17,0.72) 100%), #2b1c11 url("img/hardhat-band.jpg") 0% 50% / 135% auto no-repeat; }
@media (max-width: 860px) {
  .page-hero.hardhat { background: linear-gradient(rgba(43,28,17,0.9), rgba(43,28,17,0.86)), #2b1c11 url("img/hardhat-band.jpg") center / cover no-repeat; }
}
.page-hero.hardhat .eyebrow { color: var(--yellow); }
.page-hero.hardhat .eyebrow .est { color: #fff; border-color: var(--yellow); }
.page-hero.hardhat .lede { color: var(--on-brown); }
.story-intro p { font-size: 1.15rem; }
.story-intro p:first-child { font: 700 clamp(1.4rem, 2.8vw, 1.9rem)/1.2 var(--font-display); font-stretch: 88%; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
.tl-item { display: grid; grid-template-columns: 76px 1fr; gap: 0 28px; }
.tl-year { position: relative; text-align: right; padding-top: 2px; font: 500 1.15rem/1.3 var(--font-mono); color: var(--blue); }
.tl-body { position: relative; padding: 0 0 30px 28px; border-left: 2px solid var(--blue); display: grid; gap: 6px; align-content: start; }
.tl-item:last-child .tl-body { padding-bottom: 4px; border-left-color: transparent; }
.tl-body::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--blue); }
.tl-undated .tl-body::before { background: var(--paper); }
.tl-body h3 { font-size: 1.3rem; font-stretch: 88%; }
.tl-body p { margin: 0; color: var(--muted); max-width: 38rem; }
@media (max-width: 560px) {
  .tl-item { grid-template-columns: 1fr; }
  .tl-year { text-align: left; padding: 0 0 4px 30px; border-left: 2px solid var(--blue); font-size: 1rem; }
  .tl-year:empty { display: none; }
}

/* ---------- /architects/ (architects, commercial owners, managers, associations) ---------- */
.pro-who { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pro-who li { font: 500 0.86rem/1 var(--font-body); padding: 7px 12px; border-radius: 999px; color: #fff; border: 1.5px dashed rgba(255,255,255,0.6); }
.card p a, .paid-plain a { font-weight: 600; }
.paid-plain p { margin: 0 0 12px; font-size: 1.08rem; }
.paid-plain p:first-child { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0; }
div.tile { border-top-style: solid; }
.faq-jump { margin-bottom: 28px; }
.faq-jump ol { margin-top: 0; }
.faq-group { scroll-margin-top: 80px; }
#for-homeowners, #for-architects { scroll-margin-top: 80px; }

/* Comparison with lead-selling services (public/_compare.html). A three-column
   table on wide screens; under 760px each topic becomes a block with the two
   answers stacked and labelled. The PAC column sits on the sheet surface with a
   blue top edge; the other column is quieter. */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare thead td { width: 21%; }
.compare thead th { text-align: left; padding: 14px 18px; font: 700 1.05rem/1.2 var(--font-display); font-stretch: 90%; }
.compare thead th.them { color: var(--muted); }
.compare thead th.us { background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-top: 4px solid var(--blue); border-radius: 4px 4px 0 0; }
.compare tbody th { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; font: 700 1rem/1.3 var(--font-display); font-stretch: 90%; border-top: 1px dashed var(--line); }
.compare tbody td { vertical-align: top; padding: 16px 18px; border-top: 1px dashed var(--line); }
.compare tbody td > svg { float: left; margin: 4px 0 0; }
.compare tbody td > span { display: block; margin-left: 28px; }
.compare td.them { color: var(--muted); }
.compare td.us { background: var(--paper); border-inline: 1px solid var(--line); font-weight: 500; }
.compare tbody tr:last-child td.us { border-bottom: 1px solid var(--line); border-radius: 0 0 4px 4px; }
.compare-note { margin: 16px 0 0; color: var(--muted); font-size: 0.85rem; }
.compare-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare tbody th, .compare tbody td { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding-block: 18px; border-top: 1px dashed var(--line); }
  .compare tbody tr:first-child { border-top: 0; padding-top: 0; }
  .compare tbody th { padding: 0 0 10px; border-top: 0; font-size: 1.1rem; }
  .compare tbody td { border-top: 0; padding: 10px 14px; }
  .compare tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 600 0.7rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .compare td.them { padding-inline: 14px; }
  .compare td.us, .compare tbody tr:last-child td.us { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; margin-top: 6px; }
}
