/* Patent Attorney Network — sibling of 3D VR Studio: same blue family and Archivo,
   with a serif for headings and a warm paper ground so it reads calm and legal-adjacent. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2-variations"), url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900; font-display: swap;
}

:root {
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #14212B;
  --ink-2: #3E4C57;
  --muted: #66737D;
  --line: #DDE3E7;
  --line-strong: #C5CFD6;
  --brand: #1548A1;     /* logo blue */
  --brand-ink: #0F3678;
  --logo-gray: #6D6E72; /* logo NETWORK gray */
  --tint: #EBF0F9;
  --tint-warm: #F3F0EA;
  --err: #A4332B;
  --err-tint: #FBEDEB;
  --focus: #2F6FD6;

  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.2rem, 1.75rem + 2.2vw, 3.4rem);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 43, .05), 0 8px 28px rgba(20, 33, 43, .07);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-4); margin: 0 0 .5em; }
h2 { font-size: var(--step-3); margin: 0 0 .6em; }
h3 { font-size: var(--step-1); margin: 0 0 .4em; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand { flex: none; }
.brand picture { display: block; }
.brand-logo { display: block; height: 24px; width: auto; max-width: none; aspect-ratio: 834 / 130; }
.site-nav { display: flex; align-items: center; gap: 14px; flex: none; }
.site-nav .btn { white-space: nowrap; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; white-space: nowrap; padding: 8px 9px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav ul a:hover { background: var(--tint); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--brand); background: var(--tint); }
.nav-toggle { display: none; }

/* Compact (Menu button) mode: nav.js adds .nav-compact whenever the links don't fit on one line,
   at any width, zoom or font size. Without JS, narrow screens let the nav wrap below the logo. */
html.nav-compact .nav-toggle { display: inline-flex; font: inherit; font-weight: 600; font-size: .95rem; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
html.nav-compact .brand { margin-right: auto; }
html.nav-compact .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 33, 43, .08); }
html.nav-compact .site-nav:not(.is-open) { display: none; }
html.nav-compact .site-nav ul { flex-direction: column; }
html.nav-compact .site-nav ul a { padding: 12px 10px; font-size: 1rem; }
@media (max-width: 1000px) {
  html:not(.js-nav) .header-row { flex-wrap: wrap; }
  html:not(.js-nav) .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js-nav) .site-nav ul { flex-wrap: wrap; }
}
}

