/* GCExperts LLC microsite base stylesheet.
   Accessibility: WCAG 2.1 AA contrast, visible focus, 1.5 line height,
   respects prefers-reduced-motion, no information conveyed by colour alone. */
:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --ink: #10182b;
  --muted: #44506a;
  --brand: #12508f;
  --brand-dark: #0b3a6b;
  --accent: #0a7d4f;
  --danger: #a11414;
  --border: #c9d3e0;
  --radius: 10px;
  --focus: #b45309;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; }
p { max-width: 68ch; }
a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--brand-dark); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) var(--radius);
  transition: top .15s ease-out;
}
.skip-link:focus { top: 0; color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem; }
.leved, .lede { font-size: 1.2rem; color: var(--muted); }
.fineprint { font-size: .9rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); font-size: .85rem; }

/* Header / nav */
.site-header {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem;
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-left: auto; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.inline { display: inline; }
.link { background: none; border: 0; color: var(--brand-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* Buttons */
.button, button {
  display: inline-block; background: var(--brand); color: #fff; border: 2px solid var(--brand);
  padding: .7rem 1.2rem; border-radius: var(--radius); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button-ghost { background: transparent; color: var(--brand-dark); }
.button-ghost:hover { background: var(--surface); color: var(--brand-dark); }
.button-small { padding: .4rem .8rem; font-size: .9rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.hero .lede { max-width: 52ch; }

/* Cards / steps */
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-top: 0; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 1rem; }
.steps h3 { margin-bottom: .15rem; }

/* Pricing table */
.pricing table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.pricing caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.pricing th, .pricing td { border: 1px solid var(--border); padding: .75rem; text-align: left; vertical-align: top; }
.pricing thead th { background: var(--surface); }

/* Forms */
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input[type=text], .field input[type=email], .field input[type=password] {
  width: 100%; max-width: 28rem; padding: .6rem; border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit;
}
.field.checkbox { display: flex; gap: .6rem; align-items: flex-start; max-width: 44rem; }
.field.checkbox label { font-weight: 400; }
form button { margin-top: .5rem; }
.alert { border-left: 5px solid var(--brand); background: var(--surface); padding: .75rem 1rem; border-radius: 4px; max-width: 60ch; }
.alert-error { border-color: var(--danger); }
.alert-ok { border-color: var(--accent); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, max-content); gap: .25rem 1rem; }
.contact dt { font-weight: 700; }
.contact dd { overflow-wrap: anywhere; }
.site-footer a, .legal a { overflow-wrap: anywhere; }

/* WEB-77/M2 (shared): long unbreakable sample tokens (e.g. the payroll line
   sample) must not force horizontal scroll on a 375px phone. */
code, kbd, samp, pre { overflow-wrap: anywhere; }

/* A <pre> block keeps its own formatting (white-space: pre), so a long line
   (e.g. a CSV sample) must scroll inside its own box rather than scroll the
   whole page sideways on a 375px phone. */
pre { overflow-x: auto; }

/* WEB-77/M2b (shared): long mailto/URL anchor text (e.g. a support address)
   must wrap rather than overflow its container. */
a { overflow-wrap: anywhere; }

/* Legal */
.legal h2 { margin-top: 1.8em; }
.legal ul { max-width: 68ch; }

/* Cookie banner */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
  max-width: 46rem; margin: 0 auto; background: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.cookie h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.cookie p { margin: 0 0 .75rem; font-size: .95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; background: var(--surface); }
.site-footer { padding: 1.5rem 1.25rem; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: .5rem 0; }

/* Data hub: stats, tables, breadcrumbs, section nav */
.breadcrumb { padding-top: .5rem; padding-bottom: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--border); }
.breadcrumb a { color: var(--brand-dark); }
.hub-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 0; }
.hub-nav a { border: 1px solid var(--border); border-radius: var(--radius); padding: .35rem .8rem; text-decoration: none; background: var(--surface); }
.hub-nav a:hover { background: #e6ecf4; }
.hub-nav a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.stats { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1rem 0 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.stat-value { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.stat-label { display: block; margin-top: .35rem; color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface); }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: #fafbfd; }
.prose p { max-width: 72ch; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 1.5rem; }
.note ul { margin: .5rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
