/* Layout: docket-style single column, content max 72rem, cards only for the scope checker and intake form */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #15212b;
  --muted: #4c5b67;
  --line: #d5dde2;
  --brand: #22445c;
  --brand-ink: #ffffff;
  --copper: #a85a26;
  --copper-soft: #f3e4d8;
  --ok: #2f6b45;
  --ok-soft: #e1efe5;
  --warn: #8a5a00;
  --warn-soft: #f6ecd2;
  --no: #8f2f2f;
  --no-soft: #f5e1e1;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --max: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10171d; --surface: #172129; --ink: #e8eef2; --muted: #a6b4be; --line: #2b3a45;
    --brand: #8fb9d6; --brand-ink: #0d1820; --copper: #e09a68; --copper-soft: #3a2a1f;
    --ok: #8fd0a4; --ok-soft: #1b3326; --warn: #e6c070; --warn-soft: #3a3019; --no: #f0a0a0; --no-soft: #3b2222;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10171d; --surface: #172129; --ink: #e8eef2; --muted: #a6b4be; --line: #2b3a45;
  --brand: #8fb9d6; --brand-ink: #0d1820; --copper: #e09a68; --copper-soft: #3a2a1f;
  --ok: #8fd0a4; --ok-soft: #1b3326; --warn: #e6c070; --warn-soft: #3a3019; --no: #f0a0a0; --no-soft: #3b2222;
  color-scheme: dark;
}

*, *::before, *::after { 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(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.prose { max-width: 40rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper);
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 99; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.brand-name { font-family: var(--font-body); font-weight: 500; font-size: 1.2rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.97rem; }
.nav a[aria-current="page"] { color: var(--copper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.45rem 0.7rem; color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 20px 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.8rem; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); cursor: pointer; font-family: var(--font-body);
}
.btn:hover { background: var(--copper); border-color: var(--copper); color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { color: var(--copper); border-color: var(--copper); background: transparent; }
.nav .btn { color: var(--brand-ink); padding: 0.55rem 1rem; }

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2.2rem; max-width: 44rem; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero-grid > * { min-width: 0; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .note { font-size: 0.93rem; color: var(--muted); }
.hero .note strong { color: var(--ink); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Scope checker */
.checker { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(20, 40, 60, 0.45); }
.checker h2 { font-size: 1.35rem; }
.checker label { font-weight: 600; font-size: 0.95rem; }
select, input, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.verdict { border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.97rem; }
.verdict .tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.verdict.yes { background: var(--ok-soft); } .verdict.yes .tag { color: var(--ok); }
.verdict.limited { background: var(--warn-soft); } .verdict.limited .tag { color: var(--warn); }
.verdict.no { background: var(--no-soft); } .verdict.no .tag { color: var(--no); }
.verdict .btn { align-self: flex-start; padding: 0.6rem 1rem; font-size: 0.95rem; }

/* Services list */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 1.5rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.5rem; }
.service:nth-child(3n+2), .service:nth-child(3n+3) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.service .court { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.service p { color: var(--muted); font-size: 0.98rem; }
.service a { font-weight: 600; font-size: 0.95rem; margin-top: auto; }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3n+2), .service:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n) { padding-left: 0; border-left: 0; padding-right: 0; }
}

/* Not handled */
.outside { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.outside > * { min-width: 0; }
.outside ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); }
@media (max-width: 760px) { .outside { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 3px solid var(--brand); }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* About strip */
.about-strip { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-strip > * { min-width: 0; }
.creds { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.creds li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.creds li span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .about-strip { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-family: var(--font-mono); font-size: 1.2rem; color: var(--copper); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.2rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.7rem; }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 0.8rem; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--brand-ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: var(--brand-ink); }
.cta-band p { opacity: 0.88; max-width: 36rem; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.cta-band .btn:hover { background: var(--copper-soft); border-color: var(--copper-soft); color: var(--ink); }
.cta-band a.phone { color: var(--brand-ink); }

/* Service detail */
.detail { display: grid; grid-template-columns: 16rem 1fr; gap: 2.5rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.detail > * { min-width: 0; }
.detail .meta { display: flex; flex-direction: column; gap: 0.6rem; }
.detail .body { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }
.detail ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.detail .limit { font-size: 0.95rem; background: var(--copper-soft); padding: 0.8rem 1rem; border-radius: var(--radius); }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 3px; background: var(--ok-soft); color: var(--ok); align-self: flex-start; }
.chip.limited { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: 1rem; } }

/* Intake */
.intake-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.intake-grid > * { min-width: 0; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form .row > * { min-width: 0; }
form .field { display: flex; flex-direction: column; gap: 0.35rem; }
form .fields { display: flex; flex-direction: column; gap: 1.1rem; }
form label { font-weight: 600; font-size: 0.95rem; }
form .hint { font-size: 0.85rem; color: var(--muted); }
form .req { color: var(--copper); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: auto; margin-top: 0.3rem; }
.form-status { font-size: 0.95rem; padding: 0.8rem 1rem; border-radius: var(--radius); }
.form-status.error { background: var(--no-soft); color: var(--no); }
.hp { position: absolute; left: -9999px; }
.side { display: flex; flex-direction: column; gap: 1.5rem; }
.side .block { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.side .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.side p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .intake-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }

/* Page header */
.page-head { padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.5rem; }
.page-head .wrap { display: flex; flex-direction: column; gap: 0.8rem; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.page-head + section { border-top: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.foot-cols > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.foot-cols a { color: var(--muted); }
.disclaimer { font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }

/* Mobile call/intake bar */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.6rem 12px calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: 0.7rem 0.5rem; font-size: 0.95rem; }
  body { padding-bottom: 4.5rem; }
}

/* Founder portrait */
.portrait { display: block; width: 100%; max-width: 22rem; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 0.5rem; }
@media (max-width: 760px) { .portrait { max-width: 18rem; } }
