/* Everything here sits in the 'pan' cascade layer, so pages moved from forsalebyinventor.com
   (assets/css/fsbi/*, unlayered and scoped to .fsbi-skin) keep their own look inside PAN's frame. */
@layer pan {
/* Patent Attorney Network. Type matches the FSBI-built pages: Montserrat headings, Inter body. */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; 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: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-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: 1200px;
  --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: 700; line-height: 1.2; letter-spacing: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3rem); 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: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; 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; width: 282px; height: 57px; max-width: none; }
@media (max-width: 420px) { .brand-logo { width: auto; height: auto; max-width: min(282px, 60vw); } }
.site-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.site-nav .btn { white-space: nowrap; font-size: 1.0625rem; }
.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 6px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 1.0625rem; 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: 1.0625rem; 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: 1.125rem; }
@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; }
.hero-copy .hero-trust { font-size: 1.0625rem; margin-top: 14px; }
/* Home hero in the same navy-to-blue as the moved FSBI pages */
.hero--blue { position: relative; background: linear-gradient(135deg, #14212b 0%, #0f3678 100%); border-bottom: 0; color: #fff; }
.hero--blue::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.hero--blue .wrap { position: relative; }
.hero--blue h1 { color: #fff; }
.hero--blue .eyebrow { color: #9db9ec; }
.hero--blue .hero-copy .lede { color: rgba(255, 255, 255, .88); }
.hero--blue .hero-copy .hero-trust { color: rgba(255, 255, 255, .75); }
.hero--blue .assurances li { color: rgba(255, 255, 255, .85); }
.hero--blue .assurances strong { color: #fff; }
.hero--blue .assurances svg circle { fill: rgba(255, 255, 255, .14); }
.hero--blue .assurances svg path { stroke: #9db9ec; }
.hero--blue .hero-form { color: var(--ink); }
.own-attorney { border-bottom: 1px solid var(--line); }
.own-attorney .own-lede { font-size: var(--step-1); color: var(--ink-2); }
.match-form textarea { resize: vertical; min-height: 84px; font: inherit; line-height: 1.5; }
/* ---------- proof bar ---------- */
.proof { padding: clamp(36px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.proof-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.proof-stats li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.proof-stats strong { font-size: var(--step-3, 2.25rem); line-height: 1.1; color: var(--ink); }
.proof-stats span { font-size: .9375rem; color: var(--ink-2); max-width: 22ch; }
.proof-line { text-align: center; font-size: 1.125rem; font-weight: 600; color: var(--ink); margin: 32px auto 0; }
.proof-price { margin: 28px auto 0; max-width: 820px; background: var(--tint); border: 1px solid #cfdcf3; border-radius: var(--radius-lg); padding: 18px 24px; text-align: center; }
.proof-price p { margin: 0; font-size: 1.125rem; color: var(--ink-2); }
.proof-price strong { color: var(--ink); font-size: 1.25rem; }
.proof-price a { font-weight: 700; }
.cta-band--stack { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; }
.cta-band--stack h2 { margin-bottom: 8px; }
.cta-band p.cta-urgency { margin: 14px 0 22px; font-size: 1.125rem; font-weight: 700; color: #fff; }
@media (max-width: 720px) { .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@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, .match-form textarea {
  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, .match-form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47, 111, 214, .22); }
.match-form textarea { min-height: 140px; resize: vertical; }
.match-form input[readonly] { background: var(--tint); color: var(--ink-2); }
.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; }
.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(40px, 5.5vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 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(20px, 3vw, 32px); }
.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(32px, 4.5vw, 56px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head p { font-size: 1.2rem; 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: 282px; 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(40px, 5.5vw, 72px); }
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: 720px; }
.map-tabs { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 18px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.map-tabs button { font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.map-tabs button:hover { color: var(--brand); }
.map-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.map-stage { position: relative; border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 32px); background:
  radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, #F2F6FC 55%, #E7EEF8 100%); border: 1px solid #DCE5F2; box-shadow: var(--shadow); }
.map-stage.is-tabbed .map-panel-label { display: none; }
.map-panel + .map-panel { margin-top: 28px; }
.map-stage.is-tabbed .map-panel + .map-panel { margin-top: 0; }
.map-panel-label { font-weight: 650; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.map-panel:not([hidden]) { animation: map-in .45s ease both; }
.us-map svg { display: block; width: 100%; height: auto; max-height: 62vh; overflow: visible; filter: drop-shadow(0 6px 14px rgba(21, 72, 161, .12)); }
.map-shapes path { stroke: #fff; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: filter .2s; }
.map-shapes path:hover { filter: brightness(1.12) saturate(1.1); }
.tier-1 { fill: #1548A1; }
.tier-2 { fill: #5E86C9; }
.tier-3 { fill: #CFDBEF; }
.map-hubs { pointer-events: none; }
.hub-ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: hub-pulse 3s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes hub-pulse { 0% { transform: scale(.6); opacity: .9; } 70% { transform: scale(2.4); opacity: 0; } 100% { opacity: 0; } }
@keyframes map-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hub-ring, .map-panel:not([hidden]) { animation: none; } .hub-ring { opacity: .5; } }
.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; }

/* ---------- SPARK Reports ---------- */
.spark-intro-note { font-size: var(--step--1) !important; color: var(--muted) !important; margin-top: 14px !important; }
.page-head-center h1 { max-width: 22em; margin-inline: auto; }
.spark-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.spark-questions > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.spark-questions h3 { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; }
.spark-questions p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .spark-questions { grid-template-columns: 1fr; } }

.spark-pro { position: relative; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); color: #E3ECF9; text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #1D5BC0 0%, #1548A1 45%, #0D2F6E 100%); box-shadow: 0 18px 40px rgba(13, 47, 110, .28); margin-bottom: 24px; }
.spark-pro h3 { color: #fff; font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; margin: 8px 0 10px; }
.spark-badge { display: inline-block; margin: 0; padding: 7px 16px; border-radius: 999px; background: var(--glass, #6DC4EF); background: #6DC4EF; color: #08305F; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.spark-check { font-style: italic; color: var(--muted); margin: 0 0 14px; }
.spark-pro .spark-check { color: #C9DAF3; max-width: 46em; margin-inline: auto; }
.spark-pro-price { font-family: var(--font-head); font-size: var(--step-4); font-weight: 600; color: #fff; margin: 4px 0 0; line-height: 1.1; }
.spark-pro-sub { font-weight: 650; color: #9FD8F5; margin: 6px 0 4px; }
.spark-pro-save { font-size: .95rem; margin: 0 auto 22px; max-width: 46em; }
.spark-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; margin: 0 auto 22px; max-width: 900px; }
.spark-cols h4 { margin: 0 0 8px; color: #9FD8F5; font-size: .95rem; }
.spark-cols ul { list-style: none; margin: 0; padding: 0; }
.spark-cols li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .95rem; }
.spark-cols li::before { content: "\2713"; position: absolute; left: 0; color: #6DC4EF; font-weight: 700; }
@media (max-width: 760px) { .spark-cols { grid-template-columns: 1fr; } }
.spark-closer { color: #C9DAF3; font-size: .95rem; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #EAF2FD; color: var(--brand-ink); }
.spark-fine { font-size: var(--step--1); color: #AFC5E8; margin: 16px auto 0; max-width: 52em; }
.spark-fine a { color: #fff; }

.spark-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .spark-tiers { grid-template-columns: 1fr; } }
.spark-tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; text-align: center; }
.spark-tier-name { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 4px; }
.spark-tier h3 { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; margin-bottom: 8px; }
.spark-tier .price { margin: 4px 0 14px; }
.spark-tier ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.spark-tier li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .97rem; }
.spark-tier li::before { content: "\2713"; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
.spark-tier .btn { margin-top: auto; }
.spark-tier-note { font-size: var(--step--1); color: var(--muted); margin: 12px 0 0; }

.spark-compare table { min-width: 680px; }
.spark-compare thead th span { display: block; font-weight: 500; font-style: italic; color: var(--muted); font-size: .8rem; }
.spark-compare .yes { color: var(--brand); font-weight: 700; }
.spark-compare .no { color: var(--line-strong); }
.spark-disclaimer { font-size: var(--step--1); color: var(--muted); margin-top: 20px; max-width: 82ch; }

/* ---------- tightened SPARK + What You Get ---------- */
.spark-pro { padding: clamp(22px, 3.2vw, 36px); margin-bottom: 18px; }
.spark-pro h3 { font-size: var(--step-2); margin: 10px 0 6px; }
.spark-pro .spark-check { margin-bottom: 6px; }
.spark-pro-price { font-size: var(--step-3); }
.spark-pro-save { margin: 6px auto 16px; font-size: .9rem; color: #C9DAF3; }
.spark-cols { margin-bottom: 18px; gap: 18px; }
.spark-cols li { margin-bottom: 5px; font-size: .9rem; }
.spark-tiers { gap: 16px; }
.spark-tier { padding: 20px; }
.spark-tier h3 { font-size: var(--step-1); margin-bottom: 2px; }
.spark-tier .price { font-size: var(--step-2); margin: 2px 0 6px; }
.spark-tier .spark-check { font-size: .9rem; margin-bottom: 12px; }
.spark-tier li { padding: 6px 0 6px 24px; font-size: .92rem; }
.spark-tier ul { margin-bottom: 16px; }
.spark-tier .btn { min-height: 42px; padding: 10px 14px; font-size: .92rem; }
.spark-fine-line { font-size: var(--step--1); color: var(--muted); margin: 14px 0 0; max-width: 90ch; }
.spark-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.spark-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spark-row .spark-tier { text-align: left; }
.spark-row .spark-check { flex: 1; }
.spark-tier.is-pro { background: radial-gradient(120% 100% at 50% 0%, #1D5BC0 0%, #1548A1 50%, #0D2F6E 100%); border-color: transparent; color: #E3ECF9; }
.spark-tier.is-pro .spark-tier-name, .spark-tier.is-pro .price { color: #fff; }
.spark-tier.is-pro .spark-check { color: #C9DAF3; }
.spark-tier.is-pro .spark-badge { align-self: flex-start; font-size: .68rem; padding: 4px 10px; margin-bottom: 8px; }
@media (max-width: 1000px) { .spark-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spark-row-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .spark-row { grid-template-columns: 1fr; } }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sub-head .sub-h { margin: 0; }
.sub-head a { font-size: .95rem; font-weight: 600; }
.know-list { list-style: none; padding: 0; margin: 0; }
.know-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.know-list li:first-child { border-top: 0; padding-top: 0; }
.spark-questions > div { padding: 18px; }
.spark-questions h3 { margin-bottom: 4px; }

/* ---------- filing pricing ---------- */
.pkg-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--brand-ink); font-size: .7rem; letter-spacing: .04em; }
.price-fee { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.pkg-credit { font-size: .85rem; font-weight: 600; color: var(--brand-ink); background: var(--tint); border-radius: 8px; padding: 7px 10px; margin: 0; }
.oa-strip { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px 24px; align-items: center; margin-top: 14px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.oa-title { margin: 0; font-weight: 650; color: var(--ink); font-size: .95rem; grid-row: span 2; }
.oa-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.oa-name { font-weight: 600; font-size: .93rem; }
.oa-price { font-family: var(--font-head); font-weight: 600; color: var(--brand); font-size: 1.15rem; }
.oa-detail { flex-basis: 100%; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .oa-strip { grid-template-columns: 1fr; } .oa-title { grid-row: auto; } }

} /* @layer pan */

/* ---------- FSBI typography for PAN-built pages (opt in with front matter mainClass: type-fsbi) ----------
   Montserrat headings, Inter body, same weights, sizes and colours as the moved FSBI pages. */
@layer pan {
  .type-fsbi { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.8; color: #4A5568; }
  .type-fsbi :is(h1, h2, h3, h4) { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: #14212b; }
  .type-fsbi h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
  .type-fsbi h2 { font-size: 1.85rem; margin-bottom: 1.25rem; }
  .type-fsbi .prose h2 { margin-top: 2.2em; }
  .type-fsbi .prose > :first-child { margin-top: 0; }
  .type-fsbi h3 { font-size: 1.35rem; }
  .type-fsbi p { line-height: 1.8; }
  .type-fsbi .prose p, .type-fsbi .page-head p { color: #4A5568; font-size: 1.05rem; }
  .type-fsbi .page-head p { font-size: 1.2rem; }
  .type-fsbi strong { color: #14212b; font-weight: 700; }
  .type-fsbi .disclose { font-size: 1rem; }
  .type-fsbi .cta-band h2 { color: #fff; }
  .type-fsbi .cta-band p { color: #E6EDF2; }
  .type-fsbi .btn { font-family: 'Inter', system-ui, sans-serif; font-weight: 600; }
}
