/* First Call Scan: shared styles for every page (header, nav, footer, doc and legal pages, thank-you pattern).
   Loaded by the <!--#head--> include, after /brand/tokens.css and before each page's own <style>, so page styles win
   for page content. Everything here is namespaced (.fcs-*, .doc, .legal, .ty) so it can't collide with page styles. */

/* ---------- header ---------- */
.fcs-skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.fcs-skip:focus { left: 12px; top: 12px; background: var(--color-bg); color: var(--color-ink); padding: 8px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.fcs-head { position: relative; z-index: 40; margin: 0; padding: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-line);
  font-family: var(--font-body); font-size: 16px; line-height: 1.3; color: var(--color-ink); }
.fcs-head .fcs-in, .fcs-foot .fcs-in { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.fcs-head .fcs-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.fcs-head .fcs-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: inherit; text-decoration: none; min-width: 0; padding: 8px 0; }
.fcs-head .fcs-logo img { display: block; height: 28px; width: auto; max-width: none; flex: none; }
.fcs-head .fcs-label { font-size: 14px; font-weight: 600; color: var(--color-muted); border-left: 1px solid var(--color-line); padding-left: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcs-head .fcs-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.fcs-head .fcs-nav a { display: block; padding: 12px; font-size: 15px; font-weight: 600; color: var(--color-ink); text-decoration: none; border-radius: var(--radius-sm); }
.fcs-head .fcs-nav a:hover { background: var(--color-surface); }
.fcs-head .fcs-nav a[aria-current="page"] { color: var(--color-primary); box-shadow: inset 0 -3px 0 var(--color-primary); border-radius: 0; }
.fcs-head .fcs-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; flex: none;
  background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-md); font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap; box-shadow: none; }
.fcs-head .fcs-cta:hover { background: var(--color-primary-strong); color: var(--color-on-primary); }
.fcs-head .fcs-cta.ghost { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 2px var(--color-primary); }
.fcs-head .fcs-cta.ghost:hover { background: var(--color-surface); }
.fcs-head .fcs-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; flex: none; margin: 0;
  border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-ink);
  font: 600 15px/1 var(--font-body); cursor: pointer; }
