/* The Trade Mechanic: site styles. Fonts are self-hosted (no request to Google). */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-display: swap; src: url("fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #F3F1EB;      /* Lab Paper */
  --paper-2: #E9E6DC;
  --amber: #F0A318;      /* Signal Amber: blocks only, never text on paper */
  --ink: #0B0F14;        /* Terminal Ink */
  --ink-2: #1A2029;
  --muted: #5A5F66;
  --line: #D6D2C6;
  --pass: #1F8A4C;       /* data and stamps only */
  --fail: #C0392B;
  --white: #FFFFFF;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -0.01em; font-size: 17px; }
.brand-mark { width: 28px; height: 28px; background: var(--ink); display: grid; place-items: center; }
.brand-mark span { width: 12px; height: 12px; background: var(--amber); }
.top nav a { font-family: var(--mono); font-size: 13px; font-weight: 500; text-decoration: none; margin-left: 20px; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 600px) { .top nav a.hide-sm { display: none; } .top nav a { margin-left: 12px; } }

/* type */
.eyebrow { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 14px; }
.eyebrow .tag { background: var(--ink); color: var(--white); padding: 3px 8px; margin-right: 8px; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 80px); text-transform: uppercase; overflow-wrap: break-word; }
h1 .block { background: var(--amber); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
h2 { font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 8px; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 40em; margin: 22px 0 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
p { margin: 0 0 14px; }

section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 60px 0; } }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }

/* hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.hero-grid > * { min-width: 0; }
@media (max-width: 480px) { .kpi { font-size: 12px; } .kpi th, .kpi td { padding: 6px 3px; } .kpi th { font-size: 10px; } .sheet-body { padding: 14px 12px; } .sheet { box-shadow: 5px 5px 0 var(--ink); } }

/* signup */
.signup { margin-top: 34px; max-width: 520px; }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .signup .row { grid-template-columns: 1fr; } }
.signup label { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.signup input[type=text], .signup input[type=email] {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 2px solid var(--ink);
  background: var(--white); color: var(--ink); border-radius: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px;
  font-family: var(--sans); font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: 0.01em;
  background: var(--amber); color: var(--ink); border: 2px solid var(--ink); padding: 15px 20px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; text-decoration: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.inline { width: auto; }
.fine { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
.fine a { color: var(--muted); }
.form-note { display: none; margin-top: 12px; font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--white); padding: 10px 12px; }

/* MailerLite embed: brand overrides (applied once the real embed code is pasted) */
.signup .ml-form-embedContainer, .signup .ml-form-embedWrapper, .signup .ml-form-embedBody { background: transparent !important; padding: 0 !important; border: 0 !important; max-width: none !important; }
.signup .ml-form-embedContainer input { border: 2px solid var(--ink) !important; border-radius: 0 !important; font-family: var(--sans) !important; font-size: 16px !important; padding: 13px 14px !important; height: auto !important; }
.signup .ml-form-embedContainer button[type=submit], .signup .ml-form-embedContainer .primary {
  background: var(--amber) !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; border-radius: 0 !important;
  font-family: var(--sans) !important; font-weight: 900 !important; text-transform: uppercase !important; font-size: 18px !important; box-shadow: 4px 4px 0 var(--ink) !important;
}

/* lab sheet (hero card) */
.sheet { background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); position: relative; }
.sheet-head { background: var(--ink); color: var(--white); display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.sheet-head .dot { width: 9px; height: 9px; background: var(--amber); display: inline-block; margin-right: 8px; }
.sheet-body { padding: 18px 18px 16px; }
.sheet-title { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 2px; }
.sheet-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.kpi { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; }
.kpi th, .kpi td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.kpi th:first-child, .kpi td:first-child { text-align: left; }
.kpi th { font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.kpi td.hl { font-weight: 700; }
.curve { margin: 14px 0 6px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.label { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1.5px solid var(--ink); padding: 3px 7px; }
.stamp {
  font-family: var(--sans); font-weight: 900; font-size: 22px; letter-spacing: 0.06em; color: var(--pass);
  border: 3px solid var(--pass); padding: 2px 12px; transform: rotate(-6deg); text-transform: uppercase;
}
.stamp.fail { color: var(--fail); border-color: var(--fail); }

/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--white); }
.pipe div { padding: 16px 14px; border-right: 1px solid var(--line); }
.pipe div:last-child { border-right: 0; }
.pipe .n { font-family: var(--mono); font-weight: 700; font-size: 12px; display: inline-block; background: var(--ink); color: var(--white); padding: 1px 6px; margin-bottom: 8px; }
.pipe b { display: block; font-weight: 900; font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.pipe span.d { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 920px) { .pipe { grid-template-columns: repeat(3, 1fr); } .pipe div:nth-child(3) { border-right: 0; } .pipe div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .pipe { grid-template-columns: 1fr 1fr; } .pipe div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); } .pipe div:nth-child(2n) { border-right: 0 !important; } }

/* skill cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 2px solid var(--ink); padding: 24px; display: flex; flex-direction: column; }
.card .num { font-family: var(--mono); font-weight: 700; font-size: 40px; line-height: 1; margin-bottom: 14px; }
.card .num span { background: var(--amber); padding: 0 6px; }
.card code { font-family: var(--mono); font-size: 13.5px; font-weight: 700; background: var(--paper-2); padding: 2px 6px; }
.card ul { margin: 10px 0 16px; padding-left: 18px; }
.card li { margin-bottom: 6px; }
.card .out { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--mono); font-size: 13px; }
.card .out b { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ink section */
.ink { background: var(--ink); color: var(--white); border-top: 0 !important; }
.ink + section { border-top: 0; }
.ink a { color: var(--white); }
.ink .muted { color: #A9B0B9; }
.ink .eyebrow .tag { background: var(--amber); color: var(--ink); }
.ink h2 .block { background: var(--amber); color: var(--ink); padding: 0 0.12em; }
.ex-grid > * { min-width: 0; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 920px) { .ex-grid { grid-template-columns: 1fr; gap: 32px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ink-2); }
.steps li::before { content: counter(s); font-family: var(--mono); font-weight: 700; font-size: 14px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--amber); color: var(--ink); }
.steps b { font-weight: 900; }
.tbl-dark { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; background: var(--ink-2); }
.tbl-dark th, .tbl-dark td { padding: 10px 12px; text-align: right; border-bottom: 1px solid #2A313C; white-space: nowrap; }
.tbl-dark th:first-child, .tbl-dark td:first-child { text-align: left; }
.tbl-dark th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #A9B0B9; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note-box { margin-top: 16px; font-size: 14px; color: #A9B0B9; border-left: 3px solid var(--amber); padding-left: 12px; }

/* two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.box { border: 2px solid var(--ink); padding: 24px; background: var(--white); }
.box h3 { font-size: 20px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.box ul { list-style: none; padding: 0; margin: 12px 0 0; }
.box li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.box li:last-child { border-bottom: 0; }
.box li::before { position: absolute; left: 0; top: 8px; font-family: var(--mono); font-weight: 700; }
.box.yes li::before { content: "+"; color: var(--pass); }
.box.no li::before { content: "\2013"; color: var(--fail); }

/* requirements */
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); background: var(--white); }
.req > div { padding: 22px; border-right: 1px solid var(--line); }
.req > div:last-child { border-right: 0; }
.req .k { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.req b { font-weight: 900; font-size: 19px; display: block; margin-bottom: 6px; line-height: 1.25; }
.req p { font-size: 15px; margin: 0; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } .req > div { border-right: 0; border-bottom: 1px solid var(--line); } .req > div:last-child { border-bottom: 0; } }

