/* Reset, typography, forms, layout utilities. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.theme-business, body.theme-admin { background: var(--bg-page); }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
a { color: var(--link); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1 { font-size: var(--fs-3xl); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-lg); line-height: 1.35; font-weight: 800; }
h4 { font-size: var(--fs-base); line-height: 1.4; font-weight: 800; }
p { color: var(--ink-2); }
ul, ol { padding-left: 1.25em; }
small, .small { font-size: var(--fs-sm); }
strong, b { font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-4) 0; }
table { border-collapse: collapse; }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.icon--sm { width: 16px; height: 16px; }
svg.icon--lg { width: 24px; height: 24px; }

/* Focus */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { box-shadow: var(--focus); }
main:focus { box-shadow: none; }

/* Accessibility helpers */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; text-decoration: none; }
[hidden] { display: none !important; }

/* Text helpers */
.muted { color: var(--muted); }
.text-sm { font-size: var(--fs-sm); line-height: 1.4; }
.text-xs { font-size: var(--fs-xs); line-height: 1.35; }
.text-lg { font-size: var(--fs-lg); }
.text-bold { font-weight: 800; }
.text-semibold { font-weight: 600; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }
.page-title { font-size: var(--fs-3xl); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }

/* Layout utilities */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-8); }
.container--narrow { max-width: 760px; }
.container--form { max-width: 480px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--s-4)); }
.stack-xs { --gap: var(--s-1); } .stack-sm { --gap: var(--s-2); } .stack-md { --gap: var(--s-3); } .stack-lg { --gap: var(--s-6); } .stack-xl { --gap: var(--s-8); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-3)); }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.row--nowrap { flex-wrap: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 260px), 100%), 1fr)); }
.grid-2 { display: grid; gap: var(--gap, var(--s-5)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--gap, var(--s-5)); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.w-full { width: 100%; }
.section { padding: var(--s-10) 0; }
.section--tight { padding: var(--s-6) 0; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .container { padding: 0 var(--s-4); }
  h1, .page-title { font-size: 26px; }
  h2 { font-size: 19px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .show-mobile { display: none !important; }
}
@media (max-width: 400px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