.fcs-head .fcs-menu-btn:hover { border-color: var(--color-ink); }
.fcs-head .fcs-menu-btn svg { width: 18px; height: 18px; flex: none; }
.fcs-head .fcs-menu-btn[aria-expanded="true"] { background: var(--color-surface); }
.fcs-head :focus-visible, .fcs-foot :focus-visible, .fcs-skip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.fcs-head .fcs-panel { border-top: 1px solid var(--color-line); background: var(--color-bg); padding: 12px 0 20px; box-shadow: var(--shadow-md); }
.fcs-head .fcs-panel[hidden] { display: none; }
.fcs-head .fcs-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fcs-head .fcs-panel a { display: block; padding: 12px 14px; border-radius: var(--radius-md); color: var(--color-ink); text-decoration: none; }
.fcs-head .fcs-panel a:hover { background: var(--color-surface); }
.fcs-head .fcs-panel a[aria-current="page"] { background: var(--color-surface); box-shadow: inset 3px 0 0 var(--color-primary); }
.fcs-head .fcs-panel b { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.fcs-head .fcs-panel b span { color: var(--color-primary); font-weight: 700; white-space: nowrap; }
.fcs-head .fcs-panel small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--color-muted); }
.fcs-head .fcs-panel .fcs-start { font-size: 14px; color: var(--color-muted); margin: 0 0 8px; padding: 0 14px; }
/* full nav (home, legal, help pages): links inline on wide screens, menu button below 980px */
.fcs-head[data-nav="full"] .fcs-menu-btn { display: none; }
@media (max-width: 979px) {
  .fcs-head[data-nav="full"] .fcs-nav { display: none; }
  .fcs-head[data-nav="full"] .fcs-menu-btn { display: inline-flex; }
}
/* compact nav (sales pages): one "Services" button, so the page's own call to action stays the focus */
.fcs-head[data-nav="compact"] .fcs-nav { display: none; }
@media (max-width: 860px) { .fcs-head .fcs-panel ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .fcs-head .fcs-label { display: none; }
  .fcs-head .fcs-menu-btn .fcs-mtxt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fcs-head .fcs-menu-btn { padding: 0; justify-content: center; }
  .fcs-head .fcs-panel ul { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .fcs-head .fcs-bar { gap: 8px; }
  .fcs-head .fcs-logo img { height: 22px; }
  .fcs-head .fcs-cta { padding: 8px 11px; font-size: 14px; }
}
@media (max-width: 365px) { .fcs-head .fcs-logo img { height: 19px; } .fcs-head .fcs-cta { padding: 8px 9px; font-size: 13px; } .fcs-head .fcs-bar { gap: 6px; } }
@media (min-width: 700px) { .fcs-head .fcs-in, .fcs-foot .fcs-in { padding: 0 24px; } }

/* ---------- footer ---------- */
.fcs-foot { margin: 0; padding: 48px 0 112px; background: var(--color-surface); border-top: 1px solid var(--color-line);
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--color-muted); text-align: left; }
.fcs-foot .fcs-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px 32px; }
.fcs-foot .fcs-brand img { display: block; height: 26px; width: auto; max-width: none; margin-bottom: 12px; }
.fcs-foot .fcs-brand p { margin: 0; max-width: 300px; }
.fcs-foot .fcs-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-ink); }
.fcs-foot ul { list-style: none; margin: 0; padding: 0; }
.fcs-foot li { margin: 0; }
.fcs-foot a { display: inline-block; padding: 5px 0; color: var(--color-muted); text-decoration: none; }
.fcs-foot a:hover { color: var(--color-primary); text-decoration: underline; }
.fcs-foot .fcs-fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-line); font-size: 14px; }
.fcs-foot .fcs-fine p { margin: 0 0 6px; max-width: 900px; }
@media (max-width: 860px) { .fcs-foot .fcs-grid { grid-template-columns: 1fr 1fr; } .fcs-foot .fcs-brand { grid-column: 1 / -1; } }
@media (min-width: 901px) { .fcs-foot { padding-bottom: 48px; } }
@media (max-width: 420px) { .fcs-foot a { padding: 9px 0; } }