/* about */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; gap: 24px; } }
.portrait { width: 220px; aspect-ratio: 1; background: var(--amber); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; text-align: center; padding: 16px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .portrait { width: 160px; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 16px 40px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-family: var(--mono); font-weight: 700; font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 46em; padding-bottom: 8px; }

/* final cta */
.cta { text-align: left; }
.cta .signup { margin-top: 24px; }

/* footer */
footer { background: var(--ink); color: #A9B0B9; padding: 44px 0 36px; font-size: 14px; line-height: 1.55; }
footer a { color: var(--white); }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--ink-2); margin-bottom: 22px; }
.foot-top .brand { color: var(--white); }
.foot-links a { margin-right: 18px; font-family: var(--mono); font-size: 13px; }
.foot-legal p { margin: 0 0 10px; max-width: 60em; }
.disclaimer { color: var(--white); }

/* simple pages (check inbox, pack, legal) */
.page { padding: 64px 0 88px; }
.page .narrow { max-width: 760px; }
.page h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 18px; }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page h3 { font-size: 19px; margin: 24px 0 6px; }
.page ol, .page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.fill { background: var(--amber); font-family: var(--mono); font-size: 0.9em; padding: 0 4px; }
.dl { display: grid; gap: 14px; margin: 24px 0; }
.dl a.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; text-decoration: none; background: var(--white); border: 2px solid var(--ink); padding: 16px 18px; }
.dl a.item:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px, -1px); }
.dl .n { font-family: var(--mono); font-weight: 700; font-size: 26px; background: var(--amber); text-align: center; }
.dl b { font-weight: 900; font-size: 18px; display: block; }
.dl span.s { font-size: 14px; color: var(--muted); }
.dl .size { font-family: var(--mono); font-size: 13px; font-weight: 700; }
@media (max-width: 520px) { .dl a.item { grid-template-columns: 44px 1fr; } .dl .size { grid-column: 2; } }
.callout { border: 2px solid var(--ink); background: var(--white); padding: 18px 20px; margin: 20px 0; }
.callout.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
code.k { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 6px; }
@media (max-width: 480px) { .tbl-dark { font-size: 12px; } .tbl-dark th, .tbl-dark td { padding: 8px 5px; } .tbl-dark th { font-size: 10px; } }
@media (max-width: 480px) { .kpi th { white-space: normal; line-height: 1.2; } }

/* proof strip */
.proof { padding: 56px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--amber); }
.stats > div { padding: 22px 20px; border-right: 1px solid #2A313C; }
.stats > div:last-child { border-right: 0; }
.stats .big { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--ink); background: var(--amber); padding: 4px 8px; width: fit-content; margin-bottom: 12px; }
.stats b { display: block; font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 4px; }
.stats .d { display: block; font-size: 14px; color: #A9B0B9; line-height: 1.45; }
.proof-note { margin: 16px 0 0; font-size: 14px; color: #A9B0B9; max-width: 60em; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid #2A313C; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stats > div { border-right: 0; border-bottom: 1px solid #2A313C; } .stats > div:last-child { border-bottom: 0; } }
