/* Shared styles for the Trust home and Standards pages */
:root {
  --bg: #0a0a0a; --surface: #121212; --sur2: #171717; --border: #242424; --border2: #2f2f2f;
  --text: #ededed; --muted: #8f8f8f; --muted-strong: #c9c9c9;
  --accent: #ffb020; --accent-soft: rgba(255, 176, 32, .12);
  --b-verified: #34d399; --b-highly: #4ade80; --b-mostly: #a3e635; --b-maybe: #7dd3fc;
  --b-cautious: #fbbf24; --b-sparingly: #fb923c; --b-not: #f87171; --b-dnu: #e11d48;
  --radius: 18px; --max: 1160px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f4; --surface: #fff; --sur2: #f1f1ef; --border: rgba(0,0,0,.09); --border2: rgba(0,0,0,.16);
    --text: #161616; --muted: #666; --muted-strong: #3d3d3d; --accent: #b86e00; --accent-soft: rgba(184,110,0,.1);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Google Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: Syne, "Google Sans", sans-serif; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Notice */
.notice { border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.notice .wrap { display: flex; gap: 10px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.notice b { color: var(--muted-strong); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { height: 22px; width: auto; }
.brand .sep { width: 1px; height: 20px; background: var(--border2); }
.brand small { color: var(--muted); font-weight: 400; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav nav a:hover { color: var(--text); background: var(--sur2); }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; border-radius: 12px; padding: 12px 20px; border: 1px solid var(--border2); transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--sur2); }
.btn-primary { background: var(--accent); color: #111; border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.nav .btn { padding: 9px 16px; }

/* Hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted-strong); max-width: 34em; margin: 0 0 30px; }
.search-demo { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border2); border-radius: 14px; padding: 6px; max-width: 520px; }
.search-demo input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: 10px 12px; outline: none; }
.search-demo input::placeholder { color: var(--muted); }
.search-demo button { border: 0; background: var(--accent); color: #111; font: inherit; font-weight: 500; border-radius: 10px; padding: 0 18px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: .88rem; color: var(--muted); align-items: center; }
.chips a { text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; color: var(--muted-strong); }
.chips a:hover { border-color: var(--accent); color: var(--text); }

/* Preview cards */
.preview { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.card:nth-child(2) { margin-left: 28px; } .card:nth-child(3) { margin-left: 12px; } .card:nth-child(4) { margin-left: 40px; }
.card img { width: 32px; height: 32px; border-radius: 8px; background: #fff; padding: 3px; }
.card h3 { font-family: inherit; font-size: 1rem; letter-spacing: 0; }
.card p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.ring { --c: var(--b-verified); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: conic-gradient(var(--c) calc(var(--s) * 1%), var(--border) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-left: 6px; vertical-align: 2px; }

/* Stats */
.stats { border-block: 1px solid var(--border); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: Syne, sans-serif; font-size: 2.2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Sections */
section.block { padding: 96px 0; }
.head { max-width: 640px; margin-bottom: 48px; }
.head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 14px; }
.head p { color: var(--muted-strong); margin: 0; font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: Syne, sans-serif; color: var(--accent); font-weight: 700; }
.step h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* Scale */
.scale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.lvl { border-radius: 14px; padding: 16px 14px 18px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c); }
.lvl b { display: block; font-size: .95rem; line-height: 1.25; min-height: 2.5em; }
.lvl span { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.lvl em { font-style: normal; display: block; margin-top: 10px; font-family: Syne, sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--c); }
.scale-note { color: var(--muted); font-size: .9rem; margin-top: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature h3 { font-family: inherit; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.mini-results { display: grid; gap: 8px; font-size: .88rem; }
.mini-results div { background: var(--sur2); border-radius: 10px; padding: 10px 12px; }
.mini-results small { display: block; color: var(--muted); }

/* CTA */
.cta { text-align: center; padding: 72px 24px; border-radius: 28px; border: 1px solid var(--border); background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%), var(--surface); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px auto 14px; max-width: 16em; }
.cta p { color: var(--muted-strong); margin: 0 auto 28px; max-width: 32em; }
.cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 40px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav nav a.hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  .card { margin-left: 0 !important; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 0; border-left: 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .scale { grid-template-columns: 1fr 1fr; }
  section.block { padding: 64px 0; }
}

/* ---------- Standards page ---------- */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -60% -10% auto; height: 560px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 16px 0 18px; max-width: 14em; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .row { display: flex; gap: 10px; flex-wrap: wrap; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 88px; display: grid; gap: 2px; font-size: .9rem; }
.toc b { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--accent); }
.doc section { padding: 0 0 72px; scroll-margin-top: 88px; }
.doc h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 10px 0 14px; }
.doc .intro { color: var(--muted-strong); font-size: 1.05rem; margin: 0 0 28px; max-width: 42em; }
.doc p { max-width: 46em; }
.meter { height: 14px; border-radius: 999px; display: flex; overflow: hidden; margin: 0 0 8px; }
.meter span { background: var(--c); }
.meter-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 24px; }
.bands { display: grid; gap: 8px; }
.band { display: grid; grid-template-columns: 82px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c); }
.band .range { font-family: Syne, sans-serif; font-weight: 700; color: var(--c); font-size: 1.05rem; }
.band h3 { font-family: inherit; font-size: 1.02rem; letter-spacing: 0; margin-bottom: 2px; }
.band p { margin: 0; color: var(--muted); font-size: .92rem; }
.band .use { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); white-space: nowrap; font-weight: 500; }
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.signal { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.signal .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.signal h3 { font-family: inherit; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 6px; }
.signal p { margin: 0; color: var(--muted); font-size: .92rem; }
.factual { width: 100%; border-collapse: collapse; font-size: .95rem; }
.factual th, .factual td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.factual th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.factual td:first-child { font-weight: 500; white-space: nowrap; }
.factual td:last-child { color: var(--muted-strong); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.checklist li::before { counter-increment: c; content: counter(c); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.checklist b { display: block; margin-bottom: 2px; }
.checklist span { color: var(--muted); font-size: .93rem; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--border); }
.principles details { border-bottom: 1px solid var(--border); }
.principles summary { cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 500; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.principles summary::-webkit-details-marker { display: none; }
.principles summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.principles details[open] summary::after { transform: rotate(45deg); }
.principles details p { margin: 0 4px 18px; color: var(--muted-strong); }
.pdf-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 14px; }
.pdf-card h3 { font-family: inherit; letter-spacing: 0; font-size: 1.1rem; margin-bottom: 4px; }
.pdf-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.pdf-frame { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.fineprint { color: var(--muted); font-size: .82rem; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
  .toc b { width: 100%; margin: 0; }
  .toc a { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
}
@media (max-width: 600px) {
  .band { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .band .range { grid-column: 1 / -1; }
  .pdf-frame { height: 60vh; }
}
@media print { .nav, .notice, .toc, .pdf-frame, footer { display: none; } body { background: #fff; color: #000; } }