/* ---------- doc pages (getting started, legal) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 64px; font-size: var(--step-0); line-height: var(--leading-body); overflow-wrap: break-word; }
.doc h1, .doc h2, .doc h3 { font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); line-height: var(--leading-tight); text-wrap: balance; }
.doc h1 { font-size: var(--step-4); margin: 0 0 14px; }
.doc h2 { font-size: var(--step-3); margin: 44px 0 12px; }
.doc h3 { font-size: var(--step-1); margin: 26px 0 8px; line-height: var(--leading-snug); }
.doc a { color: var(--color-primary); }
.doc .lead { font-size: var(--step-1); color: var(--color-muted); }
.doc .muted { color: var(--color-muted); }
.doc .box { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px 22px; margin: 18px 0; }
.doc .steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0; }
.doc .steps > li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.doc .steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary);
  color: var(--color-on-primary); font: 800 1.1rem var(--font-display); display: grid; place-items: center; }
.doc .steps b { display: block; font-size: var(--step-1); font-family: var(--font-display); }
.doc ol.plain { padding-left: 1.3em; } .doc ol.plain li, .doc ul li { margin: 6px 0; }
.doc code, .doc .id, .ty .id { font-family: var(--font-mono); background: var(--color-surface); border-radius: 6px; padding: 2px 6px; font-size: .95em; word-break: break-all; }
.doc .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; background: var(--color-primary); color: var(--color-on-primary);
  font-weight: 700; text-decoration: none; border-radius: var(--radius-md); }
.doc .btn:hover { background: var(--color-primary-strong); }
.legal h2 { font-size: var(--step-2); margin: 40px 0 8px; scroll-margin-top: 16px; }
.legal h3 { scroll-margin-top: 16px; }
.legal .part { margin: 56px 0 0; padding-top: 24px; border-top: 3px solid var(--color-ink); font: 700 13px var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-muted); }
.legal ul { padding-left: 22px; }
.legal .fine { font-size: var(--step--1); color: var(--color-muted); }
.legal .toc { background: var(--color-surface); border-radius: var(--radius-lg); padding: 18px 22px; margin: 22px 0; }
.legal .toc ol { margin: 6px 0 0; padding-left: 1.3em; } .legal .toc li { margin: 4px 0; }
.legal .tbl { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); margin: 14px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--color-line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--color-surface); font-size: .85rem; }
.legal .guarantee { background: var(--color-surface); border-left: 5px solid var(--color-go); padding: 14px 18px; border-radius: 6px; margin: 12px 0; }
.draft { background: #FFF3BF; border: 2px solid #E0B400; color: #4D3B00; padding: 14px 18px; border-radius: var(--radius-md); font-weight: 800; margin: 0 0 24px; font-size: 18px; }
@media (max-width: 640px) { .legal th, .legal td { padding: 9px 8px; } }

/* ---------- thank-you pattern (every offer's Stripe success page) ---------- */
.ty { max-width: 780px; margin: 0 auto; padding: 40px var(--gutter) 64px; font-size: var(--step-0); line-height: 1.55; overflow-wrap: break-word; }
.ty h1, .ty h2 { font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); line-height: 1.12; text-wrap: balance; }
.ty h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.6rem); margin: 0 0 12px; display: flex; gap: 14px; align-items: flex-start; }
.ty h1 .ty-check { flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; background: var(--color-go); color: #fff; font-size: 22px; line-height: 40px; text-align: center; }
.ty h2 { font-size: var(--step-2); margin: 40px 0 12px; }
.ty a { color: var(--color-primary); }
.ty .ty-lead { font-size: var(--step-1); color: var(--color-muted); margin: 0 0 10px; }
.ty .ty-fine { font-size: var(--step--1); color: var(--color-muted); }
.ty ol.ty-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.ty ol.ty-steps > li { counter-increment: s; position: relative; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 18px 18px 18px 68px; }
.ty ol.ty-steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); font: 800 1rem/34px var(--font-display); text-align: center; }
.ty ol.ty-steps > li.done::before { content: "\2713"; background: var(--color-go); }
.ty ol.ty-steps b { display: block; font-size: 1.05rem; }
.ty ol.ty-steps p { margin: 6px 0 0; color: var(--color-muted); }
.ty .ty-when { display: block; font-size: 14px; font-weight: 700; color: var(--color-go); margin-top: 2px; }
.ty .ty-btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; padding: 10px 20px; background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; text-decoration: none; border-radius: var(--radius-md); }
.ty .ty-btn:hover { background: var(--color-primary-strong); }
.ty .ty-btn:not([href]) { opacity: .6; }
.ty .ty-box { background: var(--color-surface); border-radius: var(--radius-lg); padding: 18px 22px; margin: 16px 0; }
.ty .ty-box p { margin: 0 0 10px; } .ty .ty-box p:last-child { margin-bottom: 0; }
.ty .ty-box ul { margin: 8px 0 0; padding-left: 20px; } .ty .ty-box li { margin: 6px 0; }
.ty .ty-box.go { border-left: 5px solid var(--color-go); }
.ty .ty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ty .ty-grid > div { background: var(--color-surface); border-radius: var(--radius-md); padding: 16px; font-size: .97rem; }
.ty .ty-grid b { display: block; margin-bottom: 4px; }
.ty .ty-next { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--color-line); }
.ty .ty-next h2 { margin-top: 28px; }
.ty .ty-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ty .ty-card { display: block; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 16px 18px; color: var(--color-ink); text-decoration: none; background: var(--color-bg); }
.ty .ty-card:hover { border-color: var(--color-primary); }
.ty .ty-card b { display: flex; justify-content: space-between; gap: 10px; }
.ty .ty-card b span { color: var(--color-primary); white-space: nowrap; }
.ty .ty-card small { display: block; margin-top: 4px; font-size: .95rem; color: var(--color-muted); }
@media (max-width: 760px) { .ty .ty-grid, .ty .ty-cards { grid-template-columns: 1fr; } .ty ol.ty-steps > li { padding-left: 62px; } }
@media (prefers-reduced-motion: reduce) { .fcs-head *, .fcs-foot * { transition: none !important; } }
/* while the services menu is open, pages' sticky buy bars step aside */
body:has(.fcs-menu-btn[aria-expanded="true"]) .sticky { visibility: hidden !important; }

