/* I-Trust Systems — shared styles for the public pages. No external requests. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #525252;
  --line: #e5e5e5;
  --gold: #f2b41a;
  --link: #7a5206;
  --btn-bg: #171717;
  --btn-ink: #fafafa;
  --focus: #7a5206;
  --radius: 20px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #171717;
    --ink: #fafafa;
    --muted: #a3a3a3;
    --line: #2e2e2e;
    --link: #f5c542;
    --btn-bg: #fafafa;
    --btn-ink: #0a0a0a;
    --focus: #f5c542;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wrap.wide { max-width: 960px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; line-height: 0; border-radius: 8px; }
.brand img { display: block; height: 40px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; padding-left: 10px; padding-right: 10px; }

/* Main */
main { flex: 1 0 auto; padding-top: 40px; padding-bottom: 64px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
h2:first-of-type { margin-top: 32px; }
h3 { font-size: 1.125rem; margin: 28px 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 32px; height: 3px; border-radius: 2px; background: var(--gold); flex: none; }

.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 40em; }
.meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 28px; }

/* Cards & grids */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h2, .card h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 28px 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.card-grid .card h2 { font-size: 1.125rem; margin-bottom: 8px; border: 0; padding: 0; }
.card-grid .card p { color: var(--muted); font-size: 0.9375rem; }
.card-link { text-decoration: none; display: block; color: inherit; }
.card-link:hover { border-color: var(--gold); }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 24px 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: 4px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-ink); border: 1.5px solid var(--btn-bg);
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--surface); opacity: 1; }

/* Table of contents */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.toc p { font-weight: 600; margin-bottom: 8px; }
.toc ol { columns: 1; margin: 0; padding-left: 1.3em; font-size: 0.9375rem; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 0.3em; break-inside: avoid; }

/* Data tables (stack on phones, no horizontal scroll) */
.table-wrap { margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; width: 22%; }
@media (max-width: 639px) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  tbody tr:last-child { border-bottom: 0; }
  th, td { border: 0 !important; padding: 6px 16px; }
  tbody th { width: 100%; padding-top: 12px; }
  td[data-label]::before {
    content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  }
}

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 10px; }
summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; border-radius: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details > div { padding: 0 20px 16px; color: var(--ink); }
details > div > :last-child { margin-bottom: 0; }

address { font-style: normal; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 0.6em; }
.office-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0 24px; }
@media (min-width: 640px) { .office-grid { grid-template-columns: repeat(2, 1fr); } }
.office-grid h3 { margin-top: 0; }

/* Steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 24px; }
ol.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 60px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9375rem;
  background: var(--bg); border: 1.5px solid var(--gold); color: var(--ink);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 32px; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr; } }
.site-footer h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding: 0; border: 0; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { display: inline-block; padding: 3px 0; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.8125rem; }
.site-footer p { margin: 0 0 6px; }

@media print {
  .site-nav, .skip-link, .actions { display: none; }
  body { background: #fff; color: #000; }
}
