/* Document defaults. Components live in css/components/. */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: var(--leading-body);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-green);
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  text-rendering: optimizeLegibility;
}

.site { flex: 1 0 auto; display: flex; flex-direction: column; background: var(--color-paper); }
main { flex: 1 0 auto; }

h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: var(--leading-tight); text-wrap: balance; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  letter-spacing: -0.01em;
  color: var(--color-green);
}
h1 { font-size: var(--text-h1); letter-spacing: -0.015em; line-height: 1.07; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-xl); font-weight: var(--weight-semibold); color: var(--color-ink); }
h4 { font-size: var(--text-md); font-weight: var(--weight-semibold); }

p, ul, ol, blockquote, figure, table, pre { margin: 0 0 var(--space-4); }

a { color: var(--color-ink); text-underline-offset: 0.15em; }
a:hover { color: var(--color-green-hover); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
summary { cursor: pointer; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

hr { border: 0; border-top: 1px solid var(--color-lines); margin: var(--space-6) 0; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.875em; }
pre { padding: var(--space-4); background: var(--color-paper); border: 1px solid var(--color-lines); border-radius: var(--radius); overflow: auto; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-lines); }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Twelve-column grid used by hero, trust, FAQ and contact sections */
.grid-12 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-7); }
@media (min-width: 56.25em) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .grid-12 > * { grid-column: span 12; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .col-9-4 { grid-column: 9 / span 4; }
  .col-7-6 { grid-column: 7 / span 6; }
}

.lead { font-size: var(--text-lg); line-height: var(--leading-body); color: var(--color-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
