/* Outsample Research — brand system v1 (see vault: Brand System.md) */

@font-face { font-family: "Plex Serif"; src: url("/fonts/plex-serif-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans";  src: url("/fonts/plex-sans-400.woff2")  format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans";  src: url("/fonts/plex-sans-500.woff2")  format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono";  src: url("/fonts/plex-mono-400.woff2")  format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono";  src: url("/fonts/plex-mono-500.woff2")  format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0C0F16;
  --surface: #131826;
  --line: #232A3A;
  --ink: #E9E5DA;
  --muted: #8E8B7F;
  --gold: #D9A441;
  --robust: #3FA46A;
  --fragile: #C7783C;
  --overfit: #C0453E;
  --serif: "Plex Serif", Georgia, serif;
  --sans: "Plex Sans", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --w: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--bg); }
a { color: var(--gold); text-decoration: none; }
b { font-weight: 500; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; max-width: var(--w); margin: 0 auto; padding: 18px 24px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: 0.01em; }
.mark { width: 30px; height: 20px; }
.mark path, .mark line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mark-is { stroke: var(--muted); }
.mark-oos { stroke: var(--gold); }
.mark-div { stroke: var(--line); stroke-dasharray: 3 3; }
.site-head nav { display: flex; gap: 22px; margin-left: auto; }
.site-head nav a { color: var(--muted); font-size: 14px; transition: color .18s; }
.site-head nav a:hover { color: var(--ink); }
.head-cta { font-size: 13px; }
@media (max-width: 720px) { .site-head nav { display: none; } .head-cta { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--mono); font-size: 13.5px; padding: 12px 22px; border-radius: 4px; border: 1px solid var(--line); transition: transform .16s, border-color .16s, background .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--gold); color: #14100A; border-color: var(--gold); font-weight: 500; }
.btn-solid:hover { background: #E4B458; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- hero ---------- */
.hero { max-width: var(--w); margin: 0 auto; padding: 72px 24px 30px; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 22px; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.lede b, .prose b { color: var(--ink); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 58px; }

/* ---------- report demo ---------- */
.report-demo { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.replay { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer; }
.replay:hover { color: var(--gold); }
#demo-svg { display: block; width: 100%; height: auto; }
.grid { stroke: var(--line); stroke-width: 0.5; opacity: .55; }
#divider { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 5; opacity: 0; }
#divider.on { opacity: .8; transition: opacity .5s; }
.axis-label { font-family: var(--mono); font-size: 11px; opacity: 0; transition: opacity .6s; }
.axis-label.on { opacity: 1; }
.is-label { fill: var(--muted); }
.oos-label { fill: var(--gold); }
.bad-label { fill: var(--overfit); }
#curve-is  { fill: none; stroke: var(--muted); stroke-width: 2; }
#curve-oos { fill: none; stroke: var(--gold);  stroke-width: 2.2; }
#tip { fill: var(--gold); opacity: 0; }
#tip.on { opacity: 1; }
.demo-strip { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 13px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.strip-item b { color: var(--ink); font-weight: 500; margin-left: 7px; }
.verdict-chip { padding: 2px 9px; border-radius: 3px; }
.verdict-chip.fragile { background: color-mix(in srgb, var(--fragile) 18%, transparent); color: var(--fragile); }
.report-demo figcaption { padding: 10px 18px 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- stat band ---------- */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.band-inner { max-width: var(--w); margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.stat b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
.sect { max-width: var(--w); margin: 0 auto; padding: 92px 24px 0; }
.sect h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.01em; margin-bottom: 20px; }
.sect-lede { color: var(--muted); max-width: 640px; margin-bottom: 34px; }
.sect-lede b { color: var(--ink); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.prose p { margin-bottom: 16px; max-width: 520px; }
.prose p:last-child { color: var(--ink); font-weight: 500; }

.fig { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px 18px 12px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig-div { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 5; }
.fig-is { stroke: var(--muted); stroke-width: 2; fill: none; }
.fig-oos-bad { stroke: var(--overfit); stroke-width: 2.2; fill: none; }
.fig figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 10px; }
.draw-on-reveal { stroke-dasharray: 600; stroke-dashoffset: 600; }
.revealed .draw-on-reveal { animation: draw 1.4s ease forwards; }
.revealed .fig-oos-bad.draw-on-reveal { animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- gates ---------- */
.gates { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: gate; }
.gate { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 22px 20px; opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease, border-color .3s; }
.gate.revealed { opacity: 1; transform: none; }
.gate:hover { border-color: var(--gold); }
.gate-no { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .14em; }
.gate h3 { font-family: var(--serif); font-size: 18.5px; font-weight: 600; margin: 8px 0 8px; }
.gate p { font-size: 13.8px; color: var(--muted); }
.method-note { margin-top: 26px; font-size: 14px; color: var(--muted); max-width: 640px; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 30px 28px; opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.card.revealed { opacity: 1; transform: none; }
.card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.card-lede { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.tiers { list-style: none; border-top: 1px solid var(--line); margin-bottom: 18px; }
.tiers li { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tier-name { font-weight: 500; font-size: 14.5px; }
.tier-desc { font-size: 13px; color: var(--muted); }
.tier-price { font-family: var(--mono); font-size: 14.5px; color: var(--gold); white-space: nowrap; }
@media (max-width: 560px) { .tiers li { grid-template-columns: 1fr auto; } .tier-desc { grid-column: 1 / -1; padding-top: 2px; } }
.card-note { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

/* ---------- verdicts + platforms ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms a { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 16px; color: var(--muted); transition: color .18s, border-color .18s; }
.platforms a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-family: var(--serif); font-size: 17px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--gold); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 2px 20px; color: var(--muted); max-width: 640px; }

/* ---------- footer ---------- */
.site-foot { max-width: var(--w); margin: 96px auto 0; padding: 34px 24px 44px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; margin-bottom: 14px; }
.foot-legal { font-size: 12.5px; color: var(--muted); max-width: 640px; margin-bottom: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 12.5px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold); }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gate, .card { opacity: 1; transform: none; transition: none; }
  .draw-on-reveal { stroke-dashoffset: 0; animation: none; }
  #divider, .axis-label { opacity: 1; }
}
