/* AgentSurge site system. One stylesheet for every page: tokens, type,
   header, footer, buttons, dock, and the shared content components.
   Page-specific layout stays in each page's own <style>. Mobile-first:
   phone values are the base, desktop opens up under min-width: 900px. */

@font-face { font-family: 'Switzer'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/switzer-400.woff2) format('woff2'); }
@font-face { font-family: 'Switzer'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/switzer-500.woff2) format('woff2'); }
@font-face { font-family: 'Switzer'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/switzer-600.woff2) format('woff2'); }

:root {
  --bg:           oklch(0.972 0.012 85);
  --bg-deep:      oklch(0.958 0.015 82);
  --surface:      oklch(0.992 0.006 85);
  --surface-2:    oklch(0.945 0.014 80);
  --ink:          oklch(0.185 0.014 290);
  --ink-soft:     oklch(0.37 0.012 290);
  --ink-faint:    oklch(0.50 0.010 290);
  --rule:         oklch(0.87 0.011 80);
  --rule-strong:  oklch(0.78 0.014 80);
  --brand:        oklch(0.47 0.172 28);
  --brand-deep:   oklch(0.34 0.15 28);
  --brand-tint:   oklch(0.94 0.05 50);
  --green:        oklch(0.50 0.12 155);
  --dark:         oklch(0.21 0.016 290);
  --dark-2:       oklch(0.26 0.018 290);
  --on-dark:      oklch(0.965 0.012 85);
  --on-dark-soft: oklch(0.78 0.02 85);
  --wrap:   1120px;
  --wrap-read: 720px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --sans:  'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; font-weight: 400; overflow-x: hidden; caret-color: var(--brand); }
::selection { background: color-mix(in oklch, var(--brand-tint) 80%, white); color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
main { display: block; }

/* layout */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.read { width: min(var(--wrap-read), 100% - 2 * var(--gutter)); }
.sec { padding: 2rem 0; }
.sec.tight { padding: 1.5rem 0; }
.measure { max-width: 62ch; }
.fine { font-size: 0.9375rem; color: var(--ink-faint); line-height: 1.5; }
.more { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule-strong); transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.more:hover { border-color: var(--brand); color: var(--brand-deep); }

/* type scale */
h1 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 2vw + 1.1rem, 2.85rem); font-weight: 600; letter-spacing: -0.028em; line-height: 1.04; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.lede { font-size: 1.125rem; line-height: 1.45; color: var(--ink-soft); max-width: 36ch; }
.dek { font-size: 1.125rem; line-height: 1.45; color: var(--ink-soft); max-width: 58ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50px; padding: 0 1.4rem; border-radius: 999px; background: var(--brand); color: white; font-weight: 500; font-size: 1rem; text-decoration: none; border: 0; white-space: nowrap; width: 100%; transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -10px oklch(0.34 0.15 28 / 0.55); }
.btn:active { transform: none; }
.btn.small { min-height: 42px; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn.ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.on-dark { background: var(--on-dark); color: var(--ink); }
.btn.on-dark:hover { background: white; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* header */
.site { position: static; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.site.scrolled { border-color: var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand .mark { width: 24px; height: 24px; }
.brand em { font-style: normal; color: var(--brand); }
.nav { display: none; gap: 1.75rem; }
.nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; position: relative; padding: 0.35rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.bar > .btn { display: none; width: auto; }
.menu { display: inline-flex; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; align-items: center; justify-content: center; }
.menu svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.menu-panel { display: none; }
.menu-panel.open { display: grid; gap: 0.25rem; padding: 0.5rem 0 1rem; border-bottom: 1px solid var(--rule); }
.menu-panel a { padding: 0.65rem 0; font-weight: 500; text-decoration: none; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); }
.menu-panel a:last-child { border-bottom: 0; }

/* breadcrumbs */
.crumbs { font-size: 0.875rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--brand-deep); }

/* reading pages (guides, legal, raleigh prose) */
.prose { max-width: 65ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 1.9rem); margin: 2.5rem 0 0.6rem; }
.prose h3 { margin: 1.6rem 0 0.35rem; }
.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand-deep); }
.prose ul { padding-left: 1.1rem; margin: 0 0 1rem; list-style: disc; }
.prose ul li { margin: 0.35rem 0; color: var(--ink-soft); }
.prose ul li::marker { color: var(--rule-strong); }

/* short answer block: a surface with a hairline, not a side tab */
.answer { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.15rem 1.25rem; margin: 0 0 2rem; }
.answer p { margin: 0; color: var(--ink); }
.answer b { font-weight: 600; }

