/* Peptide IQ Test: standalone utility page using the public research-library palette. */
:root {
  --ink: #11151b;
  --navy: #102b46;
  --blue: #14508c;
  --muted: #536476;
  --line: #dce3eb;
  --surface: #ffffff;
  --ground: #f6f7f9;
  --soft-blue: #edf3f9;
  --success-bg: #eaf5ec;
  --success-fg: #14622b;
  --wrong-bg: #fbeae9;
  --wrong-fg: #8a2017;
  --serif: "Source Serif 4", Georgia, serif;
  --ui: Inter, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--ui); line-height: 1.6; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#rail { position: fixed; z-index: 20; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--blue); transition: width .25s ease; }
.mast { background: var(--surface); border-bottom: 1px solid var(--line); }
.mast-inner { max-width: 1344px; min-height: 72px; padding: 12px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 35px; height: 35px; object-fit: contain; flex: none; }
.brand b { display: block; font: 600 20px/1.2 var(--serif); }
.brand small { display: block; color: var(--muted); font: 400 10px/1.5 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.mast-link { color: var(--blue); font-size: 13px; font-weight: 600; white-space: nowrap; }
.wrap { min-height: calc(100vh - 136px); max-width: 900px; margin: 0 auto; padding: 52px 32px 64px; }
.kick { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 500 clamp(42px, 7vw, 70px)/1.08 var(--serif); letter-spacing: -.025em; color: var(--navy); margin: 10px 0 20px; }
h1 .lo { display: block; }
.lede { max-width: 64ch; color: #36495d; font: 400 19px/1.65 var(--ui); margin-bottom: 28px; }
.lede em { font-style: normal; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.spec { padding: 16px 20px; }
.spec + .spec { border-left: 1px solid var(--line); }
.spec .n { color: var(--navy); font: 500 30px/1.2 var(--serif); }
.spec .l { color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 4px; }
.warn { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; margin-bottom: 26px; background: var(--soft-blue); border-left: 3px solid var(--blue); color: #33485b; }
.warn .dot { flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.warn p { margin: 0; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; gap: 8px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-go { background: var(--blue); color: white; border-color: var(--blue); }
.btn-go:hover { background: #0e3a68; color: white; }
.btn-ghost { color: var(--blue); background: var(--surface); border-color: #aebcca; }
.btn-ghost:hover { border-color: var(--blue); background: var(--soft-blue); }
.foot-note, .note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 12px; }
.hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pos { color: var(--muted); font: 500 13px/1.4 var(--mono); }
.pos b { color: var(--navy); }
.streak { color: var(--navy); font-size: 12px; font-weight: 600; }
.streak.off { color: var(--muted); }
.tierbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.tier-name { color: var(--blue); font-size: 12px; font-weight: 700; }
.pips { display: flex; gap: 5px; }
.pip { width: 18px; height: 5px; border-radius: 3px; background: var(--line); }
.pip.on { background: var(--blue); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: 0 1px 3px rgba(17,21,27,.05); }
.qtext { color: var(--navy); font: 500 clamp(23px, 4vw, 31px)/1.3 var(--serif); letter-spacing: -.01em; margin: 0 0 25px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 60px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 15px; line-height: 1.45; }
.opt:hover:not(:disabled) { background: var(--soft-blue); border-color: #8eaac5; }
.opt .key { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 5px; background: var(--soft-blue); color: var(--blue); font: 600 12px var(--mono); }
.opt.correct { border-color: var(--success-fg); background: var(--success-bg); color: #194627; }
.opt.correct .key { background: var(--success-fg); color: white; }
.opt.wrong { border-color: var(--wrong-fg); background: var(--wrong-bg); color: var(--wrong-fg); }
.opt.wrong .key { background: var(--wrong-fg); color: white; }
.opt.dim { color: var(--muted); }
.reveal { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.verdict { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.verdict.ok { color: var(--success-fg); }
.verdict.no { color: var(--wrong-fg); }
.fact { color: #35485b; font-size: 15px; line-height: 1.7; }
.hook { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.nextrow { display: flex; justify-content: flex-end; margin-top: 14px; }
.res { text-align: center; }
.res h1 { font-size: clamp(36px, 6vw, 54px); }
.gauge { position: relative; width: 230px; height: 230px; margin: 18px auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge .mid { position: absolute; inset: 0; display: grid; align-content: center; }
.gauge .iq { color: var(--navy); font: 500 64px/1 var(--serif); }
.gauge .iqlbl { color: var(--muted); font-size: 11px; }
.rank { color: var(--navy); font: 500 28px/1.2 var(--serif); margin: 10px 0; }
.rankblurb { max-width: 56ch; margin: 0 auto; color: #44566a; font-size: 15px; }
.scoreline { margin: 18px 0 26px; color: var(--muted); font: 400 12px/1.7 var(--mono); }
.scoreline b { color: var(--ink); }
.cta { margin: 14px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.cta h3 { color: var(--navy); font: 600 23px/1.25 var(--serif); margin-bottom: 6px; }
.cta p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#toast { position: fixed; z-index: 30; bottom: 20px; left: 50%; transform: translate(-50%, 12px); max-width: min(90vw, 500px); padding: 12px 18px; border-radius: 8px; background: var(--navy); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: 13px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-foot { border-top: 1px solid var(--line); background: #fff; }
.site-foot-inner { max-width: 1344px; min-height: 64px; margin: auto; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 12px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-foot a { color: var(--blue); }
@media (max-width: 600px) {
  .mast-inner { padding: 12px 20px; min-height: 64px; }
  .mast-link { font-size: 12px; }
  .brand { gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 9px; }
  .wrap { padding: 32px 20px 48px; }
  .lede { font-size: 16px; }
  .spec { padding: 13px 10px; }
  .spec .n { font-size: 24px; }
  .spec .l { font-size: 11px; }
  .card { padding: 20px; }
  .opt { min-height: 64px; font-size: 14px; padding: 12px; gap: 12px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .site-foot-inner { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
