/* subpart.net: one stylesheet for every page. Black, white and grey with one
   blue accent; hairline rules; no cards, shadows or rounded corners. */

:root {
  --bg: #000000;
  --fg: #f4f4f4;       /* headings, body emphasis */
  --body: #c8c8c8;     /* body copy */
  --muted: #8a8a8a;    /* labels, sources, nav links */
  --rule: #1c1c1c;     /* section dividers */
  --rule-2: #2a2a2a;   /* screenshot frames */
  --field: #3a3a3a;    /* input borders */
  --accent: #6AA8FF;   /* buttons, section numbers, key phrase */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --max: 1120px;
  --pad: 32px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--body);
}

body {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

main { flex: 1; }

h1, h2, h3, strong, b { color: var(--fg); }
h1, h2, h3 { font-weight: 600; letter-spacing: 0.005em; }

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1.6rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 2.4rem;
  max-width: 28ch;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1.2rem; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

/* Links in text: no underline, a hairline under, accent on hover. */
a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent); border-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  min-height: 76px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  color: var(--fg);
  border: 0;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}
.wordmark:hover { color: var(--fg); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a, .footer-nav a {
  color: var(--muted);
  border: 0;
  font-size: 14px;
  display: inline-block;
  padding: 10px 0;
}
.nav a:hover, .footer-nav a:hover { color: var(--accent); }
.nav a[aria-current="page"], .footer-nav a[aria-current="page"] { color: var(--fg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: #000; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-nav { min-height: 44px; padding: 0 18px; font-size: 14px; }

.text-link {
  color: var(--fg);
  border-bottom: 1px solid var(--muted);
  font-size: 15px;
}

.arrow-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 15px;
}

/* ---------- Sections ---------- */

.section {
  border-top: 1px solid var(--rule);
  padding: 96px 0;
}
.section:first-child { border-top: 0; }

.label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 24px;
}
.num { color: var(--accent); }

.source {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 32px;
}
.source a { color: var(--muted); }
.source a:hover { color: var(--accent); }

.muted { color: var(--muted); }
.fg { color: var(--fg); }
.accent { color: var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 120px 0 112px; }
.hero h1 { max-width: 14ch; }
.hero .sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 40px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.hero .note {
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 60ch;
}
.hero .for {
  border-top: 1px solid var(--rule);
  margin-top: 56px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
  max-width: 80ch;
}

/* ---------- Grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 40px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid-3 > * {
  border-top: 1px solid var(--fg);
  padding-top: 24px;
}

.stat {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 16px;
}
.stat.sm { font-size: clamp(1.8rem, 2.9vw, 2.5rem); }
.stat sup { font-size: 0.4em; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat sup a { color: var(--muted); border: 0; }
.stat sup a:hover { color: var(--accent); }

.kicker {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Label-and-text rows */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li, .rows > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px 48px;
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.rows > :last-child { border-bottom: 1px solid var(--rule); }
.rows dt, .rows .k { color: var(--fg); font-weight: 600; }
.rows dd { margin: 0; }

/* ---------- Case box ---------- */

.case {
  border: 1px solid var(--rule-2);
  padding: 32px;
  margin-top: 56px;
  max-width: 880px;
}
.case .label { margin-bottom: 16px; }
.case .takeaway { color: var(--fg); font-weight: 600; margin-top: 24px; }
.case .source { margin-top: 24px; }

/* ---------- Statement band ---------- */

.band { padding: 128px 0; }
.band .statement {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  max-width: 24ch;
  margin: 0 0 32px;
}
.band .statement .accent { color: var(--accent); }
.band .small { color: var(--muted); font-size: 15px; }

/* ---------- Feature rows with screenshots ---------- */

.features { display: grid; gap: 96px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 1.35rem; }
.feature .lead { color: var(--fg); margin-bottom: 12px; }

.shot {
  margin: 0;
  border: 1px solid var(--rule-2);
  background: #050505;
  min-width: 0;
}
.shot-bar {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 14px;
  border-bottom: 1px solid var(--rule-2);
  letter-spacing: 0.04em;
}
.shot-body { overflow-x: auto; }
.shot-body img { width: 100%; max-width: none; min-width: 560px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  border-top: 1px solid var(--fg);
  padding-top: 20px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.1rem; }

.steps.vertical { grid-template-columns: 1fr; gap: 0; max-width: 720px; }
.steps.vertical > li { border-top: 1px solid var(--rule); padding: 24px 0; }
.steps.vertical > li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Footnotes ---------- */

.footnotes {
  margin: 48px 0 0;
  padding: 24px 0 0 1.6em;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.footnotes li { margin-bottom: 8px; }
.footnotes a { color: var(--muted); }
.footnotes a:hover { color: var(--accent); }

/* ---------- Scope lists ---------- */

.scope {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px 48px;
}
.scope h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.marks { list-style: none; margin: 0; padding: 0; }
.marks li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--rule);
}
.marks li:last-child { border-bottom: 1px solid var(--rule); }
.marks li::before { position: absolute; left: 0; top: 12px; }
.marks.plus li { color: var(--fg); }
.marks.plus li::before { content: "+"; color: var(--accent); }
.marks.minus li, .scope .out h3 { color: var(--muted); }
.marks.minus li::before { content: "–"; color: var(--muted); }
.holder { margin-top: 40px; color: var(--fg); }