/* ranked list: the numbers are the content, this is a ranking */
ol.ranked { counter-reset: r; border-top: 1px solid var(--rule); }
ol.ranked > li { counter-increment: r; position: relative; padding: 1.1rem 0 1.1rem 2.75rem; border-bottom: 1px solid var(--rule); }
ol.ranked > li::before { content: counter(r); position: absolute; left: 0; top: 1.15rem; width: 1.9rem; height: 1.9rem; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; border-radius: 8px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
ol.ranked h3 { margin: 0 0 0.25rem; }
ol.ranked p { margin: 0; font-size: 1rem; }

/* faq */
.faq-list { border-top: 1px solid var(--rule); max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 1rem; padding: 0.95rem 0; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { width: 24px; height: 24px; position: relative; }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink); width: 14px; height: 1.5px; transition: transform 240ms var(--ease); }
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] summary .pm::after { transform: rotate(0); }
.faq-list details p { padding: 0 0 1.25rem; margin: 0; color: var(--ink-soft); max-width: 62ch; }
.faq-list details p + p { margin-top: -0.5rem; }

/* dark closing band */
.band { background: var(--dark); color: var(--on-dark); border-radius: 16px; padding: 1.75rem 1.4rem; margin: 2.5rem 0 0; display: grid; gap: 0.9rem; }
.band h2 { color: var(--on-dark); margin: 0; font-size: clamp(1.5rem, 1.2vw + 1rem, 1.9rem); }
.band p { color: var(--on-dark-soft); margin: 0; max-width: 52ch; }
.band .btn { justify-self: stretch; }

/* footer */
.foot { padding: 2rem 0 2.25rem; border-top: 1px solid var(--rule); }
body:has(.dock) .foot { padding-bottom: 4.75rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.foot-grid > div { grid-column: 1 / -1; }
.foot .brand { font-size: 1.125rem; }
.foot .addr { margin-top: 0.75rem; color: var(--ink-faint); font-size: 0.9375rem; line-height: 1.6; }
.foot .addr a { text-decoration: none; }
.foot .addr a:hover { color: var(--brand-deep); }
.foot nav { display: grid; gap: 0.5rem; align-content: start; }
.foot nav b { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.foot nav a { font-size: 0.9375rem; color: var(--ink-soft); text-decoration: none; padding: 0.2rem 0; }
.foot nav a:hover { color: var(--brand-deep); }
.foot .guides-extra { display: none; }
.copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* mobile dock: appears after the hero leaves, hides over the form */
.dock { display: flex; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform 320ms var(--ease); }
.dock.show { transform: none; }
.dock .btn { flex: 1; min-height: 46px; }
.dock .dock-tel { flex: none; width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--rule-strong); background: var(--surface); }
.dock .dock-tel svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock { transition: none; }
}

/* ── desktop opens up ─────────────────────────────────────── */
@media (min-width: 900px) {
  .sec { padding: 3.5rem 0; }
  .sec.tight { padding: 2.5rem 0; }
  h1 { font-size: clamp(2.6rem, 3.6vw + 1.4rem, 4.6rem); }
  .lede { font-size: clamp(1.125rem, 0.6vw + 0.95rem, 1.35rem); }
  .btn { width: auto; }
  .site { position: sticky; top: 0; background: color-mix(in oklch, var(--bg) 86%, transparent); backdrop-filter: blur(10px) saturate(140%); }
  .bar { height: 64px; }
  .nav { display: flex; }
  .bar > .btn { display: inline-flex; }
  .menu, .menu-panel { display: none; }
  .band { padding: 2.25rem 2rem; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; }
  .band p { grid-column: 1; }
  .band .btn { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .foot { padding: 3.5rem 0 2.5rem; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
  .foot-grid > div { grid-column: auto; }
  .foot .guides-extra { display: block; }
  .copy { margin-top: 2.5rem; }
  .dock { display: none; }
}

/* September 2026 accessibility and responsive refinements. */
html { scroll-padding-top:80px; }
[id] { scroll-margin-top:80px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.skip-link { position:fixed;top:8px;left:8px;z-index:1000;padding:.75rem 1rem;background:var(--ink);color:white;transform:translateY(-180%); }
.skip-link:focus { transform:none; }
.brand,.nav a,.foot nav a,.foot .addr a,.crumbs a { min-height:44px; display:inline-flex; align-items:center; }
.btn.small { min-height:44px; }
.foot nav { gap:.15rem; }
.foot nav a { min-width:44px; }
.dock-work { min-width:64px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--rule-strong);border-radius:99px;text-decoration:none; }
.menu-panel.open { position:relative; z-index:30; }
@media (min-width:900px) and (max-width:1099px) { .nav{gap:1rem}.nav a{font-size:.85rem}.bar{gap:1rem}.bar>.btn{font-size:.85rem;padding-inline:1rem} }
@media (max-width:599px) { .card .more { display:flex;min-height:44px;justify-content:center;justify-self:stretch!important; }.btn{white-space:normal;text-align:center;} }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }
@media (scripting:none) { .menu{display:none}.menu-panel{display:flex;flex-wrap:wrap;gap:1rem;padding-bottom:1rem}.menu-panel a{min-height:44px;display:inline-flex;align-items:center}.tabs{display:none!important}.tier{display:grid!important} }