.draft-notice { background: #FFF6DB; border-bottom: 1px solid #EBD9A3; color: #5C4A12; font-size: var(--step--1); font-weight: 600; padding: 8px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; padding: 14px 22px; min-height: 48px; border-radius: var(--radius); border: 0; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-ink); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-small { padding: 9px 16px; min-height: 40px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--tint); color: var(--brand-ink); }
.link-btn { font: inherit; background: none; border: 0; padding: 4px 2px; color: var(--brand); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "copy form" "assure form"; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-copy { grid-area: copy; }
.hero-form { grid-area: form; }
.hero-grid > .assurances { grid-area: assure; margin-top: 4px; }
.eyebrow { font-size: var(--step--1); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 34em; }
.assurances { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.assurances li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.assurances svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.assurances svg circle { fill: var(--tint); }
.assurances svg path { stroke: var(--brand); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "assure"; row-gap: 28px; } .hero-copy .lede { margin-bottom: 0; } }

/* ---------- match form ---------- */
.match-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 32px); scroll-margin-top: 96px; }
.match-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step + .step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.is-stepped .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.step-title { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; line-height: 1.2; padding: 0; margin-bottom: 18px; }
.step-count { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.match-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.match-form input:not([type=checkbox]), .match-form select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
}
.match-form input:focus, .match-form select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47, 111, 214, .22); }
.match-form [aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(164, 51, 43, .15) !important; }
#mf-zip { font-size: 1.35rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
#mf-zip::placeholder { letter-spacing: normal; font-size: 1.05rem; color: var(--muted); }
.zip-row { display: flex; gap: 10px; }
.zip-row input { flex: 1; min-width: 0; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; } .zip-row { flex-direction: column; } }
.hint { font-size: var(--step--1); color: var(--muted); margin: 10px 0 0; }
.state-line { background: var(--tint); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; font-size: .97rem; }
.note-private { font-size: var(--step--1); color: var(--ink-2); background: var(--tint-warm); border-radius: var(--radius); padding: 10px 14px; margin: 4px 0 16px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: var(--step--1) !important; color: var(--ink-2); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 16px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.match-form:not(.is-stepped) [data-back] { visibility: hidden; }
.match-form:not(.is-stepped) [data-next] { display: none; }
.form-error { background: var(--err-tint); color: var(--err); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.match-done:focus { outline: none; }
.done-kicker { font-size: var(--step--1); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.done-title { font-size: var(--step-2); }
.done-next { padding-left: 1.2em; color: var(--ink-2); margin: 16px 0 0; }
.done-next li { margin-bottom: 8px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-2); font-size: var(--step-1); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 52px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; background: var(--tint); color: var(--brand); }
.steps li::after { content: ""; position: absolute; top: 18px; left: 48px; right: -8px; height: 1px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-2); margin: 0; }
.cost-tag { display: inline-block; margin-top: 10px; font-size: var(--step--1); font-weight: 650; color: var(--brand-ink); background: var(--tint); padding: 3px 10px; border-radius: 99px; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::after { top: 44px; bottom: -20px; left: 18px; right: auto; width: 1px; height: auto; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.compare > div { padding: 24px; }
.compare > div + div { border-left: 1px solid var(--line); background: var(--tint); }
.compare h3 { font-size: 1rem; margin-bottom: 12px; }
.compare ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.compare li { margin-bottom: 8px; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.disclose { border-left: 3px solid var(--brand); background: var(--surface); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.disclose strong { color: var(--ink); }
.section-alt .disclose { background: var(--paper); }

.cta-band { background: var(--ink); color: #E6EDF2; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: var(--step-2); margin: 0 0 6px; }
.cta-band p { margin: 0; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--tint); }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head p { font-size: var(--step-1); color: var(--ink-2); max-width: 40em; margin: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.offer h3 { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; }
.offer .q { color: var(--muted); font-style: italic; margin-bottom: 16px; }
.price { font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; margin: 0 0 16px; }
.offer ul { padding-left: 1.1em; color: var(--ink-2); margin: 0 0 16px; }
.offer li { margin-bottom: 8px; }
.offer .by { margin-top: auto; font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: var(--step--1); font-weight: 650; color: var(--muted); background: var(--paper); }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody th { font-weight: 500; }
tr.group th { background: var(--tint); color: var(--brand-ink); font-weight: 650; font-size: .95rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.table-note { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq h2 { font-size: var(--step-2); margin: 48px 0 8px; }
.faq h2:first-child { margin-top: 0; }

.people { display: grid; gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.person h3 { margin-bottom: 2px; }
.person .firm { color: var(--muted); margin-bottom: 10px; font-size: .95rem; }
.person p:last-child { margin-bottom: 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 104px); background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { margin: 0 0 10px; }
.footer-brand img { display: block; width: 417px; max-width: 100%; height: auto; } /* height follows the artwork, never stretched */
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 24px; font-size: var(--step--1); color: var(--ink-2); line-height: 1.6; }
.footer-legal p { max-width: 82ch; }
.footer-legal strong { color: var(--ink); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
main > .section:last-child { padding-bottom: clamp(56px, 8vw, 104px); }
main:has(> .section:last-child) + .site-footer { margin-top: 0; }

@media (max-width: 560px) {
  table { min-width: 0; font-size: .9rem; }
  th, td { padding: 10px 8px; }
  th:first-child, td:first-child { padding-left: 12px; }
  td.num, th.num { padding-right: 12px; }
}

/* ---------- attorney map ---------- */
.page-head-center { text-align: center; }
.page-head-center p { margin: 0 auto; }
.map-section { padding-top: clamp(32px, 5vw, 56px); }
.us-map { margin: 0 auto; max-width: 960px; }
.us-map svg { display: block; width: 100%; height: auto; }
.us-map path { stroke: var(--surface); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tier-1 { fill: var(--brand); }
.tier-2 { fill: var(--brand); fill-opacity: .55; }
.tier-3 { fill: #D3D9E0; }
.map-caption { text-align: center; font-size: var(--step--1); color: var(--muted); margin: 16px 0 0; }
.map-form { max-width: 560px; margin: clamp(28px, 4vw, 44px) auto 0; }
.waitlist:focus { outline: none; }
.waitlist .done-title { margin-bottom: .4em; }
.waitlist > p { color: var(--ink-2); }

/* ---------- costs: patent types + packages ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.types-table table { min-width: 640px; }
.types-table thead th { color: var(--ink); font-size: .95rem; background: var(--tint); }
.types-table td { color: var(--ink-2); }
.row-strong th, .row-strong td { font-weight: 650; color: var(--ink) !important; background: var(--paper); }
.types-cards { display: none; gap: 14px; }
.type-dl { margin: 0; }
.type-dl > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.type-dl dt { color: var(--muted); }
.type-dl dd { margin: 0; color: var(--ink-2); }
.type-dl .row-strong dd, .type-dl .row-strong dt { background: none; }
@media (max-width: 680px) { .types-table { display: none; } .types-cards { display: grid; } }
.section-sub { color: var(--ink-2); max-width: 44em; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 680px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.pkg:hover { border-color: var(--brand); color: var(--ink); }
.pkg-name { font-weight: 600; }
.pkg-price { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; color: var(--brand); }
.sub-h { font-size: var(--step-2); margin-bottom: 20px; }
.offers-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .offers-3 { grid-template-columns: 1fr; } }
.pkg-blurb { color: var(--ink-2); }

/* ---------- state directory ---------- */
.region-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.region h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.region ul { list-style: none; margin: 0; padding: 0; }
.region li { margin: 0; }
.region a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: .97rem; }
.region a:hover { color: var(--brand); text-decoration: underline; }
.picked-line { background: var(--tint); border-radius: var(--radius); padding: 10px 14px; margin: 14px 0 0; font-size: .97rem; }