/* ---------- Pricing ---------- */

.model { max-width: 64ch; }
.guarantee {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--fg);
  margin-top: 32px;
  max-width: 64ch;
}
.guarantee::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Page heads (inner pages) ---------- */

.page-head { padding: 112px 0 72px; }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 18ch; }
.page-head .intro { font-size: 1.1rem; max-width: 62ch; }

.item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px 48px;
  border-top: 1px solid var(--rule);
  padding: 48px 0;
}
.item h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0; }
.item .source { margin-top: 20px; }
.item-body { max-width: 66ch; }

.cta-row { border-top: 1px solid var(--rule); padding: 72px 0 96px; }

/* ---------- Prose pages (About, Methodology) ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px var(--pad) 96px;
}
.prose h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin-bottom: 0.6rem; }
.prose .tagline { color: var(--muted); font-size: 1.1rem; margin-bottom: 3rem; }
.prose h2 { font-size: 1.25rem; margin: 3.2rem 0 1rem; max-width: none; }
.prose p { margin-bottom: 1.3rem; }
.prose .lede { color: var(--fg); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
.prose .contact { color: var(--muted); }

/* ---------- Form ---------- */

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px 64px;
  align-items: start;
}

.form { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--fg); font-size: 14px; }
.field .opt { color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--field);
  border-radius: 0;
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8a8a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; min-width: 160px; }
.form-status { margin: 0; color: var(--fg); }
.form-status.error { color: #ff9b9b; }
.form-done { color: var(--fg); font-size: 1.1rem; max-width: 46ch; border-top: 1px solid var(--accent); padding-top: 20px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 56px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: baseline; }
.footer-brand { color: var(--fg); }
.footer-brand span { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }

/* ---------- Not found ---------- */

.notfound { padding: 160px 0; }
.notfound h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .feature, .feature.flip, .item, .start-grid { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .features { gap: 72px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 72px; }
  .band { padding: 88px 0; }
  .page-head { padding: 72px 0 48px; }
  .prose { padding-top: 64px; }
  .case { padding: 24px 20px; }
  .site-header .wrap { gap: 4px 20px; }
  .wordmark { margin-right: auto; }
  .site-header nav { order: 3; width: 100%; }
  .nav { gap: 0 18px; }
  .nav a { padding: 8px 0; }
  .hero .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- About: founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 1.6rem 0 3.2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}
.founder img { width: 100%; border: 1px solid var(--rule-2); }
.founder h2 { margin-top: 0; }
@media (max-width: 600px) {
  .founder { grid-template-columns: 1fr; }
  .founder img { max-width: 280px; }
}
