/* Eigenomic Trust Center — brand tokens from eigenomic.com landing */
:root {
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --surface-alt: #EEF2F4;
  --ink: #1A2B4A;
  --ink-muted: #4A5A75;
  --ink-dim: #7A879C;
  --line: #DDE4EA;
  --line-strong: #C3CED9;
  --accent: #0D9488;
  --accent-ink: #0B7A70;
  --accent-soft: #E4EEEC;
  --band-bg: #122038;
  --band-surface: #1B2C48;
  --band-ink: #E8EDF3;
  --band-ink-muted: #A9B6C9;
  --band-accent: #34D3C0;
  --radius: 10px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.brand-title {
  font-weight: 600;
  font-size: 16px;
  border-left: 1px solid var(--line-strong);
  padding-left: 14px;
  white-space: nowrap;
}
@media (max-width: 600px) { .brand img { height: 44px; } }
.header-spacer { flex: 1; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.btn:hover { background: var(--band-surface); text-decoration: none; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-ink); }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.hero-inner { padding: 56px 0 40px; max-width: 720px; position: relative; }
.hero h1 { font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.hero p.lede { color: var(--ink-muted); font-size: 17px; margin-bottom: 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 15px; }
.hero-meta a { font-weight: 600; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid #CBE0DC;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13.5px;
  font-weight: 600;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-wave {
  position: absolute; right: -60px; bottom: -30px; width: 480px; height: 260px;
  pointer-events: none; opacity: 0.55;
}
@media (max-width: 900px) { .hero-wave { display: none; } }

/* How we work band */
.band { background: var(--band-bg); color: var(--band-ink); }
.band-inner { padding: 34px 0; display: flex; gap: 28px; align-items: flex-start; }
.band h2 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.band p { color: var(--band-ink-muted); font-size: 15.5px; max-width: 860px; }
.band .band-icon { flex-shrink: 0; margin-top: 4px; }

/* Nav */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.site-nav a {
  padding: 13px 16px;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 14.5px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Main layout */
main { padding: 40px 0 64px; }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.section-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.section-head .view-all { font-size: 14px; font-weight: 600; }
.section-sub { color: var(--ink-dim); font-size: 14px; margin-bottom: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card h3 { font-size: 16.5px; margin-bottom: 12px; }
.card h3 a { color: var(--ink); }
.card ul { list-style: none; }
.card li { padding: 6px 0; font-size: 14.5px; color: var(--ink-muted); display: flex; gap: 10px; align-items: flex-start; }
.card li .check { flex-shrink: 0; margin-top: 3px; }
.card .more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }

.check {
  display: inline-block; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.check::after {
  content: ""; position: absolute; left: 5.5px; top: 3px;
  width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Resource list */
.resource-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.resource-item { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.resource-item:last-child { border-bottom: none; }
.resource-item .doc-icon { flex-shrink: 0; }
.resource-item .r-body { flex: 1; min-width: 0; }
.resource-item .r-title { font-weight: 600; font-size: 15px; }
.resource-item .r-title a { color: var(--ink); }
.resource-item .r-sub { font-size: 13.5px; color: var(--ink-dim); }
.resource-item .r-pdf { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

/* Controls page */
.control-cat { margin-bottom: 36px; }
.control-cat h3 { font-size: 19px; margin-bottom: 4px; }
.control-cat .cat-meta { font-size: 13px; color: var(--ink-dim); margin-bottom: 14px; }
.control-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.control-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.control-table tr:last-child td { border-bottom: none; }
.control-table .c-check { width: 34px; padding-right: 0; }
.control-table .c-name { font-weight: 600; width: 32%; }
.control-table .c-desc { color: var(--ink-muted); }
.control-table .c-desc .src { display: block; margin-top: 4px; font-size: 13px; }
.framing-note {
  background: var(--accent-soft); border: 1px solid #CBE0DC; border-radius: var(--radius);
  padding: 12px 18px; font-size: 14px; color: var(--accent-ink); margin-bottom: 26px;
}

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.faq-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { color: var(--ink-muted); font-size: 15px; }
.faq-item p + p { margin-top: 8px; }

/* Policy page */
.policy-layout { max-width: 780px; }
.policy-meta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0 30px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  font-size: 14px;
}
.policy-meta .m-label { color: var(--ink-dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.policy-meta .m-value { font-weight: 600; }
.policy-body h2 { font-size: 20px; margin: 30px 0 12px; letter-spacing: -0.01em; }
.policy-body h3 { font-size: 16.5px; margin: 22px 0 10px; }
.policy-body p { margin-bottom: 12px; color: var(--ink-muted); }
.policy-body ul { margin: 0 0 14px 22px; color: var(--ink-muted); }
.policy-body li { margin-bottom: 6px; }
.policy-body li > ul { margin-top: 6px; margin-bottom: 6px; }
.policy-body table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px; background: var(--surface); }
.policy-body th, .policy-body td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.policy-body th { background: var(--surface-alt); font-size: 13.5px; }
.policy-actions { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.breadcrumb { font-size: 14px; margin-bottom: 8px; color: var(--ink-dim); }

/* 404 */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 54px; margin-bottom: 10px; }
.error-page p { color: var(--ink-muted); margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .container { padding: 28px 24px; font-size: 13.5px; color: var(--ink-dim); }
.site-footer p + p { margin-top: 8px; }
.site-footer .notice { max-width: 760px; }

/* Print header — hidden on screen, opens every PDF/printout with the brand */
.print-header { display: none; }

/* Print */
@media print {
  .site-header, .site-nav, .site-footer, .policy-actions, .breadcrumb, .band { display: none; }
  body { background: #fff; font-size: 12pt; }
  .print-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 2px solid #1A2B4A;
  }
  .print-header img { height: 40px; width: auto; }
  .print-header span {
    font-weight: 600;
    font-size: 12pt;
    color: #1A2B4A;
    border-left: 1px solid #C3CED9;
    padding-left: 14px;
  }
  .policy-meta { border: 1px solid #999; }
  main { padding: 0; }
  a { color: inherit; text-decoration: none; }
}
