/* Break It First, Phase A. System fonts only, no external requests. Palette from content-engine brand.yaml. */
:root {
  --bg: #F6F4EE; --panel: #FFFFFF; --panel-2: #ECE8DD; --text: #0E1726; --muted: #46536B; --dim: #5B6880; --line: #D9D4C7;
  --accent: #0B5FAE; --good: #0B7A52; --bad: #B3261E; --warn: #8A5A00;
  --tint-good: #D6F0E3; --tint-bad: #F8D7D5; --tint-warn: #FBEBC0;
  --btn-bg: #0E1726; --btn-text: #F6F4EE;
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, "Bitstream Charter", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1726; --panel: #13203A; --panel-2: #172642; --text: #F5F7FB; --muted: #AEBBD0; --dim: #8EA0BC; --line: #2C3E5E;
    --accent: #5AB0FF; --good: #3DDC97; --bad: #FF7B7B; --warn: #FFC247;
    --tint-good: rgba(61, 220, 151, .12); --tint-bad: rgba(255, 123, 123, .13); --tint-warn: rgba(255, 194, 71, .11);
    --btn-bg: #F6F4EE; --btn-text: #0E1726;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.62 var(--sans); }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2.5rem; } }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1rem; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding-block: .6rem; }
.mark { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--text); text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.mark svg { width: 28px; height: 28px; flex: none; }
.nav ul { display: flex; list-style: none; margin: 0 -.6rem 0 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 .6rem; color: var(--muted);
  text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
@media (max-width: 26rem) { .nav ul { margin: 0 0 0 -.6rem; } }

/* shared */
.eyebrow { font: 600 .76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { opacity: .88; }
.btn-quiet { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.note { font-size: .9rem; color: var(--dim); margin: .85rem 0 0; }
.actions .note { margin: 0; }
.page-head { padding: 3rem 0 2.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .page-head { padding: 4.5rem 0 3rem; } }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 22ch; }
.page-head h1 span { color: var(--muted); }
.intro { font-size: 1.15rem; margin: 1.25rem 0 1rem; max-width: 42rem; }

/* home */
.hero { display: grid; gap: 2.5rem; padding: 3rem 0 2.75rem; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 4.5rem; padding: 5.5rem 0 4rem; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 15ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 35rem; margin: 1.4rem 0 1.9rem; }
.runcard { margin: 0; background: #0A101C; color: #E8EEF8; border: 1px solid #22324F; border-radius: 16px; padding: 1.25rem 1.3rem 1.05rem;
  font: 400 .84rem/1.55 var(--mono); box-shadow: 0 24px 48px -30px rgba(14, 23, 38, .55); }
.runcard-title { display: flex; align-items: center; gap: .55rem; color: #AEBBD0; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .12em; margin: 0 0 1rem; padding-bottom: .8rem; border-bottom: 1px solid #2C3E5E; }
.runcard-title::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #3DDC97; flex: none; }
.runlog { margin: 0; display: grid; gap: .7rem; }
.runlog div { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .8rem; }
.runlog dt { color: #8EA0BC; }
.runlog dd { margin: 0; overflow-wrap: anywhere; }
.ok { color: #3DDC97; font-weight: 700; }
.runcard figcaption { margin-top: 1.05rem; padding-top: .8rem; border-top: 1px solid #2C3E5E; color: #AEBBD0; font: .8rem/1.5 var(--sans); }
.stats { border-top: 1px solid var(--line); padding: 1.75rem 0 3rem; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.stats li { display: flex; align-items: baseline; gap: .75rem; }
.stat-num { font: 600 1.7rem/1.1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-label { color: var(--muted); font-size: .95rem; }
@media (min-width: 48rem) {
  .stats ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .stats li { display: block; border-left: 1px solid var(--line); padding-left: 1.25rem; }
  .stats li:first-child { border-left: 0; padding-left: 0; }
  .stat-num { display: block; font-size: 2.6rem; }
  .stat-label { display: block; margin-top: .3rem; }
}
.stats-note { color: var(--dim); font-size: .88rem; margin: 1.4rem 0 0; }
.stats-note a { display: inline-flex; align-items: center; min-height: 44px; }

/* checklist */
.ai-line { display: inline-block; font-size: .9rem; color: var(--muted); border-left: 3px solid var(--good); padding: .15rem 0 .15rem .75rem; margin: 0 0 1.6rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.check { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 .9rem; padding: 2.1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .check { grid-template-columns: 6rem minmax(0, 1fr); padding: 2.75rem 0; } }
.num { font: 600 1.45rem/1 var(--serif); color: var(--dim); font-variant-numeric: tabular-nums; padding-top: .2rem; }
@media (min-width: 48rem) { .num { font-size: 2.75rem; padding-top: 0; } }
.check h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0 0 1.1rem; }
.dpf { margin: 0; display: grid; gap: 1.1rem; }
@media (min-width: 60rem) { .dpf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }
.dpf > div { padding-top: .75rem; border-top: 3px solid var(--line); }
.dpf .pass { border-top-color: var(--good); }
.dpf .fail { border-top-color: var(--bad); }
.dpf dt { font: 700 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .45rem; }
.dpf .pass dt { color: var(--good); }
.dpf .fail dt { color: var(--bad); }
.dpf dd { margin: 0; }
.seen { margin-top: 1.4rem; background: var(--tint-warn); border-radius: 12px; padding: .95rem 1.1rem; font-size: .96rem; }
.seen-label { font: 700 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--warn); margin: 0 0 .4rem; }
.seen p:last-child { margin: 0; }
.soon { padding: 2.5rem 0 3rem; margin: 0; color: var(--muted); font: italic 1.2rem/1.4 var(--serif); }

/* how we test, privacy */
.prose { max-width: 46rem; padding-bottom: 2.5rem; }
.prose section { padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0 0 .9rem; }
.prose p:last-child { margin-bottom: 0; }
.table-wrap { max-width: 100%; }
table.kits { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.kits caption { text-align: left; color: var(--muted); font-size: .86rem; padding-bottom: .7rem; }
table.kits th, table.kits td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kits thead th { font: 700 .7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
table.kits tbody th { font-weight: 400; }
table.kits .n { text-align: right; font-variant-numeric: tabular-nums; }
table.kits td.n { white-space: nowrap; }
table.kits tfoot th, table.kits tfoot td { font-weight: 700; border-bottom: 0; }
.survivor { background: var(--tint-bad); border-radius: 12px; padding: 1.05rem 1.15rem; margin-top: 1.6rem; }
.survivor h3 { font-size: 1.2rem; margin: 0 0 .45rem; }
.limits { list-style: none; margin: 0; padding: 0; }
.limits li { position: relative; padding: .75rem 0 .75rem 1.4rem; border-bottom: 1px solid var(--line); }
.limits li:last-child { border-bottom: 0; }
.limits li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: .65rem; height: 2px; background: var(--bad); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 2.25rem; font-size: .88rem; color: var(--muted); }
.site-foot p { margin: 0 0 .35rem; max-width: 46rem; }
.site-foot .ai { color: var(--text); font-weight: 600; }
.foot-nav ul { list-style: none; display: flex; flex-wrap: wrap; margin: .9rem 0 0 -.6rem; padding: 0; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 .6rem; color: var(--muted); }
.foot-nav a[aria-current="page"] { color: var(--text); }
