/* 3marc.au: the 3marc design system (docs/brand) for the public site. Light page, one black hero panel, signal orange
   in small doses. Space Grotesk for what people read, Space Mono for what machines read. */
:root {
  --void: #0e0e0e;
  --signal: #ff5a1f;
  --fog: #e9e9e9;
  --ash: #8a8a8a;
  --paper: #f4f4f4;
  --white: #ffffff;
  --border: #e3e3e3;
  --text: #0e0e0e;
  --body: #2b2b2b;
  --muted: #666666;
  --link: #c2410c;
  --panel: #181818;
  --panel-border: #2a2a2a;
  --wash: #fff1eb;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--display); }
a { color: var(--link); }
a:hover { color: #9a3412; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--signal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--void); color: var(--fog); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 16px; }

/* ---- Logo: lowercase 3marc and the cursor bar, which blinks ---- */
.logo { display: inline-flex; align-items: flex-end; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-size: 28px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.dark .logo, .dark .logo:hover { color: var(--fog); }
.cursor { display: block; width: 0.42em; height: 0.11em; margin-left: 0.12em; margin-bottom: 0.1em; background: var(--signal); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 10px; border: 0; font: 600 16px/1 var(--display); text-decoration: none; cursor: pointer; }
.btn:hover { opacity: 0.9; }
.btn.primary, .btn.primary:hover { background: var(--signal); color: var(--void); }
.btn.ink, .btn.ink:hover { background: var(--void); color: var(--paper); }
.btn.fog, .btn.fog:hover { background: var(--fog); color: var(--void); }
.btn.small { min-height: 44px; padding: 0 20px; }
.btn.big { min-height: 52px; padding: 0 28px; }

/* ---- Header ---- */
.wrap { max-width: 1328px; margin: 0 auto; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px 0; }
.top .logo { margin-right: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.nav a:not(.btn) { color: inherit; text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; color: inherit; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* ---- Type ---- */
.eyebrow { font: 700 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dark .eyebrow { color: var(--ash); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.display { font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.05em; }
.display .cursor { display: inline-block; vertical-align: baseline; }
.h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.05em; }
.h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body); max-width: 640px; }
.dark .lead { color: #cfcfcf; }
p { margin: 0; }
.sechead { margin-bottom: 8px; }
.narrow { max-width: 760px; }
.start-self { align-self: flex-start; }
.prose { font-size: 16px; line-height: 1.6; color: var(--body); }
code, .mono { font-family: var(--mono); }
.chip { font: 400 14px/1.6 var(--mono); background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* ---- Home ---- */
.home-page { padding: 16px; }
.hero { background: var(--void); color: var(--fog); border-radius: 20px; padding: 0 clamp(20px, 4vw, 56px) clamp(56px, 8vw, 120px); }
.hero .top { padding-bottom: 0; }
.hero-grid { padding-top: clamp(56px, 8vw, 112px); display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-copy h1 { color: var(--fog); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.terminal { flex: 1 1 440px; min-width: 0; margin: 0; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; font: 400 15px/1.6 var(--mono); color: var(--ash); }
.record { display: flex; flex-wrap: wrap; column-gap: 0.6em; color: var(--fog); }
.record > span { white-space: nowrap; }
.record .k { color: var(--signal); }
.terminal-checks { border-top: 1px solid var(--panel-border); padding-top: 18px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 13px; }
.terminal-checks dt { color: var(--fog); }
.terminal-checks dd { margin: 0; }
.terminal figcaption { font: 400 13px/1.5 var(--display); }

.main { max-width: 1328px; margin: 0 auto; padding: 0 clamp(4px, 3vw, 40px); }
.section { padding-top: clamp(80px, 9vw, 120px); }
.section.first { padding-top: clamp(64px, 8vw, 104px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: 48px; }
.split-head { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; margin-bottom: 48px; }
.split-head h2 { flex: 1 1 520px; }
.split-head .lead { flex: 1 1 360px; }
.cols { display: flex; flex-wrap: wrap; gap: 40px; }
.col { flex: 1 1 300px; min-width: 0; border-top: 1px solid var(--void); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.col .eyebrow { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.step { flex: 1 1 300px; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.step code { align-self: flex-start; font: 400 15px/1.6 var(--mono); background: var(--paper); border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; }
.step.done { background: var(--void); border-color: var(--void); color: var(--fog); }
.step.done code { background: var(--signal); border-color: var(--signal); color: var(--void); }
.step.done .prose { color: #cfcfcf; }
.pair { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.pair > :first-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pair > :last-child { flex: 1 1 520px; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.5; }
.ticks li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.ticks li:last-child { border-bottom: 1px solid var(--border); }
.ticks svg { flex: none; margin-top: 1px; }
.grid6 { display: flex; flex-wrap: wrap; gap: 32px 40px; margin-top: 40px; }
.grid6 > div { flex: 1 1 360px; min-width: 0; border-top: 1px solid var(--border); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.grid6 h3 { font-size: 19px; }
.band { margin-top: clamp(80px, 9vw, 120px); background: var(--void); color: var(--fog); border-radius: 20px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.band > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.band .lead { color: #cfcfcf; font-size: 17px; }
.checkbox { flex: 1 1 440px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox input { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--ash); background: var(--panel); color: var(--fog); font: 400 16px var(--mono); }
.checkbox input::placeholder { color: var(--ash); }

/* ---- Footer ---- */
.foot { max-width: 1328px; margin: clamp(64px, 8vw, 96px) auto 0; padding: 40px clamp(4px, 3vw, 40px) 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot .about { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
.foot .logo { font-size: 24px; }
.foot nav { flex: 1 1 140px; display: flex; flex-direction: column; gap: 8px; }
.foot nav .eyebrow { color: var(--text); }
.foot a { color: var(--muted); }
.foot .legal { flex: 1 1 100%; padding-top: 16px; font: 400 13px/1.5 var(--mono); }

/* ---- Inner pages ---- */
.inner { padding: 0 clamp(20px, 4vw, 56px); }
.search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 24px 0 32px; border-bottom: 1px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search .field { flex: 1 1 320px; }
.field label { font-size: 14px; font-weight: 500; }
.search .field label { font: 700 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--muted); background: var(--white); color: var(--text); font: 400 16px var(--display); }
.input.mono { font-family: var(--mono); }
textarea.input { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 110px; }
.search .btn[disabled] { opacity: 0.6; cursor: progress; }
.result { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; padding-top: 40px; }
.result main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.verdict { display: flex; flex-direction: column; gap: 10px; }
.verdict h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1.02; }
.verdict h1.exposed { color: var(--link); }
.meta { font: 400 14px/1.5 var(--mono); color: var(--muted); }
.risks, .rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.risks li { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.pill { flex: none; width: 72px; text-align: center; align-self: flex-start; font: 700 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 0; border-radius: 999px; background: #ececec; color: #444444; }
.pill.high { background: var(--signal); color: var(--void); }
.pill.medium { background: var(--wash); color: var(--link); }
.risks .what { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.risks .area { color: var(--muted); font-size: 14px; }
.risks .detail { font-size: 15px; line-height: 1.55; color: var(--body); }
.risks .fix { font-size: 14px; line-height: 1.55; color: var(--muted); }
.rows > li { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.rows .name { flex: 0 0 150px; display: flex; flex-direction: column; gap: 4px; }
.rows .name b { font-weight: 600; font-size: 17px; }
.rows .body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--body); }
.state { font-size: 14px; color: var(--body); }
.state.bad { color: var(--link); }
.state.quiet { color: var(--muted); }
.rec { margin: 0; background: var(--void); border-radius: 10px; padding: 14px 18px; font: 400 14px/1.6 var(--mono); color: var(--ash); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.rec .k { color: var(--signal); }
.tree { font: 400 13px/1.6 var(--mono); color: var(--body); }
.tree details { margin: 2px 0; }
.tree summary { cursor: pointer; padding: 4px 0; }
.tree summary .n { color: var(--muted); }
.tree .kids { margin-left: 10px; padding-left: 16px; border-left: 1px solid #c4c4c4; }
.tree .ranges { color: var(--muted); padding: 2px 0 6px; overflow-wrap: anywhere; }
.selectors { display: flex; flex-direction: column; gap: 6px; }
.selectors div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.selectors .mono { min-width: 120px; font-size: 14px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.bimi { display: flex; gap: 16px; align-items: flex-start; }
.bimi img { flex: none; width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.aside { flex: 1 1 320px; min-width: 0; background: var(--void); color: var(--fog); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.aside p { color: #cfcfcf; line-height: 1.55; }
.aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.aside li { display: flex; gap: 10px; }
.aside li span { color: var(--signal); }
.aside .share { font: 400 13px/1.5 var(--mono); color: var(--ash); padding-top: 8px; border-top: 1px solid var(--panel-border); overflow-wrap: anywhere; }
.notice { padding: 28px 0; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.notice h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.035em; line-height: 1.08; }
.intro { padding: clamp(32px, 6vw, 72px) 0 0; display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.checklist { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 40px; font-size: 16px; line-height: 1.5; max-width: 980px; }
.checklist li { flex: 1 1 300px; display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }

/* ---- Get started ---- */
.start { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; padding-top: clamp(40px, 6vw, 80px); }
.start > section:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.numbered { list-style: none; margin: 16px 0 0; padding: 0; }
.numbered li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); }
.numbered li:first-child { border-top-color: var(--void); }
.numbered li:last-child { border-bottom: 1px solid var(--border); }
.numbered .n { font: 700 13px/1.6 var(--mono); color: var(--muted); }
.numbered b { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.form { flex: 1 1 460px; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.form .row { display: flex; flex-wrap: wrap; gap: 16px; }
.form .row .field { flex: 1 1 200px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form .small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form .error { color: var(--link); font-size: 15px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { flex: 1 1 460px; min-width: 0; background: var(--void); color: var(--fog); border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.thanks p { color: #cfcfcf; line-height: 1.55; }
