/* evaljetty.com site layer on top of the "Evals by Jetty" design system (tokens.css + evals.css). */

:root {
  --series-1: #c77f0a; --series-2: #6a4cc9; --series-3: #0e8f7a; --series-4: #d2503f; --series-5: #2f6fd0;
  --series-muted: #97a3bf;
  --grid-line: #ece7d8;
  --site-max: 1180px;
}
[data-theme="dark"] {
  --series-1: #c4870f; --series-2: #8a6ee6; --series-3: #1ea893; --series-4: #e0604f; --series-5: #4d86e0;
  --series-muted: #6273a0;
  --grid-line: #1a2750;
}

body.site { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-normal); }
.site a { color: inherit; }
.site-wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 640px) { .site-wrap { padding: 0 16px; } }

/* topbar */
.site-topbar { position: sticky; top: 0; z-index: 20; gap: 16px; }
.site-topbar .ej-lockup { text-decoration: none; }
.site-crumbs { display: flex; gap: 8px; align-items: center; font-size: var(--text-sm); min-width: 0; overflow: hidden; white-space: nowrap; }
.site-crumbs a { text-decoration: none; opacity: .8; }
.site-crumbs a:hover { opacity: 1; text-decoration: underline; }
.site-crumbs .sep { opacity: .4; }
.site-theme { width: 34px; height: 34px; border-radius: 4px; cursor: pointer; font-size: 16px; background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); line-height: 1; }
.site-theme:hover { border-color: var(--accent); }
@media (max-width: 720px) { .site-crumbs { display: none; } .site-topbar .btn--sm { display: none; } }

/* hero */
.site-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.site-hero__eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-subtle); }
.site-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, var(--text-4xl)); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); margin: 12px 0 16px; font-weight: 600; max-width: 18ch; }
.site-hero p.lede { font-size: var(--text-md); color: var(--fg-muted); max-width: 64ch; margin: 0 0 24px; }
.site-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.site-section { padding: 48px 0; }
.site-section + .site-section { border-top: 1px solid var(--border); }
.site-section h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; letter-spacing: var(--tracking-snug); margin: 0 0 8px; }
.site-section .section-lede { color: var(--fg-muted); max-width: 70ch; margin: 0 0 24px; }
.site-eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--accent-strong, #d88f0e); margin-bottom: 6px; }

/* stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 24px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.stat__label { font-size: var(--text-xs); color: var(--fg-subtle); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.stat__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-top: 4px; }
.stat__sub { font-size: var(--text-xs); color: var(--fg-muted); }

/* cards grid */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-link { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.thumb { aspect-ratio: 16/9; width: 100%; display: block; object-fit: cover; background: #050a1f; border-radius: 10px 10px 0 0; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data th, table.data td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--fg-subtle); font-weight: 600; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
table.data tr:last-child td { border-bottom: 0; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-muted); }
.small { font-size: var(--text-sm); }

/* chart shells */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.chart-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.chart-card .chart-sub { margin: 0 0 12px; font-size: var(--text-sm); color: var(--fg-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: var(--text-sm); margin: 8px 0 0; }
.legend button { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; cursor: pointer; color: var(--fg); font: inherit; }
.legend button[aria-pressed="false"] { opacity: .45; }
.viz-tooltip { position: fixed; pointer-events: none; z-index: 50; background: var(--bg-inverse, #0a1230); color: var(--fg-inverse, #fbfaf6); font-size: var(--text-xs); padding: 8px 10px; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transition: opacity .1s; max-width: 280px; }
[data-theme="dark"] .viz-tooltip { background: #f3efe4; color: #0a1230; }

/* verdict pills */
.pill { display: inline-block; font-size: var(--text-2xs); padding: 2px 8px; border-radius: 999px; font-weight: 600; font-family: var(--font-mono); }
.pill--win { background: color-mix(in srgb, var(--pass, #0d7065) 16%, transparent); color: var(--pass, #0d7065); }
.pill--loss { background: color-mix(in srgb, var(--fail, #b03a2e) 14%, transparent); color: var(--fail, #b03a2e); }

/* code / console */
.site pre.code { background: var(--console, #0a1230); color: #e8e4d8; border-radius: 10px; padding: 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; }
.site code { font-family: var(--font-mono); font-size: .92em; }

/* CTA band + footer */
.site-cta { background: var(--band-ink, #040c28); color: #f3efe4; padding: 56px 0; }
.site-cta .cta-band__title { font-family: var(--font-display); font-size: var(--text-2xl); margin: 0 0 8px; font-weight: 600; color: #fbfaf6; }
.site-cta .cta-band__body { color: #c8cfdf; max-width: 64ch; margin: 0 0 20px; }
.site-cta .cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-btn-on-ink { background: transparent !important; border: 1.5px solid #3d4f82; color: #fbfaf6 !important; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer__nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--text-sm); align-items: center; }
.site-footer__nav a { text-decoration: none; color: var(--fg-muted); }
.site-footer__nav a:hover { color: var(--fg); }
.site-footer .pbj { font-weight: 600; color: var(--fg); }

/* footer: the display wordmark's descenders need room above the meta line */
.site-footer .ds-footer__brand { line-height: 1.25; margin-bottom: 10px; padding-bottom: 4px; }
.site-footer .ds-footer__meta { max-width: 56ch; }

/* microsite sub-navigation (shared; /pelicans uses the identical .pj-subnav) */
.site-subnav { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-subnav .site-wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-subnav .site-wrap::-webkit-scrollbar { display: none; }
.site-subnav a { flex: 0 0 auto; text-decoration: none; font-size: var(--text-sm); padding: 12px 10px; color: var(--fg-muted); border-bottom: 2px solid transparent; }
.site-subnav a:hover { color: var(--fg); }
.site-subnav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }

/* FAQ (answers are always visible so agents and people read the same text) */
.faq__item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq__item summary { list-style: none; cursor: default; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q h3 { margin: 0; font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; }
.faq__a { margin: 6px 0 0; color: var(--fg-muted); max-width: 72ch; }
